Help us shape the future of Go! Take the 2026 Go Developer Survey

jsonpb

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

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,json=realExtension",
	Filename:      "test_objects.proto",
}
View Source
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",
}
View Source
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",
}
View Source
var Numeral_name = map[int32]string{
	0: "UNKNOWN",
	1: "ARABIC",
	2: "ROMAN",
}
View Source
var Numeral_value = map[string]int32{
	"UNKNOWN": 0,
	"ARABIC":  1,
	"ROMAN":   2,
}
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 Byte

type Byte byte

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

type Bytes

type Bytes []Byte

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

type Complex

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

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

func (*Complex) XXX_DiscardUnknown added in v1.1.0

func (m *Complex) XXX_DiscardUnknown()

func (*Complex) XXX_Marshal added in v1.1.0

func (m *Complex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Complex) XXX_Merge added in v1.1.0

func (dst *Complex) XXX_Merge(src proto.Message)

func (*Complex) XXX_Size added in v1.1.0

func (m *Complex) XXX_Size() int

func (*Complex) XXX_Unmarshal added in v1.1.0

func (m *Complex) XXX_Unmarshal(b []byte) error

type KnownTypes

type KnownTypes struct {
	An                   *types.Any         `protobuf:"bytes,14,opt,name=an" json:"an,omitempty"`
	Dur                  *types.Duration    `protobuf:"bytes,1,opt,name=dur" json:"dur,omitempty"`
	St                   *types.Struct      `protobuf:"bytes,12,opt,name=st" json:"st,omitempty"`
	Ts                   *types.Timestamp   `protobuf:"bytes,2,opt,name=ts" json:"ts,omitempty"`
	Lv                   *types.ListValue   `protobuf:"bytes,15,opt,name=lv" json:"lv,omitempty"`
	Val                  *types.Value       `protobuf:"bytes,16,opt,name=val" json:"val,omitempty"`
	Dbl                  *types.DoubleValue `protobuf:"bytes,3,opt,name=dbl" json:"dbl,omitempty"`
	Flt                  *types.FloatValue  `protobuf:"bytes,4,opt,name=flt" json:"flt,omitempty"`
	I64                  *types.Int64Value  `protobuf:"bytes,5,opt,name=i64" json:"i64,omitempty"`
	U64                  *types.UInt64Value `protobuf:"bytes,6,opt,name=u64" json:"u64,omitempty"`
	I32                  *types.Int32Value  `protobuf:"bytes,7,opt,name=i32" json:"i32,omitempty"`
	U32                  *types.UInt32Value `protobuf:"bytes,8,opt,name=u32" json:"u32,omitempty"`
	Bool                 *types.BoolValue   `protobuf:"bytes,9,opt,name=bool" json:"bool,omitempty"`
	Str                  *types.StringValue `protobuf:"bytes,10,opt,name=str" json:"str,omitempty"`
	Bytes                *types.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

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

func (*KnownTypes) GetAn

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

func (*KnownTypes) GetBool

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

func (*KnownTypes) GetBytes

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

func (*KnownTypes) GetDbl

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

func (*KnownTypes) GetDur

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

func (*KnownTypes) GetFlt

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

func (*KnownTypes) GetI32

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

func (*KnownTypes) GetI64

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

func (*KnownTypes) GetLv

func (m *KnownTypes) GetLv() *types.ListValue

func (*KnownTypes) GetSt

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

func (*KnownTypes) GetStr

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

func (*KnownTypes) GetTs

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

func (*KnownTypes) GetU32

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

func (*KnownTypes) GetU64

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

func (*KnownTypes) GetVal

func (m *KnownTypes) GetVal() *types.Value

func (*KnownTypes) ProtoMessage

func (*KnownTypes) ProtoMessage()

func (*KnownTypes) Reset

func (m *KnownTypes) Reset()

func (*KnownTypes) String

func (m *KnownTypes) String() string

func (*KnownTypes) XXX_DiscardUnknown added in v1.1.0

func (m *KnownTypes) XXX_DiscardUnknown()

func (*KnownTypes) XXX_Marshal added in v1.1.0

func (m *KnownTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KnownTypes) XXX_Merge added in v1.1.0

func (dst *KnownTypes) XXX_Merge(src proto.Message)

func (*KnownTypes) XXX_Size added in v1.1.0

func (m *KnownTypes) XXX_Size() int

func (*KnownTypes) XXX_Unmarshal added in v1.1.0

func (m *KnownTypes) XXX_Unmarshal(b []byte) error

type Mappy

type Mappy struct {
	Nummy                map[int64]int32    `` /* 153-byte string literal not displayed */
	Strry                map[string]string  `` /* 151-byte string literal not displayed */
	Objjy                map[int32]*Simple3 `` /* 152-byte string literal not displayed */
	Buggy                map[int64]string   `` /* 152-byte string literal not displayed */
	Booly                map[bool]bool      `` /* 153-byte string literal not displayed */
	Enumy                map[string]Numeral `` /* 172-byte string literal not displayed */
	S32Booly             map[int32]bool     `` /* 159-byte string literal not displayed */
	S64Booly             map[int64]bool     `` /* 159-byte string literal not displayed */
	U32Booly             map[uint32]bool    `` /* 159-byte string literal not displayed */
	U64Booly             map[uint64]bool    `` /* 160-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

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

func (*Mappy) XXX_DiscardUnknown added in v1.1.0

func (m *Mappy) XXX_DiscardUnknown()

func (*Mappy) XXX_Marshal added in v1.1.0

func (m *Mappy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Mappy) XXX_Merge added in v1.1.0

func (dst *Mappy) XXX_Merge(src proto.Message)

func (*Mappy) XXX_Size added in v1.1.0

func (m *Mappy) XXX_Size() int

func (*Mappy) XXX_Unmarshal added in v1.1.0

func (m *Mappy) XXX_Unmarshal(b []byte) error

type Maps

type Maps struct {
	MInt64Str            map[int64]string `` /* 158-byte string literal not displayed */
	MBoolSimple          map[bool]*Simple `` /* 164-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `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

func (*Maps) XXX_DiscardUnknown added in v1.1.0

func (m *Maps) XXX_DiscardUnknown()

func (*Maps) XXX_Marshal added in v1.1.0

func (m *Maps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Maps) XXX_Merge added in v1.1.0

func (dst *Maps) XXX_Merge(src proto.Message)

func (*Maps) XXX_Size added in v1.1.0

func (m *Maps) XXX_Size() int

func (*Maps) XXX_Unmarshal added in v1.1.0

func (m *Maps) XXX_Unmarshal(b []byte) error

type MsgWithIndirectRequired added in v1.1.0

type MsgWithIndirectRequired struct {
	Subm                 *MsgWithRequired            `protobuf:"bytes,1,opt,name=subm" json:"subm,omitempty"`
	MapField             map[string]*MsgWithRequired `` /* 152-byte string literal not displayed */
	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 added in v1.1.0

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

func (*MsgWithIndirectRequired) GetMapField added in v1.1.0

func (m *MsgWithIndirectRequired) GetMapField() map[string]*MsgWithRequired

func (*MsgWithIndirectRequired) GetSliceField added in v1.1.0

func (m *MsgWithIndirectRequired) GetSliceField() []*MsgWithRequired

func (*MsgWithIndirectRequired) GetSubm added in v1.1.0

func (*MsgWithIndirectRequired) ProtoMessage added in v1.1.0

func (*MsgWithIndirectRequired) ProtoMessage()

func (*MsgWithIndirectRequired) Reset added in v1.1.0

func (m *MsgWithIndirectRequired) Reset()

func (*MsgWithIndirectRequired) String added in v1.1.0

func (m *MsgWithIndirectRequired) String() string

func (*MsgWithIndirectRequired) XXX_DiscardUnknown added in v1.1.0

func (m *MsgWithIndirectRequired) XXX_DiscardUnknown()

func (*MsgWithIndirectRequired) XXX_Marshal added in v1.1.0

func (m *MsgWithIndirectRequired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithIndirectRequired) XXX_Merge added in v1.1.0

func (dst *MsgWithIndirectRequired) XXX_Merge(src proto.Message)

func (*MsgWithIndirectRequired) XXX_Size added in v1.1.0

func (m *MsgWithIndirectRequired) XXX_Size() int

func (*MsgWithIndirectRequired) XXX_Unmarshal added in v1.1.0

func (m *MsgWithIndirectRequired) XXX_Unmarshal(b []byte) error

type MsgWithOneof

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

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

func (*MsgWithOneof) GetCountry

func (m *MsgWithOneof) GetCountry() string

func (*MsgWithOneof) GetHomeAddress

func (m *MsgWithOneof) GetHomeAddress() string

func (*MsgWithOneof) GetMsgWithRequired added in v1.1.0

func (m *MsgWithOneof) GetMsgWithRequired() *MsgWithRequired

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_DiscardUnknown added in v1.1.0

func (m *MsgWithOneof) XXX_DiscardUnknown()

func (*MsgWithOneof) XXX_Marshal added in v1.1.0

func (m *MsgWithOneof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithOneof) XXX_Merge added in v1.1.0

func (dst *MsgWithOneof) XXX_Merge(src proto.Message)

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.

func (*MsgWithOneof) XXX_Size added in v1.1.0

func (m *MsgWithOneof) XXX_Size() int

func (*MsgWithOneof) XXX_Unmarshal added in v1.1.0

func (m *MsgWithOneof) XXX_Unmarshal(b []byte) error

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_MsgWithRequired added in v1.1.0

type MsgWithOneof_MsgWithRequired struct {
	MsgWithRequired *MsgWithRequired `protobuf:"bytes,5,opt,name=msg_with_required,json=msgWithRequired,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 MsgWithRequired added in v1.1.0

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:"-"`
}

Test messages for marshaling/unmarshaling required fields.

func (*MsgWithRequired) Descriptor added in v1.1.0

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

func (*MsgWithRequired) GetStr added in v1.1.0

func (m *MsgWithRequired) GetStr() string

func (*MsgWithRequired) ProtoMessage added in v1.1.0

func (*MsgWithRequired) ProtoMessage()

func (*MsgWithRequired) Reset added in v1.1.0

func (m *MsgWithRequired) Reset()

func (*MsgWithRequired) String added in v1.1.0

func (m *MsgWithRequired) String() string

func (*MsgWithRequired) XXX_DiscardUnknown added in v1.1.0

func (m *MsgWithRequired) XXX_DiscardUnknown()

func (*MsgWithRequired) XXX_Marshal added in v1.1.0

func (m *MsgWithRequired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithRequired) XXX_Merge added in v1.1.0

func (dst *MsgWithRequired) XXX_Merge(src proto.Message)

func (*MsgWithRequired) XXX_Size added in v1.1.0

func (m *MsgWithRequired) XXX_Size() int

func (*MsgWithRequired) XXX_Unmarshal added in v1.1.0

func (m *MsgWithRequired) XXX_Unmarshal(b []byte) error

type MsgWithRequiredBytes added in v1.1.0

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 added in v1.1.0

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

func (*MsgWithRequiredBytes) GetByts added in v1.1.0

func (m *MsgWithRequiredBytes) GetByts() []byte

func (*MsgWithRequiredBytes) ProtoMessage added in v1.1.0

func (*MsgWithRequiredBytes) ProtoMessage()

func (*MsgWithRequiredBytes) Reset added in v1.1.0

func (m *MsgWithRequiredBytes) Reset()

func (*MsgWithRequiredBytes) String added in v1.1.0

func (m *MsgWithRequiredBytes) String() string

func (*MsgWithRequiredBytes) XXX_DiscardUnknown added in v1.1.0

func (m *MsgWithRequiredBytes) XXX_DiscardUnknown()

func (*MsgWithRequiredBytes) XXX_Marshal added in v1.1.0

func (m *MsgWithRequiredBytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithRequiredBytes) XXX_Merge added in v1.1.0

func (dst *MsgWithRequiredBytes) XXX_Merge(src proto.Message)

func (*MsgWithRequiredBytes) XXX_Size added in v1.1.0

func (m *MsgWithRequiredBytes) XXX_Size() int

func (*MsgWithRequiredBytes) XXX_Unmarshal added in v1.1.0

func (m *MsgWithRequiredBytes) XXX_Unmarshal(b []byte) error

type MsgWithRequiredWKT added in v1.1.0

type MsgWithRequiredWKT struct {
	Str                  *types.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 added in v1.1.0

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

func (*MsgWithRequiredWKT) GetStr added in v1.1.0

func (m *MsgWithRequiredWKT) GetStr() *types.StringValue

func (*MsgWithRequiredWKT) ProtoMessage added in v1.1.0

func (*MsgWithRequiredWKT) ProtoMessage()

func (*MsgWithRequiredWKT) Reset added in v1.1.0

func (m *MsgWithRequiredWKT) Reset()

func (*MsgWithRequiredWKT) String added in v1.1.0

func (m *MsgWithRequiredWKT) String() string

func (*MsgWithRequiredWKT) XXX_DiscardUnknown added in v1.1.0

func (m *MsgWithRequiredWKT) XXX_DiscardUnknown()

func (*MsgWithRequiredWKT) XXX_Marshal added in v1.1.0

func (m *MsgWithRequiredWKT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgWithRequiredWKT) XXX_Merge added in v1.1.0

func (dst *MsgWithRequiredWKT) XXX_Merge(src proto.Message)

func (*MsgWithRequiredWKT) XXX_Size added in v1.1.0

func (m *MsgWithRequiredWKT) XXX_Size() int

func (*MsgWithRequiredWKT) XXX_Unmarshal added in v1.1.0

func (m *MsgWithRequiredWKT) XXX_Unmarshal(b []byte) error

type NonFinites

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:"-"`
}

Test message for holding special non-finites primitives.

func (*NonFinites) Descriptor

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

func (*NonFinites) GetDNan

func (m *NonFinites) GetDNan() float64

func (*NonFinites) GetDNinf

func (m *NonFinites) GetDNinf() float64

func (*NonFinites) GetDPinf

func (m *NonFinites) GetDPinf() float64

func (*NonFinites) GetFNan

func (m *NonFinites) GetFNan() float32

func (*NonFinites) GetFNinf

func (m *NonFinites) GetFNinf() float32

func (*NonFinites) GetFPinf

func (m *NonFinites) GetFPinf() float32

func (*NonFinites) ProtoMessage

func (*NonFinites) ProtoMessage()

func (*NonFinites) Reset

func (m *NonFinites) Reset()

func (*NonFinites) String

func (m *NonFinites) String() string

func (*NonFinites) XXX_DiscardUnknown added in v1.1.0

func (m *NonFinites) XXX_DiscardUnknown()

func (*NonFinites) XXX_Marshal added in v1.1.0

func (m *NonFinites) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NonFinites) XXX_Merge added in v1.1.0

func (dst *NonFinites) XXX_Merge(src proto.Message)

func (*NonFinites) XXX_Size added in v1.1.0

func (m *NonFinites) XXX_Size() int

func (*NonFinites) XXX_Unmarshal added in v1.1.0

func (m *NonFinites) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral         struct{} `json:"-"`
	proto.XXX_InternalExtensions `json:"-"`
	XXX_unrecognized             []byte `json:"-"`
	XXX_sizecache                int32  `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

func (*Real) XXX_DiscardUnknown added in v1.1.0

func (m *Real) XXX_DiscardUnknown()

func (*Real) XXX_Marshal added in v1.1.0

func (m *Real) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Real) XXX_Merge added in v1.1.0

func (dst *Real) XXX_Merge(src proto.Message)

func (*Real) XXX_Size added in v1.1.0

func (m *Real) XXX_Size() int

func (*Real) XXX_Unmarshal added in v1.1.0

func (m *Real) XXX_Unmarshal(b []byte) error

type Repeats

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:"-"`
}

Test message for holding repeated primitives.

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

func (*Repeats) XXX_DiscardUnknown added in v1.1.0

func (m *Repeats) XXX_DiscardUnknown()

func (*Repeats) XXX_Marshal added in v1.1.0

func (m *Repeats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Repeats) XXX_Merge added in v1.1.0

func (dst *Repeats) XXX_Merge(src proto.Message)

func (*Repeats) XXX_Size added in v1.1.0

func (m *Repeats) XXX_Size() int

func (*Repeats) XXX_Unmarshal added in v1.1.0

func (m *Repeats) XXX_Unmarshal(b []byte) error

type Simple

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"`
	OCastBytes           Bytes    `protobuf:"bytes,20,opt,name=o_cast_bytes,json=oCastBytes,casttype=Bytes" json:"o_cast_bytes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Test message for holding primitive types.

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) GetODoubleStr added in v1.2.0

func (m *Simple) GetODoubleStr() float64

func (*Simple) GetOFloat

func (m *Simple) GetOFloat() float32

func (*Simple) GetOFloatStr added in v1.2.0

func (m *Simple) GetOFloatStr() float32

func (*Simple) GetOInt32

func (m *Simple) GetOInt32() int32

func (*Simple) GetOInt32Str added in v1.2.0

func (m *Simple) GetOInt32Str() int32

func (*Simple) GetOInt64

func (m *Simple) GetOInt64() int64

func (*Simple) GetOInt64Str added in v1.2.0

func (m *Simple) GetOInt64Str() int64

func (*Simple) GetOSint32

func (m *Simple) GetOSint32() int32

func (*Simple) GetOSint32Str added in v1.2.0

func (m *Simple) GetOSint32Str() int32

func (*Simple) GetOSint64

func (m *Simple) GetOSint64() int64

func (*Simple) GetOSint64Str added in v1.2.0

func (m *Simple) GetOSint64Str() int64

func (*Simple) GetOString

func (m *Simple) GetOString() string

func (*Simple) GetOUint32

func (m *Simple) GetOUint32() uint32

func (*Simple) GetOUint32Str added in v1.2.0

func (m *Simple) GetOUint32Str() uint32

func (*Simple) GetOUint64

func (m *Simple) GetOUint64() uint64

func (*Simple) GetOUint64Str added in v1.2.0

func (m *Simple) GetOUint64Str() uint64

func (*Simple) ProtoMessage

func (*Simple) ProtoMessage()

func (*Simple) Reset

func (m *Simple) Reset()

func (*Simple) String

func (m *Simple) String() string

func (*Simple) XXX_DiscardUnknown added in v1.1.0

func (m *Simple) XXX_DiscardUnknown()

func (*Simple) XXX_Marshal added in v1.1.0

func (m *Simple) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Simple) XXX_Merge added in v1.1.0

func (dst *Simple) XXX_Merge(src proto.Message)

func (*Simple) XXX_Size added in v1.1.0

func (m *Simple) XXX_Size() int

func (*Simple) XXX_Unmarshal added in v1.1.0

func (m *Simple) XXX_Unmarshal(b []byte) error

type Simple3

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

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

func (*Simple3) XXX_DiscardUnknown added in v1.1.0

func (m *Simple3) XXX_DiscardUnknown()

func (*Simple3) XXX_Marshal added in v1.1.0

func (m *Simple3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Simple3) XXX_Merge added in v1.1.0

func (dst *Simple3) XXX_Merge(src proto.Message)

func (*Simple3) XXX_Size added in v1.1.0

func (m *Simple3) XXX_Size() int

func (*Simple3) XXX_Unmarshal added in v1.1.0

func (m *Simple3) XXX_Unmarshal(b []byte) error

type SimpleMap3

type SimpleMap3 struct {
	Stringy              map[string]string `` /* 155-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*SimpleMap3) Descriptor

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

func (*SimpleMap3) GetStringy

func (m *SimpleMap3) GetStringy() map[string]string

func (*SimpleMap3) ProtoMessage

func (*SimpleMap3) ProtoMessage()

func (*SimpleMap3) Reset

func (m *SimpleMap3) Reset()

func (*SimpleMap3) String

func (m *SimpleMap3) String() string

func (*SimpleMap3) XXX_DiscardUnknown added in v1.1.0

func (m *SimpleMap3) XXX_DiscardUnknown()

func (*SimpleMap3) XXX_Marshal added in v1.1.0

func (m *SimpleMap3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SimpleMap3) XXX_Merge added in v1.1.0

func (dst *SimpleMap3) XXX_Merge(src proto.Message)

func (*SimpleMap3) XXX_Size added in v1.1.0

func (m *SimpleMap3) XXX_Size() int

func (*SimpleMap3) XXX_Unmarshal added in v1.1.0

func (m *SimpleMap3) XXX_Unmarshal(b []byte) error

type SimpleNull3

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

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

func (*SimpleNull3) GetSimple

func (m *SimpleNull3) GetSimple() *Simple3

func (*SimpleNull3) ProtoMessage

func (*SimpleNull3) ProtoMessage()

func (*SimpleNull3) Reset

func (m *SimpleNull3) Reset()

func (*SimpleNull3) String

func (m *SimpleNull3) String() string

func (*SimpleNull3) XXX_DiscardUnknown added in v1.1.0

func (m *SimpleNull3) XXX_DiscardUnknown()

func (*SimpleNull3) XXX_Marshal added in v1.1.0

func (m *SimpleNull3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SimpleNull3) XXX_Merge added in v1.1.0

func (dst *SimpleNull3) XXX_Merge(src proto.Message)

func (*SimpleNull3) XXX_Size added in v1.1.0

func (m *SimpleNull3) XXX_Size() int

func (*SimpleNull3) XXX_Unmarshal added in v1.1.0

func (m *SimpleNull3) XXX_Unmarshal(b []byte) error

type SimpleSlice3

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

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

func (*SimpleSlice3) GetSlices

func (m *SimpleSlice3) GetSlices() []string

func (*SimpleSlice3) ProtoMessage

func (*SimpleSlice3) ProtoMessage()

func (*SimpleSlice3) Reset

func (m *SimpleSlice3) Reset()

func (*SimpleSlice3) String

func (m *SimpleSlice3) String() string

func (*SimpleSlice3) XXX_DiscardUnknown added in v1.1.0

func (m *SimpleSlice3) XXX_DiscardUnknown()

func (*SimpleSlice3) XXX_Marshal added in v1.1.0

func (m *SimpleSlice3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SimpleSlice3) XXX_Merge added in v1.1.0

func (dst *SimpleSlice3) XXX_Merge(src proto.Message)

func (*SimpleSlice3) XXX_Size added in v1.1.0

func (m *SimpleSlice3) XXX_Size() int

func (*SimpleSlice3) XXX_Unmarshal added in v1.1.0

func (m *SimpleSlice3) XXX_Unmarshal(b []byte) error

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,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:"-"`
}

Test message for holding enums and nested messages.

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

func (*Widget) XXX_DiscardUnknown added in v1.1.0

func (m *Widget) XXX_DiscardUnknown()

func (*Widget) XXX_Marshal added in v1.1.0

func (m *Widget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Widget) XXX_Merge added in v1.1.0

func (dst *Widget) XXX_Merge(src proto.Message)

func (*Widget) XXX_Size added in v1.1.0

func (m *Widget) XXX_Size() int

func (*Widget) XXX_Unmarshal added in v1.1.0

func (m *Widget) XXX_Unmarshal(b []byte) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL