| // Protocol Buffers - Google's data interchange format |
| // Copyright 2008 Google Inc. All rights reserved. |
| // |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file or at |
| // https://developers.google.com/open-source/licenses/bsd |
| // |
| // Test schema for proto3 messages. This test schema is used by: |
| // |
| // - benchmarks |
| // - fuzz tests |
| // - conformance tests |
| // |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: google/protobuf/test_messages_proto3.proto |
| |
| package conformance |
| |
| import ( |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| anypb "google.golang.org/protobuf/types/known/anypb" |
| durationpb "google.golang.org/protobuf/types/known/durationpb" |
| fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" |
| structpb "google.golang.org/protobuf/types/known/structpb" |
| timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" |
| reflect "reflect" |
| sync "sync" |
| ) |
| |
| type ForeignEnum int32 |
| |
| const ( |
| ForeignEnum_FOREIGN_FOO ForeignEnum = 0 |
| ForeignEnum_FOREIGN_BAR ForeignEnum = 1 |
| ForeignEnum_FOREIGN_BAZ ForeignEnum = 2 |
| ) |
| |
| // Enum value maps for ForeignEnum. |
| var ( |
| ForeignEnum_name = map[int32]string{ |
| 0: "FOREIGN_FOO", |
| 1: "FOREIGN_BAR", |
| 2: "FOREIGN_BAZ", |
| } |
| ForeignEnum_value = map[string]int32{ |
| "FOREIGN_FOO": 0, |
| "FOREIGN_BAR": 1, |
| "FOREIGN_BAZ": 2, |
| } |
| ) |
| |
| func (x ForeignEnum) Enum() *ForeignEnum { |
| p := new(ForeignEnum) |
| *p = x |
| return p |
| } |
| |
| func (x ForeignEnum) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (ForeignEnum) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_protobuf_test_messages_proto3_proto_enumTypes[0].Descriptor() |
| } |
| |
| func (ForeignEnum) Type() protoreflect.EnumType { |
| return &file_google_protobuf_test_messages_proto3_proto_enumTypes[0] |
| } |
| |
| func (x ForeignEnum) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use ForeignEnum.Descriptor instead. |
| func (ForeignEnum) EnumDescriptor() ([]byte, []int) { |
| return file_google_protobuf_test_messages_proto3_proto_rawDescGZIP(), []int{0} |
| } |
| |
| type TestAllTypesProto3_NestedEnum int32 |
| |
| const ( |
| TestAllTypesProto3_FOO TestAllTypesProto3_NestedEnum = 0 |
| TestAllTypesProto3_BAR TestAllTypesProto3_NestedEnum = 1 |
| TestAllTypesProto3_BAZ TestAllTypesProto3_NestedEnum = 2 |
| TestAllTypesProto3_NEG TestAllTypesProto3_NestedEnum = -1 // Intentionally negative. |
| ) |
| |
| // Enum value maps for TestAllTypesProto3_NestedEnum. |
| var ( |
| TestAllTypesProto3_NestedEnum_name = map[int32]string{ |
| 0: "FOO", |
| 1: "BAR", |
| 2: "BAZ", |
| -1: "NEG", |
| } |
| TestAllTypesProto3_NestedEnum_value = map[string]int32{ |
| "FOO": 0, |
| "BAR": 1, |
| "BAZ": 2, |
| "NEG": -1, |
| } |
| ) |
| |
| func (x TestAllTypesProto3_NestedEnum) Enum() *TestAllTypesProto3_NestedEnum { |
| p := new(TestAllTypesProto3_NestedEnum) |
| *p = x |
| return p |
| } |
| |
| func (x TestAllTypesProto3_NestedEnum) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (TestAllTypesProto3_NestedEnum) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_protobuf_test_messages_proto3_proto_enumTypes[1].Descriptor() |
| } |
| |
| func (TestAllTypesProto3_NestedEnum) Type() protoreflect.EnumType { |
| return &file_google_protobuf_test_messages_proto3_proto_enumTypes[1] |
| } |
| |
| func (x TestAllTypesProto3_NestedEnum) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use TestAllTypesProto3_NestedEnum.Descriptor instead. |
| func (TestAllTypesProto3_NestedEnum) EnumDescriptor() ([]byte, []int) { |
| return file_google_protobuf_test_messages_proto3_proto_rawDescGZIP(), []int{0, 0} |
| } |
| |
| type TestAllTypesProto3_AliasedEnum int32 |
| |
| const ( |
| TestAllTypesProto3_ALIAS_FOO TestAllTypesProto3_AliasedEnum = 0 |
| TestAllTypesProto3_ALIAS_BAR TestAllTypesProto3_AliasedEnum = 1 |
| TestAllTypesProto3_ALIAS_BAZ TestAllTypesProto3_AliasedEnum = 2 |
| TestAllTypesProto3_MOO TestAllTypesProto3_AliasedEnum = 2 |
| TestAllTypesProto3_moo TestAllTypesProto3_AliasedEnum = 2 |
| TestAllTypesProto3_bAz TestAllTypesProto3_AliasedEnum = 2 |
| ) |
| |
| // Enum value maps for TestAllTypesProto3_AliasedEnum. |
| var ( |
| TestAllTypesProto3_AliasedEnum_name = map[int32]string{ |
| 0: "ALIAS_FOO", |
| 1: "ALIAS_BAR", |
| 2: "ALIAS_BAZ", |
| // Duplicate value: 2: "MOO", |
| // Duplicate value: 2: "moo", |
| // Duplicate value: 2: "bAz", |
| } |
| TestAllTypesProto3_AliasedEnum_value = map[string]int32{ |
| "ALIAS_FOO": 0, |
| "ALIAS_BAR": 1, |
| "ALIAS_BAZ": 2, |
| "MOO": 2, |
| "moo": 2, |
| "bAz": 2, |
| } |
| ) |
| |
| func (x TestAllTypesProto3_AliasedEnum) Enum() *TestAllTypesProto3_AliasedEnum { |
| p := new(TestAllTypesProto3_AliasedEnum) |
| *p = x |
| return p |
| } |
| |
| func (x TestAllTypesProto3_AliasedEnum) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (TestAllTypesProto3_AliasedEnum) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_protobuf_test_messages_proto3_proto_enumTypes[2].Descriptor() |
| } |
| |
| func (TestAllTypesProto3_AliasedEnum) Type() protoreflect.EnumType { |
| return &file_google_protobuf_test_messages_proto3_proto_enumTypes[2] |
| } |
| |
| func (x TestAllTypesProto3_AliasedEnum) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use TestAllTypesProto3_AliasedEnum.Descriptor instead. |
| func (TestAllTypesProto3_AliasedEnum) EnumDescriptor() ([]byte, []int) { |
| return file_google_protobuf_test_messages_proto3_proto_rawDescGZIP(), []int{0, 1} |
| } |
| |
| type EnumOnlyProto3_Bool int32 |
| |
| const ( |
| EnumOnlyProto3_kFalse EnumOnlyProto3_Bool = 0 |
| EnumOnlyProto3_kTrue EnumOnlyProto3_Bool = 1 |
| ) |
| |
| // Enum value maps for EnumOnlyProto3_Bool. |
| var ( |
| EnumOnlyProto3_Bool_name = map[int32]string{ |
| 0: "kFalse", |
| 1: "kTrue", |
| } |
| EnumOnlyProto3_Bool_value = map[string]int32{ |
| "kFalse": 0, |
| "kTrue": 1, |
| } |
| ) |
| |
| func (x EnumOnlyProto3_Bool) Enum() *EnumOnlyProto3_Bool { |
| p := new(EnumOnlyProto3_Bool) |
| *p = x |
| return p |
| } |
| |
| func (x EnumOnlyProto3_Bool) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (EnumOnlyProto3_Bool) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_protobuf_test_messages_proto3_proto_enumTypes[3].Descriptor() |
| } |
| |
| func (EnumOnlyProto3_Bool) Type() protoreflect.EnumType { |
| return &file_google_protobuf_test_messages_proto3_proto_enumTypes[3] |
| } |
| |
| func (x EnumOnlyProto3_Bool) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use EnumOnlyProto3_Bool.Descriptor instead. |
| func (EnumOnlyProto3_Bool) EnumDescriptor() ([]byte, []int) { |
| return file_google_protobuf_test_messages_proto3_proto_rawDescGZIP(), []int{3, 0} |
| } |
| |
| // This proto includes every type of field in both singular and repeated |
| // forms. |
| // |
| // Also, crucially, all messages and enums in this file are eventually |
| // submessages of this message. So for example, a fuzz test of TestAllTypes |
| // could trigger bugs that occur in any message type in this file. We verify |
| // this stays true in a unit test. |
| type TestAllTypesProto3 struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Singular |
| OptionalInt32 int32 `protobuf:"varint,1,opt,name=optional_int32,json=optionalInt32,proto3" json:"optional_int32,omitempty"` |
| OptionalInt64 int64 `protobuf:"varint,2,opt,name=optional_int64,json=optionalInt64,proto3" json:"optional_int64,omitempty"` |
| OptionalUint32 uint32 `protobuf:"varint,3,opt,name=optional_uint32,json=optionalUint32,proto3" json:"optional_uint32,omitempty"` |
| OptionalUint64 uint64 `protobuf:"varint,4,opt,name=optional_uint64,json=optionalUint64,proto3" json:"optional_uint64,omitempty"` |
| OptionalSint32 int32 `protobuf:"zigzag32,5,opt,name=optional_sint32,json=optionalSint32,proto3" json:"optional_sint32,omitempty"` |
| OptionalSint64 int64 `protobuf:"zigzag64,6,opt,name=optional_sint64,json=optionalSint64,proto3" json:"optional_sint64,omitempty"` |
| OptionalFixed32 uint32 `protobuf:"fixed32,7,opt,name=optional_fixed32,json=optionalFixed32,proto3" json:"optional_fixed32,omitempty"` |
| OptionalFixed64 uint64 `protobuf:"fixed64,8,opt,name=optional_fixed64,json=optionalFixed64,proto3" json:"optional_fixed64,omitempty"` |
| OptionalSfixed32 int32 `protobuf:"fixed32,9,opt,name=optional_sfixed32,json=optionalSfixed32,proto3" json:"optional_sfixed32,omitempty"` |
| OptionalSfixed64 int64 `protobuf:"fixed64,10,opt,name=optional_sfixed64,json=optionalSfixed64,proto3" json:"optional_sfixed64,omitempty"` |
| OptionalFloat float32 `protobuf:"fixed32,11,opt,name=optional_float,json=optionalFloat,proto3" json:"optional_float,omitempty"` |
| OptionalDouble float64 `protobuf:"fixed64,12,opt,name=optional_double,json=optionalDouble,proto3" json:"optional_double,omitempty"` |
| OptionalBool bool `protobuf:"varint,13,opt,name=optional_bool,json=optionalBool,proto3" json:"optional_bool,omitempty"` |
| OptionalString string `protobuf:"bytes,14,opt,name=optional_string,json=optionalString,proto3" json:"optional_string,omitempty"` |
| OptionalBytes []byte `protobuf:"bytes,15,opt,name=optional_bytes,json=optionalBytes,proto3" json:"optional_bytes,omitempty"` |
| OptionalNestedMessage *TestAllTypesProto3_NestedMessage `protobuf:"bytes,18,opt,name=optional_nested_message,json=optionalNestedMessage,proto3" json:"optional_nested_message,omitempty"` |
| OptionalForeignMessage *ForeignMessage `protobuf:"bytes,19,opt,name=optional_foreign_message,json=optionalForeignMessage,proto3" json:"optional_foreign_message,omitempty"` |
| OptionalNestedEnum TestAllTypesProto3_NestedEnum `protobuf:"varint,21,opt,name=optional_nested_enum,json=optionalNestedEnum,proto3,enum=protobuf_test_messages.proto3.TestAllTypesProto3_NestedEnum" json:"optional_nested_enum,omitempty"` |
| OptionalForeignEnum ForeignEnum `protobuf:"varint,22,opt,name=optional_foreign_enum,json=optionalForeignEnum,proto3,enum=protobuf_test_messages.proto3.ForeignEnum" json:"optional_foreign_enum,omitempty"` |
| OptionalAliasedEnum TestAllTypesProto3_AliasedEnum `protobuf:"varint,23,opt,name=optional_aliased_enum,json=optionalAliasedEnum,proto3,enum=protobuf_test_messages.proto3.TestAllTypesProto3_AliasedEnum" json:"optional_aliased_enum,omitempty"` |
| OptionalStringPiece string `protobuf:"bytes,24,opt,name=optional_string_piece,json=optionalStringPiece,proto3" json:"optional_string_piece,omitempty"` |
| OptionalCord string `protobuf:"bytes,25,opt,name=optional_cord,json=optionalCord,proto3" json:"optional_cord,omitempty"` |
| RecursiveMessage *TestAllTypesProto3 `protobuf:"bytes,27,opt,name=recursive_message,json=recursiveMessage,proto3" json:"recursive_message,omitempty"` |
| // Repeated |
| RepeatedInt32 []int32 `protobuf:"varint,31,rep,packed,name=repeated_int32,json=repeatedInt32,proto3" json:"repeated_int32,omitempty"` |
| RepeatedInt64 []int64 `protobuf:"varint,32,rep,packed,name=repeated_int64,json=repeatedInt64,proto3" json:"repeated_int64,omitempty"` |
| RepeatedUint32 []uint32 `protobuf:"varint,33,rep,packed,name=repeated_uint32,json=repeatedUint32,proto3" json:"repeated_uint32,omitempty"` |
| RepeatedUint64 []uint64 `protobuf:"varint,34,rep,packed,name=repeated_uint64,json=repeatedUint64,proto3" json:"repeated_uint64,omitempty"` |
| RepeatedSint32 []int32 `protobuf:"zigzag32,35,rep,packed,name=repeated_sint32,json=repeatedSint32,proto3" json:"repeated_sint32,omitempty"` |
| RepeatedSint64 []int64 `protobuf:"zigzag64,36,rep,packed,name=repeated_sint64,json=repeatedSint64,proto3" json:"repeated_sint64,omitempty"` |
| RepeatedFixed32 []uint32 `protobuf:"fixed32,37,rep,packed,name=repeated_fixed32,json=repeatedFixed32,proto3" json:"repeated_fixed32,omitempty"` |
| RepeatedFixed64 []uint64 `protobuf:"fixed64,38,rep,packed,name=repeated_fixed64,json=repeatedFixed64,proto3" json:"repeated_fixed64,omitempty"` |
| RepeatedSfixed32 []int32 `protobuf:"fixed32,39,rep,packed,name=repeated_sfixed32,json=repeatedSfixed32,proto3" json:"repeated_sfixed32,omitempty"` |
| RepeatedSfixed64 []int64 `protobuf:"fixed64,40,rep,packed,name=repeated_sfixed64,json=repeatedSfixed64,proto3" json:"repeated_sfixed64,omitempty"` |
| RepeatedFloat []float32 `protobuf:"fixed32,41,rep,packed,name=repeated_float,json=repeatedFloat,proto3" json:"repeated_float,omitempty"` |
| RepeatedDouble []float64 `protobuf:"fixed64,42,rep,packed,name=repeated_double,json=repeatedDouble,proto3" json:"repeated_double,omitempty"` |
| RepeatedBool []bool `protobuf:"varint,43,rep,packed,name=repeated_bool,json=repeatedBool,proto3" json:"repeated_bool,omitempty"` |
| RepeatedString []string `protobuf:"bytes,44,rep,name=repeated_string,json=repeatedString,proto3" json:"repeated_string,omitempty"` |
| RepeatedBytes [][]byte `protobuf:"bytes,45,rep,name=repeated_bytes,json=repeatedBytes,proto3" json:"repeated_bytes,omitempty"` |
| RepeatedNestedMessage []*TestAllTypesProto3_NestedMessage `protobuf:"bytes,48,rep,name=repeated_nested_message,json=repeatedNestedMessage,proto3" json:"repeated_nested_message,omitempty"` |
| RepeatedForeignMessage []*ForeignMessage `protobuf:"bytes,49,rep,name=repeated_foreign_message,json=repeatedForeignMessage,proto3" json:"repeated_foreign_message,omitempty"` |
| RepeatedNestedEnum []TestAllTypesProto3_NestedEnum `protobuf:"varint,51,rep,packed,name=repeated_nested_enum,json=repeatedNestedEnum,proto3,enum=protobuf_test_messages.proto3.TestAllTypesProto3_NestedEnum" json:"repeated_nested_enum,omitempty"` |
| RepeatedForeignEnum []ForeignEnum `protobuf:"varint,52,rep,packed,name=repeated_foreign_enum,json=repeatedForeignEnum,proto3,enum=protobuf_test_messages.proto3.ForeignEnum" json:"repeated_foreign_enum,omitempty"` |
| RepeatedStringPiece []string `protobuf:"bytes,54,rep,name=repeated_string_piece,json=repeatedStringPiece,proto3" json:"repeated_string_piece,omitempty"` |
| RepeatedCord []string `protobuf:"bytes,55,rep,name=repeated_cord,json=repeatedCord,proto3" json:"repeated_cord,omitempty"` |
| // Packed |
| PackedInt32 []int32 `protobuf:"varint,75,rep,packed,name=packed_int32,json=packedInt32,proto3" json:"packed_int32,omitempty"` |
| PackedInt64 []int64 `protobuf:"varint,76,rep,packed,name=packed_int64,json=packedInt64,proto3" json:"packed_int64,omitempty"` |
| PackedUint32 []uint32 `protobuf:"varint,77,rep,packed,name=packed_uint32,json=packedUint32,proto3" json:"packed_uint32,omitempty"` |
| PackedUint64 []uint64 `protobuf:"varint,78,rep,packed,name=packed_uint64,json=packedUint64,proto3" json:"packed_uint64,omitempty"` |
| PackedSint32 []int32 `protobuf:"zigzag32,79,rep,packed,name=packed_sint32,json=packedSint32,proto3" json:"packed_sint32,omitempty"` |
| PackedSint64 []int64 `protobuf:"zigzag64,80,rep,packed,name=packed_sint64,json=packedSint64,proto3" json:"packed_sint64,omitempty"` |
| PackedFixed32 []uint32 `protobuf:"fixed32,81,rep,packed,name=packed_fixed32,json=packedFixed32,proto3" json:"packed_fixed32,omitempty"` |
| PackedFixed64 []uint64 `protobuf:"fixed64,82,rep,packed,name=packed_fixed64,json=packedFixed64,proto3" json:"packed_fixed64,omitempty"` |
| PackedSfixed32 []int32 `protobuf:"fixed32,83,rep,packed,name=packed_sfixed32,json=packedSfixed32,proto3" json:"packed_sfixed32,omitempty"` |
| PackedSfixed64 []int64 `protobuf:"fixed64,84,rep,packed,name=packed_sfixed64,json=packedSfixed64,proto3" json:"packed_sfixed64,omitempty"` |
| PackedFloat []float32 `protobuf:"fixed32,85,rep,packed,name=packed_float,json=packedFloat,proto3" json:"packed_float,omitempty"` |
| PackedDouble []float64 `protobuf:"fixed64,86,rep,packed,name=packed_double,json=packedDouble,proto3" json:"packed_double,omitempty"` |
| PackedBool []bool `protobuf:"varint,87,rep,packed,name=packed_bool,json=packedBool,proto3" json:"packed_bool,omitempty"` |
| PackedNestedEnum []TestAllTypesProto3_NestedEnum `protobuf:"varint,88,rep,packed,name=packed_nested_enum,json=packedNestedEnum,proto3,enum=protobuf_test_messages.proto3.TestAllTypesProto3_NestedEnum" json:"packed_nested_enum,omitempty"` |
| // Unpacked |
| UnpackedInt32 []int32 `protobuf:"varint,89,rep,name=unpacked_int32,json=unpackedInt32,proto3" json:"unpacked_int32,omitempty"` |
| UnpackedInt64 []int64 `protobuf:"varint,90,rep,name=unpacked_int64,json=unpackedInt64,proto3" json:"unpacked_int64,omitempty"` |
| UnpackedUint32 []uint32 `protobuf:"varint,91,rep,name=unpacked_uint32,json=unpackedUint32,proto3" json:"unpacked_uint32,omitempty"` |
| UnpackedUint64 []uint64 `protobuf:"varint,92,rep,name=unpacked_uint64,json=unpackedUint64,proto3" json:"unpacked_uint64,omitempty"` |
| UnpackedSint32 []int32 `protobuf:"zigzag32,93,rep,name=unpacked_sint32,json=unpackedSint32,proto3" json:"unpacked_sint32,omitempty"` |
| UnpackedSint64 []int64 `protobuf:"zigzag64,94,rep,name=unpacked_sint64,json=unpackedSint64,proto3" json:"unpacked_sint64,omitempty"` |
| UnpackedFixed32 []uint32 `protobuf:"fixed32,95,rep,name=unpacked_fixed32,json=unpackedFixed32,proto3" json:"unpacked_fixed32,omitempty"` |
| UnpackedFixed64 []uint64 `protobuf:"fixed64,96,rep,name=unpacked_fixed64,json=unpackedFixed64,proto3" json:"unpacked_fixed64,omitempty"` |
| UnpackedSfixed32 []int32 `protobuf:"fixed32,97,rep,name=unpacked_sfixed32,json=unpackedSfixed32,proto3" json:"unpacked_sfixed32,omitempty"` |
| UnpackedSfixed64 []int64 `protobuf:"fixed64,98,rep,name=unpacked_sfixed64,json=unpackedSfixed64,proto3" json:"unpacked_sfixed64,omitempty"` |
| UnpackedFloat []float32 `protobuf:"fixed32,99,rep,name=unpacked_float,json=unpackedFloat,proto3" json:"unpacked_float,omitempty"` |
| UnpackedDouble []float64 `protobuf:"fixed64,100,rep,name=unpacked_double,json=unpackedDouble,proto3" json:"unpacked_double,omitempty"` |
| UnpackedBool []bool `protobuf:"varint,101,rep,name=unpacked_bool,json=unpackedBool,proto3" json:"unpacked_bool,omitempty"` |
| UnpackedNestedEnum []TestAllTypesProto3_NestedEnum `protobuf:"varint,102,rep,name=unpacked_nested_enum,json=unpackedNestedEnum,proto3,enum=protobuf_test_messages.proto3.TestAllTypesProto3_NestedEnum" json:"unpacked_nested_enum,omitempty"` |
| // Map |
| MapInt32Int32 map[int32]int32 `protobuf:"bytes,56,rep,name=map_int32_int32,json=mapInt32Int32,proto3" json:"map_int32_int32,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` |
| MapInt64Int64 map[int64]int64 `protobuf:"bytes,57,rep,name=map_int64_int64,json=mapInt64Int64,proto3" json:"map_int64_int64,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` |
| MapUint32Uint32 map[uint32]uint32 `protobuf:"bytes,58,rep,name=map_uint32_uint32,json=mapUint32Uint32,proto3" json:"map_uint32_uint32,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` |
| MapUint64Uint64 map[uint64]uint64 `protobuf:"bytes,59,rep,name=map_uint64_uint64,json=mapUint64Uint64,proto3" json:"map_uint64_uint64,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` |
| MapSint32Sint32 map[int32]int32 `protobuf:"bytes,60,rep,name=map_sint32_sint32,json=mapSint32Sint32,proto3" json:"map_sint32_sint32,omitempty" protobuf_key:"zigzag32,1,opt,name=key" protobuf_val:"zigzag32,2,opt,name=value"` |
| MapSint64Sint64 map[int64]int64 `protobuf:"bytes,61,rep,name=map_sint64_sint64,json=mapSint64Sint64,proto3" json:"map_sint64_sint64,omitempty" protobuf_key:"zigzag64,1,opt,name=key" protobuf_val:"zigzag64,2,opt,name=value"` |
| MapFixed32Fixed32 map[uint32]uint32 `protobuf:"bytes,62,rep,name=map_fixed32_fixed32,json=mapFixed32Fixed32,proto3" json:"map_fixed32_fixed32,omitempty" protobuf_key:"fixed32,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"` |
| MapFixed64Fixed64 map[uint64]uint64 `protobuf:"bytes,63,rep,name=map_fixed64_fixed64,json=mapFixed64Fixed64,proto3" json:"map_fixed64_fixed64,omitempty" protobuf_key:"fixed64,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"` |
| MapSfixed32Sfixed32 map[int32]int32 `protobuf:"bytes,64,rep,name=map_sfixed32_sfixed32,json=mapSfixed32Sfixed32,proto3" json:"map_sfixed32_sfixed32,omitempty" protobuf_key:"fixed32,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"` |
| MapSfixed64Sfixed64 map[int64]int64 `protobuf:"bytes,65,rep,name=map_sfixed64_sfixed64,json=mapSfixed64Sfixed64,proto3" json:"map_sfixed64_sfixed64,omitempty" protobuf_key:"fixed64,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"` |
| MapInt32Float map[int32]float32 `protobuf:"bytes,66,rep,name=map_int32_float,json=mapInt32Float,proto3" json:"map_int32_float,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"` |
| MapInt32Double map[int32]float64 `protobuf:"bytes,67,rep,name=map_int32_double,json=mapInt32Double,proto3" json:"map_int32_double,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"` |
| MapBoolBool map[bool]bool `protobuf:"bytes,68,rep,name=map_bool_bool,json=mapBoolBool,proto3" json:"map_bool_bool,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` |
| MapStringString map[string]string `protobuf:"bytes,69,rep,name=map_string_string,json=mapStringString,proto3" json:"map_string_string,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
| MapStringBytes map[string][]byte `protobuf:"bytes,70,rep,name=map_string_bytes,json=mapStringBytes,proto3" json:"map_string_bytes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
| MapStringNestedMessage map[string]*TestAllTypesProto3_NestedMessage `protobuf:"bytes,71,rep,name=map_string_nested_message,json=mapStringNestedMessage,proto3" json:"map_string_nested_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
| MapStringForeignMessage map[string]*ForeignMessage `protobuf:"bytes,72,rep,name=map_string_foreign_message,json=mapStringForeignMessage,proto3" json:"map_string_foreign_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
| MapStringNestedEnum map[string]TestAllTypesProto3_NestedEnum `protobuf:"bytes,73,rep,name=map_string_nested_enum,json=mapStringNestedEnum,proto3" json:"map_string_nested_enum,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=protobuf_test_messages.proto3.TestAllTypesProto3_NestedEnum"` |
| MapStringForeignEnum map[string]ForeignEnum `protobuf:"bytes,74,rep,name=map_string_foreign_enum,json=mapStringForeignEnum,proto3" json:"map_string_foreign_enum,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=protobuf_test_messages.proto3.ForeignEnum"` |
| // Types that are valid to be assigned to OneofField: |
| // |
| // *TestAllTypesProto3_OneofUint32 |
| // *TestAllTypesProto3_OneofNestedMessage |
| // *TestAllTypesProto3_OneofString |
| // *TestAllTypesProto3_OneofBytes |
| // *TestAllTypesProto3_OneofBool |
| // *TestAllTypesProto3_OneofUint64 |
| // *TestAllTypesProto3_OneofFloat |
| // *TestAllTypesProto3_OneofDouble |
| // *TestAllTypesProto3_OneofEnum |
| // *TestAllTypesProto3_OneofNullValue |
| OneofField isTestAllTypesProto3_OneofField `protobuf_oneof:"oneof_field"` |
| // Well-known types |
| OptionalBoolWrapper *wrapperspb.BoolValue `protobuf:"bytes,201,opt,name=optional_bool_wrapper,json=optionalBoolWrapper,proto3" json:"optional_bool_wrapper,omitempty"` |
| OptionalInt32Wrapper *wrapperspb.Int32Value `protobuf:"bytes,202,opt,name=optional_int32_wrapper,json=optionalInt32Wrapper,proto3" json:"optional_int32_wrapper,omitempty"` |
| OptionalInt64Wrapper *wrapperspb.Int64Value `protobuf:"bytes,203,opt,name=optional_int64_wrapper,json=optionalInt64Wrapper,proto3" json:"optional_int64_wrapper,omitempty"` |
| OptionalUint32Wrapper *wrapperspb.UInt32Value `protobuf:"bytes,204,opt,name=optional_uint32_wrapper,json=optionalUint32Wrapper,proto3" json:"optional_uint32_wrapper,omitempty"` |
| OptionalUint64Wrapper *wrapperspb.UInt64Value `protobuf:"bytes,205,opt,name=optional_uint64_wrapper,json=optionalUint64Wrapper,proto3" json:"optional_uint64_wrapper,omitempty"` |
| OptionalFloatWrapper *wrapperspb.FloatValue `protobuf:"bytes,206,opt,name=optional_float_wrapper,json=optionalFloatWrapper,proto3" json:"optional_float_wrapper,omitempty"` |
| OptionalDoubleWrapper *wrapperspb.DoubleValue `protobuf:"bytes,207,opt,name=optional_double_wrapper,json=optionalDoubleWrapper,proto3" json:"optional_double_wrapper,omitempty"` |
| OptionalStringWrapper *wrapperspb.StringValue `protobuf:"bytes,208,opt,name=optional_string_wrapper,json=optionalStringWrapper,proto3" json:"optional_string_wrapper,omitempty"` |
| OptionalBytesWrapper *wrapperspb.BytesValue `protobuf:"bytes,209,opt,name=optional_bytes_wrapper,json=optionalBytesWrapper,proto3" json:"optional_bytes_wrapper,omitempty"` |
| RepeatedBoolWrapper []*wrapperspb.BoolValue `protobuf:"bytes,211,rep,name=repeated_bool_wrapper,json=repeatedBoolWrapper,proto3" json:"repeated_bool_wrapper,omitempty"` |
| RepeatedInt32Wrapper []*wrapperspb.Int32Value `protobuf:"bytes,212,rep,name=repeated_int32_wrapper,json=repeatedInt32Wrapper,proto3" json:"repeated_int32_wrapper,omitempty"` |
| RepeatedInt64Wrapper []*wrapperspb.Int64Value `protobuf:"bytes,213,rep,name=repeated_int64_wrapper,json=repeatedInt64Wrapper,proto3" json:"repeated_int64_wrapper,omitempty"` |
| RepeatedUint32Wrapper []*wrapperspb.UInt32Value `protobuf:"bytes,214,rep,name=repeated_uint32_wrapper,json=repeatedUint32Wrapper,proto3" json:"repeated_uint32_wrapper,omitempty"` |
| RepeatedUint64Wrapper []*wrapperspb.UInt64Value `protobuf:"bytes,215,rep,name=repeated_uint64_wrapper,json=repeatedUint64Wrapper,proto3" json:"repeated_uint64_wrapper,omitempty"` |
| RepeatedFloatWrapper []*wrapperspb.FloatValue `protobuf:"bytes,216,rep,name=repeated_float_wrapper,json=repeatedFloatWrapper,proto3" json:"repeated_float_wrapper,omitempty"` |
| RepeatedDoubleWrapper []*wrapperspb.DoubleValue `protobuf:"bytes,217,rep,name=repeated_double_wrapper,json=repeatedDoubleWrapper,proto3" json:"repeated_double_wrapper,omitempty"` |
| RepeatedStringWrapper []*wrapperspb.StringValue `protobuf:"bytes,218,rep,name=repeated_string_wrapper,json=repeatedStringWrapper,proto3" json:"repeated_string_wrapper,omitempty"` |
| RepeatedBytesWrapper []*wrapperspb.BytesValue `protobuf:"bytes,219,rep,name=repeated_bytes_wrapper,json=repeatedBytesWrapper,proto3" json:"repeated_bytes_wrapper,omitempty"` |
| OptionalDuration *durationpb.Duration `protobuf:"bytes,301,opt,name=optional_duration,json=optionalDuration,proto3" json:"optional_duration,omitempty"` |
| OptionalTimestamp *timestamppb.Timestamp `protobuf:"bytes,302,opt,name=optional_timestamp,json=optionalTimestamp,proto3" json:"optional_timestamp,omitempty"` |
| OptionalFieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,303,opt,name=optional_field_mask,json=optionalFieldMask,proto3" json:"optional_field_mask,omitempty"` |
| OptionalStruct *structpb.Struct `protobuf:"bytes,304,opt,name=optional_struct,json=optionalStruct,proto3" json:"optional_struct,omitempty"` |
| OptionalAny *anypb.Any `protobuf:"bytes,305,opt,name=optional_any,json=optionalAny,proto3" json:"optional_any,omitempty"` |
| OptionalValue *structpb.Value `protobuf:"bytes,306,opt,name=optional_value,json=optionalValue,proto3" json:"optional_value,omitempty"` |
| OptionalNullValue structpb.NullValue `protobuf:"varint,307,opt,name=optional_null_value,json=optionalNullValue,proto3,enum=google.protobuf.NullValue" json:"optional_null_value,omitempty"` |
| RepeatedDuration []*durationpb.Duration `protobuf:"bytes,311,rep,name=repeated_duration,json=repeatedDuration,proto3" json:"repeated_duration,omitempty"` |
| RepeatedTimestamp []*timestamppb.Timestamp `protobuf:"bytes,312,rep,name=repeated_timestamp,json=repeatedTimestamp,proto3" json:"repeated_timestamp,omitempty"` |
| RepeatedFieldmask []*fieldmaskpb.FieldMask `protobuf:"bytes,313,rep,name=repeated_fieldmask,json=repeatedFieldmask,proto3" json:"repeated_fieldmask,omitempty"` |
| RepeatedStruct []*structpb.Struct `protobuf:"bytes,324,rep,name=repeated_struct,json=repeatedStruct,proto3" json:"repeated_struct,omitempty"` |
| RepeatedAny []*anypb.Any `protobuf:"bytes,315,rep,name=repeated_any,json=repeatedAny,proto3" json:"repeated_any,omitempty"` |
| RepeatedValue []*structpb.Value `protobuf:"bytes,316,rep,name=repeated_value,json=repeatedValue,proto3" json:"repeated_value,omitempty"` |
| RepeatedListValue []*structpb.ListValue `protobuf:"bytes,317,rep,name=repeated_list_value,json=repeatedListValue,proto3" json:"repeated_list_value,omitempty"` |
| // Test field-name-to-JSON-name convention. |
| // (protobuf says names can be any valid C/C++ identifier.) |
| Fieldname1 int32 `protobuf:"varint,401,opt,name=fieldname1,proto3" json:"fieldname1,omitempty"` |
| FieldName2 int32 `protobuf:"varint,402,opt,name=field_name2,json=fieldName2,proto3" json:"field_name2,omitempty"` |
| XFieldName3 int32 `protobuf:"varint,403,opt,name=_field_name3,json=FieldName3,proto3" json:"_field_name3,omitempty"` |
| Field_Name4_ int32 `protobuf:"varint,404,opt,name=field__name4_,json=fieldName4,proto3" json:"field__name4_,omitempty"` |
| Field0Name5 int32 `protobuf:"varint,405,opt,name=field0name5,proto3" json:"field0name5,omitempty"` |
| Field_0Name6 int32 `protobuf:"varint,406,opt,name=field_0_name6,json=field0Name6,proto3" json:"field_0_name6,omitempty"` |
| FieldName7 int32 `protobuf:"varint,407,opt,name=fieldName7,proto3" json:"fieldName7,omitempty"` |
| FieldName8 int32 `protobuf:"varint,408,opt,name=FieldName8,proto3" json:"FieldName8,omitempty"` |
| Field_Name9 int32 `protobuf:"varint,409,opt,name=field_Name9,json=fieldName9,proto3" json:"field_Name9,omitempty"` |
| Field_Name10 int32 `protobuf:"varint,410,opt,name=Field_Name10,json=FieldName10,proto3" json:"Field_Name10,omitempty"` |
| FIELD_NAME11 int32 `protobuf:"varint,411,opt,name=FIELD_NAME11,json=FIELDNAME11,proto3" json:"FIELD_NAME11,omitempty"` |
| FIELDName12 int32 `protobuf:"varint,412,opt,name=FIELD_name12,json=FIELDName12,proto3" json:"FIELD_name12,omitempty"` |
| XFieldName13 int32 `protobuf:"varint,413,opt,name=__field_name13,json=FieldName13,proto3" json:"__field_name13,omitempty"` |
| X_FieldName14 int32 `protobuf:"varint,414,opt,name=__Field_name14,json=FieldName14,proto3" json:"__Field_name14,omitempty"` |
| Field_Name15 int32 `protobuf:"varint,415,opt,name=field__name15,json=fieldName15,proto3" json:"field__name15,omitempty"` |
| Field__Name16 int32 `protobuf:"varint,416,opt,name=field__Name16,json=fieldName16,proto3" json:"field__Name16,omitempty"` |
| FieldName17__ int32 `protobuf:"varint,417,opt,name=field_name17__,json=fieldName17,proto3" json:"field_name17__,omitempty"` |
| FieldName18__ int32 `protobuf:"varint,418,opt,name=Field_name18__,json=FieldName18,proto3" json:"Field_name18__,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *TestAllTypesProto3) Reset() { |
| *x = TestAllTypesProto3{} |
| mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *TestAllTypesProto3) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*TestAllTypesProto3) ProtoMessage() {} |
| |
| func (x *TestAllTypesProto3) ProtoReflect() protoreflect.Message { |
| mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[0] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use TestAllTypesProto3.ProtoReflect.Descriptor instead. |
| func (*TestAllTypesProto3) Descriptor() ([]byte, []int) { |
| return file_google_protobuf_test_messages_proto3_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalInt32() int32 { |
| if x != nil { |
| return x.OptionalInt32 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalInt64() int64 { |
| if x != nil { |
| return x.OptionalInt64 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalUint32() uint32 { |
| if x != nil { |
| return x.OptionalUint32 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalUint64() uint64 { |
| if x != nil { |
| return x.OptionalUint64 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalSint32() int32 { |
| if x != nil { |
| return x.OptionalSint32 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalSint64() int64 { |
| if x != nil { |
| return x.OptionalSint64 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalFixed32() uint32 { |
| if x != nil { |
| return x.OptionalFixed32 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalFixed64() uint64 { |
| if x != nil { |
| return x.OptionalFixed64 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalSfixed32() int32 { |
| if x != nil { |
| return x.OptionalSfixed32 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalSfixed64() int64 { |
| if x != nil { |
| return x.OptionalSfixed64 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalFloat() float32 { |
| if x != nil { |
| return x.OptionalFloat |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalDouble() float64 { |
| if x != nil { |
| return x.OptionalDouble |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalBool() bool { |
| if x != nil { |
| return x.OptionalBool |
| } |
| return false |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalString() string { |
| if x != nil { |
| return x.OptionalString |
| } |
| return "" |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalBytes() []byte { |
| if x != nil { |
| return x.OptionalBytes |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalNestedMessage() *TestAllTypesProto3_NestedMessage { |
| if x != nil { |
| return x.OptionalNestedMessage |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalForeignMessage() *ForeignMessage { |
| if x != nil { |
| return x.OptionalForeignMessage |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalNestedEnum() TestAllTypesProto3_NestedEnum { |
| if x != nil { |
| return x.OptionalNestedEnum |
| } |
| return TestAllTypesProto3_FOO |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalForeignEnum() ForeignEnum { |
| if x != nil { |
| return x.OptionalForeignEnum |
| } |
| return ForeignEnum_FOREIGN_FOO |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalAliasedEnum() TestAllTypesProto3_AliasedEnum { |
| if x != nil { |
| return x.OptionalAliasedEnum |
| } |
| return TestAllTypesProto3_ALIAS_FOO |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalStringPiece() string { |
| if x != nil { |
| return x.OptionalStringPiece |
| } |
| return "" |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalCord() string { |
| if x != nil { |
| return x.OptionalCord |
| } |
| return "" |
| } |
| |
| func (x *TestAllTypesProto3) GetRecursiveMessage() *TestAllTypesProto3 { |
| if x != nil { |
| return x.RecursiveMessage |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedInt32() []int32 { |
| if x != nil { |
| return x.RepeatedInt32 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedInt64() []int64 { |
| if x != nil { |
| return x.RepeatedInt64 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedUint32() []uint32 { |
| if x != nil { |
| return x.RepeatedUint32 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedUint64() []uint64 { |
| if x != nil { |
| return x.RepeatedUint64 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedSint32() []int32 { |
| if x != nil { |
| return x.RepeatedSint32 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedSint64() []int64 { |
| if x != nil { |
| return x.RepeatedSint64 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedFixed32() []uint32 { |
| if x != nil { |
| return x.RepeatedFixed32 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedFixed64() []uint64 { |
| if x != nil { |
| return x.RepeatedFixed64 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedSfixed32() []int32 { |
| if x != nil { |
| return x.RepeatedSfixed32 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedSfixed64() []int64 { |
| if x != nil { |
| return x.RepeatedSfixed64 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedFloat() []float32 { |
| if x != nil { |
| return x.RepeatedFloat |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedDouble() []float64 { |
| if x != nil { |
| return x.RepeatedDouble |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedBool() []bool { |
| if x != nil { |
| return x.RepeatedBool |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedString() []string { |
| if x != nil { |
| return x.RepeatedString |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedBytes() [][]byte { |
| if x != nil { |
| return x.RepeatedBytes |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedNestedMessage() []*TestAllTypesProto3_NestedMessage { |
| if x != nil { |
| return x.RepeatedNestedMessage |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedForeignMessage() []*ForeignMessage { |
| if x != nil { |
| return x.RepeatedForeignMessage |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedNestedEnum() []TestAllTypesProto3_NestedEnum { |
| if x != nil { |
| return x.RepeatedNestedEnum |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedForeignEnum() []ForeignEnum { |
| if x != nil { |
| return x.RepeatedForeignEnum |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedStringPiece() []string { |
| if x != nil { |
| return x.RepeatedStringPiece |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedCord() []string { |
| if x != nil { |
| return x.RepeatedCord |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetPackedInt32() []int32 { |
| if x != nil { |
| return x.PackedInt32 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetPackedInt64() []int64 { |
| if x != nil { |
| return x.PackedInt64 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetPackedUint32() []uint32 { |
| if x != nil { |
| return x.PackedUint32 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetPackedUint64() []uint64 { |
| if x != nil { |
| return x.PackedUint64 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetPackedSint32() []int32 { |
| if x != nil { |
| return x.PackedSint32 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetPackedSint64() []int64 { |
| if x != nil { |
| return x.PackedSint64 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetPackedFixed32() []uint32 { |
| if x != nil { |
| return x.PackedFixed32 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetPackedFixed64() []uint64 { |
| if x != nil { |
| return x.PackedFixed64 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetPackedSfixed32() []int32 { |
| if x != nil { |
| return x.PackedSfixed32 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetPackedSfixed64() []int64 { |
| if x != nil { |
| return x.PackedSfixed64 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetPackedFloat() []float32 { |
| if x != nil { |
| return x.PackedFloat |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetPackedDouble() []float64 { |
| if x != nil { |
| return x.PackedDouble |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetPackedBool() []bool { |
| if x != nil { |
| return x.PackedBool |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetPackedNestedEnum() []TestAllTypesProto3_NestedEnum { |
| if x != nil { |
| return x.PackedNestedEnum |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetUnpackedInt32() []int32 { |
| if x != nil { |
| return x.UnpackedInt32 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetUnpackedInt64() []int64 { |
| if x != nil { |
| return x.UnpackedInt64 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetUnpackedUint32() []uint32 { |
| if x != nil { |
| return x.UnpackedUint32 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetUnpackedUint64() []uint64 { |
| if x != nil { |
| return x.UnpackedUint64 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetUnpackedSint32() []int32 { |
| if x != nil { |
| return x.UnpackedSint32 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetUnpackedSint64() []int64 { |
| if x != nil { |
| return x.UnpackedSint64 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetUnpackedFixed32() []uint32 { |
| if x != nil { |
| return x.UnpackedFixed32 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetUnpackedFixed64() []uint64 { |
| if x != nil { |
| return x.UnpackedFixed64 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetUnpackedSfixed32() []int32 { |
| if x != nil { |
| return x.UnpackedSfixed32 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetUnpackedSfixed64() []int64 { |
| if x != nil { |
| return x.UnpackedSfixed64 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetUnpackedFloat() []float32 { |
| if x != nil { |
| return x.UnpackedFloat |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetUnpackedDouble() []float64 { |
| if x != nil { |
| return x.UnpackedDouble |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetUnpackedBool() []bool { |
| if x != nil { |
| return x.UnpackedBool |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetUnpackedNestedEnum() []TestAllTypesProto3_NestedEnum { |
| if x != nil { |
| return x.UnpackedNestedEnum |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetMapInt32Int32() map[int32]int32 { |
| if x != nil { |
| return x.MapInt32Int32 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetMapInt64Int64() map[int64]int64 { |
| if x != nil { |
| return x.MapInt64Int64 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetMapUint32Uint32() map[uint32]uint32 { |
| if x != nil { |
| return x.MapUint32Uint32 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetMapUint64Uint64() map[uint64]uint64 { |
| if x != nil { |
| return x.MapUint64Uint64 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetMapSint32Sint32() map[int32]int32 { |
| if x != nil { |
| return x.MapSint32Sint32 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetMapSint64Sint64() map[int64]int64 { |
| if x != nil { |
| return x.MapSint64Sint64 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetMapFixed32Fixed32() map[uint32]uint32 { |
| if x != nil { |
| return x.MapFixed32Fixed32 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetMapFixed64Fixed64() map[uint64]uint64 { |
| if x != nil { |
| return x.MapFixed64Fixed64 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetMapSfixed32Sfixed32() map[int32]int32 { |
| if x != nil { |
| return x.MapSfixed32Sfixed32 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetMapSfixed64Sfixed64() map[int64]int64 { |
| if x != nil { |
| return x.MapSfixed64Sfixed64 |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetMapInt32Float() map[int32]float32 { |
| if x != nil { |
| return x.MapInt32Float |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetMapInt32Double() map[int32]float64 { |
| if x != nil { |
| return x.MapInt32Double |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetMapBoolBool() map[bool]bool { |
| if x != nil { |
| return x.MapBoolBool |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetMapStringString() map[string]string { |
| if x != nil { |
| return x.MapStringString |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetMapStringBytes() map[string][]byte { |
| if x != nil { |
| return x.MapStringBytes |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetMapStringNestedMessage() map[string]*TestAllTypesProto3_NestedMessage { |
| if x != nil { |
| return x.MapStringNestedMessage |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetMapStringForeignMessage() map[string]*ForeignMessage { |
| if x != nil { |
| return x.MapStringForeignMessage |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetMapStringNestedEnum() map[string]TestAllTypesProto3_NestedEnum { |
| if x != nil { |
| return x.MapStringNestedEnum |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetMapStringForeignEnum() map[string]ForeignEnum { |
| if x != nil { |
| return x.MapStringForeignEnum |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOneofField() isTestAllTypesProto3_OneofField { |
| if x != nil { |
| return x.OneofField |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOneofUint32() uint32 { |
| if x != nil { |
| if x, ok := x.OneofField.(*TestAllTypesProto3_OneofUint32); ok { |
| return x.OneofUint32 |
| } |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetOneofNestedMessage() *TestAllTypesProto3_NestedMessage { |
| if x != nil { |
| if x, ok := x.OneofField.(*TestAllTypesProto3_OneofNestedMessage); ok { |
| return x.OneofNestedMessage |
| } |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOneofString() string { |
| if x != nil { |
| if x, ok := x.OneofField.(*TestAllTypesProto3_OneofString); ok { |
| return x.OneofString |
| } |
| } |
| return "" |
| } |
| |
| func (x *TestAllTypesProto3) GetOneofBytes() []byte { |
| if x != nil { |
| if x, ok := x.OneofField.(*TestAllTypesProto3_OneofBytes); ok { |
| return x.OneofBytes |
| } |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOneofBool() bool { |
| if x != nil { |
| if x, ok := x.OneofField.(*TestAllTypesProto3_OneofBool); ok { |
| return x.OneofBool |
| } |
| } |
| return false |
| } |
| |
| func (x *TestAllTypesProto3) GetOneofUint64() uint64 { |
| if x != nil { |
| if x, ok := x.OneofField.(*TestAllTypesProto3_OneofUint64); ok { |
| return x.OneofUint64 |
| } |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetOneofFloat() float32 { |
| if x != nil { |
| if x, ok := x.OneofField.(*TestAllTypesProto3_OneofFloat); ok { |
| return x.OneofFloat |
| } |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetOneofDouble() float64 { |
| if x != nil { |
| if x, ok := x.OneofField.(*TestAllTypesProto3_OneofDouble); ok { |
| return x.OneofDouble |
| } |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetOneofEnum() TestAllTypesProto3_NestedEnum { |
| if x != nil { |
| if x, ok := x.OneofField.(*TestAllTypesProto3_OneofEnum); ok { |
| return x.OneofEnum |
| } |
| } |
| return TestAllTypesProto3_FOO |
| } |
| |
| func (x *TestAllTypesProto3) GetOneofNullValue() structpb.NullValue { |
| if x != nil { |
| if x, ok := x.OneofField.(*TestAllTypesProto3_OneofNullValue); ok { |
| return x.OneofNullValue |
| } |
| } |
| return structpb.NullValue(0) |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalBoolWrapper() *wrapperspb.BoolValue { |
| if x != nil { |
| return x.OptionalBoolWrapper |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalInt32Wrapper() *wrapperspb.Int32Value { |
| if x != nil { |
| return x.OptionalInt32Wrapper |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalInt64Wrapper() *wrapperspb.Int64Value { |
| if x != nil { |
| return x.OptionalInt64Wrapper |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalUint32Wrapper() *wrapperspb.UInt32Value { |
| if x != nil { |
| return x.OptionalUint32Wrapper |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalUint64Wrapper() *wrapperspb.UInt64Value { |
| if x != nil { |
| return x.OptionalUint64Wrapper |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalFloatWrapper() *wrapperspb.FloatValue { |
| if x != nil { |
| return x.OptionalFloatWrapper |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalDoubleWrapper() *wrapperspb.DoubleValue { |
| if x != nil { |
| return x.OptionalDoubleWrapper |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalStringWrapper() *wrapperspb.StringValue { |
| if x != nil { |
| return x.OptionalStringWrapper |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalBytesWrapper() *wrapperspb.BytesValue { |
| if x != nil { |
| return x.OptionalBytesWrapper |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedBoolWrapper() []*wrapperspb.BoolValue { |
| if x != nil { |
| return x.RepeatedBoolWrapper |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedInt32Wrapper() []*wrapperspb.Int32Value { |
| if x != nil { |
| return x.RepeatedInt32Wrapper |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedInt64Wrapper() []*wrapperspb.Int64Value { |
| if x != nil { |
| return x.RepeatedInt64Wrapper |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedUint32Wrapper() []*wrapperspb.UInt32Value { |
| if x != nil { |
| return x.RepeatedUint32Wrapper |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedUint64Wrapper() []*wrapperspb.UInt64Value { |
| if x != nil { |
| return x.RepeatedUint64Wrapper |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedFloatWrapper() []*wrapperspb.FloatValue { |
| if x != nil { |
| return x.RepeatedFloatWrapper |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedDoubleWrapper() []*wrapperspb.DoubleValue { |
| if x != nil { |
| return x.RepeatedDoubleWrapper |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedStringWrapper() []*wrapperspb.StringValue { |
| if x != nil { |
| return x.RepeatedStringWrapper |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedBytesWrapper() []*wrapperspb.BytesValue { |
| if x != nil { |
| return x.RepeatedBytesWrapper |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalDuration() *durationpb.Duration { |
| if x != nil { |
| return x.OptionalDuration |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalTimestamp() *timestamppb.Timestamp { |
| if x != nil { |
| return x.OptionalTimestamp |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalFieldMask() *fieldmaskpb.FieldMask { |
| if x != nil { |
| return x.OptionalFieldMask |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalStruct() *structpb.Struct { |
| if x != nil { |
| return x.OptionalStruct |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalAny() *anypb.Any { |
| if x != nil { |
| return x.OptionalAny |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalValue() *structpb.Value { |
| if x != nil { |
| return x.OptionalValue |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetOptionalNullValue() structpb.NullValue { |
| if x != nil { |
| return x.OptionalNullValue |
| } |
| return structpb.NullValue(0) |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedDuration() []*durationpb.Duration { |
| if x != nil { |
| return x.RepeatedDuration |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedTimestamp() []*timestamppb.Timestamp { |
| if x != nil { |
| return x.RepeatedTimestamp |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedFieldmask() []*fieldmaskpb.FieldMask { |
| if x != nil { |
| return x.RepeatedFieldmask |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedStruct() []*structpb.Struct { |
| if x != nil { |
| return x.RepeatedStruct |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedAny() []*anypb.Any { |
| if x != nil { |
| return x.RepeatedAny |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedValue() []*structpb.Value { |
| if x != nil { |
| return x.RepeatedValue |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetRepeatedListValue() []*structpb.ListValue { |
| if x != nil { |
| return x.RepeatedListValue |
| } |
| return nil |
| } |
| |
| func (x *TestAllTypesProto3) GetFieldname1() int32 { |
| if x != nil { |
| return x.Fieldname1 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetFieldName2() int32 { |
| if x != nil { |
| return x.FieldName2 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetXFieldName3() int32 { |
| if x != nil { |
| return x.XFieldName3 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetField_Name4_() int32 { |
| if x != nil { |
| return x.Field_Name4_ |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetField0Name5() int32 { |
| if x != nil { |
| return x.Field0Name5 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetField_0Name6() int32 { |
| if x != nil { |
| return x.Field_0Name6 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetFieldName7() int32 { |
| if x != nil { |
| return x.FieldName7 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetFieldName8() int32 { |
| if x != nil { |
| return x.FieldName8 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetField_Name9() int32 { |
| if x != nil { |
| return x.Field_Name9 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetField_Name10() int32 { |
| if x != nil { |
| return x.Field_Name10 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetFIELD_NAME11() int32 { |
| if x != nil { |
| return x.FIELD_NAME11 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetFIELDName12() int32 { |
| if x != nil { |
| return x.FIELDName12 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetXFieldName13() int32 { |
| if x != nil { |
| return x.XFieldName13 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetX_FieldName14() int32 { |
| if x != nil { |
| return x.X_FieldName14 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetField_Name15() int32 { |
| if x != nil { |
| return x.Field_Name15 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetField__Name16() int32 { |
| if x != nil { |
| return x.Field__Name16 |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetFieldName17__() int32 { |
| if x != nil { |
| return x.FieldName17__ |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3) GetFieldName18__() int32 { |
| if x != nil { |
| return x.FieldName18__ |
| } |
| return 0 |
| } |
| |
| type isTestAllTypesProto3_OneofField interface { |
| isTestAllTypesProto3_OneofField() |
| } |
| |
| type TestAllTypesProto3_OneofUint32 struct { |
| OneofUint32 uint32 `protobuf:"varint,111,opt,name=oneof_uint32,json=oneofUint32,proto3,oneof"` |
| } |
| |
| type TestAllTypesProto3_OneofNestedMessage struct { |
| OneofNestedMessage *TestAllTypesProto3_NestedMessage `protobuf:"bytes,112,opt,name=oneof_nested_message,json=oneofNestedMessage,proto3,oneof"` |
| } |
| |
| type TestAllTypesProto3_OneofString struct { |
| OneofString string `protobuf:"bytes,113,opt,name=oneof_string,json=oneofString,proto3,oneof"` |
| } |
| |
| type TestAllTypesProto3_OneofBytes struct { |
| OneofBytes []byte `protobuf:"bytes,114,opt,name=oneof_bytes,json=oneofBytes,proto3,oneof"` |
| } |
| |
| type TestAllTypesProto3_OneofBool struct { |
| OneofBool bool `protobuf:"varint,115,opt,name=oneof_bool,json=oneofBool,proto3,oneof"` |
| } |
| |
| type TestAllTypesProto3_OneofUint64 struct { |
| OneofUint64 uint64 `protobuf:"varint,116,opt,name=oneof_uint64,json=oneofUint64,proto3,oneof"` |
| } |
| |
| type TestAllTypesProto3_OneofFloat struct { |
| OneofFloat float32 `protobuf:"fixed32,117,opt,name=oneof_float,json=oneofFloat,proto3,oneof"` |
| } |
| |
| type TestAllTypesProto3_OneofDouble struct { |
| OneofDouble float64 `protobuf:"fixed64,118,opt,name=oneof_double,json=oneofDouble,proto3,oneof"` |
| } |
| |
| type TestAllTypesProto3_OneofEnum struct { |
| OneofEnum TestAllTypesProto3_NestedEnum `protobuf:"varint,119,opt,name=oneof_enum,json=oneofEnum,proto3,enum=protobuf_test_messages.proto3.TestAllTypesProto3_NestedEnum,oneof"` |
| } |
| |
| type TestAllTypesProto3_OneofNullValue struct { |
| OneofNullValue structpb.NullValue `protobuf:"varint,120,opt,name=oneof_null_value,json=oneofNullValue,proto3,enum=google.protobuf.NullValue,oneof"` |
| } |
| |
| func (*TestAllTypesProto3_OneofUint32) isTestAllTypesProto3_OneofField() {} |
| |
| func (*TestAllTypesProto3_OneofNestedMessage) isTestAllTypesProto3_OneofField() {} |
| |
| func (*TestAllTypesProto3_OneofString) isTestAllTypesProto3_OneofField() {} |
| |
| func (*TestAllTypesProto3_OneofBytes) isTestAllTypesProto3_OneofField() {} |
| |
| func (*TestAllTypesProto3_OneofBool) isTestAllTypesProto3_OneofField() {} |
| |
| func (*TestAllTypesProto3_OneofUint64) isTestAllTypesProto3_OneofField() {} |
| |
| func (*TestAllTypesProto3_OneofFloat) isTestAllTypesProto3_OneofField() {} |
| |
| func (*TestAllTypesProto3_OneofDouble) isTestAllTypesProto3_OneofField() {} |
| |
| func (*TestAllTypesProto3_OneofEnum) isTestAllTypesProto3_OneofField() {} |
| |
| func (*TestAllTypesProto3_OneofNullValue) isTestAllTypesProto3_OneofField() {} |
| |
| type ForeignMessage struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| C int32 `protobuf:"varint,1,opt,name=c,proto3" json:"c,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *ForeignMessage) Reset() { |
| *x = ForeignMessage{} |
| mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *ForeignMessage) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ForeignMessage) ProtoMessage() {} |
| |
| func (x *ForeignMessage) ProtoReflect() protoreflect.Message { |
| mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[1] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ForeignMessage.ProtoReflect.Descriptor instead. |
| func (*ForeignMessage) Descriptor() ([]byte, []int) { |
| return file_google_protobuf_test_messages_proto3_proto_rawDescGZIP(), []int{1} |
| } |
| |
| func (x *ForeignMessage) GetC() int32 { |
| if x != nil { |
| return x.C |
| } |
| return 0 |
| } |
| |
| type NullHypothesisProto3 struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *NullHypothesisProto3) Reset() { |
| *x = NullHypothesisProto3{} |
| mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[2] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *NullHypothesisProto3) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*NullHypothesisProto3) ProtoMessage() {} |
| |
| func (x *NullHypothesisProto3) ProtoReflect() protoreflect.Message { |
| mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[2] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use NullHypothesisProto3.ProtoReflect.Descriptor instead. |
| func (*NullHypothesisProto3) Descriptor() ([]byte, []int) { |
| return file_google_protobuf_test_messages_proto3_proto_rawDescGZIP(), []int{2} |
| } |
| |
| type EnumOnlyProto3 struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *EnumOnlyProto3) Reset() { |
| *x = EnumOnlyProto3{} |
| mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[3] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *EnumOnlyProto3) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*EnumOnlyProto3) ProtoMessage() {} |
| |
| func (x *EnumOnlyProto3) ProtoReflect() protoreflect.Message { |
| mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[3] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use EnumOnlyProto3.ProtoReflect.Descriptor instead. |
| func (*EnumOnlyProto3) Descriptor() ([]byte, []int) { |
| return file_google_protobuf_test_messages_proto3_proto_rawDescGZIP(), []int{3} |
| } |
| |
| type TestAllTypesProto3_NestedMessage struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| A int32 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"` |
| Corecursive *TestAllTypesProto3 `protobuf:"bytes,2,opt,name=corecursive,proto3" json:"corecursive,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *TestAllTypesProto3_NestedMessage) Reset() { |
| *x = TestAllTypesProto3_NestedMessage{} |
| mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[4] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *TestAllTypesProto3_NestedMessage) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*TestAllTypesProto3_NestedMessage) ProtoMessage() {} |
| |
| func (x *TestAllTypesProto3_NestedMessage) ProtoReflect() protoreflect.Message { |
| mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[4] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use TestAllTypesProto3_NestedMessage.ProtoReflect.Descriptor instead. |
| func (*TestAllTypesProto3_NestedMessage) Descriptor() ([]byte, []int) { |
| return file_google_protobuf_test_messages_proto3_proto_rawDescGZIP(), []int{0, 0} |
| } |
| |
| func (x *TestAllTypesProto3_NestedMessage) GetA() int32 { |
| if x != nil { |
| return x.A |
| } |
| return 0 |
| } |
| |
| func (x *TestAllTypesProto3_NestedMessage) GetCorecursive() *TestAllTypesProto3 { |
| if x != nil { |
| return x.Corecursive |
| } |
| return nil |
| } |
| |
| var File_google_protobuf_test_messages_proto3_proto protoreflect.FileDescriptor |
| |
| const file_google_protobuf_test_messages_proto3_proto_rawDesc = "\n*google/protobuf/test_messages_proto3.protoprotobuf_test_messages.proto3google/protobuf/any.protogoogle/protobuf/duration.proto google/protobuf/field_mask.protogoogle/protobuf/struct.protogoogle/protobuf/timestamp.protogoogle/protobuf/wrappers.proto\"\x99[\nTestAllTypesProto3%\noptional_int32 (R\roptionalInt32%\noptional_int64 (R\roptionalInt64'\noptional_uint32 (\rRoptionalUint32'\noptional_uint64 (RoptionalUint64'\noptional_sint32 (RoptionalSint32'\noptional_sint64 (RoptionalSint64)\noptional_fixed32 (RoptionalFixed32)\noptional_fixed64 (RoptionalFixed64+\noptional_sfixed32 (RoptionalSfixed32+\noptional_sfixed64\n (RoptionalSfixed64%\noptional_float (R\roptionalFloat'\noptional_double (RoptionalDouble#\n\roptional_bool\r (RoptionalBool'\noptional_string ( RoptionalString%\noptional_bytes (R\roptionalBytesw\noptional_nested_message (2?.protobuf_test_messages.proto3.TestAllTypesProto3.NestedMessageRoptionalNestedMessageg\noptional_foreign_message (2-.protobuf_test_messages.proto3.ForeignMessageRoptionalForeignMessagen\noptional_nested_enum (2<.protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnumRoptionalNestedEnum^\noptional_foreign_enum (2*.protobuf_test_messages.proto3.ForeignEnumRoptionalForeignEnumq\noptional_aliased_enum (2=.protobuf_test_messages.proto3.TestAllTypesProto3.AliasedEnumRoptionalAliasedEnum6\noptional_string_piece ( BRoptionalStringPiece'\n\roptional_cord ( BRoptionalCord^\nrecursive_message (21.protobuf_test_messages.proto3.TestAllTypesProto3RrecursiveMessage%\nrepeated_int32 (R\rrepeatedInt32%\nrepeated_int64 (R\rrepeatedInt64'\nrepeated_uint32! (\rRrepeatedUint32'\nrepeated_uint64\" (RrepeatedUint64'\nrepeated_sint32# (RrepeatedSint32'\nrepeated_sint64$ (RrepeatedSint64)\nrepeated_fixed32% (RrepeatedFixed32)\nrepeated_fixed64& (RrepeatedFixed64+\nrepeated_sfixed32' (RrepeatedSfixed32+\nrepeated_sfixed64( (RrepeatedSfixed64%\nrepeated_float) (R\rrepeatedFloat'\nrepeated_double* (RrepeatedDouble#\n\rrepeated_bool+ (RrepeatedBool'\nrepeated_string, ( RrepeatedString%\nrepeated_bytes- (R\rrepeatedBytesw\nrepeated_nested_message0 (2?.protobuf_test_messages.proto3.TestAllTypesProto3.NestedMessageRrepeatedNestedMessageg\nrepeated_foreign_message1 (2-.protobuf_test_messages.proto3.ForeignMessageRrepeatedForeignMessagen\nrepeated_nested_enum3 (2<.protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnumRrepeatedNestedEnum^\nrepeated_foreign_enum4 (2*.protobuf_test_messages.proto3.ForeignEnumRrepeatedForeignEnum6\nrepeated_string_piece6 ( BRrepeatedStringPiece'\n\rrepeated_cord7 ( BRrepeatedCord%\npacked_int32K (BRpackedInt32%\npacked_int64L (BRpackedInt64'\n\rpacked_uint32M (\rBRpackedUint32'\n\rpacked_uint64N (BRpackedUint64'\n\rpacked_sint32O (BRpackedSint32'\n\rpacked_sint64P (BRpackedSint64)\npacked_fixed32Q (BR\rpackedFixed32)\npacked_fixed64R (BR\rpackedFixed64+\npacked_sfixed32S (BRpackedSfixed32+\npacked_sfixed64T (BRpackedSfixed64%\npacked_floatU (BRpackedFloat'\n\rpacked_doubleV (BRpackedDouble#\npacked_boolW (BR\npackedBooln\npacked_nested_enumX (2<.protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnumBRpackedNestedEnum)\nunpacked_int32Y (B\x00R\runpackedInt32)\nunpacked_int64Z (B\x00R\runpackedInt64+\nunpacked_uint32[ (\rB\x00RunpackedUint32+\nunpacked_uint64\\ (B\x00RunpackedUint64+\nunpacked_sint32] (B\x00RunpackedSint32+\nunpacked_sint64^ (B\x00RunpackedSint64-\nunpacked_fixed32_ (B\x00RunpackedFixed32-\nunpacked_fixed64` (B\x00RunpackedFixed64/\nunpacked_sfixed32a (B\x00RunpackedSfixed32/\nunpacked_sfixed64b (B\x00RunpackedSfixed64)\nunpacked_floatc (B\x00R\runpackedFloat+\nunpacked_doubled (B\x00RunpackedDouble'\n\runpacked_boole (B\x00RunpackedBoolr\nunpacked_nested_enumf (2<.protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnumB\x00RunpackedNestedEnuml\nmap_int32_int328 (2D.protobuf_test_messages.proto3.TestAllTypesProto3.MapInt32Int32EntryR\rmapInt32Int32l\nmap_int64_int649 (2D.protobuf_test_messages.proto3.TestAllTypesProto3.MapInt64Int64EntryR\rmapInt64Int64r\nmap_uint32_uint32: (2F.protobuf_test_messages.proto3.TestAllTypesProto3.MapUint32Uint32EntryRmapUint32Uint32r\nmap_uint64_uint64; (2F.protobuf_test_messages.proto3.TestAllTypesProto3.MapUint64Uint64EntryRmapUint64Uint64r\nmap_sint32_sint32< (2F.protobuf_test_messages.proto3.TestAllTypesProto3.MapSint32Sint32EntryRmapSint32Sint32r\nmap_sint64_sint64= (2F.protobuf_test_messages.proto3.TestAllTypesProto3.MapSint64Sint64EntryRmapSint64Sint64x\nmap_fixed32_fixed32> (2H.protobuf_test_messages.proto3.TestAllTypesProto3.MapFixed32Fixed32EntryRmapFixed32Fixed32x\nmap_fixed64_fixed64? (2H.protobuf_test_messages.proto3.TestAllTypesProto3.MapFixed64Fixed64EntryRmapFixed64Fixed64~\nmap_sfixed32_sfixed32@ (2J.protobuf_test_messages.proto3.TestAllTypesProto3.MapSfixed32Sfixed32EntryRmapSfixed32Sfixed32~\nmap_sfixed64_sfixed64A (2J.protobuf_test_messages.proto3.TestAllTypesProto3.MapSfixed64Sfixed64EntryRmapSfixed64Sfixed64l\nmap_int32_floatB (2D.protobuf_test_messages.proto3.TestAllTypesProto3.MapInt32FloatEntryR\rmapInt32Floato\nmap_int32_doubleC (2E.protobuf_test_messages.proto3.TestAllTypesProto3.MapInt32DoubleEntryRmapInt32Doublef\n\rmap_bool_boolD (2B.protobuf_test_messages.proto3.TestAllTypesProto3.MapBoolBoolEntryRmapBoolBoolr\nmap_string_stringE (2F.protobuf_test_messages.proto3.TestAllTypesProto3.MapStringStringEntryRmapStringStringo\nmap_string_bytesF (2E.protobuf_test_messages.proto3.TestAllTypesProto3.MapStringBytesEntryRmapStringBytes\x88\nmap_string_nested_messageG (2M.protobuf_test_messages.proto3.TestAllTypesProto3.MapStringNestedMessageEntryRmapStringNestedMessage\x8b\nmap_string_foreign_messageH (2N.protobuf_test_messages.proto3.TestAllTypesProto3.MapStringForeignMessageEntryRmapStringForeignMessage\nmap_string_nested_enumI (2J.protobuf_test_messages.proto3.TestAllTypesProto3.MapStringNestedEnumEntryRmapStringNestedEnum\x82\nmap_string_foreign_enumJ (2K.protobuf_test_messages.proto3.TestAllTypesProto3.MapStringForeignEnumEntryRmapStringForeignEnum#\noneof_uint32o (\rH\x00RoneofUint32s\noneof_nested_messagep (2?.protobuf_test_messages.proto3.TestAllTypesProto3.NestedMessageH\x00RoneofNestedMessage#\noneof_stringq ( H\x00RoneofString!\noneof_bytesr (H\x00R\noneofBytes\n\noneof_bools (H\x00R oneofBool#\noneof_uint64t (H\x00RoneofUint64!\noneof_floatu (H\x00R\noneofFloat#\noneof_doublev (H\x00RoneofDouble]\n\noneof_enumw (2<.protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnumH\x00R oneofEnumF\noneof_null_valuex (2.google.protobuf.NullValueH\x00RoneofNullValueO\noptional_bool_wrapper\xc9 (2.google.protobuf.BoolValueRoptionalBoolWrapperR\noptional_int32_wrapper\xca (2.google.protobuf.Int32ValueRoptionalInt32WrapperR\noptional_int64_wrapper\xcb (2.google.protobuf.Int64ValueRoptionalInt64WrapperU\noptional_uint32_wrapper\xcc (2.google.protobuf.UInt32ValueRoptionalUint32WrapperU\noptional_uint64_wrapper\xcd (2.google.protobuf.UInt64ValueRoptionalUint64WrapperR\noptional_float_wrapper\xce (2.google.protobuf.FloatValueRoptionalFloatWrapperU\noptional_double_wrapper\xcf (2.google.protobuf.DoubleValueRoptionalDoubleWrapperU\noptional_string_wrapper\xd0 (2.google.protobuf.StringValueRoptionalStringWrapperR\noptional_bytes_wrapper\xd1 (2.google.protobuf.BytesValueRoptionalBytesWrapperO\nrepeated_bool_wrapper\xd3 (2.google.protobuf.BoolValueRrepeatedBoolWrapperR\nrepeated_int32_wrapper\xd4 (2.google.protobuf.Int32ValueRrepeatedInt32WrapperR\nrepeated_int64_wrapper\xd5 (2.google.protobuf.Int64ValueRrepeatedInt64WrapperU\nrepeated_uint32_wrapper\xd6 (2.google.protobuf.UInt32ValueRrepeatedUint32WrapperU\nrepeated_uint64_wrapper\xd7 (2.google.protobuf.UInt64ValueRrepeatedUint64WrapperR\nrepeated_float_wrapper\xd8 (2.google.protobuf.FloatValueRrepeatedFloatWrapperU\nrepeated_double_wrapper\xd9 (2.google.protobuf.DoubleValueRrepeatedDoubleWrapperU\nrepeated_string_wrapper\xda (2.google.protobuf.StringValueRrepeatedStringWrapperR\nrepeated_bytes_wrapper\xdb (2.google.protobuf.BytesValueRrepeatedBytesWrapperG\noptional_duration\xad (2.google.protobuf.DurationRoptionalDurationJ\noptional_timestamp\xae (2.google.protobuf.TimestampRoptionalTimestampK\noptional_field_mask\xaf (2.google.protobuf.FieldMaskRoptionalFieldMaskA\noptional_struct\xb0 (2.google.protobuf.StructRoptionalStruct8\noptional_any\xb1 (2.google.protobuf.AnyRoptionalAny>\noptional_value\xb2 (2.google.protobuf.ValueR\roptionalValueK\noptional_null_value\xb3 (2.google.protobuf.NullValueRoptionalNullValueG\nrepeated_duration\xb7 (2.google.protobuf.DurationRrepeatedDurationJ\nrepeated_timestamp\xb8 (2.google.protobuf.TimestampRrepeatedTimestampJ\nrepeated_fieldmask\xb9 (2.google.protobuf.FieldMaskRrepeatedFieldmaskA\nrepeated_struct\xc4 (2.google.protobuf.StructRrepeatedStruct8\nrepeated_any\xbb (2.google.protobuf.AnyRrepeatedAny>\nrepeated_value\xbc (2.google.protobuf.ValueR\rrepeatedValueK\nrepeated_list_value\xbd (2.google.protobuf.ListValueRrepeatedListValue\n\nfieldname1\x91 (R\nfieldname1 \nfield_name2\x92 (R\nfieldName2!\n_field_name3\x93 (R\nFieldName3\"\n\rfield__name4_\x94 (R\nfieldName4!\nfield0name5\x95 (Rfield0name5#\n\rfield_0_name6\x96 (Rfield0Name6\n\nfieldName7\x97 (R\nfieldName7\n\nFieldName8\x98 (R\nFieldName8 \nfield_Name9\x99 (R\nfieldName9\"\nField_Name10\x9a (RFieldName10\"\nFIELD_NAME11\x9b (RFIELDNAME11\"\nFIELD_name12\x9c (RFIELDName12$\n__field_name13\x9d (RFieldName13$\n__Field_name14\x9e (RFieldName14#\n\rfield__name15\x9f (RfieldName15#\n\rfield__Name16\xa0 (RfieldName16$\nfield_name17__\xa1 (RfieldName17$\nField_name18__\xa2 (RFieldName18r\n\rNestedMessage\na (RaS\ncorecursive (21.protobuf_test_messages.proto3.TestAllTypesProto3Rcorecursive@\nMapInt32Int32Entry\nkey (Rkey\nvalue (Rvalue:8@\nMapInt64Int64Entry\nkey (Rkey\nvalue (Rvalue:8B\nMapUint32Uint32Entry\nkey (\rRkey\nvalue (\rRvalue:8B\nMapUint64Uint64Entry\nkey (Rkey\nvalue (Rvalue:8B\nMapSint32Sint32Entry\nkey (Rkey\nvalue (Rvalue:8B\nMapSint64Sint64Entry\nkey (Rkey\nvalue (Rvalue:8D\nMapFixed32Fixed32Entry\nkey (Rkey\nvalue (Rvalue:8D\nMapFixed64Fixed64Entry\nkey (Rkey\nvalue (Rvalue:8F\nMapSfixed32Sfixed32Entry\nkey (Rkey\nvalue (Rvalue:8F\nMapSfixed64Sfixed64Entry\nkey (Rkey\nvalue (Rvalue:8@\nMapInt32FloatEntry\nkey (Rkey\nvalue (Rvalue:8A\nMapInt32DoubleEntry\nkey (Rkey\nvalue (Rvalue:8>\nMapBoolBoolEntry\nkey (Rkey\nvalue (Rvalue:8B\nMapStringStringEntry\nkey ( Rkey\nvalue ( Rvalue:8A\nMapStringBytesEntry\nkey ( Rkey\nvalue (Rvalue:8\x8a\nMapStringNestedMessageEntry\nkey ( RkeyU\nvalue (2?.protobuf_test_messages.proto3.TestAllTypesProto3.NestedMessageRvalue:8y\nMapStringForeignMessageEntry\nkey ( RkeyC\nvalue (2-.protobuf_test_messages.proto3.ForeignMessageRvalue:8\x84\nMapStringNestedEnumEntry\nkey ( RkeyR\nvalue (2<.protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnumRvalue:8s\nMapStringForeignEnumEntry\nkey ( Rkey@\nvalue (2*.protobuf_test_messages.proto3.ForeignEnumRvalue:8\"9\n\nNestedEnum\nFOO\x00\nBAR\nBAZ\nNEG\xff\xff\xff\xff\xff\xff\xff\xff\xff\"Y\nAliasedEnum\r\n ALIAS_FOO\x00\r\n ALIAS_BAR\r\n ALIAS_BAZ\nMOO\nmoo\nbAzB\r\noneof_fieldJ\xf5\xff\"\nForeignMessage\nc (Rc\"\nNullHypothesisProto3\"/\nEnumOnlyProto3\"\nBool\n\nkFalse\x00 \nkTrue*@\nForeignEnum\nFOREIGN_FOO\x00\nFOREIGN_BAR\nFOREIGN_BAZB8\n(com.google.protobuf_test_messages.proto3H\xf8\xa2Proto3bproto3" |
| |
| var ( |
| file_google_protobuf_test_messages_proto3_proto_rawDescOnce sync.Once |
| file_google_protobuf_test_messages_proto3_proto_rawDescData = file_google_protobuf_test_messages_proto3_proto_rawDesc |
| ) |
| |
| func file_google_protobuf_test_messages_proto3_proto_rawDescGZIP() []byte { |
| file_google_protobuf_test_messages_proto3_proto_rawDescOnce.Do(func() { |
| file_google_protobuf_test_messages_proto3_proto_rawDescData = string(protoimpl.X.CompressGZIP([]byte(file_google_protobuf_test_messages_proto3_proto_rawDescData))) |
| }) |
| return []byte(file_google_protobuf_test_messages_proto3_proto_rawDescData) |
| } |
| |
| var file_google_protobuf_test_messages_proto3_proto_enumTypes = make([]protoimpl.EnumInfo, 4) |
| var file_google_protobuf_test_messages_proto3_proto_msgTypes = make([]protoimpl.MessageInfo, 24) |
| var file_google_protobuf_test_messages_proto3_proto_goTypes = []any{ |
| (ForeignEnum)(0), // 0: protobuf_test_messages.proto3.ForeignEnum |
| (TestAllTypesProto3_NestedEnum)(0), // 1: protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnum |
| (TestAllTypesProto3_AliasedEnum)(0), // 2: protobuf_test_messages.proto3.TestAllTypesProto3.AliasedEnum |
| (EnumOnlyProto3_Bool)(0), // 3: protobuf_test_messages.proto3.EnumOnlyProto3.Bool |
| (*TestAllTypesProto3)(nil), // 4: protobuf_test_messages.proto3.TestAllTypesProto3 |
| (*ForeignMessage)(nil), // 5: protobuf_test_messages.proto3.ForeignMessage |
| (*NullHypothesisProto3)(nil), // 6: protobuf_test_messages.proto3.NullHypothesisProto3 |
| (*EnumOnlyProto3)(nil), // 7: protobuf_test_messages.proto3.EnumOnlyProto3 |
| (*TestAllTypesProto3_NestedMessage)(nil), // 8: protobuf_test_messages.proto3.TestAllTypesProto3.NestedMessage |
| nil, // 9: protobuf_test_messages.proto3.TestAllTypesProto3.MapInt32Int32Entry |
| nil, // 10: protobuf_test_messages.proto3.TestAllTypesProto3.MapInt64Int64Entry |
| nil, // 11: protobuf_test_messages.proto3.TestAllTypesProto3.MapUint32Uint32Entry |
| nil, // 12: protobuf_test_messages.proto3.TestAllTypesProto3.MapUint64Uint64Entry |
| nil, // 13: protobuf_test_messages.proto3.TestAllTypesProto3.MapSint32Sint32Entry |
| nil, // 14: protobuf_test_messages.proto3.TestAllTypesProto3.MapSint64Sint64Entry |
| nil, // 15: protobuf_test_messages.proto3.TestAllTypesProto3.MapFixed32Fixed32Entry |
| nil, // 16: protobuf_test_messages.proto3.TestAllTypesProto3.MapFixed64Fixed64Entry |
| nil, // 17: protobuf_test_messages.proto3.TestAllTypesProto3.MapSfixed32Sfixed32Entry |
| nil, // 18: protobuf_test_messages.proto3.TestAllTypesProto3.MapSfixed64Sfixed64Entry |
| nil, // 19: protobuf_test_messages.proto3.TestAllTypesProto3.MapInt32FloatEntry |
| nil, // 20: protobuf_test_messages.proto3.TestAllTypesProto3.MapInt32DoubleEntry |
| nil, // 21: protobuf_test_messages.proto3.TestAllTypesProto3.MapBoolBoolEntry |
| nil, // 22: protobuf_test_messages.proto3.TestAllTypesProto3.MapStringStringEntry |
| nil, // 23: protobuf_test_messages.proto3.TestAllTypesProto3.MapStringBytesEntry |
| nil, // 24: protobuf_test_messages.proto3.TestAllTypesProto3.MapStringNestedMessageEntry |
| nil, // 25: protobuf_test_messages.proto3.TestAllTypesProto3.MapStringForeignMessageEntry |
| nil, // 26: protobuf_test_messages.proto3.TestAllTypesProto3.MapStringNestedEnumEntry |
| nil, // 27: protobuf_test_messages.proto3.TestAllTypesProto3.MapStringForeignEnumEntry |
| (structpb.NullValue)(0), // 28: google.protobuf.NullValue |
| (*wrapperspb.BoolValue)(nil), // 29: google.protobuf.BoolValue |
| (*wrapperspb.Int32Value)(nil), // 30: google.protobuf.Int32Value |
| (*wrapperspb.Int64Value)(nil), // 31: google.protobuf.Int64Value |
| (*wrapperspb.UInt32Value)(nil), // 32: google.protobuf.UInt32Value |
| (*wrapperspb.UInt64Value)(nil), // 33: google.protobuf.UInt64Value |
| (*wrapperspb.FloatValue)(nil), // 34: google.protobuf.FloatValue |
| (*wrapperspb.DoubleValue)(nil), // 35: google.protobuf.DoubleValue |
| (*wrapperspb.StringValue)(nil), // 36: google.protobuf.StringValue |
| (*wrapperspb.BytesValue)(nil), // 37: google.protobuf.BytesValue |
| (*durationpb.Duration)(nil), // 38: google.protobuf.Duration |
| (*timestamppb.Timestamp)(nil), // 39: google.protobuf.Timestamp |
| (*fieldmaskpb.FieldMask)(nil), // 40: google.protobuf.FieldMask |
| (*structpb.Struct)(nil), // 41: google.protobuf.Struct |
| (*anypb.Any)(nil), // 42: google.protobuf.Any |
| (*structpb.Value)(nil), // 43: google.protobuf.Value |
| (*structpb.ListValue)(nil), // 44: google.protobuf.ListValue |
| } |
| var file_google_protobuf_test_messages_proto3_proto_depIdxs = []int32{ |
| 8, // 0: protobuf_test_messages.proto3.TestAllTypesProto3.optional_nested_message:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.NestedMessage |
| 5, // 1: protobuf_test_messages.proto3.TestAllTypesProto3.optional_foreign_message:type_name -> protobuf_test_messages.proto3.ForeignMessage |
| 1, // 2: protobuf_test_messages.proto3.TestAllTypesProto3.optional_nested_enum:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnum |
| 0, // 3: protobuf_test_messages.proto3.TestAllTypesProto3.optional_foreign_enum:type_name -> protobuf_test_messages.proto3.ForeignEnum |
| 2, // 4: protobuf_test_messages.proto3.TestAllTypesProto3.optional_aliased_enum:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.AliasedEnum |
| 4, // 5: protobuf_test_messages.proto3.TestAllTypesProto3.recursive_message:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3 |
| 8, // 6: protobuf_test_messages.proto3.TestAllTypesProto3.repeated_nested_message:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.NestedMessage |
| 5, // 7: protobuf_test_messages.proto3.TestAllTypesProto3.repeated_foreign_message:type_name -> protobuf_test_messages.proto3.ForeignMessage |
| 1, // 8: protobuf_test_messages.proto3.TestAllTypesProto3.repeated_nested_enum:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnum |
| 0, // 9: protobuf_test_messages.proto3.TestAllTypesProto3.repeated_foreign_enum:type_name -> protobuf_test_messages.proto3.ForeignEnum |
| 1, // 10: protobuf_test_messages.proto3.TestAllTypesProto3.packed_nested_enum:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnum |
| 1, // 11: protobuf_test_messages.proto3.TestAllTypesProto3.unpacked_nested_enum:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnum |
| 9, // 12: protobuf_test_messages.proto3.TestAllTypesProto3.map_int32_int32:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.MapInt32Int32Entry |
| 10, // 13: protobuf_test_messages.proto3.TestAllTypesProto3.map_int64_int64:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.MapInt64Int64Entry |
| 11, // 14: protobuf_test_messages.proto3.TestAllTypesProto3.map_uint32_uint32:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.MapUint32Uint32Entry |
| 12, // 15: protobuf_test_messages.proto3.TestAllTypesProto3.map_uint64_uint64:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.MapUint64Uint64Entry |
| 13, // 16: protobuf_test_messages.proto3.TestAllTypesProto3.map_sint32_sint32:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.MapSint32Sint32Entry |
| 14, // 17: protobuf_test_messages.proto3.TestAllTypesProto3.map_sint64_sint64:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.MapSint64Sint64Entry |
| 15, // 18: protobuf_test_messages.proto3.TestAllTypesProto3.map_fixed32_fixed32:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.MapFixed32Fixed32Entry |
| 16, // 19: protobuf_test_messages.proto3.TestAllTypesProto3.map_fixed64_fixed64:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.MapFixed64Fixed64Entry |
| 17, // 20: protobuf_test_messages.proto3.TestAllTypesProto3.map_sfixed32_sfixed32:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.MapSfixed32Sfixed32Entry |
| 18, // 21: protobuf_test_messages.proto3.TestAllTypesProto3.map_sfixed64_sfixed64:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.MapSfixed64Sfixed64Entry |
| 19, // 22: protobuf_test_messages.proto3.TestAllTypesProto3.map_int32_float:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.MapInt32FloatEntry |
| 20, // 23: protobuf_test_messages.proto3.TestAllTypesProto3.map_int32_double:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.MapInt32DoubleEntry |
| 21, // 24: protobuf_test_messages.proto3.TestAllTypesProto3.map_bool_bool:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.MapBoolBoolEntry |
| 22, // 25: protobuf_test_messages.proto3.TestAllTypesProto3.map_string_string:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.MapStringStringEntry |
| 23, // 26: protobuf_test_messages.proto3.TestAllTypesProto3.map_string_bytes:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.MapStringBytesEntry |
| 24, // 27: protobuf_test_messages.proto3.TestAllTypesProto3.map_string_nested_message:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.MapStringNestedMessageEntry |
| 25, // 28: protobuf_test_messages.proto3.TestAllTypesProto3.map_string_foreign_message:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.MapStringForeignMessageEntry |
| 26, // 29: protobuf_test_messages.proto3.TestAllTypesProto3.map_string_nested_enum:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.MapStringNestedEnumEntry |
| 27, // 30: protobuf_test_messages.proto3.TestAllTypesProto3.map_string_foreign_enum:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.MapStringForeignEnumEntry |
| 8, // 31: protobuf_test_messages.proto3.TestAllTypesProto3.oneof_nested_message:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.NestedMessage |
| 1, // 32: protobuf_test_messages.proto3.TestAllTypesProto3.oneof_enum:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnum |
| 28, // 33: protobuf_test_messages.proto3.TestAllTypesProto3.oneof_null_value:type_name -> google.protobuf.NullValue |
| 29, // 34: protobuf_test_messages.proto3.TestAllTypesProto3.optional_bool_wrapper:type_name -> google.protobuf.BoolValue |
| 30, // 35: protobuf_test_messages.proto3.TestAllTypesProto3.optional_int32_wrapper:type_name -> google.protobuf.Int32Value |
| 31, // 36: protobuf_test_messages.proto3.TestAllTypesProto3.optional_int64_wrapper:type_name -> google.protobuf.Int64Value |
| 32, // 37: protobuf_test_messages.proto3.TestAllTypesProto3.optional_uint32_wrapper:type_name -> google.protobuf.UInt32Value |
| 33, // 38: protobuf_test_messages.proto3.TestAllTypesProto3.optional_uint64_wrapper:type_name -> google.protobuf.UInt64Value |
| 34, // 39: protobuf_test_messages.proto3.TestAllTypesProto3.optional_float_wrapper:type_name -> google.protobuf.FloatValue |
| 35, // 40: protobuf_test_messages.proto3.TestAllTypesProto3.optional_double_wrapper:type_name -> google.protobuf.DoubleValue |
| 36, // 41: protobuf_test_messages.proto3.TestAllTypesProto3.optional_string_wrapper:type_name -> google.protobuf.StringValue |
| 37, // 42: protobuf_test_messages.proto3.TestAllTypesProto3.optional_bytes_wrapper:type_name -> google.protobuf.BytesValue |
| 29, // 43: protobuf_test_messages.proto3.TestAllTypesProto3.repeated_bool_wrapper:type_name -> google.protobuf.BoolValue |
| 30, // 44: protobuf_test_messages.proto3.TestAllTypesProto3.repeated_int32_wrapper:type_name -> google.protobuf.Int32Value |
| 31, // 45: protobuf_test_messages.proto3.TestAllTypesProto3.repeated_int64_wrapper:type_name -> google.protobuf.Int64Value |
| 32, // 46: protobuf_test_messages.proto3.TestAllTypesProto3.repeated_uint32_wrapper:type_name -> google.protobuf.UInt32Value |
| 33, // 47: protobuf_test_messages.proto3.TestAllTypesProto3.repeated_uint64_wrapper:type_name -> google.protobuf.UInt64Value |
| 34, // 48: protobuf_test_messages.proto3.TestAllTypesProto3.repeated_float_wrapper:type_name -> google.protobuf.FloatValue |
| 35, // 49: protobuf_test_messages.proto3.TestAllTypesProto3.repeated_double_wrapper:type_name -> google.protobuf.DoubleValue |
| 36, // 50: protobuf_test_messages.proto3.TestAllTypesProto3.repeated_string_wrapper:type_name -> google.protobuf.StringValue |
| 37, // 51: protobuf_test_messages.proto3.TestAllTypesProto3.repeated_bytes_wrapper:type_name -> google.protobuf.BytesValue |
| 38, // 52: protobuf_test_messages.proto3.TestAllTypesProto3.optional_duration:type_name -> google.protobuf.Duration |
| 39, // 53: protobuf_test_messages.proto3.TestAllTypesProto3.optional_timestamp:type_name -> google.protobuf.Timestamp |
| 40, // 54: protobuf_test_messages.proto3.TestAllTypesProto3.optional_field_mask:type_name -> google.protobuf.FieldMask |
| 41, // 55: protobuf_test_messages.proto3.TestAllTypesProto3.optional_struct:type_name -> google.protobuf.Struct |
| 42, // 56: protobuf_test_messages.proto3.TestAllTypesProto3.optional_any:type_name -> google.protobuf.Any |
| 43, // 57: protobuf_test_messages.proto3.TestAllTypesProto3.optional_value:type_name -> google.protobuf.Value |
| 28, // 58: protobuf_test_messages.proto3.TestAllTypesProto3.optional_null_value:type_name -> google.protobuf.NullValue |
| 38, // 59: protobuf_test_messages.proto3.TestAllTypesProto3.repeated_duration:type_name -> google.protobuf.Duration |
| 39, // 60: protobuf_test_messages.proto3.TestAllTypesProto3.repeated_timestamp:type_name -> google.protobuf.Timestamp |
| 40, // 61: protobuf_test_messages.proto3.TestAllTypesProto3.repeated_fieldmask:type_name -> google.protobuf.FieldMask |
| 41, // 62: protobuf_test_messages.proto3.TestAllTypesProto3.repeated_struct:type_name -> google.protobuf.Struct |
| 42, // 63: protobuf_test_messages.proto3.TestAllTypesProto3.repeated_any:type_name -> google.protobuf.Any |
| 43, // 64: protobuf_test_messages.proto3.TestAllTypesProto3.repeated_value:type_name -> google.protobuf.Value |
| 44, // 65: protobuf_test_messages.proto3.TestAllTypesProto3.repeated_list_value:type_name -> google.protobuf.ListValue |
| 4, // 66: protobuf_test_messages.proto3.TestAllTypesProto3.NestedMessage.corecursive:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3 |
| 8, // 67: protobuf_test_messages.proto3.TestAllTypesProto3.MapStringNestedMessageEntry.value:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.NestedMessage |
| 5, // 68: protobuf_test_messages.proto3.TestAllTypesProto3.MapStringForeignMessageEntry.value:type_name -> protobuf_test_messages.proto3.ForeignMessage |
| 1, // 69: protobuf_test_messages.proto3.TestAllTypesProto3.MapStringNestedEnumEntry.value:type_name -> protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnum |
| 0, // 70: protobuf_test_messages.proto3.TestAllTypesProto3.MapStringForeignEnumEntry.value:type_name -> protobuf_test_messages.proto3.ForeignEnum |
| 71, // [71:71] is the sub-list for method output_type |
| 71, // [71:71] is the sub-list for method input_type |
| 71, // [71:71] is the sub-list for extension type_name |
| 71, // [71:71] is the sub-list for extension extendee |
| 0, // [0:71] is the sub-list for field type_name |
| } |
| |
| func init() { file_google_protobuf_test_messages_proto3_proto_init() } |
| func file_google_protobuf_test_messages_proto3_proto_init() { |
| if File_google_protobuf_test_messages_proto3_proto != nil { |
| return |
| } |
| file_google_protobuf_test_messages_proto3_proto_msgTypes[0].OneofWrappers = []any{ |
| (*TestAllTypesProto3_OneofUint32)(nil), |
| (*TestAllTypesProto3_OneofNestedMessage)(nil), |
| (*TestAllTypesProto3_OneofString)(nil), |
| (*TestAllTypesProto3_OneofBytes)(nil), |
| (*TestAllTypesProto3_OneofBool)(nil), |
| (*TestAllTypesProto3_OneofUint64)(nil), |
| (*TestAllTypesProto3_OneofFloat)(nil), |
| (*TestAllTypesProto3_OneofDouble)(nil), |
| (*TestAllTypesProto3_OneofEnum)(nil), |
| (*TestAllTypesProto3_OneofNullValue)(nil), |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: []byte(file_google_protobuf_test_messages_proto3_proto_rawDesc), |
| NumEnums: 4, |
| NumMessages: 24, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_google_protobuf_test_messages_proto3_proto_goTypes, |
| DependencyIndexes: file_google_protobuf_test_messages_proto3_proto_depIdxs, |
| EnumInfos: file_google_protobuf_test_messages_proto3_proto_enumTypes, |
| MessageInfos: file_google_protobuf_test_messages_proto3_proto_msgTypes, |
| }.Build() |
| File_google_protobuf_test_messages_proto3_proto = out.File |
| file_google_protobuf_test_messages_proto3_proto_goTypes = nil |
| file_google_protobuf_test_messages_proto3_proto_depIdxs = nil |
| } |