OLD | NEW |
1 // Protocol Buffers - Google's data interchange format | 1 // Protocol Buffers - Google's data interchange format |
2 // Copyright 2008 Google Inc. All rights reserved. | 2 // Copyright 2008 Google Inc. All rights reserved. |
3 // https://developers.google.com/protocol-buffers/ | 3 // https://developers.google.com/protocol-buffers/ |
4 // | 4 // |
5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
7 // met: | 7 // met: |
8 // | 8 // |
9 // * Redistributions of source code must retain the above copyright | 9 // * Redistributions of source code must retain the above copyright |
10 // notice, this list of conditions and the following disclaimer. | 10 // notice, this list of conditions and the following disclaimer. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 const char kTypeServiceBaseUrl[] = "type.googleapis.com"; | 43 const char kTypeServiceBaseUrl[] = "type.googleapis.com"; |
44 | 44 |
45 // Format string for RFC3339 timestamp formatting. | 45 // Format string for RFC3339 timestamp formatting. |
46 const char kRfc3339TimeFormat[] = "%E4Y-%m-%dT%H:%M:%S"; | 46 const char kRfc3339TimeFormat[] = "%E4Y-%m-%dT%H:%M:%S"; |
47 | 47 |
48 // Same as above, but the year value is not zero-padded i.e. this accepts | 48 // Same as above, but the year value is not zero-padded i.e. this accepts |
49 // timestamps like "1-01-0001T23:59:59Z" instead of "0001-01-0001T23:59:59Z". | 49 // timestamps like "1-01-0001T23:59:59Z" instead of "0001-01-0001T23:59:59Z". |
50 const char kRfc3339TimeFormatNoPadding[] = "%Y-%m-%dT%H:%M:%S"; | 50 const char kRfc3339TimeFormatNoPadding[] = "%Y-%m-%dT%H:%M:%S"; |
51 | 51 |
52 // Minimun seconds allowed in a google.protobuf.Timestamp value. | 52 // Minimun seconds allowed in a google.protobuf.Timestamp value. |
53 const int64 kTimestampMinSeconds = -62135596800LL; | 53 const int64 kTimestampMinSeconds = -62135596800; |
54 | 54 |
55 // Maximum seconds allowed in a google.protobuf.Timestamp value. | 55 // Maximum seconds allowed in a google.protobuf.Timestamp value. |
56 const int64 kTimestampMaxSeconds = 253402300799LL; | 56 const int64 kTimestampMaxSeconds = 253402300799; |
57 | 57 |
58 // Minimum seconds allowed in a google.protobuf.Duration value. | 58 // Minimum seconds allowed in a google.protobuf.Duration value. |
59 const int64 kDurationMinSeconds = -315576000000LL; | 59 const int64 kDurationMinSeconds = -315576000000; |
60 | 60 |
61 // Maximum seconds allowed in a google.protobuf.Duration value. | 61 // Maximum seconds allowed in a google.protobuf.Duration value. |
62 const int64 kDurationMaxSeconds = 315576000000LL; | 62 const int64 kDurationMaxSeconds = 315576000000; |
63 | 63 |
64 // Nano seconds in a second. | 64 // Nano seconds in a second. |
65 const int32 kNanosPerSecond = 1000000000; | 65 const int32 kNanosPerSecond = 1000000000; |
66 | 66 |
67 // Type url representing NULL values in google.protobuf.Struct type. | 67 // Type url representing NULL values in google.protobuf.Struct type. |
68 const char kStructNullValueTypeUrl[] = | 68 const char kStructNullValueTypeUrl[] = |
69 "type.googleapis.com/google.protobuf.NullValue"; | 69 "type.googleapis.com/google.protobuf.NullValue"; |
70 | 70 |
71 // Type string for google.protobuf.Struct | 71 // Type string for google.protobuf.Struct |
72 const char kStructType[] = "google.protobuf.Struct"; | 72 const char kStructType[] = "google.protobuf.Struct"; |
(...skipping 21 matching lines...) Expand all Loading... |
94 | 94 |
95 // The type URL of google.protobuf.FieldMask; | 95 // The type URL of google.protobuf.FieldMask; |
96 const char kFieldMaskTypeUrl[] = | 96 const char kFieldMaskTypeUrl[] = |
97 "type.googleapis.com/google.protobuf.FieldMask"; | 97 "type.googleapis.com/google.protobuf.FieldMask"; |
98 | 98 |
99 } // namespace converter | 99 } // namespace converter |
100 } // namespace util | 100 } // namespace util |
101 } // namespace protobuf | 101 } // namespace protobuf |
102 } // namespace google | 102 } // namespace google |
103 #endif // GOOGLE_PROTOBUF_UTIL_CONVERTER_CONSTANTS_H__ | 103 #endif // GOOGLE_PROTOBUF_UTIL_CONVERTER_CONSTANTS_H__ |
OLD | NEW |