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 18 matching lines...) Expand all Loading... |
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 import "google/protobuf/any.proto"; | 35 import "google/protobuf/any.proto"; |
36 import "google/protobuf/source_context.proto"; | 36 import "google/protobuf/source_context.proto"; |
37 | 37 |
38 option csharp_namespace = "Google.Protobuf.WellKnownTypes"; | 38 option csharp_namespace = "Google.Protobuf.WellKnownTypes"; |
39 option cc_enable_arenas = true; | |
40 option java_package = "com.google.protobuf"; | 39 option java_package = "com.google.protobuf"; |
41 option java_outer_classname = "TypeProto"; | 40 option java_outer_classname = "TypeProto"; |
42 option java_multiple_files = true; | 41 option java_multiple_files = true; |
| 42 option java_generate_equals_and_hash = true; |
43 option objc_class_prefix = "GPB"; | 43 option objc_class_prefix = "GPB"; |
44 option go_package = "google.golang.org/genproto/protobuf/ptype;ptype"; | |
45 | 44 |
46 // A protocol buffer message type. | 45 // A protocol buffer message type. |
47 message Type { | 46 message Type { |
48 // The fully qualified message name. | 47 // The fully qualified message name. |
49 string name = 1; | 48 string name = 1; |
50 // The list of fields. | 49 // The list of fields. |
51 repeated Field fields = 2; | 50 repeated Field fields = 2; |
52 // The list of types appearing in `oneof` definitions in this type. | 51 // The list of types appearing in `oneof` definitions in this type. |
53 repeated string oneofs = 3; | 52 repeated string oneofs = 3; |
54 // The protocol buffer options. | 53 // The protocol buffer options. |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 Any value = 2; | 171 Any value = 2; |
173 } | 172 } |
174 | 173 |
175 // The syntax in which a protocol buffer element is defined. | 174 // The syntax in which a protocol buffer element is defined. |
176 enum Syntax { | 175 enum Syntax { |
177 // Syntax `proto2`. | 176 // Syntax `proto2`. |
178 SYNTAX_PROTO2 = 0; | 177 SYNTAX_PROTO2 = 0; |
179 // Syntax `proto3`. | 178 // Syntax `proto3`. |
180 SYNTAX_PROTO3 = 1; | 179 SYNTAX_PROTO3 = 1; |
181 } | 180 } |
OLD | NEW |