tests

package
v3.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestEnum_name = map[int32]string{
		0: "ValueZero",
		1: "ValueOne",
		2: "ValueTwo",
	}
	TestEnum_value = map[string]int32{
		"ValueZero": 0,
		"ValueOne":  1,
		"ValueTwo":  2,
	}
)

Enum value maps for TestEnum.

View Source
var File_examples_tests_message_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type RepeatedM

type RepeatedM struct {
	FloatValueEmpties    []float32      `protobuf:"fixed32,2,rep,packed,name=float_value_empties,json=floatValueEmpties,proto3" json:"float_value_empties,omitempty"`
	FloatValueNested     []float32      `protobuf:"fixed32,3,rep,packed,name=float_value_nested,json=floatValueNested,proto3" json:"float_value_nested,omitempty"`
	FloatValues          []float32      `protobuf:"fixed32,4,rep,packed,name=float_values,json=floatValues,proto3" json:"float_values,omitempty"`
	DoubleValueEmpties   []float64      `` /* 126-byte string literal not displayed */
	DoubleValueNested    []float64      `protobuf:"fixed64,7,rep,packed,name=double_value_nested,json=doubleValueNested,proto3" json:"double_value_nested,omitempty"`
	DoubleValues         []float64      `protobuf:"fixed64,8,rep,packed,name=double_values,json=doubleValues,proto3" json:"double_values,omitempty"`
	Int32ValueEmpties    []int32        `protobuf:"varint,10,rep,packed,name=int32_value_empties,json=int32ValueEmpties,proto3" json:"int32_value_empties,omitempty"`
	Int32ValueNested     []int32        `protobuf:"varint,11,rep,packed,name=int32_value_nested,json=int32ValueNested,proto3" json:"int32_value_nested,omitempty"`
	Int32Values          []int32        `protobuf:"varint,12,rep,packed,name=int32_values,json=int32Values,proto3" json:"int32_values,omitempty"`
	Int64ValueEmpties    []int64        `protobuf:"varint,14,rep,packed,name=int64_value_empties,json=int64ValueEmpties,proto3" json:"int64_value_empties,omitempty"`
	Int64ValueNested     []int64        `protobuf:"varint,15,rep,packed,name=int64_value_nested,json=int64ValueNested,proto3" json:"int64_value_nested,omitempty"`
	Int64Values          []int64        `protobuf:"varint,16,rep,packed,name=int64_values,json=int64Values,proto3" json:"int64_values,omitempty"`
	Uint32ValueEmpties   []uint32       `` /* 126-byte string literal not displayed */
	Uint32ValueNested    []uint32       `protobuf:"varint,19,rep,packed,name=uint32_value_nested,json=uint32ValueNested,proto3" json:"uint32_value_nested,omitempty"`
	Uint32Values         []uint32       `protobuf:"varint,20,rep,packed,name=uint32_values,json=uint32Values,proto3" json:"uint32_values,omitempty"`
	Uint64ValueEmpties   []uint64       `` /* 126-byte string literal not displayed */
	Uint64ValueNested    []uint64       `protobuf:"varint,23,rep,packed,name=uint64_value_nested,json=uint64ValueNested,proto3" json:"uint64_value_nested,omitempty"`
	Uint64Values         []uint64       `protobuf:"varint,24,rep,packed,name=uint64_values,json=uint64Values,proto3" json:"uint64_values,omitempty"`
	Sint32ValueEmpties   []int32        `` /* 128-byte string literal not displayed */
	Sint32ValueNested    []int32        `protobuf:"zigzag32,27,rep,packed,name=sint32_value_nested,json=sint32ValueNested,proto3" json:"sint32_value_nested,omitempty"`
	Sint32Values         []int32        `protobuf:"zigzag32,28,rep,packed,name=sint32_values,json=sint32Values,proto3" json:"sint32_values,omitempty"`
	Sint64ValueEmpties   []int64        `` /* 128-byte string literal not displayed */
	Sint64ValueNested    []int64        `protobuf:"zigzag64,31,rep,packed,name=sint64_value_nested,json=sint64ValueNested,proto3" json:"sint64_value_nested,omitempty"`
	Sint64Values         []int64        `protobuf:"zigzag64,32,rep,packed,name=sint64_values,json=sint64Values,proto3" json:"sint64_values,omitempty"`
	Fixed32ValueEmpties  []uint32       `` /* 130-byte string literal not displayed */
	Fixed32ValueNested   []uint32       `` /* 127-byte string literal not displayed */
	Fixed32Values        []uint32       `protobuf:"fixed32,36,rep,packed,name=fixed32_values,json=fixed32Values,proto3" json:"fixed32_values,omitempty"`
	Fixed64ValueEmpties  []uint64       `` /* 130-byte string literal not displayed */
	Fixed64ValueNested   []uint64       `` /* 127-byte string literal not displayed */
	Fixed64Values        []uint64       `protobuf:"fixed64,40,rep,packed,name=fixed64_values,json=fixed64Values,proto3" json:"fixed64_values,omitempty"`
	Sfixed32ValueEmpties []int32        `` /* 133-byte string literal not displayed */
	Sfixed32ValueNested  []int32        `` /* 130-byte string literal not displayed */
	Sfixed32Values       []int32        `protobuf:"fixed32,44,rep,packed,name=sfixed32_values,json=sfixed32Values,proto3" json:"sfixed32_values,omitempty"`
	Sfixed64ValueEmpties []int64        `` /* 133-byte string literal not displayed */
	Sfixed64ValueNested  []int64        `` /* 130-byte string literal not displayed */
	Sfixed64Values       []int64        `protobuf:"fixed64,48,rep,packed,name=sfixed64_values,json=sfixed64Values,proto3" json:"sfixed64_values,omitempty"`
	BoolValueEmpties     []bool         `protobuf:"varint,50,rep,packed,name=bool_value_empties,json=boolValueEmpties,proto3" json:"bool_value_empties,omitempty"`
	BoolValueNested      []bool         `protobuf:"varint,51,rep,packed,name=bool_value_nested,json=boolValueNested,proto3" json:"bool_value_nested,omitempty"`
	BoolValues           []bool         `protobuf:"varint,52,rep,packed,name=bool_values,json=boolValues,proto3" json:"bool_values,omitempty"`
	StringValueEmpties   []string       `protobuf:"bytes,54,rep,name=string_value_empties,json=stringValueEmpties,proto3" json:"string_value_empties,omitempty"`
	StringValueNested    []string       `protobuf:"bytes,55,rep,name=string_value_nested,json=stringValueNested,proto3" json:"string_value_nested,omitempty"`
	StringValues         []string       `protobuf:"bytes,56,rep,name=string_values,json=stringValues,proto3" json:"string_values,omitempty"`
	BytesValueEmpties    [][]byte       `protobuf:"bytes,58,rep,name=bytes_value_empties,json=bytesValueEmpties,proto3" json:"bytes_value_empties,omitempty"`
	BytesValueNested     [][]byte       `protobuf:"bytes,59,rep,name=bytes_value_nested,json=bytesValueNested,proto3" json:"bytes_value_nested,omitempty"`
	BytesValues          [][]byte       `protobuf:"bytes,60,rep,name=bytes_values,json=bytesValues,proto3" json:"bytes_values,omitempty"`
	EnumValueEmpties     []TestEnum     `` /* 140-byte string literal not displayed */
	EnumValueNested      []TestEnum     `` /* 137-byte string literal not displayed */
	EnumValues           []TestEnum     `protobuf:"varint,64,rep,packed,name=enum_values,json=enumValues,proto3,enum=tests.TestEnum" json:"enum_values,omitempty"`
	MessageNils          []*TestMessage `protobuf:"bytes,66,rep,name=message_nils,json=messageNils,proto3" json:"message_nils,omitempty"`
	MessageSkips         []*TestMessage `protobuf:"bytes,67,rep,name=message_skips,json=messageSkips,proto3" json:"message_skips,omitempty"`
	MessageNested        []*TestMessage `protobuf:"bytes,68,rep,name=message_nested,json=messageNested,proto3" json:"message_nested,omitempty"`
	MessageEmpties       []*TestMessage `protobuf:"bytes,69,rep,name=message_empties,json=messageEmpties,proto3" json:"message_empties,omitempty"`
	// contains filtered or unexported fields
}

func (*RepeatedM) Descriptor deprecated

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

Deprecated: Use RepeatedM.ProtoReflect.Descriptor instead.

func (*RepeatedM) GetBoolValueEmpties

func (x *RepeatedM) GetBoolValueEmpties() []bool

func (*RepeatedM) GetBoolValueNested

func (x *RepeatedM) GetBoolValueNested() []bool

func (*RepeatedM) GetBoolValues

func (x *RepeatedM) GetBoolValues() []bool

func (*RepeatedM) GetBytesValueEmpties

func (x *RepeatedM) GetBytesValueEmpties() [][]byte

func (*RepeatedM) GetBytesValueNested

func (x *RepeatedM) GetBytesValueNested() [][]byte

func (*RepeatedM) GetBytesValues

func (x *RepeatedM) GetBytesValues() [][]byte

func (*RepeatedM) GetDoubleValueEmpties

func (x *RepeatedM) GetDoubleValueEmpties() []float64

func (*RepeatedM) GetDoubleValueNested

func (x *RepeatedM) GetDoubleValueNested() []float64

func (*RepeatedM) GetDoubleValues

func (x *RepeatedM) GetDoubleValues() []float64

func (*RepeatedM) GetEnumValueEmpties

func (x *RepeatedM) GetEnumValueEmpties() []TestEnum

func (*RepeatedM) GetEnumValueNested

func (x *RepeatedM) GetEnumValueNested() []TestEnum

func (*RepeatedM) GetEnumValues

func (x *RepeatedM) GetEnumValues() []TestEnum

func (*RepeatedM) GetFixed32ValueEmpties

func (x *RepeatedM) GetFixed32ValueEmpties() []uint32

func (*RepeatedM) GetFixed32ValueNested

func (x *RepeatedM) GetFixed32ValueNested() []uint32

func (*RepeatedM) GetFixed32Values

func (x *RepeatedM) GetFixed32Values() []uint32

func (*RepeatedM) GetFixed64ValueEmpties

func (x *RepeatedM) GetFixed64ValueEmpties() []uint64

func (*RepeatedM) GetFixed64ValueNested

func (x *RepeatedM) GetFixed64ValueNested() []uint64

func (*RepeatedM) GetFixed64Values

func (x *RepeatedM) GetFixed64Values() []uint64

func (*RepeatedM) GetFloatValueEmpties

func (x *RepeatedM) GetFloatValueEmpties() []float32

func (*RepeatedM) GetFloatValueNested

func (x *RepeatedM) GetFloatValueNested() []float32

func (*RepeatedM) GetFloatValues

func (x *RepeatedM) GetFloatValues() []float32

func (*RepeatedM) GetInt32ValueEmpties

func (x *RepeatedM) GetInt32ValueEmpties() []int32

func (*RepeatedM) GetInt32ValueNested

func (x *RepeatedM) GetInt32ValueNested() []int32

func (*RepeatedM) GetInt32Values

func (x *RepeatedM) GetInt32Values() []int32

func (*RepeatedM) GetInt64ValueEmpties

func (x *RepeatedM) GetInt64ValueEmpties() []int64

func (*RepeatedM) GetInt64ValueNested

func (x *RepeatedM) GetInt64ValueNested() []int64

func (*RepeatedM) GetInt64Values

func (x *RepeatedM) GetInt64Values() []int64

func (*RepeatedM) GetMessageEmpties

func (x *RepeatedM) GetMessageEmpties() []*TestMessage

func (*RepeatedM) GetMessageNested

func (x *RepeatedM) GetMessageNested() []*TestMessage

func (*RepeatedM) GetMessageNils

func (x *RepeatedM) GetMessageNils() []*TestMessage

func (*RepeatedM) GetMessageSkips

func (x *RepeatedM) GetMessageSkips() []*TestMessage

func (*RepeatedM) GetSfixed32ValueEmpties

func (x *RepeatedM) GetSfixed32ValueEmpties() []int32

func (*RepeatedM) GetSfixed32ValueNested

func (x *RepeatedM) GetSfixed32ValueNested() []int32

func (*RepeatedM) GetSfixed32Values

func (x *RepeatedM) GetSfixed32Values() []int32

func (*RepeatedM) GetSfixed64ValueEmpties

func (x *RepeatedM) GetSfixed64ValueEmpties() []int64

func (*RepeatedM) GetSfixed64ValueNested

func (x *RepeatedM) GetSfixed64ValueNested() []int64

func (*RepeatedM) GetSfixed64Values

func (x *RepeatedM) GetSfixed64Values() []int64

func (*RepeatedM) GetSint32ValueEmpties

func (x *RepeatedM) GetSint32ValueEmpties() []int32

func (*RepeatedM) GetSint32ValueNested

func (x *RepeatedM) GetSint32ValueNested() []int32

func (*RepeatedM) GetSint32Values

func (x *RepeatedM) GetSint32Values() []int32

func (*RepeatedM) GetSint64ValueEmpties

func (x *RepeatedM) GetSint64ValueEmpties() []int64

func (*RepeatedM) GetSint64ValueNested

func (x *RepeatedM) GetSint64ValueNested() []int64

func (*RepeatedM) GetSint64Values

func (x *RepeatedM) GetSint64Values() []int64

func (*RepeatedM) GetStringValueEmpties

func (x *RepeatedM) GetStringValueEmpties() []string

func (*RepeatedM) GetStringValueNested

func (x *RepeatedM) GetStringValueNested() []string

func (*RepeatedM) GetStringValues

func (x *RepeatedM) GetStringValues() []string

func (*RepeatedM) GetUint32ValueEmpties

func (x *RepeatedM) GetUint32ValueEmpties() []uint32

func (*RepeatedM) GetUint32ValueNested

func (x *RepeatedM) GetUint32ValueNested() []uint32

func (*RepeatedM) GetUint32Values

func (x *RepeatedM) GetUint32Values() []uint32

func (*RepeatedM) GetUint64ValueEmpties

func (x *RepeatedM) GetUint64ValueEmpties() []uint64

func (*RepeatedM) GetUint64ValueNested

func (x *RepeatedM) GetUint64ValueNested() []uint64

func (*RepeatedM) GetUint64Values

func (x *RepeatedM) GetUint64Values() []uint64

func (*RepeatedM) ProtoMessage

func (*RepeatedM) ProtoMessage()

func (*RepeatedM) ProtoReflect

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

func (*RepeatedM) Redact

func (x *RepeatedM) Redact() string

Redact method implementation for RepeatedM

func (*RepeatedM) Reset

func (x *RepeatedM) Reset()

func (*RepeatedM) String

func (x *RepeatedM) String() string

type TestEnum

type TestEnum int32
const (
	TestEnum_ValueZero TestEnum = 0
	TestEnum_ValueOne  TestEnum = 1
	TestEnum_ValueTwo  TestEnum = 2
)

func (TestEnum) Descriptor

func (TestEnum) Descriptor() protoreflect.EnumDescriptor

func (TestEnum) Enum

func (x TestEnum) Enum() *TestEnum

func (TestEnum) EnumDescriptor deprecated

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

Deprecated: Use TestEnum.Descriptor instead.

func (TestEnum) Number

func (x TestEnum) Number() protoreflect.EnumNumber

func (TestEnum) String

func (x TestEnum) String() string

func (TestEnum) Type

type TestMessage

type TestMessage struct {
	FloatValue    float32                   `protobuf:"fixed32,2,opt,name=float_value,json=floatValue,proto3" json:"float_value,omitempty"`
	DoubleValue   float64                   `protobuf:"fixed64,4,opt,name=double_value,json=doubleValue,proto3" json:"double_value,omitempty"`
	Int32Value    int32                     `protobuf:"varint,6,opt,name=int32_value,json=int32Value,proto3" json:"int32_value,omitempty"`
	Int64Value    int64                     `protobuf:"varint,8,opt,name=int64_value,json=int64Value,proto3" json:"int64_value,omitempty"`
	Uint32Value   uint32                    `protobuf:"varint,10,opt,name=uint32_value,json=uint32Value,proto3" json:"uint32_value,omitempty"`
	Uint64Value   uint64                    `protobuf:"varint,12,opt,name=uint64_value,json=uint64Value,proto3" json:"uint64_value,omitempty"`
	Sint32Value   int32                     `protobuf:"zigzag32,14,opt,name=sint32_value,json=sint32Value,proto3" json:"sint32_value,omitempty"`
	Sint64Value   int64                     `protobuf:"zigzag64,16,opt,name=sint64_value,json=sint64Value,proto3" json:"sint64_value,omitempty"`
	Fixed32Value  uint32                    `protobuf:"fixed32,18,opt,name=fixed32_value,json=fixed32Value,proto3" json:"fixed32_value,omitempty"`
	Fixed64Value  uint64                    `protobuf:"fixed64,20,opt,name=fixed64_value,json=fixed64Value,proto3" json:"fixed64_value,omitempty"`
	Sfixed32Value int32                     `protobuf:"fixed32,22,opt,name=sfixed32_value,json=sfixed32Value,proto3" json:"sfixed32_value,omitempty"`
	Sfixed64Value int64                     `protobuf:"fixed64,24,opt,name=sfixed64_value,json=sfixed64Value,proto3" json:"sfixed64_value,omitempty"`
	BoolValue     bool                      `protobuf:"varint,26,opt,name=bool_value,json=boolValue,proto3" json:"bool_value,omitempty"`
	StringValue   string                    `protobuf:"bytes,28,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"`
	BytesValue    []byte                    `protobuf:"bytes,30,opt,name=bytes_value,json=bytesValue,proto3" json:"bytes_value,omitempty"`
	EnumValue     TestEnum                  `protobuf:"varint,32,opt,name=enum_value,json=enumValue,proto3,enum=tests.TestEnum" json:"enum_value,omitempty"`
	MessageNil    *TestMessage              `protobuf:"bytes,34,opt,name=message_nil,json=messageNil,proto3" json:"message_nil,omitempty"`
	MessageSkip   *TestMessage              `protobuf:"bytes,35,opt,name=message_skip,json=messageSkip,proto3" json:"message_skip,omitempty"`
	MessageEmpty  *TestMessage              `protobuf:"bytes,36,opt,name=message_empty,json=messageEmpty,proto3" json:"message_empty,omitempty"`
	Map1Empty     map[int64]string          `` /* 178-byte string literal not displayed */
	Map2Empty     map[string]*emptypb.Empty `` /* 177-byte string literal not displayed */
	Map1Nested    map[int64]string          `` /* 181-byte string literal not displayed */
	Map2Nested    map[string]*emptypb.Empty `` /* 180-byte string literal not displayed */
	Map1Item      map[int64]string          `` /* 175-byte string literal not displayed */
	Map2ItemNil   map[string]*emptypb.Empty `` /* 185-byte string literal not displayed */
	Map2ItemSkip  map[string]*emptypb.Empty `` /* 188-byte string literal not displayed */
	Map2ItemEmpty map[string]*emptypb.Empty `` /* 191-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TestMessage) Descriptor deprecated

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

Deprecated: Use TestMessage.ProtoReflect.Descriptor instead.

func (*TestMessage) GetBoolValue

func (x *TestMessage) GetBoolValue() bool

func (*TestMessage) GetBytesValue

func (x *TestMessage) GetBytesValue() []byte

func (*TestMessage) GetDoubleValue

func (x *TestMessage) GetDoubleValue() float64

func (*TestMessage) GetEnumValue

func (x *TestMessage) GetEnumValue() TestEnum

func (*TestMessage) GetFixed32Value

func (x *TestMessage) GetFixed32Value() uint32

func (*TestMessage) GetFixed64Value

func (x *TestMessage) GetFixed64Value() uint64

func (*TestMessage) GetFloatValue

func (x *TestMessage) GetFloatValue() float32

func (*TestMessage) GetInt32Value

func (x *TestMessage) GetInt32Value() int32

func (*TestMessage) GetInt64Value

func (x *TestMessage) GetInt64Value() int64

func (*TestMessage) GetMap1Empty

func (x *TestMessage) GetMap1Empty() map[int64]string

func (*TestMessage) GetMap1Item

func (x *TestMessage) GetMap1Item() map[int64]string

func (*TestMessage) GetMap1Nested

func (x *TestMessage) GetMap1Nested() map[int64]string

func (*TestMessage) GetMap2Empty

func (x *TestMessage) GetMap2Empty() map[string]*emptypb.Empty

func (*TestMessage) GetMap2ItemEmpty

func (x *TestMessage) GetMap2ItemEmpty() map[string]*emptypb.Empty

func (*TestMessage) GetMap2ItemNil

func (x *TestMessage) GetMap2ItemNil() map[string]*emptypb.Empty

func (*TestMessage) GetMap2ItemSkip

func (x *TestMessage) GetMap2ItemSkip() map[string]*emptypb.Empty

func (*TestMessage) GetMap2Nested

func (x *TestMessage) GetMap2Nested() map[string]*emptypb.Empty

func (*TestMessage) GetMessageEmpty

func (x *TestMessage) GetMessageEmpty() *TestMessage

func (*TestMessage) GetMessageNil

func (x *TestMessage) GetMessageNil() *TestMessage

func (*TestMessage) GetMessageSkip

func (x *TestMessage) GetMessageSkip() *TestMessage

func (*TestMessage) GetSfixed32Value

func (x *TestMessage) GetSfixed32Value() int32

func (*TestMessage) GetSfixed64Value

func (x *TestMessage) GetSfixed64Value() int64

func (*TestMessage) GetSint32Value

func (x *TestMessage) GetSint32Value() int32

func (*TestMessage) GetSint64Value

func (x *TestMessage) GetSint64Value() int64

func (*TestMessage) GetStringValue

func (x *TestMessage) GetStringValue() string

func (*TestMessage) GetUint32Value

func (x *TestMessage) GetUint32Value() uint32

func (*TestMessage) GetUint64Value

func (x *TestMessage) GetUint64Value() uint64

func (*TestMessage) ProtoMessage

func (*TestMessage) ProtoMessage()

func (*TestMessage) ProtoReflect

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

func (*TestMessage) Redact

func (x *TestMessage) Redact() string

Redact method implementation for TestMessage

func (*TestMessage) Reset

func (x *TestMessage) Reset()

func (*TestMessage) String

func (x *TestMessage) String() string

Jump to

Keyboard shortcuts

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