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", Filename: "test_objects.proto", }
var E_Extm = &proto.ExtensionDesc{ ExtendedType: (*Real)(nil), ExtensionType: (*MsgWithRequired)(nil), Field: 125, Name: "jsonpb.extm", Tag: "bytes,125,opt,name=extm", Filename: "test_objects.proto", }
var E_Name = &proto.ExtensionDesc{ ExtendedType: (*Real)(nil), ExtensionType: (*string)(nil), Field: 124, Name: "jsonpb.name", Tag: "bytes,124,opt,name=name", Filename: "test_objects.proto", }
var Numeral_name = map[int32]string{ 0: "UNKNOWN", 1: "ARABIC", 2: "ROMAN", }
var Numeral_value = map[string]int32{ "UNKNOWN": 0, "ARABIC": 1, "ROMAN": 2, }
var Widget_Color_name = map[int32]string{ 0: "RED", 1: "GREEN", 2: "BLUE", }
var Widget_Color_value = map[string]int32{ "RED": 0, "GREEN": 1, "BLUE": 2, }
type Complex struct {
Imaginary *float64 `protobuf:"fixed64,1,opt,name=imaginary" json:"imaginary,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
proto.XXX_InternalExtensions `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Complex) Descriptor() ([]byte, []int)
func (*Complex) ExtensionRangeArray() []proto.ExtensionRange
func (m *Complex) GetImaginary() float64
func (*Complex) ProtoMessage()
func (m *Complex) Reset()
func (m *Complex) String() string
func (m *Complex) XXX_DiscardUnknown()
func (m *Complex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *Complex) XXX_Merge(src proto.Message)
func (m *Complex) XXX_Size() int
func (m *Complex) XXX_Unmarshal(b []byte) error
type KnownTypes struct {
An *any.Any `protobuf:"bytes,14,opt,name=an" json:"an,omitempty"`
Dur *duration.Duration `protobuf:"bytes,1,opt,name=dur" json:"dur,omitempty"`
St *_struct.Struct `protobuf:"bytes,12,opt,name=st" json:"st,omitempty"`
Ts *timestamp.Timestamp `protobuf:"bytes,2,opt,name=ts" json:"ts,omitempty"`
Lv *_struct.ListValue `protobuf:"bytes,15,opt,name=lv" json:"lv,omitempty"`
Val *_struct.Value `protobuf:"bytes,16,opt,name=val" json:"val,omitempty"`
Dbl *wrappers.DoubleValue `protobuf:"bytes,3,opt,name=dbl" json:"dbl,omitempty"`
Flt *wrappers.FloatValue `protobuf:"bytes,4,opt,name=flt" json:"flt,omitempty"`
I64 *wrappers.Int64Value `protobuf:"bytes,5,opt,name=i64" json:"i64,omitempty"`
U64 *wrappers.UInt64Value `protobuf:"bytes,6,opt,name=u64" json:"u64,omitempty"`
I32 *wrappers.Int32Value `protobuf:"bytes,7,opt,name=i32" json:"i32,omitempty"`
U32 *wrappers.UInt32Value `protobuf:"bytes,8,opt,name=u32" json:"u32,omitempty"`
Bool *wrappers.BoolValue `protobuf:"bytes,9,opt,name=bool" json:"bool,omitempty"`
Str *wrappers.StringValue `protobuf:"bytes,10,opt,name=str" json:"str,omitempty"`
Bytes *wrappers.BytesValue `protobuf:"bytes,11,opt,name=bytes" json:"bytes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*KnownTypes) Descriptor() ([]byte, []int)
func (m *KnownTypes) GetAn() *any.Any
func (m *KnownTypes) GetBool() *wrappers.BoolValue
func (m *KnownTypes) GetBytes() *wrappers.BytesValue
func (m *KnownTypes) GetDbl() *wrappers.DoubleValue
func (m *KnownTypes) GetDur() *duration.Duration
func (m *KnownTypes) GetFlt() *wrappers.FloatValue
func (m *KnownTypes) GetI32() *wrappers.Int32Value
func (m *KnownTypes) GetI64() *wrappers.Int64Value
func (m *KnownTypes) GetLv() *_struct.ListValue
func (m *KnownTypes) GetSt() *_struct.Struct
func (m *KnownTypes) GetStr() *wrappers.StringValue
func (m *KnownTypes) GetTs() *timestamp.Timestamp
func (m *KnownTypes) GetU32() *wrappers.UInt32Value
func (m *KnownTypes) GetU64() *wrappers.UInt64Value
func (m *KnownTypes) GetVal() *_struct.Value
func (*KnownTypes) ProtoMessage()
func (m *KnownTypes) Reset()
func (m *KnownTypes) String() string
func (m *KnownTypes) XXX_DiscardUnknown()
func (m *KnownTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *KnownTypes) XXX_Merge(src proto.Message)
func (m *KnownTypes) XXX_Size() int
func (m *KnownTypes) XXX_Unmarshal(b []byte) error
type Mappy struct {
Nummy map[int64]int32 `protobuf:"bytes,1,rep,name=nummy,proto3" json:"nummy,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
Strry map[string]string `protobuf:"bytes,2,rep,name=strry,proto3" json:"strry,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Objjy map[int32]*Simple3 `protobuf:"bytes,3,rep,name=objjy,proto3" json:"objjy,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Buggy map[int64]string `protobuf:"bytes,4,rep,name=buggy,proto3" json:"buggy,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Booly map[bool]bool `protobuf:"bytes,5,rep,name=booly,proto3" json:"booly,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
Enumy map[string]Numeral `protobuf:"bytes,6,rep,name=enumy,proto3" json:"enumy,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=jsonpb.Numeral"`
S32Booly map[int32]bool `protobuf:"bytes,7,rep,name=s32booly,proto3" json:"s32booly,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
S64Booly map[int64]bool `protobuf:"bytes,8,rep,name=s64booly,proto3" json:"s64booly,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
U32Booly map[uint32]bool `protobuf:"bytes,9,rep,name=u32booly,proto3" json:"u32booly,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
U64Booly map[uint64]bool `protobuf:"bytes,10,rep,name=u64booly,proto3" json:"u64booly,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Mappy) Descriptor() ([]byte, []int)
func (m *Mappy) GetBooly() map[bool]bool
func (m *Mappy) GetBuggy() map[int64]string
func (m *Mappy) GetEnumy() map[string]Numeral
func (m *Mappy) GetNummy() map[int64]int32
func (m *Mappy) GetObjjy() map[int32]*Simple3
func (m *Mappy) GetS32Booly() map[int32]bool
func (m *Mappy) GetS64Booly() map[int64]bool
func (m *Mappy) GetStrry() map[string]string
func (m *Mappy) GetU32Booly() map[uint32]bool
func (m *Mappy) GetU64Booly() map[uint64]bool
func (*Mappy) ProtoMessage()
func (m *Mappy) Reset()
func (m *Mappy) String() string
func (m *Mappy) XXX_DiscardUnknown()
func (m *Mappy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *Mappy) XXX_Merge(src proto.Message)
func (m *Mappy) XXX_Size() int
func (m *Mappy) XXX_Unmarshal(b []byte) error
type Maps struct {
MInt64Str map[int64]string `protobuf:"bytes,1,rep,name=m_int64_str,json=mInt64Str" json:"m_int64_str,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MBoolSimple map[bool]*Simple `protobuf:"bytes,2,rep,name=m_bool_simple,json=mBoolSimple" json:"m_bool_simple,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Maps) Descriptor() ([]byte, []int)
func (m *Maps) GetMBoolSimple() map[bool]*Simple
func (m *Maps) GetMInt64Str() map[int64]string
func (*Maps) ProtoMessage()
func (m *Maps) Reset()
func (m *Maps) String() string
func (m *Maps) XXX_DiscardUnknown()
func (m *Maps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *Maps) XXX_Merge(src proto.Message)
func (m *Maps) XXX_Size() int
func (m *Maps) XXX_Unmarshal(b []byte) error
type MsgWithIndirectRequired struct {
Subm *MsgWithRequired `protobuf:"bytes,1,opt,name=subm" json:"subm,omitempty"`
MapField map[string]*MsgWithRequired `protobuf:"bytes,2,rep,name=map_field,json=mapField" json:"map_field,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
SliceField []*MsgWithRequired `protobuf:"bytes,3,rep,name=slice_field,json=sliceField" json:"slice_field,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*MsgWithIndirectRequired) Descriptor() ([]byte, []int)
func (m *MsgWithIndirectRequired) GetMapField() map[string]*MsgWithRequired
func (m *MsgWithIndirectRequired) GetSliceField() []*MsgWithRequired
func (m *MsgWithIndirectRequired) GetSubm() *MsgWithRequired
func (*MsgWithIndirectRequired) ProtoMessage()
func (m *MsgWithIndirectRequired) Reset()
func (m *MsgWithIndirectRequired) String() string
func (m *MsgWithIndirectRequired) XXX_DiscardUnknown()
func (m *MsgWithIndirectRequired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *MsgWithIndirectRequired) XXX_Merge(src proto.Message)
func (m *MsgWithIndirectRequired) XXX_Size() int
func (m *MsgWithIndirectRequired) XXX_Unmarshal(b []byte) error
type MsgWithOneof struct {
// Types that are valid to be assigned to Union:
// *MsgWithOneof_Title
// *MsgWithOneof_Salary
// *MsgWithOneof_Country
// *MsgWithOneof_HomeAddress
// *MsgWithOneof_MsgWithRequired
Union isMsgWithOneof_Union `protobuf_oneof:"union"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*MsgWithOneof) Descriptor() ([]byte, []int)
func (m *MsgWithOneof) GetCountry() string
func (m *MsgWithOneof) GetHomeAddress() string
func (m *MsgWithOneof) GetMsgWithRequired() *MsgWithRequired
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 (m *MsgWithOneof) XXX_DiscardUnknown()
func (m *MsgWithOneof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *MsgWithOneof) XXX_Merge(src proto.Message)
func (*MsgWithOneof) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (m *MsgWithOneof) XXX_Size() int
func (m *MsgWithOneof) XXX_Unmarshal(b []byte) error
type MsgWithOneof_Country struct {
Country string `protobuf:"bytes,3,opt,name=Country,oneof"`
}
type MsgWithOneof_HomeAddress struct {
HomeAddress string `protobuf:"bytes,4,opt,name=home_address,json=homeAddress,oneof"`
}
type MsgWithOneof_MsgWithRequired struct {
MsgWithRequired *MsgWithRequired `protobuf:"bytes,5,opt,name=msg_with_required,json=msgWithRequired,oneof"`
}
type MsgWithOneof_Salary struct {
Salary int64 `protobuf:"varint,2,opt,name=salary,oneof"`
}
type MsgWithOneof_Title struct {
Title string `protobuf:"bytes,1,opt,name=title,oneof"`
}
Test messages for marshaling/unmarshaling required fields.
type MsgWithRequired struct {
Str *string `protobuf:"bytes,1,req,name=str" json:"str,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*MsgWithRequired) Descriptor() ([]byte, []int)
func (m *MsgWithRequired) GetStr() string
func (*MsgWithRequired) ProtoMessage()
func (m *MsgWithRequired) Reset()
func (m *MsgWithRequired) String() string
func (m *MsgWithRequired) XXX_DiscardUnknown()
func (m *MsgWithRequired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *MsgWithRequired) XXX_Merge(src proto.Message)
func (m *MsgWithRequired) XXX_Size() int
func (m *MsgWithRequired) XXX_Unmarshal(b []byte) error
type MsgWithRequiredBytes struct {
Byts []byte `protobuf:"bytes,1,req,name=byts" json:"byts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*MsgWithRequiredBytes) Descriptor() ([]byte, []int)
func (m *MsgWithRequiredBytes) GetByts() []byte
func (*MsgWithRequiredBytes) ProtoMessage()
func (m *MsgWithRequiredBytes) Reset()
func (m *MsgWithRequiredBytes) String() string
func (m *MsgWithRequiredBytes) XXX_DiscardUnknown()
func (m *MsgWithRequiredBytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *MsgWithRequiredBytes) XXX_Merge(src proto.Message)
func (m *MsgWithRequiredBytes) XXX_Size() int
func (m *MsgWithRequiredBytes) XXX_Unmarshal(b []byte) error
type MsgWithRequiredWKT struct {
Str *wrappers.StringValue `protobuf:"bytes,1,req,name=str" json:"str,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*MsgWithRequiredWKT) Descriptor() ([]byte, []int)
func (m *MsgWithRequiredWKT) GetStr() *wrappers.StringValue
func (*MsgWithRequiredWKT) ProtoMessage()
func (m *MsgWithRequiredWKT) Reset()
func (m *MsgWithRequiredWKT) String() string
func (m *MsgWithRequiredWKT) XXX_DiscardUnknown()
func (m *MsgWithRequiredWKT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *MsgWithRequiredWKT) XXX_Merge(src proto.Message)
func (m *MsgWithRequiredWKT) XXX_Size() int
func (m *MsgWithRequiredWKT) XXX_Unmarshal(b []byte) error
Test message for holding special non-finites primitives.
type NonFinites struct {
FNan *float32 `protobuf:"fixed32,1,opt,name=f_nan,json=fNan" json:"f_nan,omitempty"`
FPinf *float32 `protobuf:"fixed32,2,opt,name=f_pinf,json=fPinf" json:"f_pinf,omitempty"`
FNinf *float32 `protobuf:"fixed32,3,opt,name=f_ninf,json=fNinf" json:"f_ninf,omitempty"`
DNan *float64 `protobuf:"fixed64,4,opt,name=d_nan,json=dNan" json:"d_nan,omitempty"`
DPinf *float64 `protobuf:"fixed64,5,opt,name=d_pinf,json=dPinf" json:"d_pinf,omitempty"`
DNinf *float64 `protobuf:"fixed64,6,opt,name=d_ninf,json=dNinf" json:"d_ninf,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*NonFinites) Descriptor() ([]byte, []int)
func (m *NonFinites) GetDNan() float64
func (m *NonFinites) GetDNinf() float64
func (m *NonFinites) GetDPinf() float64
func (m *NonFinites) GetFNan() float32
func (m *NonFinites) GetFNinf() float32
func (m *NonFinites) GetFPinf() float32
func (*NonFinites) ProtoMessage()
func (m *NonFinites) Reset()
func (m *NonFinites) String() string
func (m *NonFinites) XXX_DiscardUnknown()
func (m *NonFinites) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *NonFinites) XXX_Merge(src proto.Message)
func (m *NonFinites) XXX_Size() int
func (m *NonFinites) XXX_Unmarshal(b []byte) error
type Numeral int32
const (
Numeral_UNKNOWN Numeral = 0
Numeral_ARABIC Numeral = 1
Numeral_ROMAN Numeral = 2
)
func (Numeral) EnumDescriptor() ([]byte, []int)
func (x Numeral) String() string
type Real struct {
Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
proto.XXX_InternalExtensions `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Real) Descriptor() ([]byte, []int)
func (*Real) ExtensionRangeArray() []proto.ExtensionRange
func (m *Real) GetValue() float64
func (*Real) ProtoMessage()
func (m *Real) Reset()
func (m *Real) String() string
func (m *Real) XXX_DiscardUnknown()
func (m *Real) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *Real) XXX_Merge(src proto.Message)
func (m *Real) XXX_Size() int
func (m *Real) XXX_Unmarshal(b []byte) error
Test message for holding repeated primitives.
type Repeats struct {
RBool []bool `protobuf:"varint,1,rep,name=r_bool,json=rBool" json:"r_bool,omitempty"`
RInt32 []int32 `protobuf:"varint,2,rep,name=r_int32,json=rInt32" json:"r_int32,omitempty"`
RInt64 []int64 `protobuf:"varint,3,rep,name=r_int64,json=rInt64" json:"r_int64,omitempty"`
RUint32 []uint32 `protobuf:"varint,4,rep,name=r_uint32,json=rUint32" json:"r_uint32,omitempty"`
RUint64 []uint64 `protobuf:"varint,5,rep,name=r_uint64,json=rUint64" json:"r_uint64,omitempty"`
RSint32 []int32 `protobuf:"zigzag32,6,rep,name=r_sint32,json=rSint32" json:"r_sint32,omitempty"`
RSint64 []int64 `protobuf:"zigzag64,7,rep,name=r_sint64,json=rSint64" json:"r_sint64,omitempty"`
RFloat []float32 `protobuf:"fixed32,8,rep,name=r_float,json=rFloat" json:"r_float,omitempty"`
RDouble []float64 `protobuf:"fixed64,9,rep,name=r_double,json=rDouble" json:"r_double,omitempty"`
RString []string `protobuf:"bytes,10,rep,name=r_string,json=rString" json:"r_string,omitempty"`
RBytes [][]byte `protobuf:"bytes,11,rep,name=r_bytes,json=rBytes" json:"r_bytes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Repeats) Descriptor() ([]byte, []int)
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
func (m *Repeats) XXX_DiscardUnknown()
func (m *Repeats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *Repeats) XXX_Merge(src proto.Message)
func (m *Repeats) XXX_Size() int
func (m *Repeats) XXX_Unmarshal(b []byte) error
Test message for holding primitive types.
type Simple struct {
OBool *bool `protobuf:"varint,1,opt,name=o_bool,json=oBool" json:"o_bool,omitempty"`
OInt32 *int32 `protobuf:"varint,2,opt,name=o_int32,json=oInt32" json:"o_int32,omitempty"`
OInt32Str *int32 `protobuf:"varint,3,opt,name=o_int32_str,json=oInt32Str" json:"o_int32_str,omitempty"`
OInt64 *int64 `protobuf:"varint,4,opt,name=o_int64,json=oInt64" json:"o_int64,omitempty"`
OInt64Str *int64 `protobuf:"varint,5,opt,name=o_int64_str,json=oInt64Str" json:"o_int64_str,omitempty"`
OUint32 *uint32 `protobuf:"varint,6,opt,name=o_uint32,json=oUint32" json:"o_uint32,omitempty"`
OUint32Str *uint32 `protobuf:"varint,7,opt,name=o_uint32_str,json=oUint32Str" json:"o_uint32_str,omitempty"`
OUint64 *uint64 `protobuf:"varint,8,opt,name=o_uint64,json=oUint64" json:"o_uint64,omitempty"`
OUint64Str *uint64 `protobuf:"varint,9,opt,name=o_uint64_str,json=oUint64Str" json:"o_uint64_str,omitempty"`
OSint32 *int32 `protobuf:"zigzag32,10,opt,name=o_sint32,json=oSint32" json:"o_sint32,omitempty"`
OSint32Str *int32 `protobuf:"zigzag32,11,opt,name=o_sint32_str,json=oSint32Str" json:"o_sint32_str,omitempty"`
OSint64 *int64 `protobuf:"zigzag64,12,opt,name=o_sint64,json=oSint64" json:"o_sint64,omitempty"`
OSint64Str *int64 `protobuf:"zigzag64,13,opt,name=o_sint64_str,json=oSint64Str" json:"o_sint64_str,omitempty"`
OFloat *float32 `protobuf:"fixed32,14,opt,name=o_float,json=oFloat" json:"o_float,omitempty"`
OFloatStr *float32 `protobuf:"fixed32,15,opt,name=o_float_str,json=oFloatStr" json:"o_float_str,omitempty"`
ODouble *float64 `protobuf:"fixed64,16,opt,name=o_double,json=oDouble" json:"o_double,omitempty"`
ODoubleStr *float64 `protobuf:"fixed64,17,opt,name=o_double_str,json=oDoubleStr" json:"o_double_str,omitempty"`
OString *string `protobuf:"bytes,18,opt,name=o_string,json=oString" json:"o_string,omitempty"`
OBytes []byte `protobuf:"bytes,19,opt,name=o_bytes,json=oBytes" json:"o_bytes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Simple) Descriptor() ([]byte, []int)
func (m *Simple) GetOBool() bool
func (m *Simple) GetOBytes() []byte
func (m *Simple) GetODouble() float64
func (m *Simple) GetODoubleStr() float64
func (m *Simple) GetOFloat() float32
func (m *Simple) GetOFloatStr() float32
func (m *Simple) GetOInt32() int32
func (m *Simple) GetOInt32Str() int32
func (m *Simple) GetOInt64() int64
func (m *Simple) GetOInt64Str() int64
func (m *Simple) GetOSint32() int32
func (m *Simple) GetOSint32Str() int32
func (m *Simple) GetOSint64() int64
func (m *Simple) GetOSint64Str() int64
func (m *Simple) GetOString() string
func (m *Simple) GetOUint32() uint32
func (m *Simple) GetOUint32Str() uint32
func (m *Simple) GetOUint64() uint64
func (m *Simple) GetOUint64Str() uint64
func (*Simple) ProtoMessage()
func (m *Simple) Reset()
func (m *Simple) String() string
func (m *Simple) XXX_DiscardUnknown()
func (m *Simple) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *Simple) XXX_Merge(src proto.Message)
func (m *Simple) XXX_Size() int
func (m *Simple) XXX_Unmarshal(b []byte) error
type Simple3 struct {
Dub float64 `protobuf:"fixed64,1,opt,name=dub,proto3" json:"dub,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Simple3) Descriptor() ([]byte, []int)
func (m *Simple3) GetDub() float64
func (*Simple3) ProtoMessage()
func (m *Simple3) Reset()
func (m *Simple3) String() string
func (m *Simple3) XXX_DiscardUnknown()
func (m *Simple3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *Simple3) XXX_Merge(src proto.Message)
func (m *Simple3) XXX_Size() int
func (m *Simple3) XXX_Unmarshal(b []byte) error
type SimpleMap3 struct {
Stringy map[string]string `protobuf:"bytes,1,rep,name=stringy,proto3" json:"stringy,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*SimpleMap3) Descriptor() ([]byte, []int)
func (m *SimpleMap3) GetStringy() map[string]string
func (*SimpleMap3) ProtoMessage()
func (m *SimpleMap3) Reset()
func (m *SimpleMap3) String() string
func (m *SimpleMap3) XXX_DiscardUnknown()
func (m *SimpleMap3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *SimpleMap3) XXX_Merge(src proto.Message)
func (m *SimpleMap3) XXX_Size() int
func (m *SimpleMap3) XXX_Unmarshal(b []byte) error
type SimpleNull3 struct {
Simple *Simple3 `protobuf:"bytes,1,opt,name=simple,proto3" json:"simple,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*SimpleNull3) Descriptor() ([]byte, []int)
func (m *SimpleNull3) GetSimple() *Simple3
func (*SimpleNull3) ProtoMessage()
func (m *SimpleNull3) Reset()
func (m *SimpleNull3) String() string
func (m *SimpleNull3) XXX_DiscardUnknown()
func (m *SimpleNull3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *SimpleNull3) XXX_Merge(src proto.Message)
func (m *SimpleNull3) XXX_Size() int
func (m *SimpleNull3) XXX_Unmarshal(b []byte) error
type SimpleSlice3 struct {
Slices []string `protobuf:"bytes,1,rep,name=slices,proto3" json:"slices,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*SimpleSlice3) Descriptor() ([]byte, []int)
func (m *SimpleSlice3) GetSlices() []string
func (*SimpleSlice3) ProtoMessage()
func (m *SimpleSlice3) Reset()
func (m *SimpleSlice3) String() string
func (m *SimpleSlice3) XXX_DiscardUnknown()
func (m *SimpleSlice3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *SimpleSlice3) XXX_Merge(src proto.Message)
func (m *SimpleSlice3) XXX_Size() int
func (m *SimpleSlice3) XXX_Unmarshal(b []byte) error
Test message for holding enums and nested messages.
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,json=rColor,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=rSimple" 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=rRepeats" json:"r_repeats,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Widget) Descriptor() ([]byte, []int)
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
func (m *Widget) XXX_DiscardUnknown()
func (m *Widget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *Widget) XXX_Merge(src proto.Message)
func (m *Widget) XXX_Size() int
func (m *Widget) XXX_Unmarshal(b []byte) error
type Widget_Color int32
const (
Widget_RED Widget_Color = 0
Widget_GREEN Widget_Color = 1
Widget_BLUE Widget_Color = 2
)
func (x Widget_Color) Enum() *Widget_Color
func (Widget_Color) EnumDescriptor() ([]byte, []int)
func (x Widget_Color) String() string
func (x *Widget_Color) UnmarshalJSON(data []byte) error