Documentation ¶
Overview ¶
Package jsonpb is a generated protocol buffer package.
It is generated from these files:
more_test_objects.proto test_objects.proto
It has these top-level messages:
Simple3 Mappy Simple Repeats Widget Maps MsgWithOneof Real Complex
Index ¶
- Variables
- type Complex
- type Mappy
- func (m *Mappy) GetBooly() map[bool]bool
- func (m *Mappy) GetBuggy() map[int64]string
- func (m *Mappy) GetNummy() map[int64]int32
- func (m *Mappy) GetObjjy() map[int32]*Simple3
- func (m *Mappy) GetStrry() map[string]string
- func (*Mappy) ProtoMessage()
- func (m *Mappy) Reset()
- func (m *Mappy) String() string
- type Maps
- type MsgWithOneof
- func (m *MsgWithOneof) GetSalary() int64
- func (m *MsgWithOneof) GetTitle() string
- func (m *MsgWithOneof) GetUnion() isMsgWithOneof_Union
- func (*MsgWithOneof) ProtoMessage()
- func (m *MsgWithOneof) Reset()
- func (m *MsgWithOneof) String() string
- func (*MsgWithOneof) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type MsgWithOneof_Salary
- type MsgWithOneof_Title
- type Real
- type Repeats
- func (m *Repeats) GetRBool() []bool
- func (m *Repeats) GetRBytes() [][]byte
- func (m *Repeats) GetRDouble() []float64
- func (m *Repeats) GetRFloat() []float32
- func (m *Repeats) GetRInt32() []int32
- func (m *Repeats) GetRInt64() []int64
- func (m *Repeats) GetRSint32() []int32
- func (m *Repeats) GetRSint64() []int64
- func (m *Repeats) GetRString() []string
- func (m *Repeats) GetRUint32() []uint32
- func (m *Repeats) GetRUint64() []uint64
- func (*Repeats) ProtoMessage()
- func (m *Repeats) Reset()
- func (m *Repeats) String() string
- type Simple
- func (m *Simple) GetOBool() bool
- func (m *Simple) GetOBytes() []byte
- func (m *Simple) GetODouble() float64
- func (m *Simple) GetOFloat() float32
- func (m *Simple) GetOInt32() int32
- func (m *Simple) GetOInt64() int64
- func (m *Simple) GetOSint32() int32
- func (m *Simple) GetOSint64() int64
- func (m *Simple) GetOString() string
- func (m *Simple) GetOUint32() uint32
- func (m *Simple) GetOUint64() uint64
- func (*Simple) ProtoMessage()
- func (m *Simple) Reset()
- func (m *Simple) String() string
- type Simple3
- type Widget
- func (m *Widget) GetColor() Widget_Color
- func (m *Widget) GetRColor() []Widget_Color
- func (m *Widget) GetRRepeats() []*Repeats
- func (m *Widget) GetRSimple() []*Simple
- func (m *Widget) GetRepeats() *Repeats
- func (m *Widget) GetSimple() *Simple
- func (*Widget) ProtoMessage()
- func (m *Widget) Reset()
- func (m *Widget) String() string
- type Widget_Color
Constants ¶
This section is empty.
Variables ¶
View Source
var E_Complex_RealExtension = &proto.ExtensionDesc{ ExtendedType: (*Real)(nil), ExtensionType: (*Complex)(nil), Field: 123, Name: "jsonpb.Complex.real_extension", Tag: "bytes,123,opt,name=real_extension", }
View Source
var E_Name = &proto.ExtensionDesc{ ExtendedType: (*Real)(nil), ExtensionType: (*string)(nil), Field: 124, Name: "jsonpb.name", Tag: "bytes,124,opt,name=name", }
View Source
var Widget_Color_name = map[int32]string{
0: "RED",
1: "GREEN",
2: "BLUE",
}
View Source
var Widget_Color_value = map[string]int32{
"RED": 0,
"GREEN": 1,
"BLUE": 2,
}
Functions ¶
This section is empty.
Types ¶
type Complex ¶
type Complex struct { Imaginary *float64 `protobuf:"fixed64,1,opt,name=imaginary" json:"imaginary,omitempty"` XXX_extensions map[int32]proto.Extension `json:"-"` XXX_unrecognized []byte `json:"-"` }
func (*Complex) ExtensionRangeArray ¶
func (*Complex) ExtensionRangeArray() []proto.ExtensionRange
func (*Complex) GetImaginary ¶
func (*Complex) ProtoMessage ¶
func (*Complex) ProtoMessage()
type Mappy ¶
type Mappy struct { Nummy map[int64]int32 `` /* 146-byte string literal not displayed */ Strry map[string]string `` /* 144-byte string literal not displayed */ Objjy map[int32]*Simple3 `` /* 138-byte string literal not displayed */ Buggy map[int64]string `` /* 145-byte string literal not displayed */ Booly map[bool]bool `` /* 146-byte string literal not displayed */ }
func (*Mappy) ProtoMessage ¶
func (*Mappy) ProtoMessage()
type Maps ¶
type Maps struct { MInt64Str map[int64]string `` /* 143-byte string literal not displayed */ MBoolSimple map[bool]*Simple `` /* 147-byte string literal not displayed */ XXX_unrecognized []byte `json:"-"` }
func (*Maps) GetMBoolSimple ¶
func (*Maps) GetMInt64Str ¶
func (*Maps) ProtoMessage ¶
func (*Maps) ProtoMessage()
type MsgWithOneof ¶
type MsgWithOneof struct { // Types that are valid to be assigned to Union: // *MsgWithOneof_Title // *MsgWithOneof_Salary Union isMsgWithOneof_Union `protobuf_oneof:"union"` XXX_unrecognized []byte `json:"-"` }
func (*MsgWithOneof) GetSalary ¶
func (m *MsgWithOneof) GetSalary() int64
func (*MsgWithOneof) GetTitle ¶
func (m *MsgWithOneof) GetTitle() string
func (*MsgWithOneof) GetUnion ¶
func (m *MsgWithOneof) GetUnion() isMsgWithOneof_Union
func (*MsgWithOneof) ProtoMessage ¶
func (*MsgWithOneof) ProtoMessage()
func (*MsgWithOneof) Reset ¶
func (m *MsgWithOneof) Reset()
func (*MsgWithOneof) String ¶
func (m *MsgWithOneof) String() string
type MsgWithOneof_Salary ¶
type MsgWithOneof_Salary struct {
Salary int64 `protobuf:"varint,2,opt,name=salary,oneof"`
}
type MsgWithOneof_Title ¶
type MsgWithOneof_Title struct {
Title string `protobuf:"bytes,1,opt,name=title,oneof"`
}
type Real ¶
type Real struct { Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` XXX_extensions map[int32]proto.Extension `json:"-"` XXX_unrecognized []byte `json:"-"` }
func (*Real) ExtensionRangeArray ¶
func (*Real) ExtensionRangeArray() []proto.ExtensionRange
func (*Real) ProtoMessage ¶
func (*Real) ProtoMessage()
type Repeats ¶
type Repeats struct { RBool []bool `protobuf:"varint,1,rep,name=r_bool" json:"r_bool,omitempty"` RInt32 []int32 `protobuf:"varint,2,rep,name=r_int32" json:"r_int32,omitempty"` RInt64 []int64 `protobuf:"varint,3,rep,name=r_int64" json:"r_int64,omitempty"` RUint32 []uint32 `protobuf:"varint,4,rep,name=r_uint32" json:"r_uint32,omitempty"` RUint64 []uint64 `protobuf:"varint,5,rep,name=r_uint64" json:"r_uint64,omitempty"` RSint32 []int32 `protobuf:"zigzag32,6,rep,name=r_sint32" json:"r_sint32,omitempty"` RSint64 []int64 `protobuf:"zigzag64,7,rep,name=r_sint64" json:"r_sint64,omitempty"` RFloat []float32 `protobuf:"fixed32,8,rep,name=r_float" json:"r_float,omitempty"` RDouble []float64 `protobuf:"fixed64,9,rep,name=r_double" json:"r_double,omitempty"` RString []string `protobuf:"bytes,10,rep,name=r_string" json:"r_string,omitempty"` RBytes [][]byte `protobuf:"bytes,11,rep,name=r_bytes" json:"r_bytes,omitempty"` XXX_unrecognized []byte `json:"-"` }
Test message for holding repeated primitives.
func (*Repeats) GetRDouble ¶
func (*Repeats) GetRSint32 ¶
func (*Repeats) GetRSint64 ¶
func (*Repeats) GetRString ¶
func (*Repeats) GetRUint32 ¶
func (*Repeats) GetRUint64 ¶
func (*Repeats) ProtoMessage ¶
func (*Repeats) ProtoMessage()
type Simple ¶
type Simple struct { OBool *bool `protobuf:"varint,1,opt,name=o_bool" json:"o_bool,omitempty"` OInt32 *int32 `protobuf:"varint,2,opt,name=o_int32" json:"o_int32,omitempty"` OInt64 *int64 `protobuf:"varint,3,opt,name=o_int64" json:"o_int64,omitempty"` OUint32 *uint32 `protobuf:"varint,4,opt,name=o_uint32" json:"o_uint32,omitempty"` OUint64 *uint64 `protobuf:"varint,5,opt,name=o_uint64" json:"o_uint64,omitempty"` OSint32 *int32 `protobuf:"zigzag32,6,opt,name=o_sint32" json:"o_sint32,omitempty"` OSint64 *int64 `protobuf:"zigzag64,7,opt,name=o_sint64" json:"o_sint64,omitempty"` OFloat *float32 `protobuf:"fixed32,8,opt,name=o_float" json:"o_float,omitempty"` ODouble *float64 `protobuf:"fixed64,9,opt,name=o_double" json:"o_double,omitempty"` OString *string `protobuf:"bytes,10,opt,name=o_string" json:"o_string,omitempty"` OBytes []byte `protobuf:"bytes,11,opt,name=o_bytes" json:"o_bytes,omitempty"` XXX_unrecognized []byte `json:"-"` }
Test message for holding primitive types.
func (*Simple) GetODouble ¶
func (*Simple) GetOSint32 ¶
func (*Simple) GetOSint64 ¶
func (*Simple) GetOString ¶
func (*Simple) GetOUint32 ¶
func (*Simple) GetOUint64 ¶
func (*Simple) ProtoMessage ¶
func (*Simple) ProtoMessage()
type Simple3 ¶
type Simple3 struct {
Dub float64 `protobuf:"fixed64,1,opt,name=dub,proto3" json:"dub,omitempty"`
}
func (*Simple3) ProtoMessage ¶
func (*Simple3) ProtoMessage()
type Widget ¶
type Widget struct { Color *Widget_Color `protobuf:"varint,1,opt,name=color,enum=jsonpb.Widget_Color" json:"color,omitempty"` RColor []Widget_Color `protobuf:"varint,2,rep,name=r_color,enum=jsonpb.Widget_Color" json:"r_color,omitempty"` Simple *Simple `protobuf:"bytes,10,opt,name=simple" json:"simple,omitempty"` RSimple []*Simple `protobuf:"bytes,11,rep,name=r_simple" json:"r_simple,omitempty"` Repeats *Repeats `protobuf:"bytes,20,opt,name=repeats" json:"repeats,omitempty"` RRepeats []*Repeats `protobuf:"bytes,21,rep,name=r_repeats" json:"r_repeats,omitempty"` XXX_unrecognized []byte `json:"-"` }
Test message for holding enums and nested messages.
func (*Widget) GetColor ¶
func (m *Widget) GetColor() Widget_Color
func (*Widget) GetRColor ¶
func (m *Widget) GetRColor() []Widget_Color
func (*Widget) GetRRepeats ¶
func (*Widget) GetRSimple ¶
func (*Widget) GetRepeats ¶
func (*Widget) ProtoMessage ¶
func (*Widget) ProtoMessage()
type Widget_Color ¶
type Widget_Color int32
const ( Widget_RED Widget_Color = 0 Widget_GREEN Widget_Color = 1 Widget_BLUE Widget_Color = 2 )
func (Widget_Color) Enum ¶
func (x Widget_Color) Enum() *Widget_Color
func (Widget_Color) String ¶
func (x Widget_Color) String() string
func (*Widget_Color) UnmarshalJSON ¶
func (x *Widget_Color) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.