Documentation
¶
Index ¶
- Variables
- type MultiUser
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAge() int32
- func (x *User) GetId() int32
- func (x *User) GetName() string
- func (x *User) GetPasswd() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type MultiUser ¶
type MultiUser struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*MultiUser) Descriptor
deprecated
func (*MultiUser) ProtoMessage ¶
func (*MultiUser) ProtoMessage()
func (*MultiUser) ProtoReflect ¶
func (x *MultiUser) ProtoReflect() protoreflect.Message
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"` Age int32 `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty"` Passwd string `protobuf:"bytes,4,opt,name=passwd,proto3" json:"passwd,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