test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EnumType_name = map[int32]string{
		0: "ENUM_TYPE_UNSPECIFIED",
		1: "ENUM_TYPE_VALUE1",
		2: "ENUM_TYPE_VALUE2",
		3: "ENUM_TYPE_VALUE3",
	}
	EnumType_value = map[string]int32{
		"ENUM_TYPE_UNSPECIFIED": 0,
		"ENUM_TYPE_VALUE1":      1,
		"ENUM_TYPE_VALUE2":      2,
		"ENUM_TYPE_VALUE3":      3,
	}
)

Enum value maps for EnumType.

Functions

This section is empty.

Types

type EnumType

type EnumType int32
const (
	EnumType_ENUM_TYPE_UNSPECIFIED EnumType = 0
	EnumType_ENUM_TYPE_VALUE1      EnumType = 1
	EnumType_ENUM_TYPE_VALUE2      EnumType = 2
	EnumType_ENUM_TYPE_VALUE3      EnumType = 3
)

func (EnumType) Descriptor

func (EnumType) Descriptor() protoreflect.EnumDescriptor

func (EnumType) Enum

func (x EnumType) Enum() *EnumType

func (EnumType) EnumDescriptor deprecated

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

Deprecated: Use EnumType.Descriptor instead.

func (EnumType) Number

func (x EnumType) Number() protoreflect.EnumNumber

func (EnumType) String

func (x EnumType) String() string

func (EnumType) Type

type Main

type Main struct {
	SimpleInt32          int32            `protobuf:"varint,1,opt,name=simple_int32,json=simpleInt32,proto3" json:"simple_int32,omitempty"`
	SimpleInt64          int64            `protobuf:"varint,2,opt,name=simple_int64,json=simpleInt64,proto3" json:"simple_int64,omitempty"`
	SimpleUint32         uint32           `protobuf:"varint,3,opt,name=simple_uint32,json=simpleUint32,proto3" json:"simple_uint32,omitempty"`
	SimpleUint64         uint64           `protobuf:"varint,4,opt,name=simple_uint64,json=simpleUint64,proto3" json:"simple_uint64,omitempty"`
	SimpleSint32         int32            `protobuf:"zigzag32,5,opt,name=simple_sint32,json=simpleSint32,proto3" json:"simple_sint32,omitempty"`
	SimpleSint64         int64            `protobuf:"zigzag64,6,opt,name=simple_sint64,json=simpleSint64,proto3" json:"simple_sint64,omitempty"`
	SimpleBool           bool             `protobuf:"varint,7,opt,name=simple_bool,json=simpleBool,proto3" json:"simple_bool,omitempty"`
	SimpleEnum           EnumType         `protobuf:"varint,8,opt,name=simple_enum,json=simpleEnum,proto3,enum=test.EnumType" json:"simple_enum,omitempty"`
	SimpleFixed64        uint64           `protobuf:"fixed64,9,opt,name=simple_fixed64,json=simpleFixed64,proto3" json:"simple_fixed64,omitempty"`
	SimpleSfixed64       int64            `protobuf:"fixed64,10,opt,name=simple_sfixed64,json=simpleSfixed64,proto3" json:"simple_sfixed64,omitempty"`
	SimpleDouble         float64          `protobuf:"fixed64,11,opt,name=simple_double,json=simpleDouble,proto3" json:"simple_double,omitempty"`
	SimpleString         string           `protobuf:"bytes,12,opt,name=simple_string,json=simpleString,proto3" json:"simple_string,omitempty"`
	SimpleBytes          []byte           `protobuf:"bytes,13,opt,name=simple_bytes,json=simpleBytes,proto3" json:"simple_bytes,omitempty"`
	SimpleFixed32        uint32           `protobuf:"fixed32,14,opt,name=simple_fixed32,json=simpleFixed32,proto3" json:"simple_fixed32,omitempty"`
	SimpleSfixed32       int32            `protobuf:"fixed32,15,opt,name=simple_sfixed32,json=simpleSfixed32,proto3" json:"simple_sfixed32,omitempty"`
	SimpleFloat          float32          `protobuf:"fixed32,16,opt,name=simple_float,json=simpleFloat,proto3" json:"simple_float,omitempty"`
	Sub                  *Main_Submessage `protobuf:"bytes,17,opt,name=sub,proto3" json:"sub,omitempty"`
	RepeatedUint32       []uint32         `protobuf:"varint,18,rep,name=repeated_uint32,json=repeatedUint32,proto3" json:"repeated_uint32,omitempty"`
	RepeatedString       []string         `protobuf:"bytes,19,rep,name=repeated_string,json=repeatedString,proto3" json:"repeated_string,omitempty"`
	RepeatedPackedUint32 []uint32         `` /* 132-byte string literal not displayed */
	RepeatedPackedFloat  []float32        `` /* 130-byte string literal not displayed */
	RepeatedPackedDouble []float64        `` /* 133-byte string literal not displayed */
	BigNumberVarint      uint64           `protobuf:"varint,12313,opt,name=big_number_varint,json=bigNumberVarint,proto3" json:"big_number_varint,omitempty"`
	BigNumberFixed32     uint32           `protobuf:"fixed32,12314,opt,name=big_number_fixed32,json=bigNumberFixed32,proto3" json:"big_number_fixed32,omitempty"`
	BigNumberFixed64     uint64           `protobuf:"fixed64,12315,opt,name=big_number_fixed64,json=bigNumberFixed64,proto3" json:"big_number_fixed64,omitempty"`
	BigNumberString      string           `protobuf:"bytes,12316,opt,name=big_number_string,json=bigNumberString,proto3" json:"big_number_string,omitempty"`
	// contains filtered or unexported fields
}

func (*Main) Descriptor deprecated

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

Deprecated: Use Main.ProtoReflect.Descriptor instead.

func (*Main) GetBigNumberFixed32

func (x *Main) GetBigNumberFixed32() uint32

func (*Main) GetBigNumberFixed64

func (x *Main) GetBigNumberFixed64() uint64

func (*Main) GetBigNumberString

func (x *Main) GetBigNumberString() string

func (*Main) GetBigNumberVarint

func (x *Main) GetBigNumberVarint() uint64

func (*Main) GetRepeatedPackedDouble

func (x *Main) GetRepeatedPackedDouble() []float64

func (*Main) GetRepeatedPackedFloat

func (x *Main) GetRepeatedPackedFloat() []float32

func (*Main) GetRepeatedPackedUint32

func (x *Main) GetRepeatedPackedUint32() []uint32

func (*Main) GetRepeatedString

func (x *Main) GetRepeatedString() []string

func (*Main) GetRepeatedUint32

func (x *Main) GetRepeatedUint32() []uint32

func (*Main) GetSimpleBool

func (x *Main) GetSimpleBool() bool

func (*Main) GetSimpleBytes

func (x *Main) GetSimpleBytes() []byte

func (*Main) GetSimpleDouble

func (x *Main) GetSimpleDouble() float64

func (*Main) GetSimpleEnum

func (x *Main) GetSimpleEnum() EnumType

func (*Main) GetSimpleFixed32

func (x *Main) GetSimpleFixed32() uint32

func (*Main) GetSimpleFixed64

func (x *Main) GetSimpleFixed64() uint64

func (*Main) GetSimpleFloat

func (x *Main) GetSimpleFloat() float32

func (*Main) GetSimpleInt32

func (x *Main) GetSimpleInt32() int32

func (*Main) GetSimpleInt64

func (x *Main) GetSimpleInt64() int64

func (*Main) GetSimpleSfixed32

func (x *Main) GetSimpleSfixed32() int32

func (*Main) GetSimpleSfixed64

func (x *Main) GetSimpleSfixed64() int64

func (*Main) GetSimpleSint32

func (x *Main) GetSimpleSint32() int32

func (*Main) GetSimpleSint64

func (x *Main) GetSimpleSint64() int64

func (*Main) GetSimpleString

func (x *Main) GetSimpleString() string

func (*Main) GetSimpleUint32

func (x *Main) GetSimpleUint32() uint32

func (*Main) GetSimpleUint64

func (x *Main) GetSimpleUint64() uint64

func (*Main) GetSub

func (x *Main) GetSub() *Main_Submessage

func (*Main) ProtoMessage

func (*Main) ProtoMessage()

func (*Main) ProtoReflect

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

func (*Main) Reset

func (x *Main) Reset()

func (*Main) String

func (x *Main) String() string

type Main_Submessage

type Main_Submessage struct {
	Number string   `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
	Type   EnumType `protobuf:"varint,2,opt,name=type,proto3,enum=test.EnumType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Main_Submessage) Descriptor deprecated

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

Deprecated: Use Main_Submessage.ProtoReflect.Descriptor instead.

func (*Main_Submessage) GetNumber

func (x *Main_Submessage) GetNumber() string

func (*Main_Submessage) GetType

func (x *Main_Submessage) GetType() EnumType

func (*Main_Submessage) ProtoMessage

func (*Main_Submessage) ProtoMessage()

func (*Main_Submessage) ProtoReflect

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

func (*Main_Submessage) Reset

func (x *Main_Submessage) Reset()

func (*Main_Submessage) String

func (x *Main_Submessage) String() string

Jump to

Keyboard shortcuts

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