jsonpb - ActiveState ActiveGo 1.8
...

Package jsonpb

import "github.com/gogo/protobuf/jsonpb/jsonpb_test_proto"
Overview
Index

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
KnownTypes

Index ▾

Variables
type Byte
type Bytes
type Complex
    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
type KnownTypes
    func (*KnownTypes) Descriptor() ([]byte, []int)
    func (m *KnownTypes) GetAn() *google_protobuf.Any
    func (m *KnownTypes) GetBool() *google_protobuf4.BoolValue
    func (m *KnownTypes) GetBytes() *google_protobuf4.BytesValue
    func (m *KnownTypes) GetDbl() *google_protobuf4.DoubleValue
    func (m *KnownTypes) GetDur() *google_protobuf1.Duration
    func (m *KnownTypes) GetFlt() *google_protobuf4.FloatValue
    func (m *KnownTypes) GetI32() *google_protobuf4.Int32Value
    func (m *KnownTypes) GetI64() *google_protobuf4.Int64Value
    func (m *KnownTypes) GetSt() *google_protobuf2.Struct
    func (m *KnownTypes) GetStr() *google_protobuf4.StringValue
    func (m *KnownTypes) GetTs() *google_protobuf3.Timestamp
    func (m *KnownTypes) GetU32() *google_protobuf4.UInt32Value
    func (m *KnownTypes) GetU64() *google_protobuf4.UInt64Value
    func (*KnownTypes) ProtoMessage()
    func (m *KnownTypes) Reset()
    func (m *KnownTypes) String() string
type Mappy
    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
type Maps
    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
type MsgWithOneof
    func (*MsgWithOneof) Descriptor() ([]byte, []int)
    func (m *MsgWithOneof) GetCountry() string
    func (m *MsgWithOneof) GetHomeAddress() string
    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, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
type MsgWithOneof_Country
type MsgWithOneof_HomeAddress
type MsgWithOneof_Salary
type MsgWithOneof_Title
type Numeral
    func (Numeral) EnumDescriptor() ([]byte, []int)
    func (x Numeral) String() string
type Real
    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
type Repeats
    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
type Simple
    func (*Simple) Descriptor() ([]byte, []int)
    func (m *Simple) GetOBool() bool
    func (m *Simple) GetOBytes() []byte
    func (m *Simple) GetOCastBytes() Bytes
    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
    func (*Simple3) Descriptor() ([]byte, []int)
    func (m *Simple3) GetDub() float64
    func (*Simple3) ProtoMessage()
    func (m *Simple3) Reset()
    func (m *Simple3) String() string
type Widget
    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
type Widget_Color
    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

Package files

bytes.go more_test_objects.pb.go test_objects.pb.go

Variables

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,json=realExtension",
    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 Byte

Byte is used to test that []byte type aliases are serialized to base64.

type Byte byte

type Bytes

Bytes is used to test that []byte type aliases are serialized to base64.

type Bytes []Byte

type Complex

type Complex struct {
    Imaginary                    *float64 `protobuf:"fixed64,1,opt,name=imaginary" json:"imaginary,omitempty"`
    proto.XXX_InternalExtensions `json:"-"`
    XXX_unrecognized             []byte `json:"-"`
}

func (*Complex) Descriptor

func (*Complex) Descriptor() ([]byte, []int)

func (*Complex) ExtensionRangeArray

func (*Complex) ExtensionRangeArray() []proto.ExtensionRange

func (*Complex) GetImaginary

func (m *Complex) GetImaginary() float64

func (*Complex) ProtoMessage

func (*Complex) ProtoMessage()

func (*Complex) Reset

func (m *Complex) Reset()

func (*Complex) String

func (m *Complex) String() string

type KnownTypes

type KnownTypes struct {
    An               *google_protobuf.Any          `protobuf:"bytes,14,opt,name=an" json:"an,omitempty"`
    Dur              *google_protobuf1.Duration    `protobuf:"bytes,1,opt,name=dur" json:"dur,omitempty"`
    St               *google_protobuf2.Struct      `protobuf:"bytes,12,opt,name=st" json:"st,omitempty"`
    Ts               *google_protobuf3.Timestamp   `protobuf:"bytes,2,opt,name=ts" json:"ts,omitempty"`
    Dbl              *google_protobuf4.DoubleValue `protobuf:"bytes,3,opt,name=dbl" json:"dbl,omitempty"`
    Flt              *google_protobuf4.FloatValue  `protobuf:"bytes,4,opt,name=flt" json:"flt,omitempty"`
    I64              *google_protobuf4.Int64Value  `protobuf:"bytes,5,opt,name=i64" json:"i64,omitempty"`
    U64              *google_protobuf4.UInt64Value `protobuf:"bytes,6,opt,name=u64" json:"u64,omitempty"`
    I32              *google_protobuf4.Int32Value  `protobuf:"bytes,7,opt,name=i32" json:"i32,omitempty"`
    U32              *google_protobuf4.UInt32Value `protobuf:"bytes,8,opt,name=u32" json:"u32,omitempty"`
    Bool             *google_protobuf4.BoolValue   `protobuf:"bytes,9,opt,name=bool" json:"bool,omitempty"`
    Str              *google_protobuf4.StringValue `protobuf:"bytes,10,opt,name=str" json:"str,omitempty"`
    Bytes            *google_protobuf4.BytesValue  `protobuf:"bytes,11,opt,name=bytes" json:"bytes,omitempty"`
    XXX_unrecognized []byte                        `json:"-"`
}

func (*KnownTypes) Descriptor

func (*KnownTypes) Descriptor() ([]byte, []int)

func (*KnownTypes) GetAn

func (m *KnownTypes) GetAn() *google_protobuf.Any

func (*KnownTypes) GetBool

func (m *KnownTypes) GetBool() *google_protobuf4.BoolValue

func (*KnownTypes) GetBytes

func (m *KnownTypes) GetBytes() *google_protobuf4.BytesValue

func (*KnownTypes) GetDbl

func (m *KnownTypes) GetDbl() *google_protobuf4.DoubleValue

func (*KnownTypes) GetDur

func (m *KnownTypes) GetDur() *google_protobuf1.Duration

func (*KnownTypes) GetFlt

func (m *KnownTypes) GetFlt() *google_protobuf4.FloatValue

func (*KnownTypes) GetI32

func (m *KnownTypes) GetI32() *google_protobuf4.Int32Value

func (*KnownTypes) GetI64

func (m *KnownTypes) GetI64() *google_protobuf4.Int64Value

func (*KnownTypes) GetSt

func (m *KnownTypes) GetSt() *google_protobuf2.Struct

func (*KnownTypes) GetStr

func (m *KnownTypes) GetStr() *google_protobuf4.StringValue

func (*KnownTypes) GetTs

func (m *KnownTypes) GetTs() *google_protobuf3.Timestamp

func (*KnownTypes) GetU32

func (m *KnownTypes) GetU32() *google_protobuf4.UInt32Value

func (*KnownTypes) GetU64

func (m *KnownTypes) GetU64() *google_protobuf4.UInt64Value

func (*KnownTypes) ProtoMessage

func (*KnownTypes) ProtoMessage()

func (*KnownTypes) Reset

func (m *KnownTypes) Reset()

func (*KnownTypes) String

func (m *KnownTypes) String() string

type Mappy

type Mappy struct {
    Nummy    map[int64]int32    `protobuf:"bytes,1,rep,name=nummy" 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" 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" json:"objjy,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
    Buggy    map[int64]string   `protobuf:"bytes,4,rep,name=buggy" 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" 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" 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" 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" 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" 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" json:"u64booly,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
}

func (*Mappy) Descriptor

func (*Mappy) Descriptor() ([]byte, []int)

func (*Mappy) GetBooly

func (m *Mappy) GetBooly() map[bool]bool

func (*Mappy) GetBuggy

func (m *Mappy) GetBuggy() map[int64]string

func (*Mappy) GetEnumy

func (m *Mappy) GetEnumy() map[string]Numeral

func (*Mappy) GetNummy

func (m *Mappy) GetNummy() map[int64]int32

func (*Mappy) GetObjjy

func (m *Mappy) GetObjjy() map[int32]*Simple3

func (*Mappy) GetS32Booly

func (m *Mappy) GetS32Booly() map[int32]bool

func (*Mappy) GetS64Booly

func (m *Mappy) GetS64Booly() map[int64]bool

func (*Mappy) GetStrry

func (m *Mappy) GetStrry() map[string]string

func (*Mappy) GetU32Booly

func (m *Mappy) GetU32Booly() map[uint32]bool

func (*Mappy) GetU64Booly

func (m *Mappy) GetU64Booly() map[uint64]bool

func (*Mappy) ProtoMessage

func (*Mappy) ProtoMessage()

func (*Mappy) Reset

func (m *Mappy) Reset()

func (*Mappy) String

func (m *Mappy) String() string

type Maps

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_unrecognized []byte           `json:"-"`
}

func (*Maps) Descriptor

func (*Maps) Descriptor() ([]byte, []int)

func (*Maps) GetMBoolSimple

func (m *Maps) GetMBoolSimple() map[bool]*Simple

func (*Maps) GetMInt64Str

func (m *Maps) GetMInt64Str() map[int64]string

func (*Maps) ProtoMessage

func (*Maps) ProtoMessage()

func (*Maps) Reset

func (m *Maps) Reset()

func (*Maps) String

func (m *Maps) String() string

type MsgWithOneof

type MsgWithOneof struct {
    // Types that are valid to be assigned to Union:
    //	*MsgWithOneof_Title
    //	*MsgWithOneof_Salary
    //	*MsgWithOneof_Country
    //	*MsgWithOneof_HomeAddress
    Union            isMsgWithOneof_Union `protobuf_oneof:"union"`
    XXX_unrecognized []byte               `json:"-"`
}

func (*MsgWithOneof) Descriptor

func (*MsgWithOneof) Descriptor() ([]byte, []int)

func (*MsgWithOneof) GetCountry

func (m *MsgWithOneof) GetCountry() string

func (*MsgWithOneof) GetHomeAddress

func (m *MsgWithOneof) GetHomeAddress() string

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

func (*MsgWithOneof) XXX_OneofFuncs

func (*MsgWithOneof) 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 MsgWithOneof_Country

type MsgWithOneof_Country struct {
    Country string `protobuf:"bytes,3,opt,name=Country,oneof"`
}

type MsgWithOneof_HomeAddress

type MsgWithOneof_HomeAddress struct {
    HomeAddress string `protobuf:"bytes,4,opt,name=home_address,json=homeAddress,oneof"`
}

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 Numeral

type Numeral int32
const (
    Numeral_UNKNOWN Numeral = 0
    Numeral_ARABIC  Numeral = 1
    Numeral_ROMAN   Numeral = 2
)

func (Numeral) EnumDescriptor

func (Numeral) EnumDescriptor() ([]byte, []int)

func (Numeral) String

func (x Numeral) String() string

type Real

type Real struct {
    Value                        *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
    proto.XXX_InternalExtensions `json:"-"`
    XXX_unrecognized             []byte `json:"-"`
}

func (*Real) Descriptor

func (*Real) Descriptor() ([]byte, []int)

func (*Real) ExtensionRangeArray

func (*Real) ExtensionRangeArray() []proto.ExtensionRange

func (*Real) GetValue

func (m *Real) GetValue() float64

func (*Real) ProtoMessage

func (*Real) ProtoMessage()

func (*Real) Reset

func (m *Real) Reset()

func (*Real) String

func (m *Real) String() string

type Repeats

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_unrecognized []byte    `json:"-"`
}

func (*Repeats) Descriptor

func (*Repeats) Descriptor() ([]byte, []int)

func (*Repeats) GetRBool

func (m *Repeats) GetRBool() []bool

func (*Repeats) GetRBytes

func (m *Repeats) GetRBytes() [][]byte

func (*Repeats) GetRDouble

func (m *Repeats) GetRDouble() []float64

func (*Repeats) GetRFloat

func (m *Repeats) GetRFloat() []float32

func (*Repeats) GetRInt32

func (m *Repeats) GetRInt32() []int32

func (*Repeats) GetRInt64

func (m *Repeats) GetRInt64() []int64

func (*Repeats) GetRSint32

func (m *Repeats) GetRSint32() []int32

func (*Repeats) GetRSint64

func (m *Repeats) GetRSint64() []int64

func (*Repeats) GetRString

func (m *Repeats) GetRString() []string

func (*Repeats) GetRUint32

func (m *Repeats) GetRUint32() []uint32

func (*Repeats) GetRUint64

func (m *Repeats) GetRUint64() []uint64

func (*Repeats) ProtoMessage

func (*Repeats) ProtoMessage()

func (*Repeats) Reset

func (m *Repeats) Reset()

func (*Repeats) String

func (m *Repeats) String() string

type Simple

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"`
    OInt64           *int64   `protobuf:"varint,3,opt,name=o_int64,json=oInt64" json:"o_int64,omitempty"`
    OUint32          *uint32  `protobuf:"varint,4,opt,name=o_uint32,json=oUint32" json:"o_uint32,omitempty"`
    OUint64          *uint64  `protobuf:"varint,5,opt,name=o_uint64,json=oUint64" json:"o_uint64,omitempty"`
    OSint32          *int32   `protobuf:"zigzag32,6,opt,name=o_sint32,json=oSint32" json:"o_sint32,omitempty"`
    OSint64          *int64   `protobuf:"zigzag64,7,opt,name=o_sint64,json=oSint64" json:"o_sint64,omitempty"`
    OFloat           *float32 `protobuf:"fixed32,8,opt,name=o_float,json=oFloat" json:"o_float,omitempty"`
    ODouble          *float64 `protobuf:"fixed64,9,opt,name=o_double,json=oDouble" json:"o_double,omitempty"`
    OString          *string  `protobuf:"bytes,10,opt,name=o_string,json=oString" json:"o_string,omitempty"`
    OBytes           []byte   `protobuf:"bytes,11,opt,name=o_bytes,json=oBytes" json:"o_bytes,omitempty"`
    OCastBytes       Bytes    `protobuf:"bytes,12,opt,name=o_cast_bytes,json=oCastBytes,casttype=Bytes" json:"o_cast_bytes,omitempty"`
    XXX_unrecognized []byte   `json:"-"`
}

func (*Simple) Descriptor

func (*Simple) Descriptor() ([]byte, []int)

func (*Simple) GetOBool

func (m *Simple) GetOBool() bool

func (*Simple) GetOBytes

func (m *Simple) GetOBytes() []byte

func (*Simple) GetOCastBytes

func (m *Simple) GetOCastBytes() Bytes

func (*Simple) GetODouble

func (m *Simple) GetODouble() float64

func (*Simple) GetOFloat

func (m *Simple) GetOFloat() float32

func (*Simple) GetOInt32

func (m *Simple) GetOInt32() int32

func (*Simple) GetOInt64

func (m *Simple) GetOInt64() int64

func (*Simple) GetOSint32

func (m *Simple) GetOSint32() int32

func (*Simple) GetOSint64

func (m *Simple) GetOSint64() int64

func (*Simple) GetOString

func (m *Simple) GetOString() string

func (*Simple) GetOUint32

func (m *Simple) GetOUint32() uint32

func (*Simple) GetOUint64

func (m *Simple) GetOUint64() uint64

func (*Simple) ProtoMessage

func (*Simple) ProtoMessage()

func (*Simple) Reset

func (m *Simple) Reset()

func (*Simple) String

func (m *Simple) String() string

type Simple3

type Simple3 struct {
    Dub float64 `protobuf:"fixed64,1,opt,name=dub,proto3" json:"dub,omitempty"`
}

func (*Simple3) Descriptor

func (*Simple3) Descriptor() ([]byte, []int)

func (*Simple3) GetDub

func (m *Simple3) GetDub() float64

func (*Simple3) ProtoMessage

func (*Simple3) ProtoMessage()

func (*Simple3) Reset

func (m *Simple3) Reset()

func (*Simple3) String

func (m *Simple3) String() string

type Widget

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_unrecognized []byte         `json:"-"`
}

func (*Widget) Descriptor

func (*Widget) Descriptor() ([]byte, []int)

func (*Widget) GetColor

func (m *Widget) GetColor() Widget_Color

func (*Widget) GetRColor

func (m *Widget) GetRColor() []Widget_Color

func (*Widget) GetRRepeats

func (m *Widget) GetRRepeats() []*Repeats

func (*Widget) GetRSimple

func (m *Widget) GetRSimple() []*Simple

func (*Widget) GetRepeats

func (m *Widget) GetRepeats() *Repeats

func (*Widget) GetSimple

func (m *Widget) GetSimple() *Simple

func (*Widget) ProtoMessage

func (*Widget) ProtoMessage()

func (*Widget) Reset

func (m *Widget) Reset()

func (*Widget) String

func (m *Widget) String() string

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) EnumDescriptor

func (Widget_Color) EnumDescriptor() ([]byte, []int)

func (Widget_Color) String

func (x Widget_Color) String() string

func (*Widget_Color) UnmarshalJSON

func (x *Widget_Color) UnmarshalJSON(data []byte) error