diff options
author | Jon Skeet <skeet@pobox.com> | 2008-08-14 20:36:24 +0100 |
---|---|---|
committer | Jon Skeet <skeet@pobox.com> | 2008-08-14 20:36:24 +0100 |
commit | 62b3d31fb7f85df243f7559199171ca3375ce89e (patch) | |
tree | cde8e62e495e1438ed85fd2c5574d0290586fa10 /csharp/TestBed/bcl.proto | |
parent | eb4ef52c66a8e9f9a0477936adf4444ae37dd045 (diff) | |
download | protobuf-62b3d31fb7f85df243f7559199171ca3375ce89e.tar.gz protobuf-62b3d31fb7f85df243f7559199171ca3375ce89e.tar.bz2 protobuf-62b3d31fb7f85df243f7559199171ca3375ce89e.zip |
Fixed a few TODOs
Diffstat (limited to 'csharp/TestBed/bcl.proto')
-rw-r--r-- | csharp/TestBed/bcl.proto | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/csharp/TestBed/bcl.proto b/csharp/TestBed/bcl.proto new file mode 100644 index 00000000..bf4ff090 --- /dev/null +++ b/csharp/TestBed/bcl.proto @@ -0,0 +1,45 @@ +package bcl; + +option csharp_namespace = "Google.ProtocolBuffers.Bcl"; +option csharp_file_classname = "BclProtoFile"; + +option optimize_for = SPEED; + +message TimeSpan { + optional sint64 value = 1; // the size of the timespan (in units of the selected scale) + optional TimeSpanScale scale = 2 [default = DAYS]; // the scale of the timespan + enum TimeSpanScale { + DAYS = 0; + HOURS = 1; + MINUTES = 2; + SECONDS = 3; + MILLISECONDS = 4; + + MINMAX = 15; // dubious + } +} + +message DateTime { + optional sint64 value = 1; // the offset (in units of the selected scale) from 1970/01/01 + optional TimeSpanScale scale = 2 [default = DAYS]; // the scale of the timespan + enum TimeSpanScale { + DAYS = 0; + HOURS = 1; + MINUTES = 2; + SECONDS = 3; + MILLISECONDS = 4; + + MINMAX = 15; // dubious + } +} + +message Guid { + optional fixed64 lo = 1; // the first 8 bytes of the guid + optional fixed64 hi = 2; // the second 8 bytes of the guid +} + +message Decimal { + optional uint64 lo = 1; // the first 64 bits of the underlying value + optional uint32 hi = 2; // the last 32 bis of the underlying value + optional uint32 signScale = 3; // the number of decimal digits, and the sign +} |