test

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package test is a generated protocol buffer package.

It is generated from these files:

desc_test1.proto
desc_test_defaults.proto
desc_test_proto3.proto

It has these top-level messages:

TestMessage
AnotherTestMessage
PrimitiveDefaults
StringAndBytesDefaults
EnumDefaults
TestRequest
TestResponse
CustomOption

Index

Constants

View Source
const Default_PrimitiveDefaults_Bl1 bool = true
View Source
const Default_PrimitiveDefaults_Bl2 bool = false
View Source
const Default_PrimitiveDefaults_Fl32 float32 = 3.14159
View Source
const Default_PrimitiveDefaults_Fl32D float32 = 6.022141e+23
View Source
const Default_PrimitiveDefaults_Fl64 float64 = 3.14159
View Source
const Default_PrimitiveDefaults_Fl64D float64 = 6.022140857e+23
View Source
const Default_PrimitiveDefaults_I32 int32 = 10101
View Source
const Default_PrimitiveDefaults_I32F int32 = 10101
View Source
const Default_PrimitiveDefaults_I32Fn int32 = -10101
View Source
const Default_PrimitiveDefaults_I32Fx int32 = 131586
View Source
const Default_PrimitiveDefaults_I32Fxn int32 = -131586
View Source
const Default_PrimitiveDefaults_I32N int32 = -10101
View Source
const Default_PrimitiveDefaults_I32S int32 = 10101
View Source
const Default_PrimitiveDefaults_I32Sn int32 = -10101
View Source
const Default_PrimitiveDefaults_I32Sx int32 = 131586
View Source
const Default_PrimitiveDefaults_I32Sxn int32 = -131586
View Source
const Default_PrimitiveDefaults_I32X int32 = 131586
View Source
const Default_PrimitiveDefaults_I32Xn int32 = -131586
View Source
const Default_PrimitiveDefaults_I64 int64 = 10101
View Source
const Default_PrimitiveDefaults_I64F int64 = 10101
View Source
const Default_PrimitiveDefaults_I64Fn int64 = -10101
View Source
const Default_PrimitiveDefaults_I64Fx int64 = 131586
View Source
const Default_PrimitiveDefaults_I64Fxn int64 = -131586
View Source
const Default_PrimitiveDefaults_I64N int64 = -10101
View Source
const Default_PrimitiveDefaults_I64S int64 = 10101
View Source
const Default_PrimitiveDefaults_I64Sn int64 = -10101
View Source
const Default_PrimitiveDefaults_I64Sx int64 = 131586
View Source
const Default_PrimitiveDefaults_I64Sxn int64 = -131586
View Source
const Default_PrimitiveDefaults_I64X int64 = 131586
View Source
const Default_PrimitiveDefaults_I64Xn int64 = -131586
View Source
const Default_PrimitiveDefaults_U32 uint32 = 10101
View Source
const Default_PrimitiveDefaults_U32F uint32 = 10101
View Source
const Default_PrimitiveDefaults_U32Fx uint32 = 131586
View Source
const Default_PrimitiveDefaults_U32X uint32 = 131586
View Source
const Default_PrimitiveDefaults_U64 uint64 = 10101
View Source
const Default_PrimitiveDefaults_U64F uint64 = 10101
View Source
const Default_PrimitiveDefaults_U64Fx uint64 = 131586
View Source
const Default_PrimitiveDefaults_U64X uint64 = 131586
View Source
const Default_StringAndBytesDefaults_Dq string = "this is a string with \"nested quotes\""
View Source
const Default_StringAndBytesDefaults_Sq string = "this is a string with \"nested quotes\""
View Source
const Default_StringAndBytesDefaults_StringWithZero string = "hel\x00lo"
View Source
const Default_StringAndBytesDefaults_Utf8String string = "ሴ"

Variables

View Source
var Color_name = map[int32]string{
	0: "RED",
	1: "GREEN",
	2: "BLUE",
}
View Source
var Color_value = map[string]int32{
	"RED":   0,
	"GREEN": 1,
	"BLUE":  2,
}
View Source
var Default_PrimitiveDefaults_Fl32Inf float32 = float32(math.Inf(1))
View Source
var Default_PrimitiveDefaults_Fl32Nan float32 = float32(math.NaN())
View Source
var Default_PrimitiveDefaults_Fl32NegInf float32 = float32(math.Inf(-1))
View Source
var Default_PrimitiveDefaults_Fl64Inf float64 = math.Inf(1)
View Source
var Default_PrimitiveDefaults_Fl64Nan float64 = math.NaN()
View Source
var Default_PrimitiveDefaults_Fl64NegInf float64 = math.Inf(-1)
View Source
var Default_StringAndBytesDefaults_BytesWithZero []byte = []byte("wor\x00ld")
View Source
var Default_StringAndBytesDefaults_EscapedBytes []byte = []byte("\x00\x01\a\b\f\n\r\t\v\\'\"\xfe")
View Source
var E_Custom = &proto.ExtensionDesc{
	ExtendedType:  (*google_protobuf.MethodOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50059,
	Name:          "test.custom",
	Tag:           "varint,50059,opt,name=custom",
	Filename:      "desc_test_proto3.proto",
}
View Source
var E_Custom2 = &proto.ExtensionDesc{
	ExtendedType:  (*google_protobuf.MethodOptions)(nil),
	ExtensionType: (*CustomOption)(nil),
	Field:         50060,
	Name:          "test.custom2",
	Tag:           "bytes,50060,opt,name=custom2",
	Filename:      "desc_test_proto3.proto",
}
View Source
var E_Svccustom = &proto.ExtensionDesc{
	ExtendedType:  (*google_protobuf.ServiceOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50061,
	Name:          "test.svccustom",
	Tag:           "varint,50061,opt,name=svccustom",
	Filename:      "desc_test_proto3.proto",
}
View Source
var E_TestMessage_NestedMessage_AnotherNestedMessage_Flags = &proto.ExtensionDesc{
	ExtendedType:  (*AnotherTestMessage)(nil),
	ExtensionType: ([]bool)(nil),
	Field:         200,
	Name:          "test.TestMessage.NestedMessage.AnotherNestedMessage.flags",
	Tag:           "varint,200,rep,packed,name=flags",
	Filename:      "desc_test1.proto",
}
View Source
var E_Xi = &proto.ExtensionDesc{
	ExtendedType:  (*AnotherTestMessage)(nil),
	ExtensionType: (*int32)(nil),
	Field:         102,
	Name:          "test.xi",
	Tag:           "varint,102,opt,name=xi",
	Filename:      "desc_test1.proto",
}
View Source
var E_Xs = &proto.ExtensionDesc{
	ExtendedType:  (*AnotherTestMessage)(nil),
	ExtensionType: (*string)(nil),
	Field:         101,
	Name:          "test.xs",
	Tag:           "bytes,101,opt,name=xs",
	Filename:      "desc_test1.proto",
}
View Source
var E_Xtm = &proto.ExtensionDesc{
	ExtendedType:  (*AnotherTestMessage)(nil),
	ExtensionType: (*TestMessage)(nil),
	Field:         100,
	Name:          "test.xtm",
	Tag:           "bytes,100,opt,name=xtm",
	Filename:      "desc_test1.proto",
}
View Source
var E_Xui = &proto.ExtensionDesc{
	ExtendedType:  (*AnotherTestMessage)(nil),
	ExtensionType: (*uint64)(nil),
	Field:         103,
	Name:          "test.xui",
	Tag:           "varint,103,opt,name=xui",
	Filename:      "desc_test1.proto",
}
View Source
var Number_name = map[int32]string{
	0: "ZERO",

	1: "ONE",

	2: "TWO",
}
View Source
var Number_value = map[string]int32{
	"ZERO": 0,
	"ZED":  0,
	"NIL":  0,
	"NULL": 0,
	"ONE":  1,
	"UNO":  1,
	"TWO":  2,
	"DOS":  2,
}
View Source
var Proto3Enum_name = map[int32]string{
	0: "UNKNOWN",
	1: "VALUE1",
	2: "VALUE2",
}
View Source
var Proto3Enum_value = map[string]int32{
	"UNKNOWN": 0,
	"VALUE1":  1,
	"VALUE2":  2,
}
View Source
var TestMessage_NestedEnum_name = map[int32]string{
	1: "VALUE1",
	2: "VALUE2",
}
View Source
var TestMessage_NestedEnum_value = map[string]int32{
	"VALUE1": 1,
	"VALUE2": 2,
}
View Source
var TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum_name = map[int32]string{
	1: "VALUE1",
	2: "VALUE2",
}
View Source
var TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum_value = map[string]int32{
	"VALUE1": 1,
	"VALUE2": 2,
}

Functions

func RegisterTestServiceServer

func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer)

Types

type AnotherTestMessage

type AnotherTestMessage struct {
	// Comment for dne
	Dne *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum `` /* 151-byte string literal not displayed */
	// Comment for map_field1
	MapField1 map[int32]string `` /* 156-byte string literal not displayed */
	// Comment for map_field2
	MapField2 map[int64]float32 `` /* 158-byte string literal not displayed */
	// Comment for map_field3
	MapField3 map[uint32]bool `` /* 157-byte string literal not displayed */
	// Comment for map_field4
	MapField4 map[string]*AnotherTestMessage `` /* 155-byte string literal not displayed */
	Rocknroll *AnotherTestMessage_RockNRoll  `protobuf:"group,6,opt,name=RockNRoll,json=rocknroll" json:"rocknroll,omitempty"`
	// Comment for atmoo
	//
	// Types that are valid to be assigned to Atmoo:
	//	*AnotherTestMessage_Str
	//	*AnotherTestMessage_Int
	Atmoo                        isAnotherTestMessage_Atmoo `protobuf_oneof:"atmoo"`
	proto.XXX_InternalExtensions `json:"-"`
	XXX_unrecognized             []byte `json:"-"`
}

Comment for AnotherTestMessage

func (*AnotherTestMessage) Descriptor

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

func (*AnotherTestMessage) ExtensionRangeArray

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

func (*AnotherTestMessage) GetAtmoo

func (m *AnotherTestMessage) GetAtmoo() isAnotherTestMessage_Atmoo

func (*AnotherTestMessage) GetInt

func (m *AnotherTestMessage) GetInt() int64

func (*AnotherTestMessage) GetMapField1

func (m *AnotherTestMessage) GetMapField1() map[int32]string

func (*AnotherTestMessage) GetMapField2

func (m *AnotherTestMessage) GetMapField2() map[int64]float32

func (*AnotherTestMessage) GetMapField3

func (m *AnotherTestMessage) GetMapField3() map[uint32]bool

func (*AnotherTestMessage) GetMapField4

func (m *AnotherTestMessage) GetMapField4() map[string]*AnotherTestMessage

func (*AnotherTestMessage) GetRocknroll

func (*AnotherTestMessage) GetStr

func (m *AnotherTestMessage) GetStr() string

func (*AnotherTestMessage) ProtoMessage

func (*AnotherTestMessage) ProtoMessage()

func (*AnotherTestMessage) Reset

func (m *AnotherTestMessage) Reset()

func (*AnotherTestMessage) String

func (m *AnotherTestMessage) String() string

func (*AnotherTestMessage) XXX_OneofFuncs

func (*AnotherTestMessage) 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 AnotherTestMessage_Int

type AnotherTestMessage_Int struct {
	Int int64 `protobuf:"varint,8,opt,name=int,oneof"`
}

type AnotherTestMessage_RockNRoll

type AnotherTestMessage_RockNRoll struct {
	// Comment for beatles
	Beatles *string `protobuf:"bytes,1,opt,name=beatles" json:"beatles,omitempty"`
	// Comment for stones
	Stones *string `protobuf:"bytes,2,opt,name=stones" json:"stones,omitempty"`
	// Comment for doors
	Doors            *string `protobuf:"bytes,3,opt,name=doors" json:"doors,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Comment for RockNRoll

func (*AnotherTestMessage_RockNRoll) Descriptor

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

func (*AnotherTestMessage_RockNRoll) GetBeatles

func (m *AnotherTestMessage_RockNRoll) GetBeatles() string

func (*AnotherTestMessage_RockNRoll) GetDoors

func (m *AnotherTestMessage_RockNRoll) GetDoors() string

func (*AnotherTestMessage_RockNRoll) GetStones

func (m *AnotherTestMessage_RockNRoll) GetStones() string

func (*AnotherTestMessage_RockNRoll) ProtoMessage

func (*AnotherTestMessage_RockNRoll) ProtoMessage()

func (*AnotherTestMessage_RockNRoll) Reset

func (m *AnotherTestMessage_RockNRoll) Reset()

func (*AnotherTestMessage_RockNRoll) String

type AnotherTestMessage_Str

type AnotherTestMessage_Str struct {
	Str string `protobuf:"bytes,7,opt,name=str,oneof"`
}

type Color

type Color int32
const (
	Color_RED   Color = 0
	Color_GREEN Color = 1
	Color_BLUE  Color = 2
)
const Default_EnumDefaults_Blue Color = Color_BLUE
const Default_EnumDefaults_Green Color = Color_GREEN
const Default_EnumDefaults_Red Color = Color_RED

func (Color) Enum

func (x Color) Enum() *Color

func (Color) EnumDescriptor

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

func (Color) String

func (x Color) String() string

func (*Color) UnmarshalJSON

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

type CustomOption

type CustomOption struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value int32  `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
}

func (*CustomOption) Descriptor

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

func (*CustomOption) GetName

func (m *CustomOption) GetName() string

func (*CustomOption) GetValue

func (m *CustomOption) GetValue() int32

func (*CustomOption) ProtoMessage

func (*CustomOption) ProtoMessage()

func (*CustomOption) Reset

func (m *CustomOption) Reset()

func (*CustomOption) String

func (m *CustomOption) String() string

type EnumDefaults

type EnumDefaults struct {
	Red              *Color  `protobuf:"varint,1,opt,name=red,enum=test.Color,def=0" json:"red,omitempty"`
	Green            *Color  `protobuf:"varint,2,opt,name=green,enum=test.Color,def=1" json:"green,omitempty"`
	Blue             *Color  `protobuf:"varint,3,opt,name=blue,enum=test.Color,def=2" json:"blue,omitempty"`
	Zero             *Number `protobuf:"varint,4,opt,name=zero,enum=test.Number,def=0" json:"zero,omitempty"`
	Zed              *Number `protobuf:"varint,5,opt,name=zed,enum=test.Number,def=0" json:"zed,omitempty"`
	One              *Number `protobuf:"varint,6,opt,name=one,enum=test.Number,def=1" json:"one,omitempty"`
	Dos              *Number `protobuf:"varint,7,opt,name=dos,enum=test.Number,def=2" json:"dos,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*EnumDefaults) Descriptor

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

func (*EnumDefaults) GetBlue

func (m *EnumDefaults) GetBlue() Color

func (*EnumDefaults) GetDos

func (m *EnumDefaults) GetDos() Number

func (*EnumDefaults) GetGreen

func (m *EnumDefaults) GetGreen() Color

func (*EnumDefaults) GetOne

func (m *EnumDefaults) GetOne() Number

func (*EnumDefaults) GetRed

func (m *EnumDefaults) GetRed() Color

func (*EnumDefaults) GetZed

func (m *EnumDefaults) GetZed() Number

func (*EnumDefaults) GetZero

func (m *EnumDefaults) GetZero() Number

func (*EnumDefaults) ProtoMessage

func (*EnumDefaults) ProtoMessage()

func (*EnumDefaults) Reset

func (m *EnumDefaults) Reset()

func (*EnumDefaults) String

func (m *EnumDefaults) String() string

type Number

type Number int32
const (
	Number_ZERO Number = 0
	Number_ZED  Number = 0
	Number_NIL  Number = 0
	Number_NULL Number = 0
	Number_ONE  Number = 1
	Number_UNO  Number = 1
	Number_TWO  Number = 2
	Number_DOS  Number = 2
)
const Default_EnumDefaults_Dos Number = Number_DOS
const Default_EnumDefaults_One Number = Number_ONE
const Default_EnumDefaults_Zed Number = Number_ZED
const Default_EnumDefaults_Zero Number = Number_ZERO

func (Number) Enum

func (x Number) Enum() *Number

func (Number) EnumDescriptor

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

func (Number) String

func (x Number) String() string

func (*Number) UnmarshalJSON

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

type PrimitiveDefaults

type PrimitiveDefaults struct {
	// simple default
	Fl32 *float32 `protobuf:"fixed32,1,opt,name=fl32,def=3.14159" json:"fl32,omitempty"`
	Fl64 *float64 `protobuf:"fixed64,2,opt,name=fl64,def=3.14159" json:"fl64,omitempty"`
	// exponent notation
	Fl32D *float32 `protobuf:"fixed32,3,opt,name=fl32d,def=6.022141e+23" json:"fl32d,omitempty"`
	Fl64D *float64 `protobuf:"fixed64,4,opt,name=fl64d,def=6.022140857e+23" json:"fl64d,omitempty"`
	// special values: inf, -inf, and nan
	Fl32Inf    *float32 `protobuf:"fixed32,5,opt,name=fl32inf,def=inf" json:"fl32inf,omitempty"`
	Fl64Inf    *float64 `protobuf:"fixed64,6,opt,name=fl64inf,def=inf" json:"fl64inf,omitempty"`
	Fl32NegInf *float32 `protobuf:"fixed32,7,opt,name=fl32negInf,def=-inf" json:"fl32negInf,omitempty"`
	Fl64NegInf *float64 `protobuf:"fixed64,8,opt,name=fl64negInf,def=-inf" json:"fl64negInf,omitempty"`
	Fl32Nan    *float32 `protobuf:"fixed32,9,opt,name=fl32nan,def=nan" json:"fl32nan,omitempty"`
	Fl64Nan    *float64 `protobuf:"fixed64,10,opt,name=fl64nan,def=nan" json:"fl64nan,omitempty"`
	Bl1        *bool    `protobuf:"varint,11,opt,name=bl1,def=1" json:"bl1,omitempty"`
	Bl2        *bool    `protobuf:"varint,12,opt,name=bl2,def=0" json:"bl2,omitempty"`
	// signed
	I32    *int32 `protobuf:"varint,13,opt,name=i32,def=10101" json:"i32,omitempty"`
	I32N   *int32 `protobuf:"varint,14,opt,name=i32n,def=-10101" json:"i32n,omitempty"`
	I32X   *int32 `protobuf:"varint,15,opt,name=i32x,def=131586" json:"i32x,omitempty"`
	I32Xn  *int32 `protobuf:"varint,16,opt,name=i32xn,def=-131586" json:"i32xn,omitempty"`
	I64    *int64 `protobuf:"varint,17,opt,name=i64,def=10101" json:"i64,omitempty"`
	I64N   *int64 `protobuf:"varint,18,opt,name=i64n,def=-10101" json:"i64n,omitempty"`
	I64X   *int64 `protobuf:"varint,19,opt,name=i64x,def=131586" json:"i64x,omitempty"`
	I64Xn  *int64 `protobuf:"varint,20,opt,name=i64xn,def=-131586" json:"i64xn,omitempty"`
	I32S   *int32 `protobuf:"zigzag32,21,opt,name=i32s,def=10101" json:"i32s,omitempty"`
	I32Sn  *int32 `protobuf:"zigzag32,22,opt,name=i32sn,def=-10101" json:"i32sn,omitempty"`
	I32Sx  *int32 `protobuf:"zigzag32,23,opt,name=i32sx,def=131586" json:"i32sx,omitempty"`
	I32Sxn *int32 `protobuf:"zigzag32,24,opt,name=i32sxn,def=-131586" json:"i32sxn,omitempty"`
	I64S   *int64 `protobuf:"zigzag64,25,opt,name=i64s,def=10101" json:"i64s,omitempty"`
	I64Sn  *int64 `protobuf:"zigzag64,26,opt,name=i64sn,def=-10101" json:"i64sn,omitempty"`
	I64Sx  *int64 `protobuf:"zigzag64,27,opt,name=i64sx,def=131586" json:"i64sx,omitempty"`
	I64Sxn *int64 `protobuf:"zigzag64,28,opt,name=i64sxn,def=-131586" json:"i64sxn,omitempty"`
	I32F   *int32 `protobuf:"fixed32,29,opt,name=i32f,def=10101" json:"i32f,omitempty"`
	I32Fn  *int32 `protobuf:"fixed32,30,opt,name=i32fn,def=-10101" json:"i32fn,omitempty"`
	I32Fx  *int32 `protobuf:"fixed32,31,opt,name=i32fx,def=131586" json:"i32fx,omitempty"`
	I32Fxn *int32 `protobuf:"fixed32,32,opt,name=i32fxn,def=-131586" json:"i32fxn,omitempty"`
	I64F   *int64 `protobuf:"fixed64,33,opt,name=i64f,def=10101" json:"i64f,omitempty"`
	I64Fn  *int64 `protobuf:"fixed64,34,opt,name=i64fn,def=-10101" json:"i64fn,omitempty"`
	I64Fx  *int64 `protobuf:"fixed64,35,opt,name=i64fx,def=131586" json:"i64fx,omitempty"`
	I64Fxn *int64 `protobuf:"fixed64,36,opt,name=i64fxn,def=-131586" json:"i64fxn,omitempty"`
	// unsigned
	U32              *uint32 `protobuf:"varint,37,opt,name=u32,def=10101" json:"u32,omitempty"`
	U32X             *uint32 `protobuf:"varint,38,opt,name=u32x,def=131586" json:"u32x,omitempty"`
	U64              *uint64 `protobuf:"varint,39,opt,name=u64,def=10101" json:"u64,omitempty"`
	U64X             *uint64 `protobuf:"varint,40,opt,name=u64x,def=131586" json:"u64x,omitempty"`
	U32F             *uint32 `protobuf:"fixed32,41,opt,name=u32f,def=10101" json:"u32f,omitempty"`
	U32Fx            *uint32 `protobuf:"fixed32,42,opt,name=u32fx,def=131586" json:"u32fx,omitempty"`
	U64F             *uint64 `protobuf:"fixed64,43,opt,name=u64f,def=10101" json:"u64f,omitempty"`
	U64Fx            *uint64 `protobuf:"fixed64,44,opt,name=u64fx,def=131586" json:"u64fx,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*PrimitiveDefaults) Descriptor

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

func (*PrimitiveDefaults) GetBl1

func (m *PrimitiveDefaults) GetBl1() bool

func (*PrimitiveDefaults) GetBl2

func (m *PrimitiveDefaults) GetBl2() bool

func (*PrimitiveDefaults) GetFl32

func (m *PrimitiveDefaults) GetFl32() float32

func (*PrimitiveDefaults) GetFl32D

func (m *PrimitiveDefaults) GetFl32D() float32

func (*PrimitiveDefaults) GetFl32Inf

func (m *PrimitiveDefaults) GetFl32Inf() float32

func (*PrimitiveDefaults) GetFl32Nan

func (m *PrimitiveDefaults) GetFl32Nan() float32

func (*PrimitiveDefaults) GetFl32NegInf

func (m *PrimitiveDefaults) GetFl32NegInf() float32

func (*PrimitiveDefaults) GetFl64

func (m *PrimitiveDefaults) GetFl64() float64

func (*PrimitiveDefaults) GetFl64D

func (m *PrimitiveDefaults) GetFl64D() float64

func (*PrimitiveDefaults) GetFl64Inf

func (m *PrimitiveDefaults) GetFl64Inf() float64

func (*PrimitiveDefaults) GetFl64Nan

func (m *PrimitiveDefaults) GetFl64Nan() float64

func (*PrimitiveDefaults) GetFl64NegInf

func (m *PrimitiveDefaults) GetFl64NegInf() float64

func (*PrimitiveDefaults) GetI32

func (m *PrimitiveDefaults) GetI32() int32

func (*PrimitiveDefaults) GetI32F

func (m *PrimitiveDefaults) GetI32F() int32

func (*PrimitiveDefaults) GetI32Fn

func (m *PrimitiveDefaults) GetI32Fn() int32

func (*PrimitiveDefaults) GetI32Fx

func (m *PrimitiveDefaults) GetI32Fx() int32

func (*PrimitiveDefaults) GetI32Fxn

func (m *PrimitiveDefaults) GetI32Fxn() int32

func (*PrimitiveDefaults) GetI32N

func (m *PrimitiveDefaults) GetI32N() int32

func (*PrimitiveDefaults) GetI32S

func (m *PrimitiveDefaults) GetI32S() int32

func (*PrimitiveDefaults) GetI32Sn

func (m *PrimitiveDefaults) GetI32Sn() int32

func (*PrimitiveDefaults) GetI32Sx

func (m *PrimitiveDefaults) GetI32Sx() int32

func (*PrimitiveDefaults) GetI32Sxn

func (m *PrimitiveDefaults) GetI32Sxn() int32

func (*PrimitiveDefaults) GetI32X

func (m *PrimitiveDefaults) GetI32X() int32

func (*PrimitiveDefaults) GetI32Xn

func (m *PrimitiveDefaults) GetI32Xn() int32

func (*PrimitiveDefaults) GetI64

func (m *PrimitiveDefaults) GetI64() int64

func (*PrimitiveDefaults) GetI64F

func (m *PrimitiveDefaults) GetI64F() int64

func (*PrimitiveDefaults) GetI64Fn

func (m *PrimitiveDefaults) GetI64Fn() int64

func (*PrimitiveDefaults) GetI64Fx

func (m *PrimitiveDefaults) GetI64Fx() int64

func (*PrimitiveDefaults) GetI64Fxn

func (m *PrimitiveDefaults) GetI64Fxn() int64

func (*PrimitiveDefaults) GetI64N

func (m *PrimitiveDefaults) GetI64N() int64

func (*PrimitiveDefaults) GetI64S

func (m *PrimitiveDefaults) GetI64S() int64

func (*PrimitiveDefaults) GetI64Sn

func (m *PrimitiveDefaults) GetI64Sn() int64

func (*PrimitiveDefaults) GetI64Sx

func (m *PrimitiveDefaults) GetI64Sx() int64

func (*PrimitiveDefaults) GetI64Sxn

func (m *PrimitiveDefaults) GetI64Sxn() int64

func (*PrimitiveDefaults) GetI64X

func (m *PrimitiveDefaults) GetI64X() int64

func (*PrimitiveDefaults) GetI64Xn

func (m *PrimitiveDefaults) GetI64Xn() int64

func (*PrimitiveDefaults) GetU32

func (m *PrimitiveDefaults) GetU32() uint32

func (*PrimitiveDefaults) GetU32F

func (m *PrimitiveDefaults) GetU32F() uint32

func (*PrimitiveDefaults) GetU32Fx

func (m *PrimitiveDefaults) GetU32Fx() uint32

func (*PrimitiveDefaults) GetU32X

func (m *PrimitiveDefaults) GetU32X() uint32

func (*PrimitiveDefaults) GetU64

func (m *PrimitiveDefaults) GetU64() uint64

func (*PrimitiveDefaults) GetU64F

func (m *PrimitiveDefaults) GetU64F() uint64

func (*PrimitiveDefaults) GetU64Fx

func (m *PrimitiveDefaults) GetU64Fx() uint64

func (*PrimitiveDefaults) GetU64X

func (m *PrimitiveDefaults) GetU64X() uint64

func (*PrimitiveDefaults) ProtoMessage

func (*PrimitiveDefaults) ProtoMessage()

func (*PrimitiveDefaults) Reset

func (m *PrimitiveDefaults) Reset()

func (*PrimitiveDefaults) String

func (m *PrimitiveDefaults) String() string

type Proto3Enum

type Proto3Enum int32
const (
	Proto3Enum_UNKNOWN Proto3Enum = 0
	Proto3Enum_VALUE1  Proto3Enum = 1
	Proto3Enum_VALUE2  Proto3Enum = 2
)

func (Proto3Enum) EnumDescriptor

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

func (Proto3Enum) String

func (x Proto3Enum) String() string

type StringAndBytesDefaults

type StringAndBytesDefaults struct {
	Dq               *string `protobuf:"bytes,1,opt,name=dq,def=this is a string with \"nested quotes\"" json:"dq,omitempty"`
	Sq               *string `protobuf:"bytes,2,opt,name=sq,def=this is a string with \"nested quotes\"" json:"sq,omitempty"`
	EscapedBytes     []byte  `` /* 150-byte string literal not displayed */
	Utf8String       *string `protobuf:"bytes,4,opt,name=utf8_string,json=utf8String,def=ሴ" json:"utf8_string,omitempty"`
	StringWithZero   *string `protobuf:"bytes,5,opt,name=string_with_zero,json=stringWithZero,def=hel\x00lo" json:"string_with_zero,omitempty"`
	BytesWithZero    []byte  `protobuf:"bytes,6,opt,name=bytes_with_zero,json=bytesWithZero,def=wor\\000ld" json:"bytes_with_zero,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*StringAndBytesDefaults) Descriptor

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

func (*StringAndBytesDefaults) GetBytesWithZero

func (m *StringAndBytesDefaults) GetBytesWithZero() []byte

func (*StringAndBytesDefaults) GetDq

func (m *StringAndBytesDefaults) GetDq() string

func (*StringAndBytesDefaults) GetEscapedBytes

func (m *StringAndBytesDefaults) GetEscapedBytes() []byte

func (*StringAndBytesDefaults) GetSq

func (m *StringAndBytesDefaults) GetSq() string

func (*StringAndBytesDefaults) GetStringWithZero

func (m *StringAndBytesDefaults) GetStringWithZero() string

func (*StringAndBytesDefaults) GetUtf8String

func (m *StringAndBytesDefaults) GetUtf8String() string

func (*StringAndBytesDefaults) ProtoMessage

func (*StringAndBytesDefaults) ProtoMessage()

func (*StringAndBytesDefaults) Reset

func (m *StringAndBytesDefaults) Reset()

func (*StringAndBytesDefaults) String

func (m *StringAndBytesDefaults) String() string

type TestMessage

type TestMessage struct {
	// Comment for nm
	Nm *TestMessage_NestedMessage `protobuf:"bytes,1,opt,name=nm" json:"nm,omitempty"`
	// Comment for anm
	Anm *TestMessage_NestedMessage_AnotherNestedMessage `protobuf:"bytes,2,opt,name=anm" json:"anm,omitempty"`
	// Comment for yanm
	Yanm *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage `protobuf:"bytes,3,opt,name=yanm" json:"yanm,omitempty"`
	// Comment for ne
	Ne               []TestMessage_NestedEnum `protobuf:"varint,4,rep,name=ne,enum=test.TestMessage_NestedEnum" json:"ne,omitempty"`
	XXX_unrecognized []byte                   `json:"-"`
}

Comment for TestMessage

func (*TestMessage) Descriptor

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

func (*TestMessage) GetAnm

func (*TestMessage) GetNe

func (m *TestMessage) GetNe() []TestMessage_NestedEnum

func (*TestMessage) GetNm

func (*TestMessage) ProtoMessage

func (*TestMessage) ProtoMessage()

func (*TestMessage) Reset

func (m *TestMessage) Reset()

func (*TestMessage) String

func (m *TestMessage) String() string

type TestMessage_NestedEnum

type TestMessage_NestedEnum int32

Comment for NestedEnum

const (
	// Comment for VALUE1
	TestMessage_VALUE1 TestMessage_NestedEnum = 1
	// Comment for VALUE2
	TestMessage_VALUE2 TestMessage_NestedEnum = 2
)

func (TestMessage_NestedEnum) Enum

func (TestMessage_NestedEnum) EnumDescriptor

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

func (TestMessage_NestedEnum) String

func (x TestMessage_NestedEnum) String() string

func (*TestMessage_NestedEnum) UnmarshalJSON

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

type TestMessage_NestedMessage

type TestMessage_NestedMessage struct {
	// Comment for anm
	Anm *TestMessage_NestedMessage_AnotherNestedMessage `protobuf:"bytes,1,opt,name=anm" json:"anm,omitempty"`
	// Comment for yanm
	Yanm             *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage `protobuf:"bytes,2,opt,name=yanm" json:"yanm,omitempty"`
	XXX_unrecognized []byte                                                                  `json:"-"`
}

Comment for NestedMessage

func (*TestMessage_NestedMessage) Descriptor

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

func (*TestMessage_NestedMessage) GetAnm

func (*TestMessage_NestedMessage) ProtoMessage

func (*TestMessage_NestedMessage) ProtoMessage()

func (*TestMessage_NestedMessage) Reset

func (m *TestMessage_NestedMessage) Reset()

func (*TestMessage_NestedMessage) String

func (m *TestMessage_NestedMessage) String() string

type TestMessage_NestedMessage_AnotherNestedMessage

type TestMessage_NestedMessage_AnotherNestedMessage struct {
	// Comment for yanm
	Yanm             []*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage `protobuf:"bytes,1,rep,name=yanm" json:"yanm,omitempty"`
	XXX_unrecognized []byte                                                                    `json:"-"`
}

Comment for AnotherNestedMessage

func (*TestMessage_NestedMessage_AnotherNestedMessage) Descriptor

func (*TestMessage_NestedMessage_AnotherNestedMessage) ProtoMessage

func (*TestMessage_NestedMessage_AnotherNestedMessage) Reset

func (*TestMessage_NestedMessage_AnotherNestedMessage) String

type TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage

type TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage struct {
	// Comment for foo
	Foo *string `protobuf:"bytes,1,opt,name=foo" json:"foo,omitempty"`
	// Comment for bar
	Bar *int32 `protobuf:"varint,2,opt,name=bar" json:"bar,omitempty"`
	// Comment for baz
	Baz []byte `protobuf:"bytes,3,opt,name=baz" json:"baz,omitempty"`
	// Comment for dne
	Dne *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum `` /* 151-byte string literal not displayed */
	// Comment for anm
	Anm *TestMessage_NestedMessage_AnotherNestedMessage `protobuf:"bytes,5,opt,name=anm" json:"anm,omitempty"`
	// Comment for nm
	Nm *TestMessage_NestedMessage `protobuf:"bytes,6,opt,name=nm" json:"nm,omitempty"`
	// Comment for tm
	Tm               *TestMessage `protobuf:"bytes,7,opt,name=tm" json:"tm,omitempty"`
	XXX_unrecognized []byte       `json:"-"`
}

Comment for YetAnotherNestedMessage

func (*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) Descriptor

func (*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetAnm

func (*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetBar

func (*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetBaz

func (*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetFoo

func (*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetNm

func (*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetTm

func (*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) ProtoMessage

func (*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) Reset

func (*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) String

type TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum

type TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum int32

Comment for DeeplyNestedEnum

const (
	// Comment for VALUE1
	TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_VALUE1 TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum = 1
	// Comment for VALUE2
	TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_VALUE2 TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum = 2
)

func (TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum) EnumDescriptor

func (TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum) String

func (*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum) UnmarshalJSON

type TestRequest

type TestRequest struct {
	Foo   []Proto3Enum                                    `protobuf:"varint,1,rep,packed,name=foo,enum=test.Proto3Enum" json:"foo,omitempty"`
	Bar   string                                          `protobuf:"bytes,2,opt,name=bar,proto3" json:"bar,omitempty"`
	Baz   *TestMessage                                    `protobuf:"bytes,3,opt,name=baz" json:"baz,omitempty"`
	Snafu *TestMessage_NestedMessage_AnotherNestedMessage `protobuf:"bytes,4,opt,name=snafu" json:"snafu,omitempty"`
	Flags map[string]bool                                 `` /* 145-byte string literal not displayed */
}

func (*TestRequest) Descriptor

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

func (*TestRequest) GetBar

func (m *TestRequest) GetBar() string

func (*TestRequest) GetBaz

func (m *TestRequest) GetBaz() *TestMessage

func (*TestRequest) GetFlags

func (m *TestRequest) GetFlags() map[string]bool

func (*TestRequest) GetFoo

func (m *TestRequest) GetFoo() []Proto3Enum

func (*TestRequest) GetSnafu

func (*TestRequest) ProtoMessage

func (*TestRequest) ProtoMessage()

func (*TestRequest) Reset

func (m *TestRequest) Reset()

func (*TestRequest) String

func (m *TestRequest) String() string

type TestResponse

type TestResponse struct {
	Atm *AnotherTestMessage `protobuf:"bytes,1,opt,name=atm" json:"atm,omitempty"`
	Vs  []int32             `protobuf:"varint,2,rep,packed,name=vs" json:"vs,omitempty"`
}

func (*TestResponse) Descriptor

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

func (*TestResponse) GetAtm

func (m *TestResponse) GetAtm() *AnotherTestMessage

func (*TestResponse) GetVs

func (m *TestResponse) GetVs() []int32

func (*TestResponse) ProtoMessage

func (*TestResponse) ProtoMessage()

func (*TestResponse) Reset

func (m *TestResponse) Reset()

func (*TestResponse) String

func (m *TestResponse) String() string

type TestServiceClient

type TestServiceClient interface {
	DoSomething(ctx context.Context, in *TestRequest, opts ...grpc.CallOption) (*jhump_protoreflect_desc.Bar, error)
	DoSomethingElse(ctx context.Context, opts ...grpc.CallOption) (TestService_DoSomethingElseClient, error)
	DoSomethingAgain(ctx context.Context, in *jhump_protoreflect_desc.Bar, opts ...grpc.CallOption) (TestService_DoSomethingAgainClient, error)
	DoSomethingForever(ctx context.Context, opts ...grpc.CallOption) (TestService_DoSomethingForeverClient, error)
}

func NewTestServiceClient

func NewTestServiceClient(cc *grpc.ClientConn) TestServiceClient

type TestService_DoSomethingAgainClient

type TestService_DoSomethingAgainClient interface {
	Recv() (*AnotherTestMessage, error)
	grpc.ClientStream
}

type TestService_DoSomethingAgainServer

type TestService_DoSomethingAgainServer interface {
	Send(*AnotherTestMessage) error
	grpc.ServerStream
}

type TestService_DoSomethingElseClient

type TestService_DoSomethingElseClient interface {
	Send(*TestMessage) error
	CloseAndRecv() (*TestResponse, error)
	grpc.ClientStream
}

type TestService_DoSomethingElseServer

type TestService_DoSomethingElseServer interface {
	SendAndClose(*TestResponse) error
	Recv() (*TestMessage, error)
	grpc.ServerStream
}

type TestService_DoSomethingForeverClient

type TestService_DoSomethingForeverClient interface {
	Send(*TestRequest) error
	Recv() (*TestResponse, error)
	grpc.ClientStream
}

type TestService_DoSomethingForeverServer

type TestService_DoSomethingForeverServer interface {
	Send(*TestResponse) error
	Recv() (*TestRequest, error)
	grpc.ServerStream
}

Directories

Path Synopsis
Package pkg is a generated protocol buffer package.
Package pkg is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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