Documentation ¶
Overview ¶
Package HTTPUseProtoBuf is a generated protocol buffer package.
It is generated from these files:
web.proto
It has these top-level messages:
MsgCmplx MsgOuter MsgInner Register Student MsgArr Test
Index ¶
- Constants
- Variables
- type FOO
- type MsgArr
- type MsgCmplx
- func (*MsgCmplx) Descriptor() ([]byte, []int)
- func (m *MsgCmplx) GetMoney() []int32
- func (m *MsgCmplx) GetOut() *MsgOuter
- func (m *MsgCmplx) GetReg() *Register
- func (m *MsgCmplx) GetStu() []*Student
- func (m *MsgCmplx) GetTag() string
- func (m *MsgCmplx) GetText() []string
- func (*MsgCmplx) ProtoMessage()
- func (m *MsgCmplx) Reset()
- func (m *MsgCmplx) String() string
- type MsgInner
- type MsgOuter
- type Register
- type Student
- type Test
- type Test_OptionalGroup
Constants ¶
View Source
const Default_Test_Type int32 = 77
Variables ¶
View Source
var FOO_name = map[int32]string{
17: "X",
}
View Source
var FOO_value = map[string]int32{
"X": 17,
}
Functions ¶
This section is empty.
Types ¶
type FOO ¶
type FOO int32
const (
FOO_X FOO = 17
)
func (FOO) EnumDescriptor ¶
func (*FOO) UnmarshalJSON ¶
type MsgArr ¶
type MsgArr struct { Money []int32 `protobuf:"varint,1,rep,name=money" json:"money,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*MsgArr) Descriptor ¶
func (*MsgArr) ProtoMessage ¶
func (*MsgArr) ProtoMessage()
type MsgCmplx ¶
type MsgCmplx struct { Out *MsgOuter `protobuf:"bytes,1,opt,name=out" json:"out,omitempty"` Reg *Register `protobuf:"bytes,2,req,name=reg" json:"reg,omitempty"` Money []int32 `protobuf:"varint,3,rep,name=money" json:"money,omitempty"` Text []string `protobuf:"bytes,4,rep,name=text" json:"text,omitempty"` Stu []*Student `protobuf:"bytes,5,rep,name=stu" json:"stu,omitempty"` Tag *string `protobuf:"bytes,6,opt,name=tag" json:"tag,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*MsgCmplx) Descriptor ¶
func (*MsgCmplx) ProtoMessage ¶
func (*MsgCmplx) ProtoMessage()
type MsgInner ¶
type MsgInner struct { Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*MsgInner) Descriptor ¶
func (*MsgInner) ProtoMessage ¶
func (*MsgInner) ProtoMessage()
type MsgOuter ¶
type MsgOuter struct { In *MsgInner `protobuf:"bytes,1,opt,name=in" json:"in,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*MsgOuter) Descriptor ¶
func (*MsgOuter) ProtoMessage ¶
func (*MsgOuter) ProtoMessage()
type Register ¶
type Register struct { Username *string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` Password *string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"` Age *int32 `protobuf:"varint,3,opt,name=age" json:"age,omitempty"` Email *string `protobuf:"bytes,4,opt,name=email" json:"email,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Register) Descriptor ¶
func (*Register) GetPassword ¶
func (*Register) GetUsername ¶
func (*Register) ProtoMessage ¶
func (*Register) ProtoMessage()
type Student ¶
type Student struct { Id *int32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` Username *string `protobuf:"bytes,2,req,name=username" json:"username,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Student) Descriptor ¶
func (*Student) GetUsername ¶
func (*Student) ProtoMessage ¶
func (*Student) ProtoMessage()
type Test ¶
type Test struct { Label *string `protobuf:"bytes,1,req,name=label" json:"label,omitempty"` Type *int32 `protobuf:"varint,2,opt,name=type,def=77" json:"type,omitempty"` Reps []int64 `protobuf:"varint,3,rep,name=reps" json:"reps,omitempty"` Optionalgroup *Test_OptionalGroup `protobuf:"group,4,opt,name=OptionalGroup,json=optionalgroup" json:"optionalgroup,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Test) Descriptor ¶
func (*Test) GetOptionalgroup ¶
func (m *Test) GetOptionalgroup() *Test_OptionalGroup
func (*Test) ProtoMessage ¶
func (*Test) ProtoMessage()
type Test_OptionalGroup ¶
type Test_OptionalGroup struct { RequiredField *string `protobuf:"bytes,5,req,name=RequiredField" json:"RequiredField,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Test_OptionalGroup) Descriptor ¶
func (*Test_OptionalGroup) Descriptor() ([]byte, []int)
func (*Test_OptionalGroup) GetRequiredField ¶
func (m *Test_OptionalGroup) GetRequiredField() string
func (*Test_OptionalGroup) ProtoMessage ¶
func (*Test_OptionalGroup) ProtoMessage()
func (*Test_OptionalGroup) Reset ¶
func (m *Test_OptionalGroup) Reset()
func (*Test_OptionalGroup) String ¶
func (m *Test_OptionalGroup) String() string
Click to show internal directories.
Click to hide internal directories.