| 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 15 matching lines...) Expand all Loading... |
| 26 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 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; | |
| 37 option go_package = "github.com/golang/protobuf/ptypes/struct;structpb"; | 36 option go_package = "github.com/golang/protobuf/ptypes/struct;structpb"; |
| 38 option java_package = "com.google.protobuf"; | 37 option java_package = "com.google.protobuf"; |
| 39 option java_outer_classname = "StructProto"; | 38 option java_outer_classname = "StructProto"; |
| 40 option java_multiple_files = true; | 39 option java_multiple_files = true; |
| 40 option java_generate_equals_and_hash = true; |
| 41 option objc_class_prefix = "GPB"; | 41 option objc_class_prefix = "GPB"; |
| 42 | 42 |
| 43 | 43 |
| 44 // `Struct` represents a structured data value, consisting of fields | 44 // `Struct` represents a structured data value, consisting of fields |
| 45 // which map to dynamically typed values. In some languages, `Struct` | 45 // which map to dynamically typed values. In some languages, `Struct` |
| 46 // might be supported by a native representation. For example, in | 46 // might be supported by a native representation. For example, in |
| 47 // scripting languages like JS a struct is represented as an | 47 // scripting languages like JS a struct is represented as an |
| 48 // object. The details of that representation are described together | 48 // object. The details of that representation are described together |
| 49 // with the proto support for the language. | 49 // with the proto support for the language. |
| 50 // | 50 // |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 NULL_VALUE = 0; | 87 NULL_VALUE = 0; |
| 88 } | 88 } |
| 89 | 89 |
| 90 // `ListValue` is a wrapper around a repeated field of values. | 90 // `ListValue` is a wrapper around a repeated field of values. |
| 91 // | 91 // |
| 92 // The JSON representation for `ListValue` is JSON array. | 92 // The JSON representation for `ListValue` is JSON array. |
| 93 message ListValue { | 93 message ListValue { |
| 94 // Repeated field of dynamically typed values. | 94 // Repeated field of dynamically typed values. |
| 95 repeated Value values = 1; | 95 repeated Value values = 1; |
| 96 } | 96 } |
| OLD | NEW |