Documentation
¶
Index ¶
- Variables
- type Group
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *User) FastWrite(buf []byte) (offset int)
- func (x *User) GetId() int32
- func (x *User) GetName() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) Size() (n int)
- func (x *User) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Group_name = map[int32]string{ 0: "GROUP_A", 1: "GROUP_B", } Group_value = map[string]int32{ "GROUP_A": 0, "GROUP_B": 1, } )
Enum value maps for Group.
View Source
var File_user_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group int32
func (Group) Descriptor ¶
func (Group) Descriptor() protoreflect.EnumDescriptor
func (Group) EnumDescriptor
deprecated
func (Group) Number ¶
func (x Group) Number() protoreflect.EnumNumber
func (Group) Type ¶
func (Group) Type() protoreflect.EnumType
type User ¶
type User struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.