jsonpb_proto

package
v0.38.6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Widget_Color_name = map[int32]string{
		0: "RED",
		1: "GREEN",
		2: "BLUE",
	}
	Widget_Color_value = map[string]int32{
		"RED":   0,
		"GREEN": 1,
		"BLUE":  2,
	}
)

Enum value maps for Widget_Color.

View Source
var (
	// optional string name = 124;
	E_Name = &file_jsonpb_proto_test2_proto_extTypes[0]
	// optional jsonpb_test.MsgWithRequired extm = 125;
	E_Extm = &file_jsonpb_proto_test2_proto_extTypes[1]
	// optional jsonpb_test.Complex real_extension = 123;
	E_Complex_RealExtension = &file_jsonpb_proto_test2_proto_extTypes[2]
)

Extension fields to Real.

View Source
var (
	Numeral_name = map[int32]string{
		0: "UNKNOWN",
		1: "ARABIC",
		2: "ROMAN",
	}
	Numeral_value = map[string]int32{
		"UNKNOWN": 0,
		"ARABIC":  1,
		"ROMAN":   2,
	}
)

Enum value maps for Numeral.

View Source
var File_jsonpb_proto_test2_proto protoreflect.FileDescriptor
View Source
var File_jsonpb_proto_test3_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Complex

type Complex struct {
	Imaginary *float64 `protobuf:"fixed64,1,opt,name=imaginary" json:"imaginary,omitempty"`
	// contains filtered or unexported fields
}

func (*Complex) Descriptor deprecated

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

Deprecated: Use Complex.ProtoReflect.Descriptor instead.

func (*Complex) ExtensionRangeArray deprecated

func (*Complex) ExtensionRangeArray() []protoiface.ExtensionRangeV1

Deprecated: Use Complex.ProtoReflect.Descriptor.ExtensionRanges instead.

func (*Complex) GetImaginary

func (x *Complex) GetImaginary() float64

func (*Complex) ProtoMessage

func (*Complex) ProtoMessage()

func (*Complex) ProtoReflect

func (x *Complex) ProtoReflect() protoreflect.Message

func (*Complex) Reset

func (x *Complex) Reset()

func (*Complex) String

func (x *Complex) String() string

type KnownTypes

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"`
	// contains filtered or unexported fields
}

func (*KnownTypes) Descriptor deprecated

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

Deprecated: Use KnownTypes.ProtoReflect.Descriptor instead.

func (*KnownTypes) GetAn

func (x *KnownTypes) GetAn() *any.Any

func (*KnownTypes) GetBool

func (x *KnownTypes) GetBool() *wrappers.BoolValue

func (*KnownTypes) GetBytes

func (x *KnownTypes) GetBytes() *wrappers.BytesValue

func (*KnownTypes) GetDbl

func (x *KnownTypes) GetDbl() *wrappers.DoubleValue

func (*KnownTypes) GetDur

func (x *KnownTypes) GetDur() *duration.Duration

func (*KnownTypes) GetFlt

func (x *KnownTypes) GetFlt() *wrappers.FloatValue

func (*KnownTypes) GetI32

func (x *KnownTypes) GetI32() *wrappers.Int32Value

func (*KnownTypes) GetI64

func (x *KnownTypes) GetI64() *wrappers.Int64Value

func (*KnownTypes) GetLv

func (x *KnownTypes) GetLv() *_struct.ListValue

func (*KnownTypes) GetSt

func (x *KnownTypes) GetSt() *_struct.Struct

func (*KnownTypes) GetStr

func (x *KnownTypes) GetStr() *wrappers.StringValue

func (*KnownTypes) GetTs

func (x *KnownTypes) GetTs() *timestamp.Timestamp

func (*KnownTypes) GetU32

func (x *KnownTypes) GetU32() *wrappers.UInt32Value

func (*KnownTypes) GetU64

func (x *KnownTypes) GetU64() *wrappers.UInt64Value

func (*KnownTypes) GetVal

func (x *KnownTypes) GetVal() *_struct.Value

func (*KnownTypes) ProtoMessage

func (*KnownTypes) ProtoMessage()

func (*KnownTypes) ProtoReflect

func (x *KnownTypes) ProtoReflect() protoreflect.Message

func (*KnownTypes) Reset

func (x *KnownTypes) Reset()

func (*KnownTypes) String

func (x *KnownTypes) String() string

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 `` /* 177-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 */
	// contains filtered or unexported fields
}

func (*Mappy) Descriptor deprecated

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

Deprecated: Use Mappy.ProtoReflect.Descriptor instead.

func (*Mappy) GetBooly

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

func (*Mappy) GetBuggy

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

func (*Mappy) GetEnumy

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

func (*Mappy) GetNummy

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

func (*Mappy) GetObjjy

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

func (*Mappy) GetS32Booly

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

func (*Mappy) GetS64Booly

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

func (*Mappy) GetStrry

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

func (*Mappy) GetU32Booly

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

func (*Mappy) GetU64Booly

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

func (*Mappy) ProtoMessage

func (*Mappy) ProtoMessage()

func (*Mappy) ProtoReflect

func (x *Mappy) ProtoReflect() protoreflect.Message

func (*Mappy) Reset

func (x *Mappy) Reset()

func (*Mappy) String

func (x *Mappy) String() string

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 */
	// contains filtered or unexported fields
}

func (*Maps) Descriptor deprecated

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

Deprecated: Use Maps.ProtoReflect.Descriptor instead.

func (*Maps) GetMBoolSimple

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

func (*Maps) GetMInt64Str

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

func (*Maps) ProtoMessage

func (*Maps) ProtoMessage()

func (*Maps) ProtoReflect

func (x *Maps) ProtoReflect() protoreflect.Message

func (*Maps) Reset

func (x *Maps) Reset()

func (*Maps) String

func (x *Maps) String() string

type MsgWithIndirectRequired

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"`
	// contains filtered or unexported fields
}

func (*MsgWithIndirectRequired) Descriptor deprecated

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

Deprecated: Use MsgWithIndirectRequired.ProtoReflect.Descriptor instead.

func (*MsgWithIndirectRequired) GetMapField

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

func (*MsgWithIndirectRequired) GetSliceField

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

func (*MsgWithIndirectRequired) GetSubm

func (*MsgWithIndirectRequired) ProtoMessage

func (*MsgWithIndirectRequired) ProtoMessage()

func (*MsgWithIndirectRequired) ProtoReflect

func (x *MsgWithIndirectRequired) ProtoReflect() protoreflect.Message

func (*MsgWithIndirectRequired) Reset

func (x *MsgWithIndirectRequired) Reset()

func (*MsgWithIndirectRequired) String

func (x *MsgWithIndirectRequired) String() string

type MsgWithOneof

type MsgWithOneof struct {

	// Types that are assignable to Union:
	//	*MsgWithOneof_Title
	//	*MsgWithOneof_Salary
	//	*MsgWithOneof_Country
	//	*MsgWithOneof_HomeAddress
	//	*MsgWithOneof_MsgWithRequired
	Union isMsgWithOneof_Union `protobuf_oneof:"union"`
	// contains filtered or unexported fields
}

func (*MsgWithOneof) Descriptor deprecated

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

Deprecated: Use MsgWithOneof.ProtoReflect.Descriptor instead.

func (*MsgWithOneof) GetCountry

func (x *MsgWithOneof) GetCountry() string

func (*MsgWithOneof) GetHomeAddress

func (x *MsgWithOneof) GetHomeAddress() string

func (*MsgWithOneof) GetMsgWithRequired

func (x *MsgWithOneof) GetMsgWithRequired() *MsgWithRequired

func (*MsgWithOneof) GetSalary

func (x *MsgWithOneof) GetSalary() int64

func (*MsgWithOneof) GetTitle

func (x *MsgWithOneof) GetTitle() string

func (*MsgWithOneof) GetUnion

func (m *MsgWithOneof) GetUnion() isMsgWithOneof_Union

func (*MsgWithOneof) ProtoMessage

func (*MsgWithOneof) ProtoMessage()

func (*MsgWithOneof) ProtoReflect

func (x *MsgWithOneof) ProtoReflect() protoreflect.Message

func (*MsgWithOneof) Reset

func (x *MsgWithOneof) Reset()

func (*MsgWithOneof) String

func (x *MsgWithOneof) String() string

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

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

type MsgWithRequired struct {
	Str *string `protobuf:"bytes,1,req,name=str" json:"str,omitempty"`
	// contains filtered or unexported fields
}

Test messages for marshaling/unmarshaling required fields.

func (*MsgWithRequired) Descriptor deprecated

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

Deprecated: Use MsgWithRequired.ProtoReflect.Descriptor instead.

func (*MsgWithRequired) GetStr

func (x *MsgWithRequired) GetStr() string

func (*MsgWithRequired) ProtoMessage

func (*MsgWithRequired) ProtoMessage()

func (*MsgWithRequired) ProtoReflect

func (x *MsgWithRequired) ProtoReflect() protoreflect.Message

func (*MsgWithRequired) Reset

func (x *MsgWithRequired) Reset()

func (*MsgWithRequired) String

func (x *MsgWithRequired) String() string

type MsgWithRequiredBytes

type MsgWithRequiredBytes struct {
	Byts []byte `protobuf:"bytes,1,req,name=byts" json:"byts,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgWithRequiredBytes) Descriptor deprecated

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

Deprecated: Use MsgWithRequiredBytes.ProtoReflect.Descriptor instead.

func (*MsgWithRequiredBytes) GetByts

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

func (*MsgWithRequiredBytes) ProtoMessage

func (*MsgWithRequiredBytes) ProtoMessage()

func (*MsgWithRequiredBytes) ProtoReflect

func (x *MsgWithRequiredBytes) ProtoReflect() protoreflect.Message

func (*MsgWithRequiredBytes) Reset

func (x *MsgWithRequiredBytes) Reset()

func (*MsgWithRequiredBytes) String

func (x *MsgWithRequiredBytes) String() string

type MsgWithRequiredWKT

type MsgWithRequiredWKT struct {
	Str *wrappers.StringValue `protobuf:"bytes,1,req,name=str" json:"str,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgWithRequiredWKT) Descriptor deprecated

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

Deprecated: Use MsgWithRequiredWKT.ProtoReflect.Descriptor instead.

func (*MsgWithRequiredWKT) GetStr

func (*MsgWithRequiredWKT) ProtoMessage

func (*MsgWithRequiredWKT) ProtoMessage()

func (*MsgWithRequiredWKT) ProtoReflect

func (x *MsgWithRequiredWKT) ProtoReflect() protoreflect.Message

func (*MsgWithRequiredWKT) Reset

func (x *MsgWithRequiredWKT) Reset()

func (*MsgWithRequiredWKT) String

func (x *MsgWithRequiredWKT) String() string

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"`
	// contains filtered or unexported fields
}

Test message for holding special non-finites primitives.

func (*NonFinites) Descriptor deprecated

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

Deprecated: Use NonFinites.ProtoReflect.Descriptor instead.

func (*NonFinites) GetDNan

func (x *NonFinites) GetDNan() float64

func (*NonFinites) GetDNinf

func (x *NonFinites) GetDNinf() float64

func (*NonFinites) GetDPinf

func (x *NonFinites) GetDPinf() float64

func (*NonFinites) GetFNan

func (x *NonFinites) GetFNan() float32

func (*NonFinites) GetFNinf

func (x *NonFinites) GetFNinf() float32

func (*NonFinites) GetFPinf

func (x *NonFinites) GetFPinf() float32

func (*NonFinites) ProtoMessage

func (*NonFinites) ProtoMessage()

func (*NonFinites) ProtoReflect

func (x *NonFinites) ProtoReflect() protoreflect.Message

func (*NonFinites) Reset

func (x *NonFinites) Reset()

func (*NonFinites) String

func (x *NonFinites) String() string

type Numeral

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

func (Numeral) Descriptor

func (Numeral) Descriptor() protoreflect.EnumDescriptor

func (Numeral) Enum

func (x Numeral) Enum() *Numeral

func (Numeral) EnumDescriptor deprecated

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

Deprecated: Use Numeral.Descriptor instead.

func (Numeral) Number

func (x Numeral) Number() protoreflect.EnumNumber

func (Numeral) String

func (x Numeral) String() string

func (Numeral) Type

func (Numeral) Type() protoreflect.EnumType

type Real

type Real struct {
	Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Real) Descriptor deprecated

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

Deprecated: Use Real.ProtoReflect.Descriptor instead.

func (*Real) ExtensionRangeArray deprecated

func (*Real) ExtensionRangeArray() []protoiface.ExtensionRangeV1

Deprecated: Use Real.ProtoReflect.Descriptor.ExtensionRanges instead.

func (*Real) GetValue

func (x *Real) GetValue() float64

func (*Real) ProtoMessage

func (*Real) ProtoMessage()

func (*Real) ProtoReflect

func (x *Real) ProtoReflect() protoreflect.Message

func (*Real) Reset

func (x *Real) Reset()

func (*Real) String

func (x *Real) String() string

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"`
	// contains filtered or unexported fields
}

Test message for holding repeated primitives.

func (*Repeats) Descriptor deprecated

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

Deprecated: Use Repeats.ProtoReflect.Descriptor instead.

func (*Repeats) GetRBool

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

func (*Repeats) GetRBytes

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

func (*Repeats) GetRDouble

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

func (*Repeats) GetRFloat

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

func (*Repeats) GetRInt32

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

func (*Repeats) GetRInt64

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

func (*Repeats) GetRSint32

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

func (*Repeats) GetRSint64

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

func (*Repeats) GetRString

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

func (*Repeats) GetRUint32

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

func (*Repeats) GetRUint64

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

func (*Repeats) ProtoMessage

func (*Repeats) ProtoMessage()

func (*Repeats) ProtoReflect

func (x *Repeats) ProtoReflect() protoreflect.Message

func (*Repeats) Reset

func (x *Repeats) Reset()

func (*Repeats) String

func (x *Repeats) String() string

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"`
	// contains filtered or unexported fields
}

Test message for holding primitive types.

func (*Simple) Descriptor deprecated

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

Deprecated: Use Simple.ProtoReflect.Descriptor instead.

func (*Simple) GetOBool

func (x *Simple) GetOBool() bool

func (*Simple) GetOBytes

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

func (*Simple) GetODouble

func (x *Simple) GetODouble() float64

func (*Simple) GetODoubleStr

func (x *Simple) GetODoubleStr() float64

func (*Simple) GetOFloat

func (x *Simple) GetOFloat() float32

func (*Simple) GetOFloatStr

func (x *Simple) GetOFloatStr() float32

func (*Simple) GetOInt32

func (x *Simple) GetOInt32() int32

func (*Simple) GetOInt32Str

func (x *Simple) GetOInt32Str() int32

func (*Simple) GetOInt64

func (x *Simple) GetOInt64() int64

func (*Simple) GetOInt64Str

func (x *Simple) GetOInt64Str() int64

func (*Simple) GetOSint32

func (x *Simple) GetOSint32() int32

func (*Simple) GetOSint32Str

func (x *Simple) GetOSint32Str() int32

func (*Simple) GetOSint64

func (x *Simple) GetOSint64() int64

func (*Simple) GetOSint64Str

func (x *Simple) GetOSint64Str() int64

func (*Simple) GetOString

func (x *Simple) GetOString() string

func (*Simple) GetOUint32

func (x *Simple) GetOUint32() uint32

func (*Simple) GetOUint32Str

func (x *Simple) GetOUint32Str() uint32

func (*Simple) GetOUint64

func (x *Simple) GetOUint64() uint64

func (*Simple) GetOUint64Str

func (x *Simple) GetOUint64Str() uint64

func (*Simple) ProtoMessage

func (*Simple) ProtoMessage()

func (*Simple) ProtoReflect

func (x *Simple) ProtoReflect() protoreflect.Message

func (*Simple) Reset

func (x *Simple) Reset()

func (*Simple) String

func (x *Simple) String() string

type Simple3

type Simple3 struct {
	Dub float64 `protobuf:"fixed64,1,opt,name=dub,proto3" json:"dub,omitempty"`
	// contains filtered or unexported fields
}

func (*Simple3) Descriptor deprecated

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

Deprecated: Use Simple3.ProtoReflect.Descriptor instead.

func (*Simple3) GetDub

func (x *Simple3) GetDub() float64

func (*Simple3) ProtoMessage

func (*Simple3) ProtoMessage()

func (*Simple3) ProtoReflect

func (x *Simple3) ProtoReflect() protoreflect.Message

func (*Simple3) Reset

func (x *Simple3) Reset()

func (*Simple3) String

func (x *Simple3) String() string

type SimpleMap3

type SimpleMap3 struct {
	Stringy map[string]string `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SimpleMap3) Descriptor deprecated

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

Deprecated: Use SimpleMap3.ProtoReflect.Descriptor instead.

func (*SimpleMap3) GetStringy

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

func (*SimpleMap3) ProtoMessage

func (*SimpleMap3) ProtoMessage()

func (*SimpleMap3) ProtoReflect

func (x *SimpleMap3) ProtoReflect() protoreflect.Message

func (*SimpleMap3) Reset

func (x *SimpleMap3) Reset()

func (*SimpleMap3) String

func (x *SimpleMap3) String() string

type SimpleNull3

type SimpleNull3 struct {
	Simple *Simple3 `protobuf:"bytes,1,opt,name=simple,proto3" json:"simple,omitempty"`
	// contains filtered or unexported fields
}

func (*SimpleNull3) Descriptor deprecated

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

Deprecated: Use SimpleNull3.ProtoReflect.Descriptor instead.

func (*SimpleNull3) GetSimple

func (x *SimpleNull3) GetSimple() *Simple3

func (*SimpleNull3) ProtoMessage

func (*SimpleNull3) ProtoMessage()

func (*SimpleNull3) ProtoReflect

func (x *SimpleNull3) ProtoReflect() protoreflect.Message

func (*SimpleNull3) Reset

func (x *SimpleNull3) Reset()

func (*SimpleNull3) String

func (x *SimpleNull3) String() string

type SimpleSlice3

type SimpleSlice3 struct {
	Slices []string `protobuf:"bytes,1,rep,name=slices,proto3" json:"slices,omitempty"`
	// contains filtered or unexported fields
}

func (*SimpleSlice3) Descriptor deprecated

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

Deprecated: Use SimpleSlice3.ProtoReflect.Descriptor instead.

func (*SimpleSlice3) GetSlices

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

func (*SimpleSlice3) ProtoMessage

func (*SimpleSlice3) ProtoMessage()

func (*SimpleSlice3) ProtoReflect

func (x *SimpleSlice3) ProtoReflect() protoreflect.Message

func (*SimpleSlice3) Reset

func (x *SimpleSlice3) Reset()

func (*SimpleSlice3) String

func (x *SimpleSlice3) String() string

type Widget

type Widget struct {
	Color    *Widget_Color  `protobuf:"varint,1,opt,name=color,enum=jsonpb_test.Widget_Color" json:"color,omitempty"`
	RColor   []Widget_Color `protobuf:"varint,2,rep,name=r_color,json=rColor,enum=jsonpb_test.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"`
	// contains filtered or unexported fields
}

Test message for holding enums and nested messages.

func (*Widget) Descriptor deprecated

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

Deprecated: Use Widget.ProtoReflect.Descriptor instead.

func (*Widget) GetColor

func (x *Widget) GetColor() Widget_Color

func (*Widget) GetRColor

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

func (*Widget) GetRRepeats

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

func (*Widget) GetRSimple

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

func (*Widget) GetRepeats

func (x *Widget) GetRepeats() *Repeats

func (*Widget) GetSimple

func (x *Widget) GetSimple() *Simple

func (*Widget) ProtoMessage

func (*Widget) ProtoMessage()

func (*Widget) ProtoReflect

func (x *Widget) ProtoReflect() protoreflect.Message

func (*Widget) Reset

func (x *Widget) Reset()

func (*Widget) String

func (x *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) Descriptor

func (Widget_Color) Enum

func (x Widget_Color) Enum() *Widget_Color

func (Widget_Color) EnumDescriptor deprecated

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

Deprecated: Use Widget_Color.Descriptor instead.

func (Widget_Color) Number

func (Widget_Color) String

func (x Widget_Color) String() string

func (Widget_Color) Type

func (*Widget_Color) UnmarshalJSON deprecated

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

Deprecated: Do not use.

Jump to

Keyboard shortcuts

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