Documentation ¶
Overview ¶
Package example is a generated protocol buffer package.
It is generated from these files:
examples/protobuf/pb/gen.proto
It has these top-level messages:
M0 M1 M2 M3 M4 M5 M6 M7 M8 M9 M10 M11 M12 M13 M14 M15 M16 M17 M18 M19 M20 M21 M22 M23 M24 M25
Index ¶
Constants ¶
View Source
const Default_M1_F int64 = -123123123123
View Source
const Default_M3_F uint64 = 123123123123
Variables ¶
View Source
var Corpus_name = map[int32]string{
0: "UNIVERSAL",
1: "WEB",
2: "IMAGES",
42: "LOCAL",
155: "NEWS",
123123: "PRODUCTS",
}
View Source
var Corpus_value = map[string]int32{
"UNIVERSAL": 0,
"WEB": 1,
"IMAGES": 2,
"LOCAL": 42,
"NEWS": 155,
"PRODUCTS": 123123,
}
View Source
var E_F1 = &proto.ExtensionDesc{ ExtendedType: (*M18)(nil), ExtensionType: (*int32)(nil), Field: 126, Name: "example.f1", Tag: "varint,126,opt,name=f1", }
Functions ¶
This section is empty.
Types ¶
type Corpus ¶
type Corpus int32
const Default_M16_F Corpus = Corpus_UNIVERSAL
func (*Corpus) UnmarshalJSON ¶
type M0 ¶
type M0 struct { F *int32 `protobuf:"varint,1,req,name=f" json:"f,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M0) ProtoMessage ¶
func (*M0) ProtoMessage()
type M1 ¶
type M1 struct { F *int64 `protobuf:"varint,1,req,name=f,def=-123123123123" json:"f,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M1) ProtoMessage ¶
func (*M1) ProtoMessage()
type M10 ¶
type M10 struct { F *float64 `protobuf:"fixed64,1,opt,name=f" json:"f,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M10) ProtoMessage ¶
func (*M10) ProtoMessage()
type M11 ¶
type M11 struct { F *float32 `protobuf:"fixed32,1,opt,name=f" json:"f,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M11) ProtoMessage ¶
func (*M11) ProtoMessage()
type M12 ¶
type M12 struct { F *bool `protobuf:"varint,1,opt,name=f" json:"f,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M12) ProtoMessage ¶
func (*M12) ProtoMessage()
type M13 ¶
type M13 struct { F *string `protobuf:"bytes,1,opt,name=f" json:"f,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M13) ProtoMessage ¶
func (*M13) ProtoMessage()
type M14 ¶
type M14 struct { F []byte `protobuf:"bytes,1,opt,name=f" json:"f,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M14) ProtoMessage ¶
func (*M14) ProtoMessage()
type M15 ¶
type M15 struct { F0 *int32 `protobuf:"varint,1,req,name=f0" json:"f0,omitempty"` F1 *string `protobuf:"bytes,2,opt,name=f1" json:"f1,omitempty"` F2 []byte `protobuf:"bytes,3,opt,name=f2" json:"f2,omitempty"` F4 *bool `protobuf:"varint,5,opt,name=f4" json:"f4,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M15) ProtoMessage ¶
func (*M15) ProtoMessage()
type M16 ¶
type M16 struct { F *Corpus `protobuf:"varint,1,opt,name=f,enum=example.Corpus,def=0" json:"f,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M16) ProtoMessage ¶
func (*M16) ProtoMessage()
type M17 ¶
type M17 struct { F *M15 `protobuf:"bytes,1,req,name=f" json:"f,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M17) ProtoMessage ¶
func (*M17) ProtoMessage()
type M18 ¶
type M18 struct { F0 *string `protobuf:"bytes,1,opt,name=f0" json:"f0,omitempty"` XXX_extensions map[int32]proto.Extension `json:"-"` XXX_unrecognized []byte `json:"-"` }
func (*M18) ExtensionRangeArray ¶
func (*M18) ExtensionRangeArray() []proto.ExtensionRange
func (*M18) ProtoMessage ¶
func (*M18) ProtoMessage()
type M19 ¶
type M19 struct { F []int32 `protobuf:"varint,1,rep,name=f" json:"f,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M19) ProtoMessage ¶
func (*M19) ProtoMessage()
type M2 ¶
type M2 struct { F *uint32 `protobuf:"varint,1,opt,name=f" json:"f,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M2) ProtoMessage ¶
func (*M2) ProtoMessage()
type M20 ¶
type M20 struct { F []string `protobuf:"bytes,1,rep,name=f" json:"f,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M20) ProtoMessage ¶
func (*M20) ProtoMessage()
type M21 ¶
type M21 struct { F []*M15 `protobuf:"bytes,1,rep,name=f" json:"f,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M21) ProtoMessage ¶
func (*M21) ProtoMessage()
type M22 ¶
type M22 struct { F []*M2 `protobuf:"bytes,1,rep,name=f" json:"f,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M22) ProtoMessage ¶
func (*M22) ProtoMessage()
type M23 ¶
type M23 struct { F map[int32]string `protobuf:"bytes,1,rep,name=f" json:"f,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` XXX_unrecognized []byte `json:"-"` }
func (*M23) ProtoMessage ¶
func (*M23) ProtoMessage()
type M24 ¶
type M24 struct { F map[string]*M2 `protobuf:"bytes,1,rep,name=f" json:"f,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` XXX_unrecognized []byte `json:"-"` }
func (*M24) ProtoMessage ¶
func (*M24) ProtoMessage()
type M25 ¶
type M25 struct { F0 *string `protobuf:"bytes,4,opt,name=f0" json:"f0,omitempty"` F1 *M2 `protobuf:"bytes,9,opt,name=f1" json:"f1,omitempty"` F2 *Corpus `protobuf:"varint,127,opt,name=f2,enum=example.Corpus" json:"f2,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M25) ProtoMessage ¶
func (*M25) ProtoMessage()
type M3 ¶
type M3 struct { F *uint64 `protobuf:"varint,1,opt,name=f,def=123123123123" json:"f,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M3) ProtoMessage ¶
func (*M3) ProtoMessage()
type M4 ¶
type M4 struct { F *int32 `protobuf:"zigzag32,1,opt,name=f" json:"f,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M4) ProtoMessage ¶
func (*M4) ProtoMessage()
type M5 ¶
type M5 struct { F *int64 `protobuf:"zigzag64,1,opt,name=f" json:"f,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M5) ProtoMessage ¶
func (*M5) ProtoMessage()
type M6 ¶
type M6 struct { F *uint32 `protobuf:"fixed32,1,opt,name=f" json:"f,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M6) ProtoMessage ¶
func (*M6) ProtoMessage()
type M7 ¶
type M7 struct { F *uint64 `protobuf:"fixed64,1,opt,name=f" json:"f,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M7) ProtoMessage ¶
func (*M7) ProtoMessage()
type M8 ¶
type M8 struct { F *int32 `protobuf:"fixed32,1,opt,name=f" json:"f,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*M8) ProtoMessage ¶
func (*M8) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.