test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Primitives_FieldAux_case case_Primitives_FieldM = 403
View Source
const Primitives_FieldM_not_set_case case_Primitives_FieldM = 0
View Source
const Primitives_FieldMa_case case_Primitives_FieldM = 401
View Source
const Primitives_FieldMe_case case_Primitives_FieldM = 402

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_api_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"`
	FieldJ float64             `protobuf:"fixed64,206,opt,name=field_j,json=fieldJ,proto3" json:"field_j,omitempty"`
	FieldK uint32              `protobuf:"fixed32,207,opt,name=field_k,json=fieldK,proto3" json:"field_k,omitempty"`
	FieldH Primitives_SomeEnum `protobuf:"varint,300,opt,name=field_h,json=fieldH,proto3,enum=test.Primitives_SomeEnum" json:"field_h,omitempty"`
	// Types that are valid to be assigned to FieldM:
	//
	//	*Primitives_FieldMa
	//	*Primitives_FieldMe
	//	*Primitives_FieldAux
	FieldM isPrimitives_FieldM `protobuf_oneof:"field_m"`
	// contains filtered or unexported fields
}

func (*Primitives) ClearFieldAux

func (x *Primitives) ClearFieldAux()

func (*Primitives) ClearFieldM

func (x *Primitives) ClearFieldM()

func (*Primitives) ClearFieldMa

func (x *Primitives) ClearFieldMa()

func (*Primitives) ClearFieldMe

func (x *Primitives) ClearFieldMe()

func (*Primitives) GetFieldA

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

func (*Primitives) GetFieldAux

func (x *Primitives) GetFieldAux() *Primitives_Aux

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) GetFieldJ

func (x *Primitives) GetFieldJ() float64

func (*Primitives) GetFieldK

func (x *Primitives) GetFieldK() uint32

func (*Primitives) GetFieldM

func (x *Primitives) GetFieldM() isPrimitives_FieldM

func (*Primitives) GetFieldMa

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

func (*Primitives) GetFieldMe

func (x *Primitives) GetFieldMe() uint32

func (*Primitives) HasFieldAux

func (x *Primitives) HasFieldAux() bool

func (*Primitives) HasFieldM

func (x *Primitives) HasFieldM() bool

func (*Primitives) HasFieldMa

func (x *Primitives) HasFieldMa() bool

func (*Primitives) HasFieldMe

func (x *Primitives) HasFieldMe() bool

func (*Primitives) ProtoMessage

func (*Primitives) ProtoMessage()

func (*Primitives) ProtoReflect

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

func (*Primitives) Reset

func (x *Primitives) Reset()

func (*Primitives) SetFieldA

func (x *Primitives) SetFieldA(v []byte)

func (*Primitives) SetFieldAux

func (x *Primitives) SetFieldAux(v *Primitives_Aux)

func (*Primitives) SetFieldB

func (x *Primitives) SetFieldB(v string)

func (*Primitives) SetFieldC

func (x *Primitives) SetFieldC(v bool)

func (*Primitives) SetFieldD

func (x *Primitives) SetFieldD(v int32)

func (*Primitives) SetFieldE

func (x *Primitives) SetFieldE(v uint32)

func (*Primitives) SetFieldF

func (x *Primitives) SetFieldF(v int64)

func (*Primitives) SetFieldG

func (x *Primitives) SetFieldG(v uint64)

func (*Primitives) SetFieldH

func (x *Primitives) SetFieldH(v Primitives_SomeEnum)

func (*Primitives) SetFieldI

func (x *Primitives) SetFieldI(v uint64)

func (*Primitives) SetFieldJ

func (x *Primitives) SetFieldJ(v float64)

func (*Primitives) SetFieldK

func (x *Primitives) SetFieldK(v uint32)

func (*Primitives) SetFieldMa

func (x *Primitives) SetFieldMa(v []byte)

func (*Primitives) SetFieldMe

func (x *Primitives) SetFieldMe(v uint32)

func (*Primitives) String

func (x *Primitives) String() string

func (*Primitives) WhichFieldM

func (x *Primitives) WhichFieldM() case_Primitives_FieldM

type Primitives_Aux

type Primitives_Aux struct {
	InnerField uint32 `protobuf:"varint,1,opt,name=inner_field,json=innerField,proto3" json:"inner_field,omitempty"`
	// contains filtered or unexported fields
}

func (*Primitives_Aux) GetInnerField

func (x *Primitives_Aux) GetInnerField() uint32

func (*Primitives_Aux) ProtoMessage

func (*Primitives_Aux) ProtoMessage()

func (*Primitives_Aux) ProtoReflect

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

func (*Primitives_Aux) Reset

func (x *Primitives_Aux) Reset()

func (*Primitives_Aux) SetInnerField

func (x *Primitives_Aux) SetInnerField(v uint32)

func (*Primitives_Aux) String

func (x *Primitives_Aux) String() string

type Primitives_Aux_builder

type Primitives_Aux_builder struct {
	InnerField uint32
	// contains filtered or unexported fields
}

func (Primitives_Aux_builder) Build

type Primitives_FieldAux

type Primitives_FieldAux struct {
	FieldAux *Primitives_Aux `protobuf:"bytes,403,opt,name=field_aux,json=fieldAux,proto3,oneof"`
}

type Primitives_FieldMa

type Primitives_FieldMa struct {
	FieldMa []byte `protobuf:"bytes,401,opt,name=field_ma,json=fieldMa,proto3,oneof"`
}

type Primitives_FieldMe

type Primitives_FieldMe struct {
	FieldMe uint32 `protobuf:"varint,402,opt,name=field_me,json=fieldMe,proto3,oneof"`
}

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) Number

func (Primitives_SomeEnum) String

func (x Primitives_SomeEnum) String() string

func (Primitives_SomeEnum) Type

type Primitives_builder

type Primitives_builder struct {
	FieldA []byte
	FieldB string
	FieldC bool
	FieldD int32
	FieldE uint32
	FieldF int64
	FieldG uint64
	FieldI uint64
	FieldJ float64
	FieldK uint32
	FieldH Primitives_SomeEnum
	// Fields of oneof FieldM:
	FieldMa  []byte
	FieldMe  *uint32
	FieldAux *Primitives_Aux
	// contains filtered or unexported fields
}

func (Primitives_builder) Build

func (b0 Primitives_builder) Build() *Primitives

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"`
	FieldFu  []uint64             `protobuf:"varint,7,rep,name=field_fu,json=fieldFu,proto3" json:"field_fu,omitempty"`
	FieldAux []*RepPrimitives_Aux `protobuf:"bytes,8,rep,name=field_aux,json=fieldAux,proto3" json:"field_aux,omitempty"`
	// contains filtered or unexported fields
}

func (*RepPrimitives) GetFieldA

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

func (*RepPrimitives) GetFieldAux

func (x *RepPrimitives) GetFieldAux() []*RepPrimitives_Aux

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) GetFieldFu

func (x *RepPrimitives) GetFieldFu() []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) SetFieldA

func (x *RepPrimitives) SetFieldA(v [][]byte)

func (*RepPrimitives) SetFieldAux

func (x *RepPrimitives) SetFieldAux(v []*RepPrimitives_Aux)

func (*RepPrimitives) SetFieldB

func (x *RepPrimitives) SetFieldB(v []string)

func (*RepPrimitives) SetFieldC

func (x *RepPrimitives) SetFieldC(v []int32)

func (*RepPrimitives) SetFieldD

func (x *RepPrimitives) SetFieldD(v []uint32)

func (*RepPrimitives) SetFieldE

func (x *RepPrimitives) SetFieldE(v []int64)

func (*RepPrimitives) SetFieldF

func (x *RepPrimitives) SetFieldF(v []uint64)

func (*RepPrimitives) SetFieldFu

func (x *RepPrimitives) SetFieldFu(v []uint64)

func (*RepPrimitives) String

func (x *RepPrimitives) String() string

type RepPrimitives_Aux

type RepPrimitives_Aux struct {
	InnerField uint32 `protobuf:"varint,1,opt,name=inner_field,json=innerField,proto3" json:"inner_field,omitempty"`
	// contains filtered or unexported fields
}

func (*RepPrimitives_Aux) GetInnerField

func (x *RepPrimitives_Aux) GetInnerField() uint32

func (*RepPrimitives_Aux) ProtoMessage

func (*RepPrimitives_Aux) ProtoMessage()

func (*RepPrimitives_Aux) ProtoReflect

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

func (*RepPrimitives_Aux) Reset

func (x *RepPrimitives_Aux) Reset()

func (*RepPrimitives_Aux) SetInnerField

func (x *RepPrimitives_Aux) SetInnerField(v uint32)

func (*RepPrimitives_Aux) String

func (x *RepPrimitives_Aux) String() string

type RepPrimitives_Aux_builder

type RepPrimitives_Aux_builder struct {
	InnerField uint32
	// contains filtered or unexported fields
}

func (RepPrimitives_Aux_builder) Build

type RepPrimitives_builder

type RepPrimitives_builder struct {
	FieldA   [][]byte
	FieldB   []string
	FieldC   []int32
	FieldD   []uint32
	FieldE   []int64
	FieldF   []uint64
	FieldFu  []uint64
	FieldAux []*RepPrimitives_Aux
	// contains filtered or unexported fields
}

func (RepPrimitives_builder) Build

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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