Documentation ¶
Index ¶
- Variables
- type GlobalEnum
- type NestedTestAllTypes
- func (*NestedTestAllTypes) Descriptor() ([]byte, []int)deprecated
- func (x *NestedTestAllTypes) GetChild() *NestedTestAllTypes
- func (x *NestedTestAllTypes) GetPayload() *TestAllTypes
- func (m *NestedTestAllTypes) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (*NestedTestAllTypes) ProtoMessage()
- func (x *NestedTestAllTypes) ProtoReflect() protoreflect.Message
- func (x *NestedTestAllTypes) Reset()
- func (x *NestedTestAllTypes) String() string
- type NoFields
- type NoFields_NestedMsg
- func (*NoFields_NestedMsg) Descriptor() ([]byte, []int)deprecated
- func (x *NoFields_NestedMsg) GetNestedMessages() map[string]*NestedTestAllTypes
- func (*NoFields_NestedMsg) ProtoMessage()
- func (x *NoFields_NestedMsg) ProtoReflect() protoreflect.Message
- func (x *NoFields_NestedMsg) Reset()
- func (x *NoFields_NestedMsg) String() string
- type TestAllTypes
- func (*TestAllTypes) Descriptor() ([]byte, []int)deprecated
- func (x *TestAllTypes) GetMapBoolString() map[bool]string
- func (x *TestAllTypes) GetMapInt32String() map[int32]string
- func (x *TestAllTypes) GetMapInt64NestedType() map[int64]*TestAllTypes_NestedMessage
- func (x *TestAllTypes) GetMapStringString() map[string]string
- func (x *TestAllTypes) GetMapUint64String() map[uint64]string
- func (m *TestAllTypes) GetNestedType() isTestAllTypes_NestedType
- func (x *TestAllTypes) GetRepeatedBool() []bool
- func (x *TestAllTypes) GetRepeatedBytes() [][]byte
- func (x *TestAllTypes) GetRepeatedCord() []string
- func (x *TestAllTypes) GetRepeatedDouble() []float64
- func (x *TestAllTypes) GetRepeatedFixed32() []uint32
- func (x *TestAllTypes) GetRepeatedFixed64() []uint64
- func (x *TestAllTypes) GetRepeatedFloat() []float32
- func (x *TestAllTypes) GetRepeatedInt32() []int32
- func (x *TestAllTypes) GetRepeatedInt64() []int64
- func (x *TestAllTypes) GetRepeatedLazyMessage() []*TestAllTypes_NestedMessage
- func (x *TestAllTypes) GetRepeatedNestedEnum() []TestAllTypes_NestedEnum
- func (x *TestAllTypes) GetRepeatedNestedMessage() []*TestAllTypes_NestedMessage
- func (x *TestAllTypes) GetRepeatedSfixed32() []int32
- func (x *TestAllTypes) GetRepeatedSfixed64() []int64
- func (x *TestAllTypes) GetRepeatedSint32() []int32
- func (x *TestAllTypes) GetRepeatedSint64() []int64
- func (x *TestAllTypes) GetRepeatedString() []string
- func (x *TestAllTypes) GetRepeatedStringPiece() []string
- func (x *TestAllTypes) GetRepeatedUint32() []uint32
- func (x *TestAllTypes) GetRepeatedUint64() []uint64
- func (x *TestAllTypes) GetSingleAny() *anypb.Any
- func (x *TestAllTypes) GetSingleBool() bool
- func (x *TestAllTypes) GetSingleBoolWrapper() *wrapperspb.BoolValue
- func (x *TestAllTypes) GetSingleBytes() []byte
- func (x *TestAllTypes) GetSingleBytesWrapper() *wrapperspb.BytesValue
- func (x *TestAllTypes) GetSingleDouble() float64
- func (x *TestAllTypes) GetSingleDoubleWrapper() *wrapperspb.DoubleValue
- func (x *TestAllTypes) GetSingleDuration() *durationpb.Duration
- func (x *TestAllTypes) GetSingleFixed32() uint32
- func (x *TestAllTypes) GetSingleFixed64() uint64
- func (x *TestAllTypes) GetSingleFloat() float32
- func (x *TestAllTypes) GetSingleFloatWrapper() *wrapperspb.FloatValue
- func (x *TestAllTypes) GetSingleInt32() int32
- func (x *TestAllTypes) GetSingleInt32Wrapper() *wrapperspb.Int32Value
- func (x *TestAllTypes) GetSingleInt64() int64
- func (x *TestAllTypes) GetSingleInt64Wrapper() *wrapperspb.Int64Value
- func (x *TestAllTypes) GetSingleNestedEnum() TestAllTypes_NestedEnum
- func (x *TestAllTypes) GetSingleNestedMessage() *TestAllTypes_NestedMessage
- func (x *TestAllTypes) GetSingleSfixed32() int32
- func (x *TestAllTypes) GetSingleSfixed64() int64
- func (x *TestAllTypes) GetSingleSint32() int32
- func (x *TestAllTypes) GetSingleSint64() int64
- func (x *TestAllTypes) GetSingleString() string
- func (x *TestAllTypes) GetSingleStringWrapper() *wrapperspb.StringValue
- func (x *TestAllTypes) GetSingleStruct() *structpb.Struct
- func (x *TestAllTypes) GetSingleTimestamp() *timestamppb.Timestamp
- func (x *TestAllTypes) GetSingleUint32() uint32
- func (x *TestAllTypes) GetSingleUint32Wrapper() *wrapperspb.UInt32Value
- func (x *TestAllTypes) GetSingleUint64() uint64
- func (x *TestAllTypes) GetSingleUint64Wrapper() *wrapperspb.UInt64Value
- func (x *TestAllTypes) GetSingleValue() *structpb.Value
- func (x *TestAllTypes) GetStandaloneEnum() TestAllTypes_NestedEnum
- func (m *TestAllTypes) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (*TestAllTypes) ProtoMessage()
- func (x *TestAllTypes) ProtoReflect() protoreflect.Message
- func (x *TestAllTypes) Reset()
- func (x *TestAllTypes) String() string
- type TestAllTypesOptional
- func (*TestAllTypesOptional) Descriptor() ([]byte, []int)deprecated
- func (x *TestAllTypesOptional) GetSingleAny() *anypb.Any
- func (x *TestAllTypesOptional) GetSingleBool() bool
- func (x *TestAllTypesOptional) GetSingleBoolWrapper() *wrapperspb.BoolValue
- func (x *TestAllTypesOptional) GetSingleBytes() []byte
- func (x *TestAllTypesOptional) GetSingleBytesWrapper() *wrapperspb.BytesValue
- func (x *TestAllTypesOptional) GetSingleDouble() float64
- func (x *TestAllTypesOptional) GetSingleDoubleWrapper() *wrapperspb.DoubleValue
- func (x *TestAllTypesOptional) GetSingleDuration() *durationpb.Duration
- func (x *TestAllTypesOptional) GetSingleFixed32() uint32
- func (x *TestAllTypesOptional) GetSingleFixed64() uint64
- func (x *TestAllTypesOptional) GetSingleFloat() float32
- func (x *TestAllTypesOptional) GetSingleFloatWrapper() *wrapperspb.FloatValue
- func (x *TestAllTypesOptional) GetSingleInt32() int32
- func (x *TestAllTypesOptional) GetSingleInt32Wrapper() *wrapperspb.Int32Value
- func (x *TestAllTypesOptional) GetSingleInt64() int64
- func (x *TestAllTypesOptional) GetSingleInt64Wrapper() *wrapperspb.Int64Value
- func (x *TestAllTypesOptional) GetSingleNestedMessage() *TestAllTypesOptional_NestedMessage
- func (x *TestAllTypesOptional) GetSingleSfixed32() int32
- func (x *TestAllTypesOptional) GetSingleSfixed64() int64
- func (x *TestAllTypesOptional) GetSingleSint32() int32
- func (x *TestAllTypesOptional) GetSingleSint64() int64
- func (x *TestAllTypesOptional) GetSingleString() string
- func (x *TestAllTypesOptional) GetSingleStringWrapper() *wrapperspb.StringValue
- func (x *TestAllTypesOptional) GetSingleStruct() *structpb.Struct
- func (x *TestAllTypesOptional) GetSingleTimestamp() *timestamppb.Timestamp
- func (x *TestAllTypesOptional) GetSingleUint32() uint32
- func (x *TestAllTypesOptional) GetSingleUint32Wrapper() *wrapperspb.UInt32Value
- func (x *TestAllTypesOptional) GetSingleUint64() uint64
- func (x *TestAllTypesOptional) GetSingleUint64Wrapper() *wrapperspb.UInt64Value
- func (x *TestAllTypesOptional) GetSingleValue() *structpb.Value
- func (x *TestAllTypesOptional) GetStandaloneEnum() TestAllTypesOptional_NestedEnum
- func (m *TestAllTypesOptional) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (*TestAllTypesOptional) ProtoMessage()
- func (x *TestAllTypesOptional) ProtoReflect() protoreflect.Message
- func (x *TestAllTypesOptional) Reset()
- func (x *TestAllTypesOptional) String() string
- type TestAllTypesOptional_NestedEnum
- func (TestAllTypesOptional_NestedEnum) Descriptor() protoreflect.EnumDescriptor
- func (x TestAllTypesOptional_NestedEnum) Enum() *TestAllTypesOptional_NestedEnum
- func (TestAllTypesOptional_NestedEnum) EnumDescriptor() ([]byte, []int)deprecated
- func (x TestAllTypesOptional_NestedEnum) Number() protoreflect.EnumNumber
- func (x TestAllTypesOptional_NestedEnum) String() string
- func (TestAllTypesOptional_NestedEnum) Type() protoreflect.EnumType
- type TestAllTypesOptional_NestedMessage
- func (*TestAllTypesOptional_NestedMessage) Descriptor() ([]byte, []int)deprecated
- func (x *TestAllTypesOptional_NestedMessage) GetBb() int32
- func (m *TestAllTypesOptional_NestedMessage) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (*TestAllTypesOptional_NestedMessage) ProtoMessage()
- func (x *TestAllTypesOptional_NestedMessage) ProtoReflect() protoreflect.Message
- func (x *TestAllTypesOptional_NestedMessage) Reset()
- func (x *TestAllTypesOptional_NestedMessage) String() string
- type TestAllTypes_NestedEnum
- func (TestAllTypes_NestedEnum) Descriptor() protoreflect.EnumDescriptor
- func (x TestAllTypes_NestedEnum) Enum() *TestAllTypes_NestedEnum
- func (TestAllTypes_NestedEnum) EnumDescriptor() ([]byte, []int)deprecated
- func (x TestAllTypes_NestedEnum) Number() protoreflect.EnumNumber
- func (x TestAllTypes_NestedEnum) String() string
- func (TestAllTypes_NestedEnum) Type() protoreflect.EnumType
- type TestAllTypes_NestedMessage
- func (*TestAllTypes_NestedMessage) Descriptor() ([]byte, []int)deprecated
- func (x *TestAllTypes_NestedMessage) GetBb() int32
- func (m *TestAllTypes_NestedMessage) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (*TestAllTypes_NestedMessage) ProtoMessage()
- func (x *TestAllTypes_NestedMessage) ProtoReflect() protoreflect.Message
- func (x *TestAllTypes_NestedMessage) Reset()
- func (x *TestAllTypes_NestedMessage) String() string
- type TestAllTypes_SingleNestedEnum
- type TestAllTypes_SingleNestedMessage
Constants ¶
This section is empty.
Variables ¶
var ( GlobalEnum_name = map[int32]string{ 0: "GOO", 1: "GAR", 2: "GAZ", } GlobalEnum_value = map[string]int32{ "GOO": 0, "GAR": 1, "GAZ": 2, } )
Enum value maps for GlobalEnum.
var ( TestAllTypes_NestedEnum_name = map[int32]string{ 0: "FOO", 1: "BAR", 2: "BAZ", } TestAllTypes_NestedEnum_value = map[string]int32{ "FOO": 0, "BAR": 1, "BAZ": 2, } )
Enum value maps for TestAllTypes_NestedEnum.
var ( TestAllTypesOptional_NestedEnum_name = map[int32]string{ 0: "FOO", 1: "BAR", 2: "BAZ", } TestAllTypesOptional_NestedEnum_value = map[string]int32{ "FOO": 0, "BAR": 1, "BAZ": 2, } )
Enum value maps for TestAllTypesOptional_NestedEnum.
var File_internal_pb_all_types_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type GlobalEnum ¶
type GlobalEnum int32
This proto tests that global enums are resolved correctly.
const ( GlobalEnum_GOO GlobalEnum = 0 GlobalEnum_GAR GlobalEnum = 1 GlobalEnum_GAZ GlobalEnum = 2 )
func (GlobalEnum) Descriptor ¶
func (GlobalEnum) Descriptor() protoreflect.EnumDescriptor
func (GlobalEnum) Enum ¶
func (x GlobalEnum) Enum() *GlobalEnum
func (GlobalEnum) EnumDescriptor
deprecated
func (GlobalEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use GlobalEnum.Descriptor instead.
func (GlobalEnum) Number ¶
func (x GlobalEnum) Number() protoreflect.EnumNumber
func (GlobalEnum) String ¶
func (x GlobalEnum) String() string
func (GlobalEnum) Type ¶
func (GlobalEnum) Type() protoreflect.EnumType
type NestedTestAllTypes ¶
type NestedTestAllTypes struct { Child *NestedTestAllTypes `protobuf:"bytes,1,opt,name=child,proto3" json:"child,omitempty"` Payload *TestAllTypes `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
This proto includes a recursively nested message.
func (*NestedTestAllTypes) Descriptor
deprecated
func (*NestedTestAllTypes) Descriptor() ([]byte, []int)
Deprecated: Use NestedTestAllTypes.ProtoReflect.Descriptor instead.
func (*NestedTestAllTypes) GetChild ¶
func (x *NestedTestAllTypes) GetChild() *NestedTestAllTypes
func (*NestedTestAllTypes) GetPayload ¶
func (x *NestedTestAllTypes) GetPayload() *TestAllTypes
func (*NestedTestAllTypes) HashPB ¶
func (m *NestedTestAllTypes) HashPB(hasher hash.Hash, ignore map[string]struct{})
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*NestedTestAllTypes) ProtoMessage ¶
func (*NestedTestAllTypes) ProtoMessage()
func (*NestedTestAllTypes) ProtoReflect ¶
func (x *NestedTestAllTypes) ProtoReflect() protoreflect.Message
func (*NestedTestAllTypes) Reset ¶
func (x *NestedTestAllTypes) Reset()
func (*NestedTestAllTypes) String ¶
func (x *NestedTestAllTypes) String() string
type NoFields ¶
type NoFields struct {
// contains filtered or unexported fields
}
func (*NoFields) Descriptor
deprecated
func (*NoFields) ProtoMessage ¶
func (*NoFields) ProtoMessage()
func (*NoFields) ProtoReflect ¶
func (x *NoFields) ProtoReflect() protoreflect.Message
type NoFields_NestedMsg ¶
type NoFields_NestedMsg struct { NestedMessages map[string]*NestedTestAllTypes `` /* 191-byte string literal not displayed */ // contains filtered or unexported fields }
func (*NoFields_NestedMsg) Descriptor
deprecated
func (*NoFields_NestedMsg) Descriptor() ([]byte, []int)
Deprecated: Use NoFields_NestedMsg.ProtoReflect.Descriptor instead.
func (*NoFields_NestedMsg) GetNestedMessages ¶
func (x *NoFields_NestedMsg) GetNestedMessages() map[string]*NestedTestAllTypes
func (*NoFields_NestedMsg) ProtoMessage ¶
func (*NoFields_NestedMsg) ProtoMessage()
func (*NoFields_NestedMsg) ProtoReflect ¶
func (x *NoFields_NestedMsg) ProtoReflect() protoreflect.Message
func (*NoFields_NestedMsg) Reset ¶
func (x *NoFields_NestedMsg) Reset()
func (*NoFields_NestedMsg) String ¶
func (x *NoFields_NestedMsg) String() string
type TestAllTypes ¶
type TestAllTypes struct { // Singular SingleInt32 int32 `protobuf:"varint,1,opt,name=single_int32,json=singleInt32,proto3" json:"single_int32,omitempty"` SingleInt64 int64 `protobuf:"varint,2,opt,name=single_int64,json=singleInt64,proto3" json:"single_int64,omitempty"` SingleUint32 uint32 `protobuf:"varint,3,opt,name=single_uint32,json=singleUint32,proto3" json:"single_uint32,omitempty"` SingleUint64 uint64 `protobuf:"varint,4,opt,name=single_uint64,json=singleUint64,proto3" json:"single_uint64,omitempty"` SingleSint32 int32 `protobuf:"zigzag32,5,opt,name=single_sint32,json=singleSint32,proto3" json:"single_sint32,omitempty"` SingleSint64 int64 `protobuf:"zigzag64,6,opt,name=single_sint64,json=singleSint64,proto3" json:"single_sint64,omitempty"` SingleFixed32 uint32 `protobuf:"fixed32,7,opt,name=single_fixed32,json=singleFixed32,proto3" json:"single_fixed32,omitempty"` SingleFixed64 uint64 `protobuf:"fixed64,8,opt,name=single_fixed64,json=singleFixed64,proto3" json:"single_fixed64,omitempty"` SingleSfixed32 int32 `protobuf:"fixed32,9,opt,name=single_sfixed32,json=singleSfixed32,proto3" json:"single_sfixed32,omitempty"` SingleSfixed64 int64 `protobuf:"fixed64,10,opt,name=single_sfixed64,json=singleSfixed64,proto3" json:"single_sfixed64,omitempty"` SingleFloat float32 `protobuf:"fixed32,11,opt,name=single_float,json=singleFloat,proto3" json:"single_float,omitempty"` SingleDouble float64 `protobuf:"fixed64,12,opt,name=single_double,json=singleDouble,proto3" json:"single_double,omitempty"` SingleBool bool `protobuf:"varint,13,opt,name=single_bool,json=singleBool,proto3" json:"single_bool,omitempty"` SingleString string `protobuf:"bytes,14,opt,name=single_string,json=singleString,proto3" json:"single_string,omitempty"` SingleBytes []byte `protobuf:"bytes,15,opt,name=single_bytes,json=singleBytes,proto3" json:"single_bytes,omitempty"` StandaloneEnum TestAllTypes_NestedEnum `` /* 153-byte string literal not displayed */ // Wellknown. SingleAny *anypb.Any `protobuf:"bytes,100,opt,name=single_any,json=singleAny,proto3" json:"single_any,omitempty"` SingleDuration *durationpb.Duration `protobuf:"bytes,101,opt,name=single_duration,json=singleDuration,proto3" json:"single_duration,omitempty"` SingleTimestamp *timestamppb.Timestamp `protobuf:"bytes,102,opt,name=single_timestamp,json=singleTimestamp,proto3" json:"single_timestamp,omitempty"` SingleStruct *structpb.Struct `protobuf:"bytes,103,opt,name=single_struct,json=singleStruct,proto3" json:"single_struct,omitempty"` SingleValue *structpb.Value `protobuf:"bytes,104,opt,name=single_value,json=singleValue,proto3" json:"single_value,omitempty"` SingleInt64Wrapper *wrapperspb.Int64Value `protobuf:"bytes,105,opt,name=single_int64_wrapper,json=singleInt64Wrapper,proto3" json:"single_int64_wrapper,omitempty"` SingleInt32Wrapper *wrapperspb.Int32Value `protobuf:"bytes,106,opt,name=single_int32_wrapper,json=singleInt32Wrapper,proto3" json:"single_int32_wrapper,omitempty"` SingleDoubleWrapper *wrapperspb.DoubleValue `protobuf:"bytes,107,opt,name=single_double_wrapper,json=singleDoubleWrapper,proto3" json:"single_double_wrapper,omitempty"` SingleFloatWrapper *wrapperspb.FloatValue `protobuf:"bytes,108,opt,name=single_float_wrapper,json=singleFloatWrapper,proto3" json:"single_float_wrapper,omitempty"` SingleUint64Wrapper *wrapperspb.UInt64Value `protobuf:"bytes,109,opt,name=single_uint64_wrapper,json=singleUint64Wrapper,proto3" json:"single_uint64_wrapper,omitempty"` SingleUint32Wrapper *wrapperspb.UInt32Value `protobuf:"bytes,110,opt,name=single_uint32_wrapper,json=singleUint32Wrapper,proto3" json:"single_uint32_wrapper,omitempty"` SingleStringWrapper *wrapperspb.StringValue `protobuf:"bytes,111,opt,name=single_string_wrapper,json=singleStringWrapper,proto3" json:"single_string_wrapper,omitempty"` SingleBoolWrapper *wrapperspb.BoolValue `protobuf:"bytes,112,opt,name=single_bool_wrapper,json=singleBoolWrapper,proto3" json:"single_bool_wrapper,omitempty"` SingleBytesWrapper *wrapperspb.BytesValue `protobuf:"bytes,113,opt,name=single_bytes_wrapper,json=singleBytesWrapper,proto3" json:"single_bytes_wrapper,omitempty"` // Nested messages // // Types that are assignable to NestedType: // // *TestAllTypes_SingleNestedMessage // *TestAllTypes_SingleNestedEnum NestedType isTestAllTypes_NestedType `protobuf_oneof:"nested_type"` // 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 []*TestAllTypes_NestedMessage `` /* 127-byte string literal not displayed */ RepeatedNestedEnum []TestAllTypes_NestedEnum `` /* 174-byte string literal not displayed */ 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"` RepeatedLazyMessage []*TestAllTypes_NestedMessage `protobuf:"bytes,57,rep,name=repeated_lazy_message,json=repeatedLazyMessage,proto3" json:"repeated_lazy_message,omitempty"` // Map MapStringString map[string]string `` /* 197-byte string literal not displayed */ MapUint64String map[uint64]string `` /* 198-byte string literal not displayed */ MapInt32String map[int32]string `` /* 195-byte string literal not displayed */ MapBoolString map[bool]string `` /* 192-byte string literal not displayed */ MapInt64NestedType map[int64]*TestAllTypes_NestedMessage `` /* 209-byte string literal not displayed */ // contains filtered or unexported fields }
This proto includes every type of field in both singular and repeated forms.
func (*TestAllTypes) Descriptor
deprecated
func (*TestAllTypes) Descriptor() ([]byte, []int)
Deprecated: Use TestAllTypes.ProtoReflect.Descriptor instead.
func (*TestAllTypes) GetMapBoolString ¶
func (x *TestAllTypes) GetMapBoolString() map[bool]string
func (*TestAllTypes) GetMapInt32String ¶
func (x *TestAllTypes) GetMapInt32String() map[int32]string
func (*TestAllTypes) GetMapInt64NestedType ¶
func (x *TestAllTypes) GetMapInt64NestedType() map[int64]*TestAllTypes_NestedMessage
func (*TestAllTypes) GetMapStringString ¶
func (x *TestAllTypes) GetMapStringString() map[string]string
func (*TestAllTypes) GetMapUint64String ¶
func (x *TestAllTypes) GetMapUint64String() map[uint64]string
func (*TestAllTypes) GetNestedType ¶
func (m *TestAllTypes) GetNestedType() isTestAllTypes_NestedType
func (*TestAllTypes) GetRepeatedBool ¶
func (x *TestAllTypes) GetRepeatedBool() []bool
func (*TestAllTypes) GetRepeatedBytes ¶
func (x *TestAllTypes) GetRepeatedBytes() [][]byte
func (*TestAllTypes) GetRepeatedCord ¶
func (x *TestAllTypes) GetRepeatedCord() []string
func (*TestAllTypes) GetRepeatedDouble ¶
func (x *TestAllTypes) GetRepeatedDouble() []float64
func (*TestAllTypes) GetRepeatedFixed32 ¶
func (x *TestAllTypes) GetRepeatedFixed32() []uint32
func (*TestAllTypes) GetRepeatedFixed64 ¶
func (x *TestAllTypes) GetRepeatedFixed64() []uint64
func (*TestAllTypes) GetRepeatedFloat ¶
func (x *TestAllTypes) GetRepeatedFloat() []float32
func (*TestAllTypes) GetRepeatedInt32 ¶
func (x *TestAllTypes) GetRepeatedInt32() []int32
func (*TestAllTypes) GetRepeatedInt64 ¶
func (x *TestAllTypes) GetRepeatedInt64() []int64
func (*TestAllTypes) GetRepeatedLazyMessage ¶
func (x *TestAllTypes) GetRepeatedLazyMessage() []*TestAllTypes_NestedMessage
func (*TestAllTypes) GetRepeatedNestedEnum ¶
func (x *TestAllTypes) GetRepeatedNestedEnum() []TestAllTypes_NestedEnum
func (*TestAllTypes) GetRepeatedNestedMessage ¶
func (x *TestAllTypes) GetRepeatedNestedMessage() []*TestAllTypes_NestedMessage
func (*TestAllTypes) GetRepeatedSfixed32 ¶
func (x *TestAllTypes) GetRepeatedSfixed32() []int32
func (*TestAllTypes) GetRepeatedSfixed64 ¶
func (x *TestAllTypes) GetRepeatedSfixed64() []int64
func (*TestAllTypes) GetRepeatedSint32 ¶
func (x *TestAllTypes) GetRepeatedSint32() []int32
func (*TestAllTypes) GetRepeatedSint64 ¶
func (x *TestAllTypes) GetRepeatedSint64() []int64
func (*TestAllTypes) GetRepeatedString ¶
func (x *TestAllTypes) GetRepeatedString() []string
func (*TestAllTypes) GetRepeatedStringPiece ¶
func (x *TestAllTypes) GetRepeatedStringPiece() []string
func (*TestAllTypes) GetRepeatedUint32 ¶
func (x *TestAllTypes) GetRepeatedUint32() []uint32
func (*TestAllTypes) GetRepeatedUint64 ¶
func (x *TestAllTypes) GetRepeatedUint64() []uint64
func (*TestAllTypes) GetSingleAny ¶
func (x *TestAllTypes) GetSingleAny() *anypb.Any
func (*TestAllTypes) GetSingleBool ¶
func (x *TestAllTypes) GetSingleBool() bool
func (*TestAllTypes) GetSingleBoolWrapper ¶
func (x *TestAllTypes) GetSingleBoolWrapper() *wrapperspb.BoolValue
func (*TestAllTypes) GetSingleBytes ¶
func (x *TestAllTypes) GetSingleBytes() []byte
func (*TestAllTypes) GetSingleBytesWrapper ¶
func (x *TestAllTypes) GetSingleBytesWrapper() *wrapperspb.BytesValue
func (*TestAllTypes) GetSingleDouble ¶
func (x *TestAllTypes) GetSingleDouble() float64
func (*TestAllTypes) GetSingleDoubleWrapper ¶
func (x *TestAllTypes) GetSingleDoubleWrapper() *wrapperspb.DoubleValue
func (*TestAllTypes) GetSingleDuration ¶
func (x *TestAllTypes) GetSingleDuration() *durationpb.Duration
func (*TestAllTypes) GetSingleFixed32 ¶
func (x *TestAllTypes) GetSingleFixed32() uint32
func (*TestAllTypes) GetSingleFixed64 ¶
func (x *TestAllTypes) GetSingleFixed64() uint64
func (*TestAllTypes) GetSingleFloat ¶
func (x *TestAllTypes) GetSingleFloat() float32
func (*TestAllTypes) GetSingleFloatWrapper ¶
func (x *TestAllTypes) GetSingleFloatWrapper() *wrapperspb.FloatValue
func (*TestAllTypes) GetSingleInt32 ¶
func (x *TestAllTypes) GetSingleInt32() int32
func (*TestAllTypes) GetSingleInt32Wrapper ¶
func (x *TestAllTypes) GetSingleInt32Wrapper() *wrapperspb.Int32Value
func (*TestAllTypes) GetSingleInt64 ¶
func (x *TestAllTypes) GetSingleInt64() int64
func (*TestAllTypes) GetSingleInt64Wrapper ¶
func (x *TestAllTypes) GetSingleInt64Wrapper() *wrapperspb.Int64Value
func (*TestAllTypes) GetSingleNestedEnum ¶
func (x *TestAllTypes) GetSingleNestedEnum() TestAllTypes_NestedEnum
func (*TestAllTypes) GetSingleNestedMessage ¶
func (x *TestAllTypes) GetSingleNestedMessage() *TestAllTypes_NestedMessage
func (*TestAllTypes) GetSingleSfixed32 ¶
func (x *TestAllTypes) GetSingleSfixed32() int32
func (*TestAllTypes) GetSingleSfixed64 ¶
func (x *TestAllTypes) GetSingleSfixed64() int64
func (*TestAllTypes) GetSingleSint32 ¶
func (x *TestAllTypes) GetSingleSint32() int32
func (*TestAllTypes) GetSingleSint64 ¶
func (x *TestAllTypes) GetSingleSint64() int64
func (*TestAllTypes) GetSingleString ¶
func (x *TestAllTypes) GetSingleString() string
func (*TestAllTypes) GetSingleStringWrapper ¶
func (x *TestAllTypes) GetSingleStringWrapper() *wrapperspb.StringValue
func (*TestAllTypes) GetSingleStruct ¶
func (x *TestAllTypes) GetSingleStruct() *structpb.Struct
func (*TestAllTypes) GetSingleTimestamp ¶
func (x *TestAllTypes) GetSingleTimestamp() *timestamppb.Timestamp
func (*TestAllTypes) GetSingleUint32 ¶
func (x *TestAllTypes) GetSingleUint32() uint32
func (*TestAllTypes) GetSingleUint32Wrapper ¶
func (x *TestAllTypes) GetSingleUint32Wrapper() *wrapperspb.UInt32Value
func (*TestAllTypes) GetSingleUint64 ¶
func (x *TestAllTypes) GetSingleUint64() uint64
func (*TestAllTypes) GetSingleUint64Wrapper ¶
func (x *TestAllTypes) GetSingleUint64Wrapper() *wrapperspb.UInt64Value
func (*TestAllTypes) GetSingleValue ¶
func (x *TestAllTypes) GetSingleValue() *structpb.Value
func (*TestAllTypes) GetStandaloneEnum ¶
func (x *TestAllTypes) GetStandaloneEnum() TestAllTypes_NestedEnum
func (*TestAllTypes) HashPB ¶
func (m *TestAllTypes) HashPB(hasher hash.Hash, ignore map[string]struct{})
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*TestAllTypes) ProtoMessage ¶
func (*TestAllTypes) ProtoMessage()
func (*TestAllTypes) ProtoReflect ¶
func (x *TestAllTypes) ProtoReflect() protoreflect.Message
func (*TestAllTypes) Reset ¶
func (x *TestAllTypes) Reset()
func (*TestAllTypes) String ¶
func (x *TestAllTypes) String() string
type TestAllTypesOptional ¶ added in v0.3.0
type TestAllTypesOptional struct { // Singular SingleInt32 *int32 `protobuf:"varint,1,opt,name=single_int32,json=singleInt32,proto3,oneof" json:"single_int32,omitempty"` SingleInt64 *int64 `protobuf:"varint,2,opt,name=single_int64,json=singleInt64,proto3,oneof" json:"single_int64,omitempty"` SingleUint32 *uint32 `protobuf:"varint,3,opt,name=single_uint32,json=singleUint32,proto3,oneof" json:"single_uint32,omitempty"` SingleUint64 *uint64 `protobuf:"varint,4,opt,name=single_uint64,json=singleUint64,proto3,oneof" json:"single_uint64,omitempty"` SingleSint32 *int32 `protobuf:"zigzag32,5,opt,name=single_sint32,json=singleSint32,proto3,oneof" json:"single_sint32,omitempty"` SingleSint64 *int64 `protobuf:"zigzag64,6,opt,name=single_sint64,json=singleSint64,proto3,oneof" json:"single_sint64,omitempty"` SingleFixed32 *uint32 `protobuf:"fixed32,7,opt,name=single_fixed32,json=singleFixed32,proto3,oneof" json:"single_fixed32,omitempty"` SingleFixed64 *uint64 `protobuf:"fixed64,8,opt,name=single_fixed64,json=singleFixed64,proto3,oneof" json:"single_fixed64,omitempty"` SingleSfixed32 *int32 `protobuf:"fixed32,9,opt,name=single_sfixed32,json=singleSfixed32,proto3,oneof" json:"single_sfixed32,omitempty"` SingleSfixed64 *int64 `protobuf:"fixed64,10,opt,name=single_sfixed64,json=singleSfixed64,proto3,oneof" json:"single_sfixed64,omitempty"` SingleFloat *float32 `protobuf:"fixed32,11,opt,name=single_float,json=singleFloat,proto3,oneof" json:"single_float,omitempty"` SingleDouble *float64 `protobuf:"fixed64,12,opt,name=single_double,json=singleDouble,proto3,oneof" json:"single_double,omitempty"` SingleBool *bool `protobuf:"varint,13,opt,name=single_bool,json=singleBool,proto3,oneof" json:"single_bool,omitempty"` SingleString *string `protobuf:"bytes,14,opt,name=single_string,json=singleString,proto3,oneof" json:"single_string,omitempty"` SingleBytes []byte `protobuf:"bytes,15,opt,name=single_bytes,json=singleBytes,proto3,oneof" json:"single_bytes,omitempty"` StandaloneEnum *TestAllTypesOptional_NestedEnum `` /* 167-byte string literal not displayed */ // Wellknown. SingleAny *anypb.Any `protobuf:"bytes,100,opt,name=single_any,json=singleAny,proto3,oneof" json:"single_any,omitempty"` SingleDuration *durationpb.Duration `protobuf:"bytes,101,opt,name=single_duration,json=singleDuration,proto3,oneof" json:"single_duration,omitempty"` SingleTimestamp *timestamppb.Timestamp `protobuf:"bytes,102,opt,name=single_timestamp,json=singleTimestamp,proto3,oneof" json:"single_timestamp,omitempty"` SingleStruct *structpb.Struct `protobuf:"bytes,103,opt,name=single_struct,json=singleStruct,proto3,oneof" json:"single_struct,omitempty"` SingleValue *structpb.Value `protobuf:"bytes,104,opt,name=single_value,json=singleValue,proto3,oneof" json:"single_value,omitempty"` SingleInt64Wrapper *wrapperspb.Int64Value `protobuf:"bytes,105,opt,name=single_int64_wrapper,json=singleInt64Wrapper,proto3,oneof" json:"single_int64_wrapper,omitempty"` SingleInt32Wrapper *wrapperspb.Int32Value `protobuf:"bytes,106,opt,name=single_int32_wrapper,json=singleInt32Wrapper,proto3,oneof" json:"single_int32_wrapper,omitempty"` SingleDoubleWrapper *wrapperspb.DoubleValue `` /* 128-byte string literal not displayed */ SingleFloatWrapper *wrapperspb.FloatValue `protobuf:"bytes,108,opt,name=single_float_wrapper,json=singleFloatWrapper,proto3,oneof" json:"single_float_wrapper,omitempty"` SingleUint64Wrapper *wrapperspb.UInt64Value `` /* 128-byte string literal not displayed */ SingleUint32Wrapper *wrapperspb.UInt32Value `` /* 128-byte string literal not displayed */ SingleStringWrapper *wrapperspb.StringValue `` /* 128-byte string literal not displayed */ SingleBoolWrapper *wrapperspb.BoolValue `protobuf:"bytes,112,opt,name=single_bool_wrapper,json=singleBoolWrapper,proto3,oneof" json:"single_bool_wrapper,omitempty"` SingleBytesWrapper *wrapperspb.BytesValue `protobuf:"bytes,113,opt,name=single_bytes_wrapper,json=singleBytesWrapper,proto3,oneof" json:"single_bytes_wrapper,omitempty"` SingleNestedMessage *TestAllTypesOptional_NestedMessage `` /* 127-byte string literal not displayed */ // contains filtered or unexported fields }
func (*TestAllTypesOptional) Descriptor
deprecated
added in
v0.3.0
func (*TestAllTypesOptional) Descriptor() ([]byte, []int)
Deprecated: Use TestAllTypesOptional.ProtoReflect.Descriptor instead.
func (*TestAllTypesOptional) GetSingleAny ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleAny() *anypb.Any
func (*TestAllTypesOptional) GetSingleBool ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleBool() bool
func (*TestAllTypesOptional) GetSingleBoolWrapper ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleBoolWrapper() *wrapperspb.BoolValue
func (*TestAllTypesOptional) GetSingleBytes ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleBytes() []byte
func (*TestAllTypesOptional) GetSingleBytesWrapper ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleBytesWrapper() *wrapperspb.BytesValue
func (*TestAllTypesOptional) GetSingleDouble ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleDouble() float64
func (*TestAllTypesOptional) GetSingleDoubleWrapper ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleDoubleWrapper() *wrapperspb.DoubleValue
func (*TestAllTypesOptional) GetSingleDuration ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleDuration() *durationpb.Duration
func (*TestAllTypesOptional) GetSingleFixed32 ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleFixed32() uint32
func (*TestAllTypesOptional) GetSingleFixed64 ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleFixed64() uint64
func (*TestAllTypesOptional) GetSingleFloat ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleFloat() float32
func (*TestAllTypesOptional) GetSingleFloatWrapper ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleFloatWrapper() *wrapperspb.FloatValue
func (*TestAllTypesOptional) GetSingleInt32 ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleInt32() int32
func (*TestAllTypesOptional) GetSingleInt32Wrapper ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleInt32Wrapper() *wrapperspb.Int32Value
func (*TestAllTypesOptional) GetSingleInt64 ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleInt64() int64
func (*TestAllTypesOptional) GetSingleInt64Wrapper ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleInt64Wrapper() *wrapperspb.Int64Value
func (*TestAllTypesOptional) GetSingleNestedMessage ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleNestedMessage() *TestAllTypesOptional_NestedMessage
func (*TestAllTypesOptional) GetSingleSfixed32 ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleSfixed32() int32
func (*TestAllTypesOptional) GetSingleSfixed64 ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleSfixed64() int64
func (*TestAllTypesOptional) GetSingleSint32 ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleSint32() int32
func (*TestAllTypesOptional) GetSingleSint64 ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleSint64() int64
func (*TestAllTypesOptional) GetSingleString ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleString() string
func (*TestAllTypesOptional) GetSingleStringWrapper ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleStringWrapper() *wrapperspb.StringValue
func (*TestAllTypesOptional) GetSingleStruct ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleStruct() *structpb.Struct
func (*TestAllTypesOptional) GetSingleTimestamp ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleTimestamp() *timestamppb.Timestamp
func (*TestAllTypesOptional) GetSingleUint32 ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleUint32() uint32
func (*TestAllTypesOptional) GetSingleUint32Wrapper ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleUint32Wrapper() *wrapperspb.UInt32Value
func (*TestAllTypesOptional) GetSingleUint64 ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleUint64() uint64
func (*TestAllTypesOptional) GetSingleUint64Wrapper ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleUint64Wrapper() *wrapperspb.UInt64Value
func (*TestAllTypesOptional) GetSingleValue ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetSingleValue() *structpb.Value
func (*TestAllTypesOptional) GetStandaloneEnum ¶ added in v0.3.0
func (x *TestAllTypesOptional) GetStandaloneEnum() TestAllTypesOptional_NestedEnum
func (*TestAllTypesOptional) HashPB ¶ added in v0.3.0
func (m *TestAllTypesOptional) HashPB(hasher hash.Hash, ignore map[string]struct{})
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*TestAllTypesOptional) ProtoMessage ¶ added in v0.3.0
func (*TestAllTypesOptional) ProtoMessage()
func (*TestAllTypesOptional) ProtoReflect ¶ added in v0.3.0
func (x *TestAllTypesOptional) ProtoReflect() protoreflect.Message
func (*TestAllTypesOptional) Reset ¶ added in v0.3.0
func (x *TestAllTypesOptional) Reset()
func (*TestAllTypesOptional) String ¶ added in v0.3.0
func (x *TestAllTypesOptional) String() string
type TestAllTypesOptional_NestedEnum ¶ added in v0.3.0
type TestAllTypesOptional_NestedEnum int32
const ( TestAllTypesOptional_FOO TestAllTypesOptional_NestedEnum = 0 TestAllTypesOptional_BAR TestAllTypesOptional_NestedEnum = 1 TestAllTypesOptional_BAZ TestAllTypesOptional_NestedEnum = 2 )
func (TestAllTypesOptional_NestedEnum) Descriptor ¶ added in v0.3.0
func (TestAllTypesOptional_NestedEnum) Descriptor() protoreflect.EnumDescriptor
func (TestAllTypesOptional_NestedEnum) Enum ¶ added in v0.3.0
func (x TestAllTypesOptional_NestedEnum) Enum() *TestAllTypesOptional_NestedEnum
func (TestAllTypesOptional_NestedEnum) EnumDescriptor
deprecated
added in
v0.3.0
func (TestAllTypesOptional_NestedEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use TestAllTypesOptional_NestedEnum.Descriptor instead.
func (TestAllTypesOptional_NestedEnum) Number ¶ added in v0.3.0
func (x TestAllTypesOptional_NestedEnum) Number() protoreflect.EnumNumber
func (TestAllTypesOptional_NestedEnum) String ¶ added in v0.3.0
func (x TestAllTypesOptional_NestedEnum) String() string
func (TestAllTypesOptional_NestedEnum) Type ¶ added in v0.3.0
func (TestAllTypesOptional_NestedEnum) Type() protoreflect.EnumType
type TestAllTypesOptional_NestedMessage ¶ added in v0.3.0
type TestAllTypesOptional_NestedMessage struct { Bb *int32 `protobuf:"varint,1,opt,name=bb,proto3,oneof" json:"bb,omitempty"` // contains filtered or unexported fields }
func (*TestAllTypesOptional_NestedMessage) Descriptor
deprecated
added in
v0.3.0
func (*TestAllTypesOptional_NestedMessage) Descriptor() ([]byte, []int)
Deprecated: Use TestAllTypesOptional_NestedMessage.ProtoReflect.Descriptor instead.
func (*TestAllTypesOptional_NestedMessage) GetBb ¶ added in v0.3.0
func (x *TestAllTypesOptional_NestedMessage) GetBb() int32
func (*TestAllTypesOptional_NestedMessage) HashPB ¶ added in v0.3.0
func (m *TestAllTypesOptional_NestedMessage) HashPB(hasher hash.Hash, ignore map[string]struct{})
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*TestAllTypesOptional_NestedMessage) ProtoMessage ¶ added in v0.3.0
func (*TestAllTypesOptional_NestedMessage) ProtoMessage()
func (*TestAllTypesOptional_NestedMessage) ProtoReflect ¶ added in v0.3.0
func (x *TestAllTypesOptional_NestedMessage) ProtoReflect() protoreflect.Message
func (*TestAllTypesOptional_NestedMessage) Reset ¶ added in v0.3.0
func (x *TestAllTypesOptional_NestedMessage) Reset()
func (*TestAllTypesOptional_NestedMessage) String ¶ added in v0.3.0
func (x *TestAllTypesOptional_NestedMessage) String() string
type TestAllTypes_NestedEnum ¶
type TestAllTypes_NestedEnum int32
const ( TestAllTypes_FOO TestAllTypes_NestedEnum = 0 TestAllTypes_BAR TestAllTypes_NestedEnum = 1 TestAllTypes_BAZ TestAllTypes_NestedEnum = 2 )
func (TestAllTypes_NestedEnum) Descriptor ¶
func (TestAllTypes_NestedEnum) Descriptor() protoreflect.EnumDescriptor
func (TestAllTypes_NestedEnum) Enum ¶
func (x TestAllTypes_NestedEnum) Enum() *TestAllTypes_NestedEnum
func (TestAllTypes_NestedEnum) EnumDescriptor
deprecated
func (TestAllTypes_NestedEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use TestAllTypes_NestedEnum.Descriptor instead.
func (TestAllTypes_NestedEnum) Number ¶
func (x TestAllTypes_NestedEnum) Number() protoreflect.EnumNumber
func (TestAllTypes_NestedEnum) String ¶
func (x TestAllTypes_NestedEnum) String() string
func (TestAllTypes_NestedEnum) Type ¶
func (TestAllTypes_NestedEnum) Type() protoreflect.EnumType
type TestAllTypes_NestedMessage ¶
type TestAllTypes_NestedMessage struct { Bb int32 `protobuf:"varint,1,opt,name=bb,proto3" json:"bb,omitempty"` // contains filtered or unexported fields }
func (*TestAllTypes_NestedMessage) Descriptor
deprecated
func (*TestAllTypes_NestedMessage) Descriptor() ([]byte, []int)
Deprecated: Use TestAllTypes_NestedMessage.ProtoReflect.Descriptor instead.
func (*TestAllTypes_NestedMessage) GetBb ¶
func (x *TestAllTypes_NestedMessage) GetBb() int32
func (*TestAllTypes_NestedMessage) HashPB ¶
func (m *TestAllTypes_NestedMessage) HashPB(hasher hash.Hash, ignore map[string]struct{})
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*TestAllTypes_NestedMessage) ProtoMessage ¶
func (*TestAllTypes_NestedMessage) ProtoMessage()
func (*TestAllTypes_NestedMessage) ProtoReflect ¶
func (x *TestAllTypes_NestedMessage) ProtoReflect() protoreflect.Message
func (*TestAllTypes_NestedMessage) Reset ¶
func (x *TestAllTypes_NestedMessage) Reset()
func (*TestAllTypes_NestedMessage) String ¶
func (x *TestAllTypes_NestedMessage) String() string
type TestAllTypes_SingleNestedEnum ¶
type TestAllTypes_SingleNestedEnum struct {
SingleNestedEnum TestAllTypes_NestedEnum `` /* 131-byte string literal not displayed */
}
type TestAllTypes_SingleNestedMessage ¶
type TestAllTypes_SingleNestedMessage struct {
SingleNestedMessage *TestAllTypes_NestedMessage `protobuf:"bytes,18,opt,name=single_nested_message,json=singleNestedMessage,proto3,oneof"`
}