proto2pb
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
- Constants
- Variables
- type ExampleType
- type ExtendedExampleType
- type ExternalMessageType
- type GlobalEnum
- func (GlobalEnum) Descriptor() protoreflect.EnumDescriptor
- func (x GlobalEnum) Enum() *GlobalEnum
- func (GlobalEnum) EnumDescriptor() ([]byte, []int)deprecated
- func (x GlobalEnum) Number() protoreflect.EnumNumber
- func (x GlobalEnum) String() string
- func (GlobalEnum) Type() protoreflect.EnumType
- func (x *GlobalEnum) UnmarshalJSON(b []byte) errordeprecated
- type NestedTestAllTypes
- func (*NestedTestAllTypes) Descriptor() ([]byte, []int)deprecated
- func (x *NestedTestAllTypes) GetChild() *NestedTestAllTypes
- func (x *NestedTestAllTypes) GetPayload() *TestAllTypes
- func (*NestedTestAllTypes) ProtoMessage()
- func (x *NestedTestAllTypes) ProtoReflect() protoreflect.Message
- func (x *NestedTestAllTypes) Reset()
- func (x *NestedTestAllTypes) String() string
- type TestAllTypes
- func (*TestAllTypes) Descriptor() ([]byte, []int)deprecated
- func (x *TestAllTypes) GetMapInt64NestedType() map[int64]*NestedTestAllTypes
- func (x *TestAllTypes) GetMapStringString() map[string]string
- func (m *TestAllTypes) GetNestedType() isTestAllTypes_NestedType
- func (x *TestAllTypes) GetNestedgroup() *TestAllTypes_NestedGroup
- 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 (*TestAllTypes) ProtoMessage()
- func (x *TestAllTypes) ProtoReflect() protoreflect.Message
- func (x *TestAllTypes) Reset()
- func (x *TestAllTypes) 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
- func (x *TestAllTypes_NestedEnum) UnmarshalJSON(b []byte) errordeprecated
- type TestAllTypes_NestedGroup
- func (*TestAllTypes_NestedGroup) Descriptor() ([]byte, []int)deprecated
- func (x *TestAllTypes_NestedGroup) GetNestedId() int32
- func (x *TestAllTypes_NestedGroup) GetNestedName() string
- func (*TestAllTypes_NestedGroup) ProtoMessage()
- func (x *TestAllTypes_NestedGroup) ProtoReflect() protoreflect.Message
- func (x *TestAllTypes_NestedGroup) Reset()
- func (x *TestAllTypes_NestedGroup) String() string
- type TestAllTypes_NestedMessage
- func (*TestAllTypes_NestedMessage) Descriptor() ([]byte, []int)deprecated
- func (x *TestAllTypes_NestedMessage) GetBb() int32
- 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¶
const (Default_TestAllTypes_SingleInt32 =int32(-32)Default_TestAllTypes_SingleInt64 =int64(-64)Default_TestAllTypes_SingleUint32 =uint32(32)Default_TestAllTypes_SingleUint64 =uint64(64)Default_TestAllTypes_SingleFloat =float32(3)Default_TestAllTypes_SingleDouble =float64(6.4)Default_TestAllTypes_SingleBool =bool(true)Default_TestAllTypes_SingleString =string("empty")Default_TestAllTypes_SingleNestedEnum =TestAllTypes_BAR)
Default values for TestAllTypes fields.
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 (// repeated string extended_examples = 103;E_ExtendedExampleType_ExtendedExamples = &file_test_proto2pb_test_all_types_proto_extTypes[0]// optional google.expr.proto2.test.GlobalEnum enum_ext = 104;E_ExtendedExampleType_EnumExt = &file_test_proto2pb_test_all_types_proto_extTypes[1])
Extension fields to ExampleType.
var (// optional google.expr.proto2.test.ExampleType nested_example = 100;E_NestedExample = &file_test_proto2pb_test_extensions_proto_extTypes[0]// optional int32 int32_ext = 101;E_Int32Ext = &file_test_proto2pb_test_extensions_proto_extTypes[1]// optional google.protobuf.Int32Value int32_wrapper_ext = 102;E_Int32WrapperExt = &file_test_proto2pb_test_extensions_proto_extTypes[2]// optional int64 int64_ext = 201;E_ExternalMessageType_Int64Ext = &file_test_proto2pb_test_extensions_proto_extTypes[3])
Extension fields to ExampleType.
var (Default_TestAllTypes_SingleBytes = []byte("none"))Default values for TestAllTypes fields.
var File_test_proto2pb_test_all_types_protoprotoreflect.FileDescriptorvar File_test_proto2pb_test_extensions_protoprotoreflect.FileDescriptorFunctions¶
This section is empty.
Types¶
typeExampleType¶added inv0.13.0
type ExampleType struct {Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`In *int64 `protobuf:"varint,2,opt,name=in" json:"in,omitempty"`// contains filtered or unexported fields} func (*ExampleType)Descriptordeprecatedadded inv0.13.0
func (*ExampleType) Descriptor() ([]byte, []int)
Deprecated: Use ExampleType.ProtoReflect.Descriptor instead.
func (*ExampleType)GetIn¶added inv0.23.0
func (x *ExampleType) GetIn()int64
func (*ExampleType)GetName¶added inv0.13.0
func (x *ExampleType) GetName()string
func (*ExampleType)ProtoMessage¶added inv0.13.0
func (*ExampleType) ProtoMessage()
func (*ExampleType)ProtoReflect¶added inv0.13.0
func (x *ExampleType) ProtoReflect()protoreflect.Message
func (*ExampleType)Reset¶added inv0.13.0
func (x *ExampleType) Reset()
func (*ExampleType)String¶added inv0.13.0
func (x *ExampleType) String()string
typeExtendedExampleType¶added inv0.13.0
type ExtendedExampleType struct {// contains filtered or unexported fields} func (*ExtendedExampleType)Descriptordeprecatedadded inv0.13.0
func (*ExtendedExampleType) Descriptor() ([]byte, []int)
Deprecated: Use ExtendedExampleType.ProtoReflect.Descriptor instead.
func (*ExtendedExampleType)ProtoMessage¶added inv0.13.0
func (*ExtendedExampleType) ProtoMessage()
func (*ExtendedExampleType)ProtoReflect¶added inv0.13.0
func (x *ExtendedExampleType) ProtoReflect()protoreflect.Message
func (*ExtendedExampleType)Reset¶added inv0.13.0
func (x *ExtendedExampleType) Reset()
func (*ExtendedExampleType)String¶added inv0.13.0
func (x *ExtendedExampleType) String()string
typeExternalMessageType¶added inv0.13.0
type ExternalMessageType struct {// contains filtered or unexported fields} func (*ExternalMessageType)Descriptordeprecatedadded inv0.13.0
func (*ExternalMessageType) Descriptor() ([]byte, []int)
Deprecated: Use ExternalMessageType.ProtoReflect.Descriptor instead.
func (*ExternalMessageType)ProtoMessage¶added inv0.13.0
func (*ExternalMessageType) ProtoMessage()
func (*ExternalMessageType)ProtoReflect¶added inv0.13.0
func (x *ExternalMessageType) ProtoReflect()protoreflect.Message
func (*ExternalMessageType)Reset¶added inv0.13.0
func (x *ExternalMessageType) Reset()
func (*ExternalMessageType)String¶added inv0.13.0
func (x *ExternalMessageType) String()string
typeGlobalEnum¶
type GlobalEnumint32
const (GlobalEnum_GOOGlobalEnum = 0GlobalEnum_GARGlobalEnum = 1GlobalEnum_GAZGlobalEnum = 2)
func (GlobalEnum)Descriptor¶added inv0.7.0
func (GlobalEnum) Descriptor()protoreflect.EnumDescriptor
func (GlobalEnum)Enum¶
func (xGlobalEnum) Enum() *GlobalEnum
func (GlobalEnum)EnumDescriptordeprecated
func (GlobalEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use GlobalEnum.Descriptor instead.
func (GlobalEnum)Number¶added inv0.7.0
func (xGlobalEnum) Number()protoreflect.EnumNumber
func (GlobalEnum)String¶
func (xGlobalEnum) String()string
func (GlobalEnum)Type¶added inv0.7.0
func (GlobalEnum) Type()protoreflect.EnumType
func (*GlobalEnum)UnmarshalJSONdeprecated
func (x *GlobalEnum) UnmarshalJSON(b []byte)error
Deprecated: Do not use.
typeNestedTestAllTypes¶
type NestedTestAllTypes struct {Child *NestedTestAllTypes `protobuf:"bytes,1,opt,name=child" json:"child,omitempty"`Payload *TestAllTypes `protobuf:"bytes,2,opt,name=payload" json:"payload,omitempty"`// contains filtered or unexported fields} func (*NestedTestAllTypes)Descriptordeprecated
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)ProtoMessage¶
func (*NestedTestAllTypes) ProtoMessage()
func (*NestedTestAllTypes)ProtoReflect¶added inv0.7.0
func (x *NestedTestAllTypes) ProtoReflect()protoreflect.Message
func (*NestedTestAllTypes)Reset¶
func (x *NestedTestAllTypes) Reset()
func (*NestedTestAllTypes)String¶
func (x *NestedTestAllTypes) String()string
typeTestAllTypes¶
type TestAllTypes struct {SingleInt32 *int32 `protobuf:"varint,1,opt,name=single_int32,json=singleInt32,def=-32" json:"single_int32,omitempty"`SingleInt64 *int64 `protobuf:"varint,2,opt,name=single_int64,json=singleInt64,def=-64" json:"single_int64,omitempty"`SingleUint32 *uint32 `protobuf:"varint,3,opt,name=single_uint32,json=singleUint32,def=32" json:"single_uint32,omitempty"`SingleUint64 *uint64 `protobuf:"varint,4,opt,name=single_uint64,json=singleUint64,def=64" json:"single_uint64,omitempty"`SingleSint32 *int32 `protobuf:"zigzag32,5,opt,name=single_sint32,json=singleSint32" json:"single_sint32,omitempty"`SingleSint64 *int64 `protobuf:"zigzag64,6,opt,name=single_sint64,json=singleSint64" json:"single_sint64,omitempty"`SingleFixed32 *uint32 `protobuf:"fixed32,7,opt,name=single_fixed32,json=singleFixed32" json:"single_fixed32,omitempty"`SingleFixed64 *uint64 `protobuf:"fixed64,8,opt,name=single_fixed64,json=singleFixed64" json:"single_fixed64,omitempty"`SingleSfixed32 *int32 `protobuf:"fixed32,9,opt,name=single_sfixed32,json=singleSfixed32" json:"single_sfixed32,omitempty"`SingleSfixed64 *int64 `protobuf:"fixed64,10,opt,name=single_sfixed64,json=singleSfixed64" json:"single_sfixed64,omitempty"`SingleFloat *float32 `protobuf:"fixed32,11,opt,name=single_float,json=singleFloat,def=3" json:"single_float,omitempty"`SingleDouble *float64 `protobuf:"fixed64,12,opt,name=single_double,json=singleDouble,def=6.4" json:"single_double,omitempty"`SingleBool *bool `protobuf:"varint,13,opt,name=single_bool,json=singleBool,def=1" json:"single_bool,omitempty"`SingleString *string `protobuf:"bytes,14,opt,name=single_string,json=singleString,def=empty" json:"single_string,omitempty"`SingleBytes []byte `protobuf:"bytes,15,opt,name=single_bytes,json=singleBytes,def=none" json:"single_bytes,omitempty"`StandaloneEnum *TestAllTypes_NestedEnum ``/* 151-byte string literal not displayed */Nestedgroup *TestAllTypes_NestedGroup `protobuf:"group,23,opt,name=NestedGroup,json=nestedgroup" json:"nestedgroup,omitempty"`SingleAny *anypb.Any `protobuf:"bytes,100,opt,name=single_any,json=singleAny" json:"single_any,omitempty"`SingleDuration *durationpb.Duration `protobuf:"bytes,101,opt,name=single_duration,json=singleDuration" json:"single_duration,omitempty"`SingleTimestamp *timestamppb.Timestamp `protobuf:"bytes,102,opt,name=single_timestamp,json=singleTimestamp" json:"single_timestamp,omitempty"`SingleStruct *structpb.Struct `protobuf:"bytes,103,opt,name=single_struct,json=singleStruct" json:"single_struct,omitempty"`SingleValue *structpb.Value `protobuf:"bytes,104,opt,name=single_value,json=singleValue" json:"single_value,omitempty"`SingleInt64Wrapper *wrapperspb.Int64Value `protobuf:"bytes,105,opt,name=single_int64_wrapper,json=singleInt64Wrapper" json:"single_int64_wrapper,omitempty"`SingleInt32Wrapper *wrapperspb.Int32Value `protobuf:"bytes,106,opt,name=single_int32_wrapper,json=singleInt32Wrapper" json:"single_int32_wrapper,omitempty"`SingleDoubleWrapper *wrapperspb.DoubleValue `protobuf:"bytes,107,opt,name=single_double_wrapper,json=singleDoubleWrapper" json:"single_double_wrapper,omitempty"`SingleFloatWrapper *wrapperspb.FloatValue `protobuf:"bytes,108,opt,name=single_float_wrapper,json=singleFloatWrapper" json:"single_float_wrapper,omitempty"`SingleUint64Wrapper *wrapperspb.UInt64Value `protobuf:"bytes,109,opt,name=single_uint64_wrapper,json=singleUint64Wrapper" json:"single_uint64_wrapper,omitempty"`SingleUint32Wrapper *wrapperspb.UInt32Value `protobuf:"bytes,110,opt,name=single_uint32_wrapper,json=singleUint32Wrapper" json:"single_uint32_wrapper,omitempty"`SingleStringWrapper *wrapperspb.StringValue `protobuf:"bytes,111,opt,name=single_string_wrapper,json=singleStringWrapper" json:"single_string_wrapper,omitempty"`SingleBoolWrapper *wrapperspb.BoolValue `protobuf:"bytes,112,opt,name=single_bool_wrapper,json=singleBoolWrapper" json:"single_bool_wrapper,omitempty"`SingleBytesWrapper *wrapperspb.BytesValue `protobuf:"bytes,113,opt,name=single_bytes_wrapper,json=singleBytesWrapper" json:"single_bytes_wrapper,omitempty"`// Types that are assignable to NestedType:////*TestAllTypes_SingleNestedMessage//*TestAllTypes_SingleNestedEnumNestedType isTestAllTypes_NestedType `protobuf_oneof:"nested_type"`RepeatedInt32 []int32 `protobuf:"varint,31,rep,name=repeated_int32,json=repeatedInt32" json:"repeated_int32,omitempty"`RepeatedInt64 []int64 `protobuf:"varint,32,rep,name=repeated_int64,json=repeatedInt64" json:"repeated_int64,omitempty"`RepeatedUint32 []uint32 `protobuf:"varint,33,rep,name=repeated_uint32,json=repeatedUint32" json:"repeated_uint32,omitempty"`RepeatedUint64 []uint64 `protobuf:"varint,34,rep,name=repeated_uint64,json=repeatedUint64" json:"repeated_uint64,omitempty"`RepeatedSint32 []int32 `protobuf:"zigzag32,35,rep,name=repeated_sint32,json=repeatedSint32" json:"repeated_sint32,omitempty"`RepeatedSint64 []int64 `protobuf:"zigzag64,36,rep,name=repeated_sint64,json=repeatedSint64" json:"repeated_sint64,omitempty"`RepeatedFixed32 []uint32 `protobuf:"fixed32,37,rep,name=repeated_fixed32,json=repeatedFixed32" json:"repeated_fixed32,omitempty"`RepeatedFixed64 []uint64 `protobuf:"fixed64,38,rep,name=repeated_fixed64,json=repeatedFixed64" json:"repeated_fixed64,omitempty"`RepeatedSfixed32 []int32 `protobuf:"fixed32,39,rep,name=repeated_sfixed32,json=repeatedSfixed32" json:"repeated_sfixed32,omitempty"`RepeatedSfixed64 []int64 `protobuf:"fixed64,40,rep,name=repeated_sfixed64,json=repeatedSfixed64" json:"repeated_sfixed64,omitempty"`RepeatedFloat []float32 `protobuf:"fixed32,41,rep,name=repeated_float,json=repeatedFloat" json:"repeated_float,omitempty"`RepeatedDouble []float64 `protobuf:"fixed64,42,rep,name=repeated_double,json=repeatedDouble" json:"repeated_double,omitempty"`RepeatedBool []bool `protobuf:"varint,43,rep,name=repeated_bool,json=repeatedBool" json:"repeated_bool,omitempty"`RepeatedString []string `protobuf:"bytes,44,rep,name=repeated_string,json=repeatedString" json:"repeated_string,omitempty"`RepeatedBytes [][]byte `protobuf:"bytes,45,rep,name=repeated_bytes,json=repeatedBytes" json:"repeated_bytes,omitempty"`RepeatedNestedMessage []*TestAllTypes_NestedMessage `protobuf:"bytes,48,rep,name=repeated_nested_message,json=repeatedNestedMessage" json:"repeated_nested_message,omitempty"`RepeatedNestedEnum []TestAllTypes_NestedEnum ``/* 165-byte string literal not displayed */RepeatedStringPiece []string `protobuf:"bytes,54,rep,name=repeated_string_piece,json=repeatedStringPiece" json:"repeated_string_piece,omitempty"`RepeatedCord []string `protobuf:"bytes,55,rep,name=repeated_cord,json=repeatedCord" json:"repeated_cord,omitempty"`RepeatedLazyMessage []*TestAllTypes_NestedMessage `protobuf:"bytes,57,rep,name=repeated_lazy_message,json=repeatedLazyMessage" json:"repeated_lazy_message,omitempty"`MapStringString map[string]string ``/* 176-byte string literal not displayed */MapInt64NestedType map[int64]*NestedTestAllTypes ``/* 188-byte string literal not displayed */// contains filtered or unexported fields} func (*TestAllTypes)Descriptordeprecated
func (*TestAllTypes) Descriptor() ([]byte, []int)
Deprecated: Use TestAllTypes.ProtoReflect.Descriptor instead.
func (*TestAllTypes)GetMapInt64NestedType¶
func (x *TestAllTypes) GetMapInt64NestedType() map[int64]*NestedTestAllTypes
func (*TestAllTypes)GetMapStringString¶
func (x *TestAllTypes) GetMapStringString() map[string]string
func (*TestAllTypes)GetNestedType¶
func (m *TestAllTypes) GetNestedType() isTestAllTypes_NestedType
func (*TestAllTypes)GetNestedgroup¶added inv0.12.0
func (x *TestAllTypes) GetNestedgroup() *TestAllTypes_NestedGroup
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¶added inv0.3.0
func (x *TestAllTypes) GetSingleBoolWrapper() *wrapperspb.BoolValue
func (*TestAllTypes)GetSingleBytes¶
func (x *TestAllTypes) GetSingleBytes() []byte
func (*TestAllTypes)GetSingleBytesWrapper¶added inv0.3.0
func (x *TestAllTypes) GetSingleBytesWrapper() *wrapperspb.BytesValue
func (*TestAllTypes)GetSingleDouble¶
func (x *TestAllTypes) GetSingleDouble()float64
func (*TestAllTypes)GetSingleDoubleWrapper¶added inv0.3.0
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¶added inv0.3.0
func (x *TestAllTypes) GetSingleFloatWrapper() *wrapperspb.FloatValue
func (*TestAllTypes)GetSingleInt32¶
func (x *TestAllTypes) GetSingleInt32()int32
func (*TestAllTypes)GetSingleInt32Wrapper¶added inv0.3.0
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¶added inv0.3.0
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¶added inv0.3.0
func (x *TestAllTypes) GetSingleUint32Wrapper() *wrapperspb.UInt32Value
func (*TestAllTypes)GetSingleUint64¶
func (x *TestAllTypes) GetSingleUint64()uint64
func (*TestAllTypes)GetSingleUint64Wrapper¶added inv0.3.0
func (x *TestAllTypes) GetSingleUint64Wrapper() *wrapperspb.UInt64Value
func (*TestAllTypes)GetSingleValue¶
func (x *TestAllTypes) GetSingleValue() *structpb.Value
func (*TestAllTypes)GetStandaloneEnum¶added inv0.4.2
func (x *TestAllTypes) GetStandaloneEnum()TestAllTypes_NestedEnum
func (*TestAllTypes)ProtoMessage¶
func (*TestAllTypes) ProtoMessage()
func (*TestAllTypes)ProtoReflect¶added inv0.7.0
func (x *TestAllTypes) ProtoReflect()protoreflect.Message
func (*TestAllTypes)Reset¶
func (x *TestAllTypes) Reset()
func (*TestAllTypes)String¶
func (x *TestAllTypes) String()string
typeTestAllTypes_NestedEnum¶
type TestAllTypes_NestedEnumint32
const (TestAllTypes_FOOTestAllTypes_NestedEnum = 0TestAllTypes_BARTestAllTypes_NestedEnum = 1TestAllTypes_BAZTestAllTypes_NestedEnum = 2)
func (TestAllTypes_NestedEnum)Descriptor¶added inv0.7.0
func (TestAllTypes_NestedEnum) Descriptor()protoreflect.EnumDescriptor
func (TestAllTypes_NestedEnum)Enum¶
func (xTestAllTypes_NestedEnum) Enum() *TestAllTypes_NestedEnum
func (TestAllTypes_NestedEnum)EnumDescriptordeprecated
func (TestAllTypes_NestedEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use TestAllTypes_NestedEnum.Descriptor instead.
func (TestAllTypes_NestedEnum)Number¶added inv0.7.0
func (xTestAllTypes_NestedEnum) Number()protoreflect.EnumNumber
func (TestAllTypes_NestedEnum)String¶
func (xTestAllTypes_NestedEnum) String()string
func (TestAllTypes_NestedEnum)Type¶added inv0.7.0
func (TestAllTypes_NestedEnum) Type()protoreflect.EnumType
func (*TestAllTypes_NestedEnum)UnmarshalJSONdeprecated
func (x *TestAllTypes_NestedEnum) UnmarshalJSON(b []byte)error
Deprecated: Do not use.
typeTestAllTypes_NestedGroup¶added inv0.12.0
type TestAllTypes_NestedGroup struct {NestedId *int32 `protobuf:"varint,24,opt,name=nested_id,json=nestedId" json:"nested_id,omitempty"`NestedName *string `protobuf:"bytes,25,opt,name=nested_name,json=nestedName" json:"nested_name,omitempty"`// contains filtered or unexported fields} func (*TestAllTypes_NestedGroup)Descriptordeprecatedadded inv0.12.0
func (*TestAllTypes_NestedGroup) Descriptor() ([]byte, []int)
Deprecated: Use TestAllTypes_NestedGroup.ProtoReflect.Descriptor instead.
func (*TestAllTypes_NestedGroup)GetNestedId¶added inv0.12.0
func (x *TestAllTypes_NestedGroup) GetNestedId()int32
func (*TestAllTypes_NestedGroup)GetNestedName¶added inv0.12.0
func (x *TestAllTypes_NestedGroup) GetNestedName()string
func (*TestAllTypes_NestedGroup)ProtoMessage¶added inv0.12.0
func (*TestAllTypes_NestedGroup) ProtoMessage()
func (*TestAllTypes_NestedGroup)ProtoReflect¶added inv0.12.0
func (x *TestAllTypes_NestedGroup) ProtoReflect()protoreflect.Message
func (*TestAllTypes_NestedGroup)Reset¶added inv0.12.0
func (x *TestAllTypes_NestedGroup) Reset()
func (*TestAllTypes_NestedGroup)String¶added inv0.12.0
func (x *TestAllTypes_NestedGroup) String()string
typeTestAllTypes_NestedMessage¶
type TestAllTypes_NestedMessage struct {Bb *int32 `protobuf:"varint,1,opt,name=bb" json:"bb,omitempty"`// contains filtered or unexported fields} func (*TestAllTypes_NestedMessage)Descriptordeprecated
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)ProtoMessage¶
func (*TestAllTypes_NestedMessage) ProtoMessage()
func (*TestAllTypes_NestedMessage)ProtoReflect¶added inv0.7.0
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
typeTestAllTypes_SingleNestedEnum¶
type TestAllTypes_SingleNestedEnum struct {SingleNestedEnumTestAllTypes_NestedEnum ``/* 135-byte string literal not displayed */}typeTestAllTypes_SingleNestedMessage¶
type TestAllTypes_SingleNestedMessage struct {SingleNestedMessage *TestAllTypes_NestedMessage `protobuf:"bytes,18,opt,name=single_nested_message,json=singleNestedMessage,oneof"`}