Documentation
¶
Index ¶
- Variables
- type EnumType
- type Main
- func (*Main) Descriptor() ([]byte, []int)deprecated
- func (x *Main) GetBigNumberFixed32() uint32
- func (x *Main) GetBigNumberFixed64() uint64
- func (x *Main) GetBigNumberString() string
- func (x *Main) GetBigNumberVarint() uint64
- func (x *Main) GetRepeatedPackedDouble() []float64
- func (x *Main) GetRepeatedPackedFloat() []float32
- func (x *Main) GetRepeatedPackedUint32() []uint32
- func (x *Main) GetRepeatedString() []string
- func (x *Main) GetRepeatedUint32() []uint32
- func (x *Main) GetSimpleBool() bool
- func (x *Main) GetSimpleBytes() []byte
- func (x *Main) GetSimpleDouble() float64
- func (x *Main) GetSimpleEnum() EnumType
- func (x *Main) GetSimpleFixed32() uint32
- func (x *Main) GetSimpleFixed64() uint64
- func (x *Main) GetSimpleFloat() float32
- func (x *Main) GetSimpleInt32() int32
- func (x *Main) GetSimpleInt64() int64
- func (x *Main) GetSimpleSfixed32() int32
- func (x *Main) GetSimpleSfixed64() int64
- func (x *Main) GetSimpleSint32() int32
- func (x *Main) GetSimpleSint64() int64
- func (x *Main) GetSimpleString() string
- func (x *Main) GetSimpleUint32() uint32
- func (x *Main) GetSimpleUint64() uint64
- func (x *Main) GetSub() *Main_Submessage
- func (*Main) ProtoMessage()
- func (x *Main) ProtoReflect() protoreflect.Message
- func (x *Main) Reset()
- func (x *Main) String() string
- type Main_Submessage
- func (*Main_Submessage) Descriptor() ([]byte, []int)deprecated
- func (x *Main_Submessage) GetNumber() string
- func (x *Main_Submessage) GetType() EnumType
- func (*Main_Submessage) ProtoMessage()
- func (x *Main_Submessage) ProtoReflect() protoreflect.Message
- func (x *Main_Submessage) Reset()
- func (x *Main_Submessage) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EnumType_name = map[int32]string{ 0: "ENUM_TYPE_UNSPECIFIED", 1: "ENUM_TYPE_VALUE1", 2: "ENUM_TYPE_VALUE2", 3: "ENUM_TYPE_VALUE3", } EnumType_value = map[string]int32{ "ENUM_TYPE_UNSPECIFIED": 0, "ENUM_TYPE_VALUE1": 1, "ENUM_TYPE_VALUE2": 2, "ENUM_TYPE_VALUE3": 3, } )
Enum value maps for EnumType.
View Source
var File_test_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EnumType ¶
type EnumType int32
func (EnumType) Descriptor ¶
func (EnumType) Descriptor() protoreflect.EnumDescriptor
func (EnumType) EnumDescriptor
deprecated
func (EnumType) Number ¶
func (x EnumType) Number() protoreflect.EnumNumber
func (EnumType) Type ¶
func (EnumType) Type() protoreflect.EnumType
type Main ¶
type Main struct {
SimpleInt32 int32 `protobuf:"varint,1,opt,name=simple_int32,json=simpleInt32,proto3" json:"simple_int32,omitempty"`
SimpleInt64 int64 `protobuf:"varint,2,opt,name=simple_int64,json=simpleInt64,proto3" json:"simple_int64,omitempty"`
SimpleUint32 uint32 `protobuf:"varint,3,opt,name=simple_uint32,json=simpleUint32,proto3" json:"simple_uint32,omitempty"`
SimpleUint64 uint64 `protobuf:"varint,4,opt,name=simple_uint64,json=simpleUint64,proto3" json:"simple_uint64,omitempty"`
SimpleSint32 int32 `protobuf:"zigzag32,5,opt,name=simple_sint32,json=simpleSint32,proto3" json:"simple_sint32,omitempty"`
SimpleSint64 int64 `protobuf:"zigzag64,6,opt,name=simple_sint64,json=simpleSint64,proto3" json:"simple_sint64,omitempty"`
SimpleBool bool `protobuf:"varint,7,opt,name=simple_bool,json=simpleBool,proto3" json:"simple_bool,omitempty"`
SimpleEnum EnumType `protobuf:"varint,8,opt,name=simple_enum,json=simpleEnum,proto3,enum=test.EnumType" json:"simple_enum,omitempty"`
SimpleFixed64 uint64 `protobuf:"fixed64,9,opt,name=simple_fixed64,json=simpleFixed64,proto3" json:"simple_fixed64,omitempty"`
SimpleSfixed64 int64 `protobuf:"fixed64,10,opt,name=simple_sfixed64,json=simpleSfixed64,proto3" json:"simple_sfixed64,omitempty"`
SimpleDouble float64 `protobuf:"fixed64,11,opt,name=simple_double,json=simpleDouble,proto3" json:"simple_double,omitempty"`
SimpleString string `protobuf:"bytes,12,opt,name=simple_string,json=simpleString,proto3" json:"simple_string,omitempty"`
SimpleBytes []byte `protobuf:"bytes,13,opt,name=simple_bytes,json=simpleBytes,proto3" json:"simple_bytes,omitempty"`
SimpleFixed32 uint32 `protobuf:"fixed32,14,opt,name=simple_fixed32,json=simpleFixed32,proto3" json:"simple_fixed32,omitempty"`
SimpleSfixed32 int32 `protobuf:"fixed32,15,opt,name=simple_sfixed32,json=simpleSfixed32,proto3" json:"simple_sfixed32,omitempty"`
SimpleFloat float32 `protobuf:"fixed32,16,opt,name=simple_float,json=simpleFloat,proto3" json:"simple_float,omitempty"`
Sub *Main_Submessage `protobuf:"bytes,17,opt,name=sub,proto3" json:"sub,omitempty"`
RepeatedUint32 []uint32 `protobuf:"varint,18,rep,name=repeated_uint32,json=repeatedUint32,proto3" json:"repeated_uint32,omitempty"`
RepeatedString []string `protobuf:"bytes,19,rep,name=repeated_string,json=repeatedString,proto3" json:"repeated_string,omitempty"`
RepeatedPackedUint32 []uint32 `` /* 132-byte string literal not displayed */
RepeatedPackedFloat []float32 `` /* 130-byte string literal not displayed */
RepeatedPackedDouble []float64 `` /* 133-byte string literal not displayed */
BigNumberVarint uint64 `protobuf:"varint,12313,opt,name=big_number_varint,json=bigNumberVarint,proto3" json:"big_number_varint,omitempty"`
BigNumberFixed32 uint32 `protobuf:"fixed32,12314,opt,name=big_number_fixed32,json=bigNumberFixed32,proto3" json:"big_number_fixed32,omitempty"`
BigNumberFixed64 uint64 `protobuf:"fixed64,12315,opt,name=big_number_fixed64,json=bigNumberFixed64,proto3" json:"big_number_fixed64,omitempty"`
BigNumberString string `protobuf:"bytes,12316,opt,name=big_number_string,json=bigNumberString,proto3" json:"big_number_string,omitempty"`
// contains filtered or unexported fields
}
func (*Main) Descriptor
deprecated
func (*Main) GetBigNumberFixed32 ¶
func (*Main) GetBigNumberFixed64 ¶
func (*Main) GetBigNumberString ¶
func (*Main) GetBigNumberVarint ¶
func (*Main) GetRepeatedPackedDouble ¶
func (*Main) GetRepeatedPackedFloat ¶
func (*Main) GetRepeatedPackedUint32 ¶
func (*Main) GetRepeatedString ¶
func (*Main) GetRepeatedUint32 ¶
func (*Main) GetSimpleBool ¶
func (*Main) GetSimpleBytes ¶
func (*Main) GetSimpleDouble ¶
func (*Main) GetSimpleEnum ¶
func (*Main) GetSimpleFixed32 ¶
func (*Main) GetSimpleFixed64 ¶
func (*Main) GetSimpleFloat ¶
func (*Main) GetSimpleInt32 ¶
func (*Main) GetSimpleInt64 ¶
func (*Main) GetSimpleSfixed32 ¶
func (*Main) GetSimpleSfixed64 ¶
func (*Main) GetSimpleSint32 ¶
func (*Main) GetSimpleSint64 ¶
func (*Main) GetSimpleString ¶
func (*Main) GetSimpleUint32 ¶
func (*Main) GetSimpleUint64 ¶
func (*Main) GetSub ¶
func (x *Main) GetSub() *Main_Submessage
func (*Main) ProtoMessage ¶
func (*Main) ProtoMessage()
func (*Main) ProtoReflect ¶
func (x *Main) ProtoReflect() protoreflect.Message
type Main_Submessage ¶
type Main_Submessage struct {
Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
Type EnumType `protobuf:"varint,2,opt,name=type,proto3,enum=test.EnumType" json:"type,omitempty"`
// contains filtered or unexported fields
}
func (*Main_Submessage) Descriptor
deprecated
func (*Main_Submessage) Descriptor() ([]byte, []int)
Deprecated: Use Main_Submessage.ProtoReflect.Descriptor instead.
func (*Main_Submessage) GetNumber ¶
func (x *Main_Submessage) GetNumber() string
func (*Main_Submessage) GetType ¶
func (x *Main_Submessage) GetType() EnumType
func (*Main_Submessage) ProtoMessage ¶
func (*Main_Submessage) ProtoMessage()
func (*Main_Submessage) ProtoReflect ¶
func (x *Main_Submessage) ProtoReflect() protoreflect.Message
func (*Main_Submessage) Reset ¶
func (x *Main_Submessage) Reset()
func (*Main_Submessage) String ¶
func (x *Main_Submessage) String() string
Click to show internal directories.
Click to hide internal directories.