Documentation ¶
Overview ¶
Package my_test is a generated protocol buffer package.
This package holds interesting messages.
It is generated from these files:
my_test/test.proto
It has these top-level messages:
Request Reply OtherBase ReplyExtensions OtherReplyExtensions OldReply Communique
Index ¶
- Constants
- Variables
- type Communique
- func (m *Communique) GetData() []byte
- func (m *Communique) GetDelta() int32
- func (m *Communique) GetHeight() float32
- func (m *Communique) GetMakeMeCry() bool
- func (m *Communique) GetMaybe() bool
- func (m *Communique) GetMsg() *Reply
- func (m *Communique) GetName() string
- func (m *Communique) GetNumber() int32
- func (m *Communique) GetSomegroup() *Communique_SomeGroup
- func (m *Communique) GetTempC() float64
- func (m *Communique) GetToday() Days
- func (m *Communique) GetUnion() isCommunique_Union
- func (*Communique) ProtoMessage()
- func (m *Communique) Reset()
- func (m *Communique) String() string
- func (*Communique) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Communique_Data
- type Communique_Delta
- type Communique_Delta_
- type Communique_Height
- type Communique_Maybe
- type Communique_Msg
- type Communique_Name
- type Communique_Number
- type Communique_SomeGroup
- type Communique_Somegroup
- type Communique_TempC
- type Communique_Today
- type Days
- type HatType
- type OldReply
- func (m *OldReply) ExtensionMap() map[int32]proto.Extension
- func (*OldReply) ExtensionRangeArray() []proto.ExtensionRange
- func (m *OldReply) Marshal() ([]byte, error)
- func (m *OldReply) MarshalJSON() ([]byte, error)
- func (*OldReply) ProtoMessage()
- func (m *OldReply) Reset()
- func (m *OldReply) String() string
- func (m *OldReply) Unmarshal(buf []byte) error
- func (m *OldReply) UnmarshalJSON(buf []byte) error
- type OtherBase
- type OtherReplyExtensions
- type Reply
- type ReplyExtensions
- type Reply_Entry
- type Reply_Entry_Game
- type Request
- func (m *Request) GetDeadline() float32
- func (m *Request) GetGetKey_() string
- func (m *Request) GetHat() HatType
- func (m *Request) GetHue() Request_Color
- func (m *Request) GetKey() []int64
- func (m *Request) GetMsgMapping() map[int64]*Reply
- func (m *Request) GetNameMapping() map[int32]string
- func (m *Request) GetReset_() int32
- func (m *Request) GetSomegroup() *Request_SomeGroup
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- type Request_Color
- type Request_SomeGroup
Constants ¶
View Source
const Default_Reply_Entry_Value int64 = 7
Variables ¶
View Source
var Days_name = map[int32]string{
1: "MONDAY",
2: "TUESDAY",
}
View Source
var Days_value = map[string]int32{
"MONDAY": 1,
"TUESDAY": 2,
"LUNDI": 1,
}
View Source
var Default_Request_Deadline float32 = float32(math.Inf(1))
View Source
var E_Donut = &proto.ExtensionDesc{ ExtendedType: (*Reply)(nil), ExtensionType: (*OtherReplyExtensions)(nil), Field: 106, Name: "my.test.donut", Tag: "bytes,106,opt,name=donut", }
View Source
var E_ReplyExtensions_Carrot = &proto.ExtensionDesc{ ExtendedType: (*Reply)(nil), ExtensionType: (*ReplyExtensions)(nil), Field: 105, Name: "my.test.ReplyExtensions.carrot", Tag: "bytes,105,opt,name=carrot", }
View Source
var E_ReplyExtensions_Donut = &proto.ExtensionDesc{ ExtendedType: (*OtherBase)(nil), ExtensionType: (*ReplyExtensions)(nil), Field: 101, Name: "my.test.ReplyExtensions.donut", Tag: "bytes,101,opt,name=donut", }
View Source
var E_ReplyExtensions_Time = &proto.ExtensionDesc{ ExtendedType: (*Reply)(nil), ExtensionType: (*float64)(nil), Field: 101, Name: "my.test.ReplyExtensions.time", Tag: "fixed64,101,opt,name=time", }
View Source
var E_Tag = &proto.ExtensionDesc{ ExtendedType: (*Reply)(nil), ExtensionType: (*string)(nil), Field: 103, Name: "my.test.tag", Tag: "bytes,103,opt,name=tag", }
View Source
var HatType_name = map[int32]string{
1: "FEDORA",
2: "FEZ",
}
View Source
var HatType_value = map[string]int32{
"FEDORA": 1,
"FEZ": 2,
}
View Source
var Reply_Entry_Game_name = map[int32]string{
1: "FOOTBALL",
2: "TENNIS",
}
View Source
var Reply_Entry_Game_value = map[string]int32{
"FOOTBALL": 1,
"TENNIS": 2,
}
View Source
var Request_Color_name = map[int32]string{
0: "RED",
1: "GREEN",
2: "BLUE",
}
View Source
var Request_Color_value = map[string]int32{
"RED": 0,
"GREEN": 1,
"BLUE": 2,
}
Functions ¶
This section is empty.
Types ¶
type Communique ¶
type Communique struct { MakeMeCry *bool `protobuf:"varint,1,opt,name=make_me_cry" json:"make_me_cry,omitempty"` // This is a oneof, called "union". // // Types that are valid to be assigned to Union: // *Communique_Number // *Communique_Name // *Communique_Data // *Communique_TempC // *Communique_Height // *Communique_Today // *Communique_Maybe // *Communique_Delta_ // *Communique_Msg // *Communique_Somegroup Union isCommunique_Union `protobuf_oneof:"union"` XXX_unrecognized []byte `json:"-"` }
func (*Communique) GetData ¶
func (m *Communique) GetData() []byte
func (*Communique) GetDelta ¶
func (m *Communique) GetDelta() int32
func (*Communique) GetHeight ¶
func (m *Communique) GetHeight() float32
func (*Communique) GetMakeMeCry ¶
func (m *Communique) GetMakeMeCry() bool
func (*Communique) GetMaybe ¶
func (m *Communique) GetMaybe() bool
func (*Communique) GetMsg ¶
func (m *Communique) GetMsg() *Reply
func (*Communique) GetName ¶
func (m *Communique) GetName() string
func (*Communique) GetNumber ¶
func (m *Communique) GetNumber() int32
func (*Communique) GetSomegroup ¶
func (m *Communique) GetSomegroup() *Communique_SomeGroup
func (*Communique) GetTempC ¶
func (m *Communique) GetTempC() float64
func (*Communique) GetToday ¶
func (m *Communique) GetToday() Days
func (*Communique) GetUnion ¶
func (m *Communique) GetUnion() isCommunique_Union
func (*Communique) ProtoMessage ¶
func (*Communique) ProtoMessage()
func (*Communique) Reset ¶
func (m *Communique) Reset()
func (*Communique) String ¶
func (m *Communique) String() string
func (*Communique) XXX_OneofFuncs ¶
func (*Communique) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type Communique_Data ¶
type Communique_Data struct {
Data []byte `protobuf:"bytes,7,opt,name=data,oneof"`
}
type Communique_Delta ¶
type Communique_Delta struct {
XXX_unrecognized []byte `json:"-"`
}
func (*Communique_Delta) ProtoMessage ¶
func (*Communique_Delta) ProtoMessage()
func (*Communique_Delta) Reset ¶
func (m *Communique_Delta) Reset()
func (*Communique_Delta) String ¶
func (m *Communique_Delta) String() string
type Communique_Delta_ ¶
type Communique_Delta_ struct {
Delta int32 `protobuf:"zigzag32,12,opt,name=delta,oneof"`
}
type Communique_Height ¶
type Communique_Height struct {
Height float32 `protobuf:"fixed32,9,opt,name=height,oneof"`
}
type Communique_Maybe ¶
type Communique_Maybe struct {
Maybe bool `protobuf:"varint,11,opt,name=maybe,oneof"`
}
type Communique_Msg ¶
type Communique_Msg struct {
Msg *Reply `protobuf:"bytes,13,opt,name=msg,oneof"`
}
type Communique_Name ¶
type Communique_Name struct {
Name string `protobuf:"bytes,6,opt,name=name,oneof"`
}
type Communique_Number ¶
type Communique_Number struct {
Number int32 `protobuf:"varint,5,opt,name=number,oneof"`
}
type Communique_SomeGroup ¶
type Communique_SomeGroup struct { Member *string `protobuf:"bytes,15,opt,name=member" json:"member,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Communique_SomeGroup) GetMember ¶
func (m *Communique_SomeGroup) GetMember() string
func (*Communique_SomeGroup) ProtoMessage ¶
func (*Communique_SomeGroup) ProtoMessage()
func (*Communique_SomeGroup) Reset ¶
func (m *Communique_SomeGroup) Reset()
func (*Communique_SomeGroup) String ¶
func (m *Communique_SomeGroup) String() string
type Communique_Somegroup ¶
type Communique_Somegroup struct {
Somegroup *Communique_SomeGroup `protobuf:"group,14,opt,name=SomeGroup,oneof"`
}
type Communique_TempC ¶
type Communique_TempC struct {
TempC float64 `protobuf:"fixed64,8,opt,name=temp_c,oneof"`
}
type Communique_Today ¶
type Communique_Today struct {
Today Days `protobuf:"varint,10,opt,name=today,enum=my.test.Days,oneof"`
}
type HatType ¶
type HatType int32
const Default_Request_Hat HatType = HatType_FEDORA
func (*HatType) UnmarshalJSON ¶
type OldReply ¶
type OldReply struct { XXX_extensions map[int32]proto.Extension `json:"-"` XXX_unrecognized []byte `json:"-"` }
func (*OldReply) ExtensionRangeArray ¶
func (*OldReply) ExtensionRangeArray() []proto.ExtensionRange
func (*OldReply) MarshalJSON ¶
func (*OldReply) ProtoMessage ¶
func (*OldReply) ProtoMessage()
func (*OldReply) UnmarshalJSON ¶
type OtherBase ¶
type OtherBase struct { Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` XXX_extensions map[int32]proto.Extension `json:"-"` XXX_unrecognized []byte `json:"-"` }
func (*OtherBase) ExtensionRangeArray ¶
func (*OtherBase) ExtensionRangeArray() []proto.ExtensionRange
func (*OtherBase) ProtoMessage ¶
func (*OtherBase) ProtoMessage()
type OtherReplyExtensions ¶
type OtherReplyExtensions struct { Key *int32 `protobuf:"varint,1,opt,name=key" json:"key,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*OtherReplyExtensions) GetKey ¶
func (m *OtherReplyExtensions) GetKey() int32
func (*OtherReplyExtensions) ProtoMessage ¶
func (*OtherReplyExtensions) ProtoMessage()
func (*OtherReplyExtensions) Reset ¶
func (m *OtherReplyExtensions) Reset()
func (*OtherReplyExtensions) String ¶
func (m *OtherReplyExtensions) String() string
type Reply ¶
type Reply struct { Found []*Reply_Entry `protobuf:"bytes,1,rep,name=found" json:"found,omitempty"` CompactKeys []int32 `protobuf:"varint,2,rep,packed,name=compact_keys" json:"compact_keys,omitempty"` XXX_extensions map[int32]proto.Extension `json:"-"` XXX_unrecognized []byte `json:"-"` }
func (*Reply) ExtensionRangeArray ¶
func (*Reply) ExtensionRangeArray() []proto.ExtensionRange
func (*Reply) GetCompactKeys ¶
func (*Reply) GetFound ¶
func (m *Reply) GetFound() []*Reply_Entry
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
type ReplyExtensions ¶
type ReplyExtensions struct {
XXX_unrecognized []byte `json:"-"`
}
func (*ReplyExtensions) ProtoMessage ¶
func (*ReplyExtensions) ProtoMessage()
func (*ReplyExtensions) Reset ¶
func (m *ReplyExtensions) Reset()
func (*ReplyExtensions) String ¶
func (m *ReplyExtensions) String() string
type Reply_Entry ¶
type Reply_Entry struct { KeyThatNeeds_1234Camel_CasIng *int64 `protobuf:"varint,1,req,name=key_that_needs_1234camel_CasIng" json:"key_that_needs_1234camel_CasIng,omitempty"` Value *int64 `protobuf:"varint,2,opt,name=value,def=7" json:"value,omitempty"` XMyFieldName_2 *int64 `protobuf:"varint,3,opt,name=_my_field_name_2" json:"_my_field_name_2,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Reply_Entry) GetKeyThatNeeds_1234Camel_CasIng ¶
func (m *Reply_Entry) GetKeyThatNeeds_1234Camel_CasIng() int64
func (*Reply_Entry) GetValue ¶
func (m *Reply_Entry) GetValue() int64
func (*Reply_Entry) GetXMyFieldName_2 ¶
func (m *Reply_Entry) GetXMyFieldName_2() int64
func (*Reply_Entry) ProtoMessage ¶
func (*Reply_Entry) ProtoMessage()
func (*Reply_Entry) Reset ¶
func (m *Reply_Entry) Reset()
func (*Reply_Entry) String ¶
func (m *Reply_Entry) String() string
type Reply_Entry_Game ¶
type Reply_Entry_Game int32
const ( Reply_Entry_FOOTBALL Reply_Entry_Game = 1 Reply_Entry_TENNIS Reply_Entry_Game = 2 )
func (Reply_Entry_Game) Enum ¶
func (x Reply_Entry_Game) Enum() *Reply_Entry_Game
func (Reply_Entry_Game) String ¶
func (x Reply_Entry_Game) String() string
func (*Reply_Entry_Game) UnmarshalJSON ¶
func (x *Reply_Entry_Game) UnmarshalJSON(data []byte) error
type Request ¶
type Request struct { Key []int64 `protobuf:"varint,1,rep,name=key" json:"key,omitempty"` // optional imp.ImportedMessage imported_message = 2; Hue *Request_Color `protobuf:"varint,3,opt,name=hue,enum=my.test.Request_Color" json:"hue,omitempty"` Hat *HatType `protobuf:"varint,4,opt,name=hat,enum=my.test.HatType,def=1" json:"hat,omitempty"` // optional imp.ImportedMessage.Owner owner = 6; Deadline *float32 `protobuf:"fixed32,7,opt,name=deadline,def=inf" json:"deadline,omitempty"` Somegroup *Request_SomeGroup `protobuf:"group,8,opt,name=SomeGroup" json:"somegroup,omitempty"` // This is a map field. It will generate map[int32]string. NameMapping map[int32]string `` /* 146-byte string literal not displayed */ // This is a map field whose value type is a message. MsgMapping map[int64]*Reply `` /* 146-byte string literal not displayed */ Reset_ *int32 `protobuf:"varint,12,opt,name=reset" json:"reset,omitempty"` // This field should not conflict with any getters. GetKey_ *string `protobuf:"bytes,16,opt,name=get_key" json:"get_key,omitempty"` XXX_unrecognized []byte `json:"-"` }
This is a message that might be sent somewhere.
func (*Request) GetDeadline ¶
func (*Request) GetGetKey_ ¶
func (*Request) GetHue ¶
func (m *Request) GetHue() Request_Color
func (*Request) GetMsgMapping ¶
func (*Request) GetNameMapping ¶
func (*Request) GetSomegroup ¶
func (m *Request) GetSomegroup() *Request_SomeGroup
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Request_Color ¶
type Request_Color int32
const ( Request_RED Request_Color = 0 Request_GREEN Request_Color = 1 Request_BLUE Request_Color = 2 )
func (Request_Color) Enum ¶
func (x Request_Color) Enum() *Request_Color
func (Request_Color) String ¶
func (x Request_Color) String() string
func (*Request_Color) UnmarshalJSON ¶
func (x *Request_Color) UnmarshalJSON(data []byte) error
type Request_SomeGroup ¶
type Request_SomeGroup struct { GroupField *int32 `protobuf:"varint,9,opt,name=group_field" json:"group_field,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Request_SomeGroup) GetGroupField ¶
func (m *Request_SomeGroup) GetGroupField() int32
func (*Request_SomeGroup) ProtoMessage ¶
func (*Request_SomeGroup) ProtoMessage()
func (*Request_SomeGroup) Reset ¶
func (m *Request_SomeGroup) Reset()
func (*Request_SomeGroup) String ¶
func (m *Request_SomeGroup) String() string
Click to show internal directories.
Click to hide internal directories.