Documentation ¶
Index ¶
- Variables
- type TestAnyType
- type TestData
- func (*TestData) Descriptor() ([]byte, []int)deprecated
- func (x *TestData) GetAny() *anypb.Any
- func (x *TestData) GetTBool() bool
- func (x *TestData) GetTEnum() TestData_EnumType
- func (x *TestData) GetTFix64() uint64
- func (x *TestData) GetTInt64() int64
- func (x *TestData) GetTListI64() []int64
- func (x *TestData) GetTListObj() []*TestData_TestObj
- func (x *TestData) GetTListString() []string
- func (x *TestData) GetTMap() map[int64]string
- func (x *TestData) GetTMapObj() map[string]*TestData
- func (x *TestData) GetTObj() *TestData_TestObj
- func (x *TestData) GetTString() string
- func (*TestData) ProtoMessage()
- func (x *TestData) ProtoReflect() protoreflect.Message
- func (x *TestData) Reset()
- func (x *TestData) String() string
- type TestData_EnumType
- func (TestData_EnumType) Descriptor() protoreflect.EnumDescriptor
- func (x TestData_EnumType) Enum() *TestData_EnumType
- func (TestData_EnumType) EnumDescriptor() ([]byte, []int)deprecated
- func (x TestData_EnumType) Number() protoreflect.EnumNumber
- func (x TestData_EnumType) String() string
- func (TestData_EnumType) Type() protoreflect.EnumType
- type TestData_TestObj
- type Type1
- type Type2
- type Type3
- type Type4
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TestData_EnumType_name = map[int32]string{ 0: "UnknownType", 1: "Test1Type", 2: "Test2Type", } TestData_EnumType_value = map[string]int32{ "UnknownType": 0, "Test1Type": 1, "Test2Type": 2, } )
Enum value maps for TestData_EnumType.
View Source
var File_test_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type TestAnyType ¶
type TestAnyType struct { Any *anypb.Any `protobuf:"bytes,1,opt,name=any,proto3,oneof" json:"any,omitempty"` // contains filtered or unexported fields }
func (*TestAnyType) Descriptor
deprecated
func (*TestAnyType) Descriptor() ([]byte, []int)
Deprecated: Use TestAnyType.ProtoReflect.Descriptor instead.
func (*TestAnyType) GetAny ¶
func (x *TestAnyType) GetAny() *anypb.Any
func (*TestAnyType) ProtoMessage ¶
func (*TestAnyType) ProtoMessage()
func (*TestAnyType) ProtoReflect ¶
func (x *TestAnyType) ProtoReflect() protoreflect.Message
func (*TestAnyType) Reset ¶
func (x *TestAnyType) Reset()
func (*TestAnyType) String ¶
func (x *TestAnyType) String() string
type TestData ¶
type TestData struct { TString string `protobuf:"bytes,1,opt,name=t_string,json=tString,proto3" json:"t_string,omitempty"` TInt64 int64 `protobuf:"varint,2,opt,name=t_int64,json=tInt64,proto3" json:"t_int64,omitempty"` TBool bool `protobuf:"varint,3,opt,name=t_bool,json=tBool,proto3" json:"t_bool,omitempty"` TFix64 uint64 `protobuf:"fixed64,4,opt,name=t_fix64,json=tFix64,proto3" json:"t_fix64,omitempty"` TListI64 []int64 `protobuf:"varint,5,rep,packed,name=t_list_i64,json=tListI64,proto3" json:"t_list_i64,omitempty"` TMap map[int64]string `` /* 162-byte string literal not displayed */ TEnum TestData_EnumType `protobuf:"varint,7,opt,name=t_enum,json=tEnum,proto3,enum=TestData_EnumType" json:"t_enum,omitempty"` TObj *TestData_TestObj `protobuf:"bytes,8,opt,name=t_obj,json=tObj,proto3" json:"t_obj,omitempty"` TListObj []*TestData_TestObj `protobuf:"bytes,9,rep,name=t_list_obj,json=tListObj,proto3" json:"t_list_obj,omitempty"` TMapObj map[string]*TestData `` /* 173-byte string literal not displayed */ TListString []string `protobuf:"bytes,11,rep,name=t_list_string,json=tListString,proto3" json:"t_list_string,omitempty"` Any *anypb.Any `protobuf:"bytes,12,opt,name=any,proto3,oneof" json:"any,omitempty"` // contains filtered or unexported fields }
func (*TestData) Descriptor
deprecated
func (*TestData) GetTEnum ¶
func (x *TestData) GetTEnum() TestData_EnumType
func (*TestData) GetTListI64 ¶
func (*TestData) GetTListObj ¶
func (x *TestData) GetTListObj() []*TestData_TestObj
func (*TestData) GetTListString ¶
func (*TestData) GetTMapObj ¶
func (*TestData) GetTObj ¶
func (x *TestData) GetTObj() *TestData_TestObj
func (*TestData) GetTString ¶
func (*TestData) ProtoMessage ¶
func (*TestData) ProtoMessage()
func (*TestData) ProtoReflect ¶
func (x *TestData) ProtoReflect() protoreflect.Message
type TestData_EnumType ¶
type TestData_EnumType int32
const ( TestData_UnknownType TestData_EnumType = 0 // 必须以0开始! TestData_Test1Type TestData_EnumType = 1 TestData_Test2Type TestData_EnumType = 2 )
func (TestData_EnumType) Descriptor ¶
func (TestData_EnumType) Descriptor() protoreflect.EnumDescriptor
func (TestData_EnumType) Enum ¶
func (x TestData_EnumType) Enum() *TestData_EnumType
func (TestData_EnumType) EnumDescriptor
deprecated
func (TestData_EnumType) EnumDescriptor() ([]byte, []int)
Deprecated: Use TestData_EnumType.Descriptor instead.
func (TestData_EnumType) Number ¶
func (x TestData_EnumType) Number() protoreflect.EnumNumber
func (TestData_EnumType) String ¶
func (x TestData_EnumType) String() string
func (TestData_EnumType) Type ¶
func (TestData_EnumType) Type() protoreflect.EnumType
type TestData_TestObj ¶
type TestData_TestObj struct { TInt64 int64 `protobuf:"varint,1,opt,name=t_int64,json=tInt64,proto3" json:"t_int64,omitempty"` // contains filtered or unexported fields }
func (*TestData_TestObj) Descriptor
deprecated
func (*TestData_TestObj) Descriptor() ([]byte, []int)
Deprecated: Use TestData_TestObj.ProtoReflect.Descriptor instead.
func (*TestData_TestObj) GetTInt64 ¶
func (x *TestData_TestObj) GetTInt64() int64
func (*TestData_TestObj) ProtoMessage ¶
func (*TestData_TestObj) ProtoMessage()
func (*TestData_TestObj) ProtoReflect ¶
func (x *TestData_TestObj) ProtoReflect() protoreflect.Message
func (*TestData_TestObj) Reset ¶
func (x *TestData_TestObj) Reset()
func (*TestData_TestObj) String ¶
func (x *TestData_TestObj) String() string
type Type1 ¶
type Type1 struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Type1) Descriptor
deprecated
func (*Type1) ProtoMessage ¶
func (*Type1) ProtoMessage()
func (*Type1) ProtoReflect ¶
func (x *Type1) ProtoReflect() protoreflect.Message
type Type2 ¶
type Type2 struct { Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Type2) Descriptor
deprecated
func (*Type2) ProtoMessage ¶
func (*Type2) ProtoMessage()
func (*Type2) ProtoReflect ¶
func (x *Type2) ProtoReflect() protoreflect.Message
type Type3 ¶
type Type3 struct { Value float32 `protobuf:"fixed32,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Type3) Descriptor
deprecated
func (*Type3) ProtoMessage ¶
func (*Type3) ProtoMessage()
func (*Type3) ProtoReflect ¶
func (x *Type3) ProtoReflect() protoreflect.Message
type Type4 ¶
type Type4 struct { Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Type4) Descriptor
deprecated
func (*Type4) ProtoMessage ¶
func (*Type4) ProtoMessage()
func (*Type4) ProtoReflect ¶
func (x *Type4) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.