Default values for EnumContainerMessage1 fields.
const ( Default_EnumContainerMessage1_DefaultDuplicate1 = EnumType2_duplicate1 Default_EnumContainerMessage1_DefaultDuplicate2 = EnumType2_duplicate2 )
Default values for FieldTestMessage fields.
const ( Default_FieldTestMessage_DefaultBool = bool(true) Default_FieldTestMessage_DefaultEnum = FieldTestMessage_ONE Default_FieldTestMessage_DefaultInt32 = int32(1) Default_FieldTestMessage_DefaultSint32 = int32(1) Default_FieldTestMessage_DefaultUint32 = uint32(1) Default_FieldTestMessage_DefaultInt64 = int64(1) Default_FieldTestMessage_DefaultSint64 = int64(1) Default_FieldTestMessage_DefaultUint64 = uint64(1) Default_FieldTestMessage_DefaultSfixed32 = int32(1) Default_FieldTestMessage_DefaultFixed32 = uint32(1) Default_FieldTestMessage_DefaultFloat = float32(3.140000104904175) Default_FieldTestMessage_DefaultSfixed64 = int64(1) Default_FieldTestMessage_DefaultFixed64 = uint64(1) Default_FieldTestMessage_DefaultDouble = float64(3.1415) Default_FieldTestMessage_DefaultString = string("hello,\"world!\"\n") Default_FieldTestMessage_DefaultZeroString = string("") )
Enum value maps for EnumType1.
var ( EnumType1_name = map[int32]string{ 1: "ONE", 2: "TWO", } EnumType1_value = map[string]int32{ "ONE": 1, "TWO": 2, } )
Enum value maps for EnumType2.
var ( EnumType2_name = map[int32]string{ 1: "duplicate1", } EnumType2_value = map[string]int32{ "duplicate1": 1, "duplicate2": 1, } )
Enum value maps for EnumContainerMessage1_NestedEnumType1A.
var ( EnumContainerMessage1_NestedEnumType1A_name = map[int32]string{ 0: "NESTED_1A_VALUE", } EnumContainerMessage1_NestedEnumType1A_value = map[string]int32{ "NESTED_1A_VALUE": 0, } )
Enum value maps for EnumContainerMessage1_NestedEnumType1B.
var ( EnumContainerMessage1_NestedEnumType1B_name = map[int32]string{ 0: "NESTED_1B_VALUE", } EnumContainerMessage1_NestedEnumType1B_value = map[string]int32{ "NESTED_1B_VALUE": 0, } )
Enum value maps for EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.
var ( EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name = map[int32]string{ 0: "NESTED_2A_VALUE", } EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value = map[string]int32{ "NESTED_2A_VALUE": 0, } )
Enum value maps for EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.
var ( EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name = map[int32]string{ 0: "NESTED_2B_VALUE", } EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value = map[string]int32{ "NESTED_2B_VALUE": 0, } )
Enum value maps for FieldTestMessage_Enum.
var ( FieldTestMessage_Enum_name = map[int32]string{ 0: "ZERO", 1: "ONE", } FieldTestMessage_Enum_value = map[string]int32{ "ZERO": 0, "ONE": 1, } )
Default values for FieldTestMessage fields.
var ( Default_FieldTestMessage_DefaultBytes = []byte("hello,ޭ\xbe\xef") Default_FieldTestMessage_DefaultZeroBytes = []byte("") Default_FieldTestMessage_DefaultFloatNeginf = float32(math.Inf(-1)) Default_FieldTestMessage_DefaultFloatPosinf = float32(math.Inf(+1)) Default_FieldTestMessage_DefaultFloatNan = float32(math.NaN()) Default_FieldTestMessage_DefaultDoubleNeginf = float64(math.Inf(-1)) Default_FieldTestMessage_DefaultDoublePosinf = float64(math.Inf(+1)) Default_FieldTestMessage_DefaultDoubleNan = float64(math.NaN()) )
var File_cmd_protoc_gen_go_testdata_proto2_enum_proto protoreflect.FileDescriptor
var File_cmd_protoc_gen_go_testdata_proto2_fields_proto protoreflect.FileDescriptor
var File_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto protoreflect.FileDescriptor
var File_cmd_protoc_gen_go_testdata_proto2_proto2_proto protoreflect.FileDescriptor
type EnumContainerMessage1 struct { DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate1,omitempty"` DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate2,omitempty"` // contains filtered or unexported fields }
func (*EnumContainerMessage1) Descriptor() ([]byte, []int)
Deprecated: Use EnumContainerMessage1.ProtoReflect.Descriptor instead.
func (x *EnumContainerMessage1) GetDefaultDuplicate1() EnumType2
func (x *EnumContainerMessage1) GetDefaultDuplicate2() EnumType2
func (*EnumContainerMessage1) ProtoMessage()
func (x *EnumContainerMessage1) ProtoReflect() protoreflect.Message
func (x *EnumContainerMessage1) Reset()
func (x *EnumContainerMessage1) String() string
type EnumContainerMessage1_EnumContainerMessage2 struct {
// contains filtered or unexported fields
}
func (*EnumContainerMessage1_EnumContainerMessage2) Descriptor() ([]byte, []int)
Deprecated: Use EnumContainerMessage1_EnumContainerMessage2.ProtoReflect.Descriptor instead.
func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage()
func (x *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message
func (x *EnumContainerMessage1_EnumContainerMessage2) Reset()
func (x *EnumContainerMessage1_EnumContainerMessage2) String() string
NestedEnumType2A comment.
type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A int32
const ( // NestedEnumType2A_VALUE comment. EnumContainerMessage1_EnumContainerMessage2_NESTED_2A_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A = 0 )
func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Descriptor() protoreflect.EnumDescriptor
func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A
func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) EnumDescriptor() ([]byte, []int)
Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Descriptor instead.
func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Number() protoreflect.EnumNumber
func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) String() string
func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Type() protoreflect.EnumType
func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B int32
const ( EnumContainerMessage1_EnumContainerMessage2_NESTED_2B_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B = 0 )
func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Descriptor() protoreflect.EnumDescriptor
func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B
func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) EnumDescriptor() ([]byte, []int)
Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Descriptor instead.
func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Number() protoreflect.EnumNumber
func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) String() string
func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Type() protoreflect.EnumType
func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
NestedEnumType1A comment.
type EnumContainerMessage1_NestedEnumType1A int32
const ( // NestedEnumType1A_VALUE comment. EnumContainerMessage1_NESTED_1A_VALUE EnumContainerMessage1_NestedEnumType1A = 0 )
func (EnumContainerMessage1_NestedEnumType1A) Descriptor() protoreflect.EnumDescriptor
func (x EnumContainerMessage1_NestedEnumType1A) Enum() *EnumContainerMessage1_NestedEnumType1A
func (EnumContainerMessage1_NestedEnumType1A) EnumDescriptor() ([]byte, []int)
Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Descriptor instead.
func (x EnumContainerMessage1_NestedEnumType1A) Number() protoreflect.EnumNumber
func (x EnumContainerMessage1_NestedEnumType1A) String() string
func (EnumContainerMessage1_NestedEnumType1A) Type() protoreflect.EnumType
func (x *EnumContainerMessage1_NestedEnumType1A) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type EnumContainerMessage1_NestedEnumType1B int32
const ( EnumContainerMessage1_NESTED_1B_VALUE EnumContainerMessage1_NestedEnumType1B = 0 )
func (EnumContainerMessage1_NestedEnumType1B) Descriptor() protoreflect.EnumDescriptor
func (x EnumContainerMessage1_NestedEnumType1B) Enum() *EnumContainerMessage1_NestedEnumType1B
func (EnumContainerMessage1_NestedEnumType1B) EnumDescriptor() ([]byte, []int)
Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Descriptor instead.
func (x EnumContainerMessage1_NestedEnumType1B) Number() protoreflect.EnumNumber
func (x EnumContainerMessage1_NestedEnumType1B) String() string
func (EnumContainerMessage1_NestedEnumType1B) Type() protoreflect.EnumType
func (x *EnumContainerMessage1_NestedEnumType1B) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
EnumType1 comment.
type EnumType1 int32
const ( // EnumType1_ONE comment. EnumType1_ONE EnumType1 = 1 // EnumType1_TWO comment. EnumType1_TWO EnumType1 = 2 )
func (EnumType1) Descriptor() protoreflect.EnumDescriptor
func (x EnumType1) Enum() *EnumType1
func (EnumType1) EnumDescriptor() ([]byte, []int)
Deprecated: Use EnumType1.Descriptor instead.
func (x EnumType1) Number() protoreflect.EnumNumber
func (x EnumType1) String() string
func (EnumType1) Type() protoreflect.EnumType
func (x *EnumType1) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type EnumType2 int32
const ( EnumType2_duplicate1 EnumType2 = 1 EnumType2_duplicate2 EnumType2 = 1 )
func (EnumType2) Descriptor() protoreflect.EnumDescriptor
func (x EnumType2) Enum() *EnumType2
func (EnumType2) EnumDescriptor() ([]byte, []int)
Deprecated: Use EnumType2.Descriptor instead.
func (x EnumType2) Number() protoreflect.EnumNumber
func (x EnumType2) String() string
func (EnumType2) Type() protoreflect.EnumType
func (x *EnumType2) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type FieldTestMessage struct { OptionalBool *bool `protobuf:"varint,1,opt,name=optional_bool,json=optionalBool" json:"optional_bool,omitempty"` OptionalEnum *FieldTestMessage_Enum `protobuf:"varint,2,opt,name=optional_enum,json=optionalEnum,enum=goproto.protoc.proto2.FieldTestMessage_Enum" json:"optional_enum,omitempty"` OptionalInt32 *int32 `protobuf:"varint,3,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"` OptionalSint32 *int32 `protobuf:"zigzag32,4,opt,name=optional_sint32,json=optionalSint32" json:"optional_sint32,omitempty"` OptionalUint32 *uint32 `protobuf:"varint,5,opt,name=optional_uint32,json=optionalUint32" json:"optional_uint32,omitempty"` OptionalInt64 *int64 `protobuf:"varint,6,opt,name=optional_int64,json=optionalInt64" json:"optional_int64,omitempty"` OptionalSint64 *int64 `protobuf:"zigzag64,7,opt,name=optional_sint64,json=optionalSint64" json:"optional_sint64,omitempty"` OptionalUint64 *uint64 `protobuf:"varint,8,opt,name=optional_uint64,json=optionalUint64" json:"optional_uint64,omitempty"` OptionalSfixed32 *int32 `protobuf:"fixed32,9,opt,name=optional_sfixed32,json=optionalSfixed32" json:"optional_sfixed32,omitempty"` OptionalFixed32 *uint32 `protobuf:"fixed32,10,opt,name=optional_fixed32,json=optionalFixed32" json:"optional_fixed32,omitempty"` OptionalFloat *float32 `protobuf:"fixed32,11,opt,name=optional_float,json=optionalFloat" json:"optional_float,omitempty"` OptionalSfixed64 *int64 `protobuf:"fixed64,12,opt,name=optional_sfixed64,json=optionalSfixed64" json:"optional_sfixed64,omitempty"` OptionalFixed64 *uint64 `protobuf:"fixed64,13,opt,name=optional_fixed64,json=optionalFixed64" json:"optional_fixed64,omitempty"` OptionalDouble *float64 `protobuf:"fixed64,14,opt,name=optional_double,json=optionalDouble" json:"optional_double,omitempty"` OptionalString *string `protobuf:"bytes,15,opt,name=optional_string,json=optionalString" json:"optional_string,omitempty"` OptionalBytes []byte `protobuf:"bytes,16,opt,name=optional_bytes,json=optionalBytes" json:"optional_bytes,omitempty"` Optional_Message *FieldTestMessage_Message `protobuf:"bytes,17,opt,name=optional_Message,json=optionalMessage" json:"optional_Message,omitempty"` Optionalgroup *FieldTestMessage_OptionalGroup `protobuf:"group,18,opt,name=OptionalGroup,json=optionalgroup" json:"optionalgroup,omitempty"` RequiredBool *bool `protobuf:"varint,101,req,name=required_bool,json=requiredBool" json:"required_bool,omitempty"` RequiredEnum *FieldTestMessage_Enum `protobuf:"varint,102,req,name=required_enum,json=requiredEnum,enum=goproto.protoc.proto2.FieldTestMessage_Enum" json:"required_enum,omitempty"` RequiredInt32 *int32 `protobuf:"varint,103,req,name=required_int32,json=requiredInt32" json:"required_int32,omitempty"` RequiredSint32 *int32 `protobuf:"zigzag32,104,req,name=required_sint32,json=requiredSint32" json:"required_sint32,omitempty"` RequiredUint32 *uint32 `protobuf:"varint,105,req,name=required_uint32,json=requiredUint32" json:"required_uint32,omitempty"` RequiredInt64 *int64 `protobuf:"varint,106,req,name=required_int64,json=requiredInt64" json:"required_int64,omitempty"` RequiredSint64 *int64 `protobuf:"zigzag64,107,req,name=required_sint64,json=requiredSint64" json:"required_sint64,omitempty"` RequiredUint64 *uint64 `protobuf:"varint,108,req,name=required_uint64,json=requiredUint64" json:"required_uint64,omitempty"` RequiredSfixed32 *int32 `protobuf:"fixed32,109,req,name=required_sfixed32,json=requiredSfixed32" json:"required_sfixed32,omitempty"` RequiredFixed32 *uint32 `protobuf:"fixed32,110,req,name=required_fixed32,json=requiredFixed32" json:"required_fixed32,omitempty"` RequiredFloat *float32 `protobuf:"fixed32,111,req,name=required_float,json=requiredFloat" json:"required_float,omitempty"` RequiredSfixed64 *int64 `protobuf:"fixed64,112,req,name=required_sfixed64,json=requiredSfixed64" json:"required_sfixed64,omitempty"` RequiredFixed64 *uint64 `protobuf:"fixed64,113,req,name=required_fixed64,json=requiredFixed64" json:"required_fixed64,omitempty"` RequiredDouble *float64 `protobuf:"fixed64,114,req,name=required_double,json=requiredDouble" json:"required_double,omitempty"` RequiredString *string `protobuf:"bytes,115,req,name=required_string,json=requiredString" json:"required_string,omitempty"` RequiredBytes []byte `protobuf:"bytes,116,req,name=required_bytes,json=requiredBytes" json:"required_bytes,omitempty"` Required_Message *FieldTestMessage_Message `protobuf:"bytes,117,req,name=required_Message,json=requiredMessage" json:"required_Message,omitempty"` Requiredgroup *FieldTestMessage_RequiredGroup `protobuf:"group,118,req,name=RequiredGroup,json=requiredgroup" json:"requiredgroup,omitempty"` RepeatedBool []bool `protobuf:"varint,201,rep,name=repeated_bool,json=repeatedBool" json:"repeated_bool,omitempty"` RepeatedEnum []FieldTestMessage_Enum `protobuf:"varint,202,rep,name=repeated_enum,json=repeatedEnum,enum=goproto.protoc.proto2.FieldTestMessage_Enum" json:"repeated_enum,omitempty"` RepeatedInt32 []int32 `protobuf:"varint,203,rep,name=repeated_int32,json=repeatedInt32" json:"repeated_int32,omitempty"` RepeatedSint32 []int32 `protobuf:"zigzag32,204,rep,name=repeated_sint32,json=repeatedSint32" json:"repeated_sint32,omitempty"` RepeatedUint32 []uint32 `protobuf:"varint,205,rep,name=repeated_uint32,json=repeatedUint32" json:"repeated_uint32,omitempty"` RepeatedInt64 []int64 `protobuf:"varint,206,rep,name=repeated_int64,json=repeatedInt64" json:"repeated_int64,omitempty"` RepeatedSint64 []int64 `protobuf:"zigzag64,207,rep,name=repeated_sint64,json=repeatedSint64" json:"repeated_sint64,omitempty"` RepeatedUint64 []uint64 `protobuf:"varint,208,rep,name=repeated_uint64,json=repeatedUint64" json:"repeated_uint64,omitempty"` RepeatedSfixed32 []int32 `protobuf:"fixed32,209,rep,name=repeated_sfixed32,json=repeatedSfixed32" json:"repeated_sfixed32,omitempty"` RepeatedFixed32 []uint32 `protobuf:"fixed32,210,rep,name=repeated_fixed32,json=repeatedFixed32" json:"repeated_fixed32,omitempty"` RepeatedFloat []float32 `protobuf:"fixed32,211,rep,name=repeated_float,json=repeatedFloat" json:"repeated_float,omitempty"` RepeatedSfixed64 []int64 `protobuf:"fixed64,212,rep,name=repeated_sfixed64,json=repeatedSfixed64" json:"repeated_sfixed64,omitempty"` RepeatedFixed64 []uint64 `protobuf:"fixed64,213,rep,name=repeated_fixed64,json=repeatedFixed64" json:"repeated_fixed64,omitempty"` RepeatedDouble []float64 `protobuf:"fixed64,214,rep,name=repeated_double,json=repeatedDouble" json:"repeated_double,omitempty"` RepeatedString []string `protobuf:"bytes,215,rep,name=repeated_string,json=repeatedString" json:"repeated_string,omitempty"` RepeatedBytes [][]byte `protobuf:"bytes,216,rep,name=repeated_bytes,json=repeatedBytes" json:"repeated_bytes,omitempty"` Repeated_Message []*FieldTestMessage_Message `protobuf:"bytes,217,rep,name=repeated_Message,json=repeatedMessage" json:"repeated_Message,omitempty"` Repeatedgroup []*FieldTestMessage_RepeatedGroup `protobuf:"group,218,rep,name=RepeatedGroup,json=repeatedgroup" json:"repeatedgroup,omitempty"` DefaultBool *bool `protobuf:"varint,301,opt,name=default_bool,json=defaultBool,def=1" json:"default_bool,omitempty"` DefaultEnum *FieldTestMessage_Enum `protobuf:"varint,302,opt,name=default_enum,json=defaultEnum,enum=goproto.protoc.proto2.FieldTestMessage_Enum,def=1" json:"default_enum,omitempty"` DefaultInt32 *int32 `protobuf:"varint,303,opt,name=default_int32,json=defaultInt32,def=1" json:"default_int32,omitempty"` DefaultSint32 *int32 `protobuf:"zigzag32,304,opt,name=default_sint32,json=defaultSint32,def=1" json:"default_sint32,omitempty"` DefaultUint32 *uint32 `protobuf:"varint,305,opt,name=default_uint32,json=defaultUint32,def=1" json:"default_uint32,omitempty"` DefaultInt64 *int64 `protobuf:"varint,306,opt,name=default_int64,json=defaultInt64,def=1" json:"default_int64,omitempty"` DefaultSint64 *int64 `protobuf:"zigzag64,307,opt,name=default_sint64,json=defaultSint64,def=1" json:"default_sint64,omitempty"` DefaultUint64 *uint64 `protobuf:"varint,308,opt,name=default_uint64,json=defaultUint64,def=1" json:"default_uint64,omitempty"` DefaultSfixed32 *int32 `protobuf:"fixed32,309,opt,name=default_sfixed32,json=defaultSfixed32,def=1" json:"default_sfixed32,omitempty"` DefaultFixed32 *uint32 `protobuf:"fixed32,310,opt,name=default_fixed32,json=defaultFixed32,def=1" json:"default_fixed32,omitempty"` DefaultFloat *float32 `protobuf:"fixed32,311,opt,name=default_float,json=defaultFloat,def=3.14" json:"default_float,omitempty"` DefaultSfixed64 *int64 `protobuf:"fixed64,312,opt,name=default_sfixed64,json=defaultSfixed64,def=1" json:"default_sfixed64,omitempty"` DefaultFixed64 *uint64 `protobuf:"fixed64,313,opt,name=default_fixed64,json=defaultFixed64,def=1" json:"default_fixed64,omitempty"` DefaultDouble *float64 `protobuf:"fixed64,314,opt,name=default_double,json=defaultDouble,def=3.1415" json:"default_double,omitempty"` DefaultString *string `protobuf:"bytes,315,opt,name=default_string,json=defaultString,def=hello,\"world!\"\n" json:"default_string,omitempty"` DefaultBytes []byte `protobuf:"bytes,316,opt,name=default_bytes,json=defaultBytes,def=hello,\\336\\255\\276\\357" json:"default_bytes,omitempty"` DefaultZeroString *string `protobuf:"bytes,350,opt,name=default_zero_string,json=defaultZeroString,def=" json:"default_zero_string,omitempty"` DefaultZeroBytes []byte `protobuf:"bytes,351,opt,name=default_zero_bytes,json=defaultZeroBytes,def=" json:"default_zero_bytes,omitempty"` DefaultFloatNeginf *float32 `protobuf:"fixed32,400,opt,name=default_float_neginf,json=defaultFloatNeginf,def=-inf" json:"default_float_neginf,omitempty"` DefaultFloatPosinf *float32 `protobuf:"fixed32,401,opt,name=default_float_posinf,json=defaultFloatPosinf,def=inf" json:"default_float_posinf,omitempty"` DefaultFloatNan *float32 `protobuf:"fixed32,402,opt,name=default_float_nan,json=defaultFloatNan,def=nan" json:"default_float_nan,omitempty"` DefaultDoubleNeginf *float64 `protobuf:"fixed64,403,opt,name=default_double_neginf,json=defaultDoubleNeginf,def=-inf" json:"default_double_neginf,omitempty"` DefaultDoublePosinf *float64 `protobuf:"fixed64,404,opt,name=default_double_posinf,json=defaultDoublePosinf,def=inf" json:"default_double_posinf,omitempty"` DefaultDoubleNan *float64 `protobuf:"fixed64,405,opt,name=default_double_nan,json=defaultDoubleNan,def=nan" json:"default_double_nan,omitempty"` MapInt32Int64 map[int32]int64 `protobuf:"bytes,500,rep,name=map_int32_int64,json=mapInt32Int64" json:"map_int32_int64,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` MapStringMessage map[string]*FieldTestMessage_Message `protobuf:"bytes,501,rep,name=map_string_message,json=mapStringMessage" json:"map_string_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` MapFixed64Enum map[uint64]FieldTestMessage_Enum `protobuf:"bytes,502,rep,name=map_fixed64_enum,json=mapFixed64Enum" json:"map_fixed64_enum,omitempty" protobuf_key:"fixed64,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=goproto.protoc.proto2.FieldTestMessage_Enum"` // Types that are assignable to OneofField: // // *FieldTestMessage_OneofBool // *FieldTestMessage_OneofEnum // *FieldTestMessage_OneofInt32 // *FieldTestMessage_OneofSint32 // *FieldTestMessage_OneofUint32 // *FieldTestMessage_OneofInt64 // *FieldTestMessage_OneofSint64 // *FieldTestMessage_OneofUint64 // *FieldTestMessage_OneofSfixed32 // *FieldTestMessage_OneofFixed32 // *FieldTestMessage_OneofFloat // *FieldTestMessage_OneofSfixed64 // *FieldTestMessage_OneofFixed64 // *FieldTestMessage_OneofDouble // *FieldTestMessage_OneofString // *FieldTestMessage_OneofBytes // *FieldTestMessage_Oneof_Message // *FieldTestMessage_Oneofgroup // *FieldTestMessage_OneofLargestTag OneofField isFieldTestMessage_OneofField `protobuf_oneof:"oneof_field"` // Types that are assignable to OneofTwo: // // *FieldTestMessage_OneofTwo_1 // *FieldTestMessage_OneofTwo_2 OneofTwo isFieldTestMessage_OneofTwo `protobuf_oneof:"oneof_two"` // contains filtered or unexported fields }
func (*FieldTestMessage) Descriptor() ([]byte, []int)
Deprecated: Use FieldTestMessage.ProtoReflect.Descriptor instead.
func (x *FieldTestMessage) GetDefaultBool() bool
func (x *FieldTestMessage) GetDefaultBytes() []byte
func (x *FieldTestMessage) GetDefaultDouble() float64
func (x *FieldTestMessage) GetDefaultDoubleNan() float64
func (x *FieldTestMessage) GetDefaultDoubleNeginf() float64
func (x *FieldTestMessage) GetDefaultDoublePosinf() float64
func (x *FieldTestMessage) GetDefaultEnum() FieldTestMessage_Enum
func (x *FieldTestMessage) GetDefaultFixed32() uint32
func (x *FieldTestMessage) GetDefaultFixed64() uint64
func (x *FieldTestMessage) GetDefaultFloat() float32
func (x *FieldTestMessage) GetDefaultFloatNan() float32
func (x *FieldTestMessage) GetDefaultFloatNeginf() float32
func (x *FieldTestMessage) GetDefaultFloatPosinf() float32
func (x *FieldTestMessage) GetDefaultInt32() int32
func (x *FieldTestMessage) GetDefaultInt64() int64
func (x *FieldTestMessage) GetDefaultSfixed32() int32
func (x *FieldTestMessage) GetDefaultSfixed64() int64
func (x *FieldTestMessage) GetDefaultSint32() int32
func (x *FieldTestMessage) GetDefaultSint64() int64
func (x *FieldTestMessage) GetDefaultString() string
func (x *FieldTestMessage) GetDefaultUint32() uint32
func (x *FieldTestMessage) GetDefaultUint64() uint64
func (x *FieldTestMessage) GetDefaultZeroBytes() []byte
func (x *FieldTestMessage) GetDefaultZeroString() string
func (x *FieldTestMessage) GetMapFixed64Enum() map[uint64]FieldTestMessage_Enum
func (x *FieldTestMessage) GetMapInt32Int64() map[int32]int64
func (x *FieldTestMessage) GetMapStringMessage() map[string]*FieldTestMessage_Message
func (x *FieldTestMessage) GetOneofBool() bool
func (x *FieldTestMessage) GetOneofBytes() []byte
func (x *FieldTestMessage) GetOneofDouble() float64
func (x *FieldTestMessage) GetOneofEnum() FieldTestMessage_Enum
func (m *FieldTestMessage) GetOneofField() isFieldTestMessage_OneofField
func (x *FieldTestMessage) GetOneofFixed32() uint32
func (x *FieldTestMessage) GetOneofFixed64() uint64
func (x *FieldTestMessage) GetOneofFloat() float32
func (x *FieldTestMessage) GetOneofInt32() int32
func (x *FieldTestMessage) GetOneofInt64() int64
func (x *FieldTestMessage) GetOneofLargestTag() int32
func (x *FieldTestMessage) GetOneofSfixed32() int32
func (x *FieldTestMessage) GetOneofSfixed64() int64
func (x *FieldTestMessage) GetOneofSint32() int32
func (x *FieldTestMessage) GetOneofSint64() int64
func (x *FieldTestMessage) GetOneofString() string
func (m *FieldTestMessage) GetOneofTwo() isFieldTestMessage_OneofTwo
func (x *FieldTestMessage) GetOneofTwo_1() int32
func (x *FieldTestMessage) GetOneofTwo_2() int64
func (x *FieldTestMessage) GetOneofUint32() uint32
func (x *FieldTestMessage) GetOneofUint64() uint64
func (x *FieldTestMessage) GetOneof_Message() *FieldTestMessage_Message
func (x *FieldTestMessage) GetOneofgroup() *FieldTestMessage_OneofGroup
func (x *FieldTestMessage) GetOptionalBool() bool
func (x *FieldTestMessage) GetOptionalBytes() []byte
func (x *FieldTestMessage) GetOptionalDouble() float64
func (x *FieldTestMessage) GetOptionalEnum() FieldTestMessage_Enum
func (x *FieldTestMessage) GetOptionalFixed32() uint32
func (x *FieldTestMessage) GetOptionalFixed64() uint64
func (x *FieldTestMessage) GetOptionalFloat() float32
func (x *FieldTestMessage) GetOptionalInt32() int32
func (x *FieldTestMessage) GetOptionalInt64() int64
func (x *FieldTestMessage) GetOptionalSfixed32() int32
func (x *FieldTestMessage) GetOptionalSfixed64() int64
func (x *FieldTestMessage) GetOptionalSint32() int32
func (x *FieldTestMessage) GetOptionalSint64() int64
func (x *FieldTestMessage) GetOptionalString() string
func (x *FieldTestMessage) GetOptionalUint32() uint32
func (x *FieldTestMessage) GetOptionalUint64() uint64
func (x *FieldTestMessage) GetOptional_Message() *FieldTestMessage_Message
func (x *FieldTestMessage) GetOptionalgroup() *FieldTestMessage_OptionalGroup
func (x *FieldTestMessage) GetRepeatedBool() []bool
func (x *FieldTestMessage) GetRepeatedBytes() [][]byte
func (x *FieldTestMessage) GetRepeatedDouble() []float64
func (x *FieldTestMessage) GetRepeatedEnum() []FieldTestMessage_Enum
func (x *FieldTestMessage) GetRepeatedFixed32() []uint32
func (x *FieldTestMessage) GetRepeatedFixed64() []uint64
func (x *FieldTestMessage) GetRepeatedFloat() []float32
func (x *FieldTestMessage) GetRepeatedInt32() []int32
func (x *FieldTestMessage) GetRepeatedInt64() []int64
func (x *FieldTestMessage) GetRepeatedSfixed32() []int32
func (x *FieldTestMessage) GetRepeatedSfixed64() []int64
func (x *FieldTestMessage) GetRepeatedSint32() []int32
func (x *FieldTestMessage) GetRepeatedSint64() []int64
func (x *FieldTestMessage) GetRepeatedString() []string
func (x *FieldTestMessage) GetRepeatedUint32() []uint32
func (x *FieldTestMessage) GetRepeatedUint64() []uint64
func (x *FieldTestMessage) GetRepeated_Message() []*FieldTestMessage_Message
func (x *FieldTestMessage) GetRepeatedgroup() []*FieldTestMessage_RepeatedGroup
func (x *FieldTestMessage) GetRequiredBool() bool
func (x *FieldTestMessage) GetRequiredBytes() []byte
func (x *FieldTestMessage) GetRequiredDouble() float64
func (x *FieldTestMessage) GetRequiredEnum() FieldTestMessage_Enum
func (x *FieldTestMessage) GetRequiredFixed32() uint32
func (x *FieldTestMessage) GetRequiredFixed64() uint64
func (x *FieldTestMessage) GetRequiredFloat() float32
func (x *FieldTestMessage) GetRequiredInt32() int32
func (x *FieldTestMessage) GetRequiredInt64() int64
func (x *FieldTestMessage) GetRequiredSfixed32() int32
func (x *FieldTestMessage) GetRequiredSfixed64() int64
func (x *FieldTestMessage) GetRequiredSint32() int32
func (x *FieldTestMessage) GetRequiredSint64() int64
func (x *FieldTestMessage) GetRequiredString() string
func (x *FieldTestMessage) GetRequiredUint32() uint32
func (x *FieldTestMessage) GetRequiredUint64() uint64
func (x *FieldTestMessage) GetRequired_Message() *FieldTestMessage_Message
func (x *FieldTestMessage) GetRequiredgroup() *FieldTestMessage_RequiredGroup
func (*FieldTestMessage) ProtoMessage()
func (x *FieldTestMessage) ProtoReflect() protoreflect.Message
func (x *FieldTestMessage) Reset()
func (x *FieldTestMessage) String() string
type FieldTestMessage_Enum int32
const ( FieldTestMessage_ZERO FieldTestMessage_Enum = 0 FieldTestMessage_ONE FieldTestMessage_Enum = 1 )
func (FieldTestMessage_Enum) Descriptor() protoreflect.EnumDescriptor
func (x FieldTestMessage_Enum) Enum() *FieldTestMessage_Enum
func (FieldTestMessage_Enum) EnumDescriptor() ([]byte, []int)
Deprecated: Use FieldTestMessage_Enum.Descriptor instead.
func (x FieldTestMessage_Enum) Number() protoreflect.EnumNumber
func (x FieldTestMessage_Enum) String() string
func (FieldTestMessage_Enum) Type() protoreflect.EnumType
func (x *FieldTestMessage_Enum) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type FieldTestMessage_Message struct {
// contains filtered or unexported fields
}
func (*FieldTestMessage_Message) Descriptor() ([]byte, []int)
Deprecated: Use FieldTestMessage_Message.ProtoReflect.Descriptor instead.
func (*FieldTestMessage_Message) ProtoMessage()
func (x *FieldTestMessage_Message) ProtoReflect() protoreflect.Message
func (x *FieldTestMessage_Message) Reset()
func (x *FieldTestMessage_Message) String() string
type FieldTestMessage_OneofBool struct { OneofBool bool `protobuf:"varint,601,opt,name=oneof_bool,json=oneofBool,oneof"` }
type FieldTestMessage_OneofBytes struct { OneofBytes []byte `protobuf:"bytes,616,opt,name=oneof_bytes,json=oneofBytes,oneof"` }
type FieldTestMessage_OneofDouble struct { OneofDouble float64 `protobuf:"fixed64,614,opt,name=oneof_double,json=oneofDouble,oneof"` }
type FieldTestMessage_OneofEnum struct { OneofEnum FieldTestMessage_Enum `protobuf:"varint,602,opt,name=oneof_enum,json=oneofEnum,enum=goproto.protoc.proto2.FieldTestMessage_Enum,oneof"` }
type FieldTestMessage_OneofFixed32 struct { OneofFixed32 uint32 `protobuf:"fixed32,610,opt,name=oneof_fixed32,json=oneofFixed32,oneof"` }
type FieldTestMessage_OneofFixed64 struct { OneofFixed64 uint64 `protobuf:"fixed64,613,opt,name=oneof_fixed64,json=oneofFixed64,oneof"` }
type FieldTestMessage_OneofFloat struct { OneofFloat float32 `protobuf:"fixed32,611,opt,name=oneof_float,json=oneofFloat,oneof"` }
type FieldTestMessage_OneofGroup struct { OneofGroupField *string `protobuf:"bytes,619,opt,name=oneof_group_field,json=oneofGroupField" json:"oneof_group_field,omitempty"` // contains filtered or unexported fields }
func (*FieldTestMessage_OneofGroup) Descriptor() ([]byte, []int)
Deprecated: Use FieldTestMessage_OneofGroup.ProtoReflect.Descriptor instead.
func (x *FieldTestMessage_OneofGroup) GetOneofGroupField() string
func (*FieldTestMessage_OneofGroup) ProtoMessage()
func (x *FieldTestMessage_OneofGroup) ProtoReflect() protoreflect.Message
func (x *FieldTestMessage_OneofGroup) Reset()
func (x *FieldTestMessage_OneofGroup) String() string
type FieldTestMessage_OneofInt32 struct { OneofInt32 int32 `protobuf:"varint,603,opt,name=oneof_int32,json=oneofInt32,oneof"` }
type FieldTestMessage_OneofInt64 struct { OneofInt64 int64 `protobuf:"varint,606,opt,name=oneof_int64,json=oneofInt64,oneof"` }
type FieldTestMessage_OneofLargestTag struct { OneofLargestTag int32 `protobuf:"varint,536870911,opt,name=oneof_largest_tag,json=oneofLargestTag,oneof"` }
type FieldTestMessage_OneofSfixed32 struct { OneofSfixed32 int32 `protobuf:"fixed32,609,opt,name=oneof_sfixed32,json=oneofSfixed32,oneof"` }
type FieldTestMessage_OneofSfixed64 struct { OneofSfixed64 int64 `protobuf:"fixed64,612,opt,name=oneof_sfixed64,json=oneofSfixed64,oneof"` }
type FieldTestMessage_OneofSint32 struct { OneofSint32 int32 `protobuf:"zigzag32,604,opt,name=oneof_sint32,json=oneofSint32,oneof"` }
type FieldTestMessage_OneofSint64 struct { OneofSint64 int64 `protobuf:"zigzag64,607,opt,name=oneof_sint64,json=oneofSint64,oneof"` }
type FieldTestMessage_OneofString struct { OneofString string `protobuf:"bytes,615,opt,name=oneof_string,json=oneofString,oneof"` }
type FieldTestMessage_OneofTwo_1 struct { OneofTwo_1 int32 `protobuf:"varint,700,opt,name=oneof_two_1,json=oneofTwo1,oneof"` }
type FieldTestMessage_OneofTwo_2 struct { OneofTwo_2 int64 `protobuf:"varint,701,opt,name=oneof_two_2,json=oneofTwo2,oneof"` }
type FieldTestMessage_OneofUint32 struct { OneofUint32 uint32 `protobuf:"varint,605,opt,name=oneof_uint32,json=oneofUint32,oneof"` }
type FieldTestMessage_OneofUint64 struct { OneofUint64 uint64 `protobuf:"varint,608,opt,name=oneof_uint64,json=oneofUint64,oneof"` }
type FieldTestMessage_Oneof_Message struct { Oneof_Message *FieldTestMessage_Message `protobuf:"bytes,617,opt,name=oneof_Message,json=oneofMessage,oneof"` }
type FieldTestMessage_Oneofgroup struct { Oneofgroup *FieldTestMessage_OneofGroup `protobuf:"group,618,opt,name=OneofGroup,json=oneofgroup,oneof"` }
type FieldTestMessage_OptionalGroup struct { OptionalGroup *string `protobuf:"bytes,19,opt,name=optional_group,json=optionalGroup" json:"optional_group,omitempty"` // contains filtered or unexported fields }
func (*FieldTestMessage_OptionalGroup) Descriptor() ([]byte, []int)
Deprecated: Use FieldTestMessage_OptionalGroup.ProtoReflect.Descriptor instead.
func (x *FieldTestMessage_OptionalGroup) GetOptionalGroup() string
func (*FieldTestMessage_OptionalGroup) ProtoMessage()
func (x *FieldTestMessage_OptionalGroup) ProtoReflect() protoreflect.Message
func (x *FieldTestMessage_OptionalGroup) Reset()
func (x *FieldTestMessage_OptionalGroup) String() string
type FieldTestMessage_RepeatedGroup struct { RepeatedGroup []string `protobuf:"bytes,219,rep,name=repeated_group,json=repeatedGroup" json:"repeated_group,omitempty"` // contains filtered or unexported fields }
func (*FieldTestMessage_RepeatedGroup) Descriptor() ([]byte, []int)
Deprecated: Use FieldTestMessage_RepeatedGroup.ProtoReflect.Descriptor instead.
func (x *FieldTestMessage_RepeatedGroup) GetRepeatedGroup() []string
func (*FieldTestMessage_RepeatedGroup) ProtoMessage()
func (x *FieldTestMessage_RepeatedGroup) ProtoReflect() protoreflect.Message
func (x *FieldTestMessage_RepeatedGroup) Reset()
func (x *FieldTestMessage_RepeatedGroup) String() string
type FieldTestMessage_RequiredGroup struct { RequiredGroup *string `protobuf:"bytes,119,req,name=required_group,json=requiredGroup" json:"required_group,omitempty"` // contains filtered or unexported fields }
func (*FieldTestMessage_RequiredGroup) Descriptor() ([]byte, []int)
Deprecated: Use FieldTestMessage_RequiredGroup.ProtoReflect.Descriptor instead.
func (x *FieldTestMessage_RequiredGroup) GetRequiredGroup() string
func (*FieldTestMessage_RequiredGroup) ProtoMessage()
func (x *FieldTestMessage_RequiredGroup) ProtoReflect() protoreflect.Message
func (x *FieldTestMessage_RequiredGroup) Reset()
func (x *FieldTestMessage_RequiredGroup) String() string
type Layer1 struct { L2 *Layer1_Layer2 `protobuf:"bytes,1,opt,name=l2" json:"l2,omitempty"` L3 *Layer1_Layer2_Layer3 `protobuf:"bytes,2,opt,name=l3" json:"l3,omitempty"` // contains filtered or unexported fields }
func (*Layer1) Descriptor() ([]byte, []int)
Deprecated: Use Layer1.ProtoReflect.Descriptor instead.
func (x *Layer1) GetL2() *Layer1_Layer2
func (x *Layer1) GetL3() *Layer1_Layer2_Layer3
func (*Layer1) ProtoMessage()
func (x *Layer1) ProtoReflect() protoreflect.Message
func (x *Layer1) Reset()
func (x *Layer1) String() string
type Layer1_Layer2 struct { L3 *Layer1_Layer2_Layer3 `protobuf:"bytes,1,opt,name=l3" json:"l3,omitempty"` // contains filtered or unexported fields }
func (*Layer1_Layer2) Descriptor() ([]byte, []int)
Deprecated: Use Layer1_Layer2.ProtoReflect.Descriptor instead.
func (x *Layer1_Layer2) GetL3() *Layer1_Layer2_Layer3
func (*Layer1_Layer2) ProtoMessage()
func (x *Layer1_Layer2) ProtoReflect() protoreflect.Message
func (x *Layer1_Layer2) Reset()
func (x *Layer1_Layer2) String() string
type Layer1_Layer2_Layer3 struct {
// contains filtered or unexported fields
}
func (*Layer1_Layer2_Layer3) Descriptor() ([]byte, []int)
Deprecated: Use Layer1_Layer2_Layer3.ProtoReflect.Descriptor instead.
func (*Layer1_Layer2_Layer3) ProtoMessage()
func (x *Layer1_Layer2_Layer3) ProtoReflect() protoreflect.Message
func (x *Layer1_Layer2_Layer3) Reset()
func (x *Layer1_Layer2_Layer3) String() string
type Message struct { I32 *int32 `protobuf:"varint,1,opt,name=i32" json:"i32,omitempty"` M *Message `protobuf:"bytes,2,opt,name=m" json:"m,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor() ([]byte, []int)
Deprecated: Use Message.ProtoReflect.Descriptor instead.
func (x *Message) GetI32() int32
func (x *Message) GetM() *Message
func (*Message) ProtoMessage()
func (x *Message) ProtoReflect() protoreflect.Message
func (x *Message) Reset()
func (x *Message) String() string