| 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 16 matching lines...) Expand all Loading... |
| 27 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 | 30 |
| 31 syntax = "proto3"; | 31 syntax = "proto3"; |
| 32 | 32 |
| 33 package google.protobuf; | 33 package google.protobuf; |
| 34 | 34 |
| 35 option csharp_namespace = "Google.Protobuf.WellKnownTypes"; | 35 option csharp_namespace = "Google.Protobuf.WellKnownTypes"; |
| 36 option cc_enable_arenas = true; | 36 option cc_enable_arenas = true; |
| 37 option go_package = "github.com/golang/protobuf/ptypes/timestamp"; |
| 37 option java_package = "com.google.protobuf"; | 38 option java_package = "com.google.protobuf"; |
| 38 option java_outer_classname = "TimestampProto"; | 39 option java_outer_classname = "TimestampProto"; |
| 39 option java_multiple_files = true; | 40 option java_multiple_files = true; |
| 40 option java_generate_equals_and_hash = true; | 41 option java_generate_equals_and_hash = true; |
| 41 option objc_class_prefix = "GPB"; | 42 option objc_class_prefix = "GPB"; |
| 42 | 43 |
| 43 // A Timestamp represents a point in time independent of any time zone | 44 // A Timestamp represents a point in time independent of any time zone |
| 44 // or calendar, represented as seconds and fractions of seconds at | 45 // or calendar, represented as seconds and fractions of seconds at |
| 45 // nanosecond resolution in UTC Epoch time. It is encoded using the | 46 // nanosecond resolution in UTC Epoch time. It is encoded using the |
| 46 // Proleptic Gregorian Calendar which extends the Gregorian calendar | 47 // Proleptic Gregorian Calendar which extends the Gregorian calendar |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // 1970-01-01T00:00:00Z. Must be from from 0001-01-01T00:00:00Z to | 102 // 1970-01-01T00:00:00Z. Must be from from 0001-01-01T00:00:00Z to |
| 102 // 9999-12-31T23:59:59Z inclusive. | 103 // 9999-12-31T23:59:59Z inclusive. |
| 103 int64 seconds = 1; | 104 int64 seconds = 1; |
| 104 | 105 |
| 105 // Non-negative fractions of a second at nanosecond resolution. Negative | 106 // Non-negative fractions of a second at nanosecond resolution. Negative |
| 106 // second values with fractions must still have non-negative nanos values | 107 // second values with fractions must still have non-negative nanos values |
| 107 // that count forward in time. Must be from 0 to 999,999,999 | 108 // that count forward in time. Must be from 0 to 999,999,999 |
| 108 // inclusive. | 109 // inclusive. |
| 109 int32 nanos = 2; | 110 int32 nanos = 2; |
| 110 } | 111 } |
| OLD | NEW |