test

package
v2.0.0-...-d29d931 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Primitives_SomeEnum_name = map[int32]string{
		0:  "UNKNOWN",
		1:  "POSITIVE",
		-1: "NEGATIVE",
	}
	Primitives_SomeEnum_value = map[string]int32{
		"UNKNOWN":  0,
		"POSITIVE": 1,
		"NEGATIVE": -1,
	}
)

Enum value maps for Primitives_SomeEnum.

View Source
var File_util_proto_test_test_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Primitives

type Primitives struct {
	FieldA []byte              `protobuf:"bytes,1,opt,name=field_a,json=fieldA,proto3" json:"field_a,omitempty"`
	FieldB string              `protobuf:"bytes,2,opt,name=field_b,json=fieldB,proto3" json:"field_b,omitempty"`
	FieldC bool                `protobuf:"varint,200,opt,name=field_c,json=fieldC,proto3" json:"field_c,omitempty"`
	FieldD int32               `protobuf:"varint,201,opt,name=field_d,json=fieldD,proto3" json:"field_d,omitempty"`
	FieldE uint32              `protobuf:"varint,202,opt,name=field_e,json=fieldE,proto3" json:"field_e,omitempty"`
	FieldF int64               `protobuf:"varint,203,opt,name=field_f,json=fieldF,proto3" json:"field_f,omitempty"`
	FieldG uint64              `protobuf:"varint,204,opt,name=field_g,json=fieldG,proto3" json:"field_g,omitempty"`
	FieldI uint64              `protobuf:"fixed64,205,opt,name=field_i,json=fieldI,proto3" json:"field_i,omitempty"`
	FieldH Primitives_SomeEnum `protobuf:"varint,300,opt,name=field_h,json=fieldH,proto3,enum=test.Primitives_SomeEnum" json:"field_h,omitempty"`
	// contains filtered or unexported fields
}

func (*Primitives) Descriptor deprecated

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

Deprecated: Use Primitives.ProtoReflect.Descriptor instead.

func (*Primitives) GetFieldA

func (x *Primitives) GetFieldA() []byte

func (*Primitives) GetFieldB

func (x *Primitives) GetFieldB() string

func (*Primitives) GetFieldC

func (x *Primitives) GetFieldC() bool

func (*Primitives) GetFieldD

func (x *Primitives) GetFieldD() int32

func (*Primitives) GetFieldE

func (x *Primitives) GetFieldE() uint32

func (*Primitives) GetFieldF

func (x *Primitives) GetFieldF() int64

func (*Primitives) GetFieldG

func (x *Primitives) GetFieldG() uint64

func (*Primitives) GetFieldH

func (x *Primitives) GetFieldH() Primitives_SomeEnum

func (*Primitives) GetFieldI

func (x *Primitives) GetFieldI() uint64

func (*Primitives) ProtoMessage

func (*Primitives) ProtoMessage()

func (*Primitives) ProtoReflect

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

func (*Primitives) Reset

func (x *Primitives) Reset()

func (*Primitives) String

func (x *Primitives) String() string

type Primitives_SomeEnum

type Primitives_SomeEnum int32
const (
	Primitives_UNKNOWN  Primitives_SomeEnum = 0
	Primitives_POSITIVE Primitives_SomeEnum = 1
	Primitives_NEGATIVE Primitives_SomeEnum = -1
)

func (Primitives_SomeEnum) Descriptor

func (Primitives_SomeEnum) Enum

func (Primitives_SomeEnum) EnumDescriptor deprecated

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

Deprecated: Use Primitives_SomeEnum.Descriptor instead.

func (Primitives_SomeEnum) Number

func (Primitives_SomeEnum) String

func (x Primitives_SomeEnum) String() string

func (Primitives_SomeEnum) Type

type RepPrimitives

type RepPrimitives struct {
	FieldA [][]byte `protobuf:"bytes,1,rep,name=field_a,json=fieldA,proto3" json:"field_a,omitempty"`
	FieldB []string `protobuf:"bytes,2,rep,name=field_b,json=fieldB,proto3" json:"field_b,omitempty"`
	FieldC []int32  `protobuf:"varint,3,rep,packed,name=field_c,json=fieldC,proto3" json:"field_c,omitempty"`
	FieldD []uint32 `protobuf:"varint,4,rep,packed,name=field_d,json=fieldD,proto3" json:"field_d,omitempty"`
	FieldE []int64  `protobuf:"varint,5,rep,packed,name=field_e,json=fieldE,proto3" json:"field_e,omitempty"`
	FieldF []uint64 `protobuf:"varint,6,rep,packed,name=field_f,json=fieldF,proto3" json:"field_f,omitempty"`
	// contains filtered or unexported fields
}

func (*RepPrimitives) Descriptor deprecated

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

Deprecated: Use RepPrimitives.ProtoReflect.Descriptor instead.

func (*RepPrimitives) GetFieldA

func (x *RepPrimitives) GetFieldA() [][]byte

func (*RepPrimitives) GetFieldB

func (x *RepPrimitives) GetFieldB() []string

func (*RepPrimitives) GetFieldC

func (x *RepPrimitives) GetFieldC() []int32

func (*RepPrimitives) GetFieldD

func (x *RepPrimitives) GetFieldD() []uint32

func (*RepPrimitives) GetFieldE

func (x *RepPrimitives) GetFieldE() []int64

func (*RepPrimitives) GetFieldF

func (x *RepPrimitives) GetFieldF() []uint64

func (*RepPrimitives) ProtoMessage

func (*RepPrimitives) ProtoMessage()

func (*RepPrimitives) ProtoReflect

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

func (*RepPrimitives) Reset

func (x *RepPrimitives) Reset()

func (*RepPrimitives) String

func (x *RepPrimitives) String() string

Jump to

Keyboard shortcuts

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