forked from TrueCloudLab/frostfs-sdk-go
827 lines
24 KiB
Go
Generated
827 lines
24 KiB
Go
Generated
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.1
|
|
// protoc v5.29.2
|
|
// source: api/util/proto/test/test.proto
|
|
|
|
//go:build !protoopaque
|
|
|
|
package test
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type Primitives_SomeEnum int32
|
|
|
|
const (
|
|
Primitives_UNKNOWN Primitives_SomeEnum = 0
|
|
Primitives_POSITIVE Primitives_SomeEnum = 1
|
|
Primitives_NEGATIVE Primitives_SomeEnum = -1
|
|
)
|
|
|
|
// Enum value maps for Primitives_SomeEnum.
|
|
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,
|
|
}
|
|
)
|
|
|
|
func (x Primitives_SomeEnum) Enum() *Primitives_SomeEnum {
|
|
p := new(Primitives_SomeEnum)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x Primitives_SomeEnum) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (Primitives_SomeEnum) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_api_util_proto_test_test_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (Primitives_SomeEnum) Type() protoreflect.EnumType {
|
|
return &file_api_util_proto_test_test_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x Primitives_SomeEnum) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
type Primitives struct {
|
|
state protoimpl.MessageState `protogen:"hybrid.v1"`
|
|
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"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Primitives) Reset() {
|
|
*x = Primitives{}
|
|
mi := &file_api_util_proto_test_test_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Primitives) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Primitives) ProtoMessage() {}
|
|
|
|
func (x *Primitives) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_util_proto_test_test_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *Primitives) GetFieldA() []byte {
|
|
if x != nil {
|
|
return x.FieldA
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Primitives) GetFieldB() string {
|
|
if x != nil {
|
|
return x.FieldB
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Primitives) GetFieldC() bool {
|
|
if x != nil {
|
|
return x.FieldC
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Primitives) GetFieldD() int32 {
|
|
if x != nil {
|
|
return x.FieldD
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Primitives) GetFieldE() uint32 {
|
|
if x != nil {
|
|
return x.FieldE
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Primitives) GetFieldF() int64 {
|
|
if x != nil {
|
|
return x.FieldF
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Primitives) GetFieldG() uint64 {
|
|
if x != nil {
|
|
return x.FieldG
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Primitives) GetFieldI() uint64 {
|
|
if x != nil {
|
|
return x.FieldI
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Primitives) GetFieldJ() float64 {
|
|
if x != nil {
|
|
return x.FieldJ
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Primitives) GetFieldK() uint32 {
|
|
if x != nil {
|
|
return x.FieldK
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Primitives) GetFieldH() Primitives_SomeEnum {
|
|
if x != nil {
|
|
return x.FieldH
|
|
}
|
|
return Primitives_UNKNOWN
|
|
}
|
|
|
|
func (x *Primitives) GetFieldM() isPrimitives_FieldM {
|
|
if x != nil {
|
|
return x.FieldM
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Primitives) GetFieldMa() []byte {
|
|
if x != nil {
|
|
if x, ok := x.FieldM.(*Primitives_FieldMa); ok {
|
|
return x.FieldMa
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Primitives) GetFieldMe() uint32 {
|
|
if x != nil {
|
|
if x, ok := x.FieldM.(*Primitives_FieldMe); ok {
|
|
return x.FieldMe
|
|
}
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Primitives) GetFieldAux() *Primitives_Aux {
|
|
if x != nil {
|
|
if x, ok := x.FieldM.(*Primitives_FieldAux); ok {
|
|
return x.FieldAux
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Primitives) SetFieldA(v []byte) {
|
|
if v == nil {
|
|
v = []byte{}
|
|
}
|
|
x.FieldA = v
|
|
}
|
|
|
|
func (x *Primitives) SetFieldB(v string) {
|
|
x.FieldB = v
|
|
}
|
|
|
|
func (x *Primitives) SetFieldC(v bool) {
|
|
x.FieldC = v
|
|
}
|
|
|
|
func (x *Primitives) SetFieldD(v int32) {
|
|
x.FieldD = v
|
|
}
|
|
|
|
func (x *Primitives) SetFieldE(v uint32) {
|
|
x.FieldE = v
|
|
}
|
|
|
|
func (x *Primitives) SetFieldF(v int64) {
|
|
x.FieldF = v
|
|
}
|
|
|
|
func (x *Primitives) SetFieldG(v uint64) {
|
|
x.FieldG = v
|
|
}
|
|
|
|
func (x *Primitives) SetFieldI(v uint64) {
|
|
x.FieldI = v
|
|
}
|
|
|
|
func (x *Primitives) SetFieldJ(v float64) {
|
|
x.FieldJ = v
|
|
}
|
|
|
|
func (x *Primitives) SetFieldK(v uint32) {
|
|
x.FieldK = v
|
|
}
|
|
|
|
func (x *Primitives) SetFieldH(v Primitives_SomeEnum) {
|
|
x.FieldH = v
|
|
}
|
|
|
|
func (x *Primitives) SetFieldMa(v []byte) {
|
|
if v == nil {
|
|
v = []byte{}
|
|
}
|
|
x.FieldM = &Primitives_FieldMa{v}
|
|
}
|
|
|
|
func (x *Primitives) SetFieldMe(v uint32) {
|
|
x.FieldM = &Primitives_FieldMe{v}
|
|
}
|
|
|
|
func (x *Primitives) SetFieldAux(v *Primitives_Aux) {
|
|
if v == nil {
|
|
x.FieldM = nil
|
|
return
|
|
}
|
|
x.FieldM = &Primitives_FieldAux{v}
|
|
}
|
|
|
|
func (x *Primitives) HasFieldM() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
return x.FieldM != nil
|
|
}
|
|
|
|
func (x *Primitives) HasFieldMa() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
_, ok := x.FieldM.(*Primitives_FieldMa)
|
|
return ok
|
|
}
|
|
|
|
func (x *Primitives) HasFieldMe() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
_, ok := x.FieldM.(*Primitives_FieldMe)
|
|
return ok
|
|
}
|
|
|
|
func (x *Primitives) HasFieldAux() bool {
|
|
if x == nil {
|
|
return false
|
|
}
|
|
_, ok := x.FieldM.(*Primitives_FieldAux)
|
|
return ok
|
|
}
|
|
|
|
func (x *Primitives) ClearFieldM() {
|
|
x.FieldM = nil
|
|
}
|
|
|
|
func (x *Primitives) ClearFieldMa() {
|
|
if _, ok := x.FieldM.(*Primitives_FieldMa); ok {
|
|
x.FieldM = nil
|
|
}
|
|
}
|
|
|
|
func (x *Primitives) ClearFieldMe() {
|
|
if _, ok := x.FieldM.(*Primitives_FieldMe); ok {
|
|
x.FieldM = nil
|
|
}
|
|
}
|
|
|
|
func (x *Primitives) ClearFieldAux() {
|
|
if _, ok := x.FieldM.(*Primitives_FieldAux); ok {
|
|
x.FieldM = nil
|
|
}
|
|
}
|
|
|
|
const Primitives_FieldM_not_set_case case_Primitives_FieldM = 0
|
|
const Primitives_FieldMa_case case_Primitives_FieldM = 401
|
|
const Primitives_FieldMe_case case_Primitives_FieldM = 402
|
|
const Primitives_FieldAux_case case_Primitives_FieldM = 403
|
|
|
|
func (x *Primitives) WhichFieldM() case_Primitives_FieldM {
|
|
if x == nil {
|
|
return Primitives_FieldM_not_set_case
|
|
}
|
|
switch x.FieldM.(type) {
|
|
case *Primitives_FieldMa:
|
|
return Primitives_FieldMa_case
|
|
case *Primitives_FieldMe:
|
|
return Primitives_FieldMe_case
|
|
case *Primitives_FieldAux:
|
|
return Primitives_FieldAux_case
|
|
default:
|
|
return Primitives_FieldM_not_set_case
|
|
}
|
|
}
|
|
|
|
type Primitives_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
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
|
|
// -- end of FieldM
|
|
}
|
|
|
|
func (b0 Primitives_builder) Build() *Primitives {
|
|
m0 := &Primitives{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
x.FieldA = b.FieldA
|
|
x.FieldB = b.FieldB
|
|
x.FieldC = b.FieldC
|
|
x.FieldD = b.FieldD
|
|
x.FieldE = b.FieldE
|
|
x.FieldF = b.FieldF
|
|
x.FieldG = b.FieldG
|
|
x.FieldI = b.FieldI
|
|
x.FieldJ = b.FieldJ
|
|
x.FieldK = b.FieldK
|
|
x.FieldH = b.FieldH
|
|
if b.FieldMa != nil {
|
|
x.FieldM = &Primitives_FieldMa{b.FieldMa}
|
|
}
|
|
if b.FieldMe != nil {
|
|
x.FieldM = &Primitives_FieldMe{*b.FieldMe}
|
|
}
|
|
if b.FieldAux != nil {
|
|
x.FieldM = &Primitives_FieldAux{b.FieldAux}
|
|
}
|
|
return m0
|
|
}
|
|
|
|
type case_Primitives_FieldM protoreflect.FieldNumber
|
|
|
|
func (x case_Primitives_FieldM) String() string {
|
|
md := file_api_util_proto_test_test_proto_msgTypes[0].Descriptor()
|
|
if x == 0 {
|
|
return "not set"
|
|
}
|
|
return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x))
|
|
}
|
|
|
|
type isPrimitives_FieldM interface {
|
|
isPrimitives_FieldM()
|
|
}
|
|
|
|
type Primitives_FieldMa struct {
|
|
FieldMa []byte `protobuf:"bytes,401,opt,name=field_ma,json=fieldMa,proto3,oneof"`
|
|
}
|
|
|
|
type Primitives_FieldMe struct {
|
|
FieldMe uint32 `protobuf:"varint,402,opt,name=field_me,json=fieldMe,proto3,oneof"`
|
|
}
|
|
|
|
type Primitives_FieldAux struct {
|
|
FieldAux *Primitives_Aux `protobuf:"bytes,403,opt,name=field_aux,json=fieldAux,proto3,oneof"`
|
|
}
|
|
|
|
func (*Primitives_FieldMa) isPrimitives_FieldM() {}
|
|
|
|
func (*Primitives_FieldMe) isPrimitives_FieldM() {}
|
|
|
|
func (*Primitives_FieldAux) isPrimitives_FieldM() {}
|
|
|
|
type RepPrimitives struct {
|
|
state protoimpl.MessageState `protogen:"hybrid.v1"`
|
|
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"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RepPrimitives) Reset() {
|
|
*x = RepPrimitives{}
|
|
mi := &file_api_util_proto_test_test_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RepPrimitives) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RepPrimitives) ProtoMessage() {}
|
|
|
|
func (x *RepPrimitives) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_util_proto_test_test_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *RepPrimitives) GetFieldA() [][]byte {
|
|
if x != nil {
|
|
return x.FieldA
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RepPrimitives) GetFieldB() []string {
|
|
if x != nil {
|
|
return x.FieldB
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RepPrimitives) GetFieldC() []int32 {
|
|
if x != nil {
|
|
return x.FieldC
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RepPrimitives) GetFieldD() []uint32 {
|
|
if x != nil {
|
|
return x.FieldD
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RepPrimitives) GetFieldE() []int64 {
|
|
if x != nil {
|
|
return x.FieldE
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RepPrimitives) GetFieldF() []uint64 {
|
|
if x != nil {
|
|
return x.FieldF
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RepPrimitives) GetFieldFu() []uint64 {
|
|
if x != nil {
|
|
return x.FieldFu
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RepPrimitives) GetFieldAux() []*RepPrimitives_Aux {
|
|
if x != nil {
|
|
return x.FieldAux
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RepPrimitives) SetFieldA(v [][]byte) {
|
|
x.FieldA = v
|
|
}
|
|
|
|
func (x *RepPrimitives) SetFieldB(v []string) {
|
|
x.FieldB = v
|
|
}
|
|
|
|
func (x *RepPrimitives) SetFieldC(v []int32) {
|
|
x.FieldC = v
|
|
}
|
|
|
|
func (x *RepPrimitives) SetFieldD(v []uint32) {
|
|
x.FieldD = v
|
|
}
|
|
|
|
func (x *RepPrimitives) SetFieldE(v []int64) {
|
|
x.FieldE = v
|
|
}
|
|
|
|
func (x *RepPrimitives) SetFieldF(v []uint64) {
|
|
x.FieldF = v
|
|
}
|
|
|
|
func (x *RepPrimitives) SetFieldFu(v []uint64) {
|
|
x.FieldFu = v
|
|
}
|
|
|
|
func (x *RepPrimitives) SetFieldAux(v []*RepPrimitives_Aux) {
|
|
x.FieldAux = v
|
|
}
|
|
|
|
type RepPrimitives_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
FieldA [][]byte
|
|
FieldB []string
|
|
FieldC []int32
|
|
FieldD []uint32
|
|
FieldE []int64
|
|
FieldF []uint64
|
|
FieldFu []uint64
|
|
FieldAux []*RepPrimitives_Aux
|
|
}
|
|
|
|
func (b0 RepPrimitives_builder) Build() *RepPrimitives {
|
|
m0 := &RepPrimitives{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
x.FieldA = b.FieldA
|
|
x.FieldB = b.FieldB
|
|
x.FieldC = b.FieldC
|
|
x.FieldD = b.FieldD
|
|
x.FieldE = b.FieldE
|
|
x.FieldF = b.FieldF
|
|
x.FieldFu = b.FieldFu
|
|
x.FieldAux = b.FieldAux
|
|
return m0
|
|
}
|
|
|
|
type Primitives_Aux struct {
|
|
state protoimpl.MessageState `protogen:"hybrid.v1"`
|
|
InnerField uint32 `protobuf:"varint,1,opt,name=inner_field,json=innerField,proto3" json:"inner_field,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Primitives_Aux) Reset() {
|
|
*x = Primitives_Aux{}
|
|
mi := &file_api_util_proto_test_test_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Primitives_Aux) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Primitives_Aux) ProtoMessage() {}
|
|
|
|
func (x *Primitives_Aux) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_util_proto_test_test_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *Primitives_Aux) GetInnerField() uint32 {
|
|
if x != nil {
|
|
return x.InnerField
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Primitives_Aux) SetInnerField(v uint32) {
|
|
x.InnerField = v
|
|
}
|
|
|
|
type Primitives_Aux_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
InnerField uint32
|
|
}
|
|
|
|
func (b0 Primitives_Aux_builder) Build() *Primitives_Aux {
|
|
m0 := &Primitives_Aux{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
x.InnerField = b.InnerField
|
|
return m0
|
|
}
|
|
|
|
type RepPrimitives_Aux struct {
|
|
state protoimpl.MessageState `protogen:"hybrid.v1"`
|
|
InnerField uint32 `protobuf:"varint,1,opt,name=inner_field,json=innerField,proto3" json:"inner_field,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RepPrimitives_Aux) Reset() {
|
|
*x = RepPrimitives_Aux{}
|
|
mi := &file_api_util_proto_test_test_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RepPrimitives_Aux) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RepPrimitives_Aux) ProtoMessage() {}
|
|
|
|
func (x *RepPrimitives_Aux) ProtoReflect() protoreflect.Message {
|
|
mi := &file_api_util_proto_test_test_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
func (x *RepPrimitives_Aux) GetInnerField() uint32 {
|
|
if x != nil {
|
|
return x.InnerField
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RepPrimitives_Aux) SetInnerField(v uint32) {
|
|
x.InnerField = v
|
|
}
|
|
|
|
type RepPrimitives_Aux_builder struct {
|
|
_ [0]func() // Prevents comparability and use of unkeyed literals for the builder.
|
|
|
|
InnerField uint32
|
|
}
|
|
|
|
func (b0 RepPrimitives_Aux_builder) Build() *RepPrimitives_Aux {
|
|
m0 := &RepPrimitives_Aux{}
|
|
b, x := &b0, m0
|
|
_, _ = b, x
|
|
x.InnerField = b.InnerField
|
|
return m0
|
|
}
|
|
|
|
var File_api_util_proto_test_test_proto protoreflect.FileDescriptor
|
|
|
|
var file_api_util_proto_test_test_proto_rawDesc = []byte{
|
|
0x0a, 0x1e, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x74, 0x69, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
0x2f, 0x74, 0x65, 0x73, 0x74, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
0x12, 0x04, 0x74, 0x65, 0x73, 0x74, 0x22, 0xa6, 0x04, 0x0a, 0x0a, 0x50, 0x72, 0x69, 0x6d, 0x69,
|
|
0x74, 0x69, 0x76, 0x65, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x61,
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x41, 0x12, 0x17,
|
|
0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64,
|
|
0x5f, 0x63, 0x18, 0xc8, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64,
|
|
0x43, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x64, 0x18, 0xc9, 0x01, 0x20,
|
|
0x01, 0x28, 0x05, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x12, 0x18, 0x0a, 0x07, 0x66,
|
|
0x69, 0x65, 0x6c, 0x64, 0x5f, 0x65, 0x18, 0xca, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x66,
|
|
0x69, 0x65, 0x6c, 0x64, 0x45, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x66,
|
|
0x18, 0xcb, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x46, 0x12,
|
|
0x18, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x67, 0x18, 0xcc, 0x01, 0x20, 0x01, 0x28,
|
|
0x04, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x47, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x65,
|
|
0x6c, 0x64, 0x5f, 0x69, 0x18, 0xcd, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x66, 0x69, 0x65,
|
|
0x6c, 0x64, 0x49, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6a, 0x18, 0xce,
|
|
0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4a, 0x12, 0x18, 0x0a,
|
|
0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6b, 0x18, 0xcf, 0x01, 0x20, 0x01, 0x28, 0x07, 0x52,
|
|
0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4b, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64,
|
|
0x5f, 0x68, 0x18, 0xac, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x73, 0x74,
|
|
0x2e, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x73, 0x2e, 0x53, 0x6f, 0x6d, 0x65,
|
|
0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x48, 0x12, 0x1c, 0x0a, 0x08,
|
|
0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x18, 0x91, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x48,
|
|
0x00, 0x52, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x12, 0x1c, 0x0a, 0x08, 0x66, 0x69,
|
|
0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x65, 0x18, 0x92, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52,
|
|
0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x65, 0x12, 0x34, 0x0a, 0x09, 0x66, 0x69, 0x65, 0x6c,
|
|
0x64, 0x5f, 0x61, 0x75, 0x78, 0x18, 0x93, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74,
|
|
0x65, 0x73, 0x74, 0x2e, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x73, 0x2e, 0x41,
|
|
0x75, 0x78, 0x48, 0x00, 0x52, 0x08, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x41, 0x75, 0x78, 0x1a, 0x26,
|
|
0x0a, 0x03, 0x41, 0x75, 0x78, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x66,
|
|
0x69, 0x65, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x69, 0x6e, 0x6e, 0x65,
|
|
0x72, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x22, 0x3c, 0x0a, 0x08, 0x53, 0x6f, 0x6d, 0x65, 0x45, 0x6e,
|
|
0x75, 0x6d, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12,
|
|
0x0c, 0x0a, 0x08, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x15, 0x0a,
|
|
0x08, 0x4e, 0x45, 0x47, 0x41, 0x54, 0x49, 0x56, 0x45, 0x10, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
0xff, 0xff, 0xff, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x22,
|
|
0xa2, 0x02, 0x0a, 0x0d, 0x52, 0x65, 0x70, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65,
|
|
0x73, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x61, 0x18, 0x01, 0x20, 0x03,
|
|
0x28, 0x0c, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x41, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x69,
|
|
0x65, 0x6c, 0x64, 0x5f, 0x62, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x65,
|
|
0x6c, 0x64, 0x42, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x63, 0x18, 0x03,
|
|
0x20, 0x03, 0x28, 0x05, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x12, 0x17, 0x0a, 0x07,
|
|
0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x06, 0x66,
|
|
0x69, 0x65, 0x6c, 0x64, 0x44, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x65,
|
|
0x18, 0x05, 0x20, 0x03, 0x28, 0x03, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x45, 0x12, 0x17,
|
|
0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x66, 0x18, 0x06, 0x20, 0x03, 0x28, 0x04, 0x52,
|
|
0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x46, 0x12, 0x1d, 0x0a, 0x08, 0x66, 0x69, 0x65, 0x6c, 0x64,
|
|
0x5f, 0x66, 0x75, 0x18, 0x07, 0x20, 0x03, 0x28, 0x04, 0x42, 0x02, 0x10, 0x00, 0x52, 0x07, 0x66,
|
|
0x69, 0x65, 0x6c, 0x64, 0x46, 0x75, 0x12, 0x34, 0x0a, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f,
|
|
0x61, 0x75, 0x78, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x65, 0x73, 0x74,
|
|
0x2e, 0x52, 0x65, 0x70, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x73, 0x2e, 0x41,
|
|
0x75, 0x78, 0x52, 0x08, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x41, 0x75, 0x78, 0x1a, 0x26, 0x0a, 0x03,
|
|
0x41, 0x75, 0x78, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x66, 0x69, 0x65,
|
|
0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x46,
|
|
0x69, 0x65, 0x6c, 0x64, 0x42, 0x11, 0x5a, 0x0f, 0x75, 0x74, 0x69, 0x6c, 0x2f, 0x70, 0x72, 0x6f,
|
|
0x74, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var file_api_util_proto_test_test_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_api_util_proto_test_test_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
var file_api_util_proto_test_test_proto_goTypes = []any{
|
|
(Primitives_SomeEnum)(0), // 0: test.Primitives.SomeEnum
|
|
(*Primitives)(nil), // 1: test.Primitives
|
|
(*RepPrimitives)(nil), // 2: test.RepPrimitives
|
|
(*Primitives_Aux)(nil), // 3: test.Primitives.Aux
|
|
(*RepPrimitives_Aux)(nil), // 4: test.RepPrimitives.Aux
|
|
}
|
|
var file_api_util_proto_test_test_proto_depIdxs = []int32{
|
|
0, // 0: test.Primitives.field_h:type_name -> test.Primitives.SomeEnum
|
|
3, // 1: test.Primitives.field_aux:type_name -> test.Primitives.Aux
|
|
4, // 2: test.RepPrimitives.field_aux:type_name -> test.RepPrimitives.Aux
|
|
3, // [3:3] is the sub-list for method output_type
|
|
3, // [3:3] is the sub-list for method input_type
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
0, // [0:3] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_api_util_proto_test_test_proto_init() }
|
|
func file_api_util_proto_test_test_proto_init() {
|
|
if File_api_util_proto_test_test_proto != nil {
|
|
return
|
|
}
|
|
file_api_util_proto_test_test_proto_msgTypes[0].OneofWrappers = []any{
|
|
(*Primitives_FieldMa)(nil),
|
|
(*Primitives_FieldMe)(nil),
|
|
(*Primitives_FieldAux)(nil),
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_api_util_proto_test_test_proto_rawDesc,
|
|
NumEnums: 1,
|
|
NumMessages: 4,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_api_util_proto_test_test_proto_goTypes,
|
|
DependencyIndexes: file_api_util_proto_test_test_proto_depIdxs,
|
|
EnumInfos: file_api_util_proto_test_test_proto_enumTypes,
|
|
MessageInfos: file_api_util_proto_test_test_proto_msgTypes,
|
|
}.Build()
|
|
File_api_util_proto_test_test_proto = out.File
|
|
file_api_util_proto_test_test_proto_rawDesc = nil
|
|
file_api_util_proto_test_test_proto_goTypes = nil
|
|
file_api_util_proto_test_test_proto_depIdxs = nil
|
|
}
|