From 7c577ecaebded917a518bc3d58dd1980fa6c04af Mon Sep 17 00:00:00 2001 From: Alexander Chuprov Date: Tue, 21 Jan 2025 14:33:23 +0300 Subject: [PATCH] [#320] api: Run 'make proto' Signed-off-by: Alexander Chuprov --- api/util/proto/test/test.pb.go | 528 +++++++++---- api/util/proto/test/test_protoopaque.pb.go | 817 +++++++++++++++++++++ 2 files changed, 1182 insertions(+), 163 deletions(-) create mode 100644 api/util/proto/test/test_protoopaque.pb.go diff --git a/api/util/proto/test/test.pb.go b/api/util/proto/test/test.pb.go index ba190d6a..bbf13814 100644 --- a/api/util/proto/test/test.pb.go +++ b/api/util/proto/test/test.pb.go @@ -1,16 +1,17 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.27.2 +// 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" - sync "sync" ) const ( @@ -64,42 +65,34 @@ func (x Primitives_SomeEnum) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use Primitives_SomeEnum.Descriptor instead. -func (Primitives_SomeEnum) EnumDescriptor() ([]byte, []int) { - return file_api_util_proto_test_test_proto_rawDescGZIP(), []int{0, 0} -} - type Primitives struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - 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 assignable to FieldM: + 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"` + FieldM isPrimitives_FieldM `protobuf_oneof:"field_m"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Primitives) Reset() { *x = Primitives{} - if protoimpl.UnsafeEnabled { - mi := &file_api_util_proto_test_test_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + 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 { @@ -110,7 +103,7 @@ func (*Primitives) ProtoMessage() {} func (x *Primitives) ProtoReflect() protoreflect.Message { mi := &file_api_util_proto_test_test_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -120,11 +113,6 @@ func (x *Primitives) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Primitives.ProtoReflect.Descriptor instead. -func (*Primitives) Descriptor() ([]byte, []int) { - return file_api_util_proto_test_test_proto_rawDescGZIP(), []int{0} -} - func (x *Primitives) GetFieldA() []byte { if x != nil { return x.FieldA @@ -202,34 +190,238 @@ func (x *Primitives) GetFieldH() Primitives_SomeEnum { return Primitives_UNKNOWN } -func (m *Primitives) GetFieldM() isPrimitives_FieldM { - if m != nil { - return m.FieldM +func (x *Primitives) GetFieldM() isPrimitives_FieldM { + if x != nil { + return x.FieldM } return nil } func (x *Primitives) GetFieldMa() []byte { - if x, ok := x.GetFieldM().(*Primitives_FieldMa); ok { - return x.FieldMa + if x != nil { + if x, ok := x.FieldM.(*Primitives_FieldMa); ok { + return x.FieldMa + } } return nil } func (x *Primitives) GetFieldMe() uint32 { - if x, ok := x.GetFieldM().(*Primitives_FieldMe); ok { - return x.FieldMe + if x != nil { + if x, ok := x.FieldM.(*Primitives_FieldMe); ok { + return x.FieldMe + } } return 0 } func (x *Primitives) GetFieldAux() *Primitives_Aux { - if x, ok := x.GetFieldM().(*Primitives_FieldAux); ok { - return x.FieldAux + 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() } @@ -253,27 +445,24 @@ func (*Primitives_FieldMe) isPrimitives_FieldM() {} func (*Primitives_FieldAux) isPrimitives_FieldM() {} type RepPrimitives struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + 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 - - 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"` + sizeCache protoimpl.SizeCache } func (x *RepPrimitives) Reset() { *x = RepPrimitives{} - if protoimpl.UnsafeEnabled { - mi := &file_api_util_proto_test_test_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + 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 { @@ -284,7 +473,7 @@ func (*RepPrimitives) ProtoMessage() {} func (x *RepPrimitives) ProtoReflect() protoreflect.Message { mi := &file_api_util_proto_test_test_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -294,11 +483,6 @@ func (x *RepPrimitives) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RepPrimitives.ProtoReflect.Descriptor instead. -func (*RepPrimitives) Descriptor() ([]byte, []int) { - return file_api_util_proto_test_test_proto_rawDescGZIP(), []int{1} -} - func (x *RepPrimitives) GetFieldA() [][]byte { if x != nil { return x.FieldA @@ -355,21 +539,78 @@ func (x *RepPrimitives) GetFieldAux() []*RepPrimitives_Aux { return nil } -type Primitives_Aux struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *RepPrimitives) SetFieldA(v [][]byte) { + x.FieldA = v +} - InnerField uint32 `protobuf:"varint,1,opt,name=inner_field,json=innerField,proto3" json:"inner_field,omitempty"` +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{} - if protoimpl.UnsafeEnabled { - mi := &file_api_util_proto_test_test_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + 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 { @@ -380,7 +621,7 @@ func (*Primitives_Aux) ProtoMessage() {} func (x *Primitives_Aux) ProtoReflect() protoreflect.Message { mi := &file_api_util_proto_test_test_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -390,11 +631,6 @@ func (x *Primitives_Aux) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Primitives_Aux.ProtoReflect.Descriptor instead. -func (*Primitives_Aux) Descriptor() ([]byte, []int) { - return file_api_util_proto_test_test_proto_rawDescGZIP(), []int{0, 0} -} - func (x *Primitives_Aux) GetInnerField() uint32 { if x != nil { return x.InnerField @@ -402,21 +638,36 @@ func (x *Primitives_Aux) GetInnerField() uint32 { return 0 } -type RepPrimitives_Aux struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (x *Primitives_Aux) SetInnerField(v uint32) { + x.InnerField = v +} - InnerField uint32 `protobuf:"varint,1,opt,name=inner_field,json=innerField,proto3" json:"inner_field,omitempty"` +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{} - if protoimpl.UnsafeEnabled { - mi := &file_api_util_proto_test_test_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + 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 { @@ -427,7 +678,7 @@ func (*RepPrimitives_Aux) ProtoMessage() {} func (x *RepPrimitives_Aux) ProtoReflect() protoreflect.Message { mi := &file_api_util_proto_test_test_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -437,11 +688,6 @@ func (x *RepPrimitives_Aux) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RepPrimitives_Aux.ProtoReflect.Descriptor instead. -func (*RepPrimitives_Aux) Descriptor() ([]byte, []int) { - return file_api_util_proto_test_test_proto_rawDescGZIP(), []int{1, 0} -} - func (x *RepPrimitives_Aux) GetInnerField() uint32 { if x != nil { return x.InnerField @@ -449,6 +695,24 @@ func (x *RepPrimitives_Aux) GetInnerField() uint32 { 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{ @@ -511,21 +775,9 @@ var file_api_util_proto_test_test_proto_rawDesc = []byte{ 0x74, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_api_util_proto_test_test_proto_rawDescOnce sync.Once - file_api_util_proto_test_test_proto_rawDescData = file_api_util_proto_test_test_proto_rawDesc -) - -func file_api_util_proto_test_test_proto_rawDescGZIP() []byte { - file_api_util_proto_test_test_proto_rawDescOnce.Do(func() { - file_api_util_proto_test_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_util_proto_test_test_proto_rawDescData) - }) - return file_api_util_proto_test_test_proto_rawDescData -} - 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 = []interface{}{ +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 @@ -548,57 +800,7 @@ func file_api_util_proto_test_test_proto_init() { if File_api_util_proto_test_test_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_api_util_proto_test_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Primitives); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_util_proto_test_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RepPrimitives); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_util_proto_test_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Primitives_Aux); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_util_proto_test_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RepPrimitives_Aux); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_api_util_proto_test_test_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_api_util_proto_test_test_proto_msgTypes[0].OneofWrappers = []any{ (*Primitives_FieldMa)(nil), (*Primitives_FieldMe)(nil), (*Primitives_FieldAux)(nil), diff --git a/api/util/proto/test/test_protoopaque.pb.go b/api/util/proto/test/test_protoopaque.pb.go new file mode 100644 index 00000000..29ce3b76 --- /dev/null +++ b/api/util/proto/test/test_protoopaque.pb.go @@ -0,0 +1,817 @@ +// 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:"opaque.v1"` + xxx_hidden_FieldA []byte `protobuf:"bytes,1,opt,name=field_a,json=fieldA,proto3" json:"field_a,omitempty"` + xxx_hidden_FieldB string `protobuf:"bytes,2,opt,name=field_b,json=fieldB,proto3" json:"field_b,omitempty"` + xxx_hidden_FieldC bool `protobuf:"varint,200,opt,name=field_c,json=fieldC,proto3" json:"field_c,omitempty"` + xxx_hidden_FieldD int32 `protobuf:"varint,201,opt,name=field_d,json=fieldD,proto3" json:"field_d,omitempty"` + xxx_hidden_FieldE uint32 `protobuf:"varint,202,opt,name=field_e,json=fieldE,proto3" json:"field_e,omitempty"` + xxx_hidden_FieldF int64 `protobuf:"varint,203,opt,name=field_f,json=fieldF,proto3" json:"field_f,omitempty"` + xxx_hidden_FieldG uint64 `protobuf:"varint,204,opt,name=field_g,json=fieldG,proto3" json:"field_g,omitempty"` + xxx_hidden_FieldI uint64 `protobuf:"fixed64,205,opt,name=field_i,json=fieldI,proto3" json:"field_i,omitempty"` + xxx_hidden_FieldJ float64 `protobuf:"fixed64,206,opt,name=field_j,json=fieldJ,proto3" json:"field_j,omitempty"` + xxx_hidden_FieldK uint32 `protobuf:"fixed32,207,opt,name=field_k,json=fieldK,proto3" json:"field_k,omitempty"` + xxx_hidden_FieldH Primitives_SomeEnum `protobuf:"varint,300,opt,name=field_h,json=fieldH,proto3,enum=test.Primitives_SomeEnum" json:"field_h,omitempty"` + xxx_hidden_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.xxx_hidden_FieldA + } + return nil +} + +func (x *Primitives) GetFieldB() string { + if x != nil { + return x.xxx_hidden_FieldB + } + return "" +} + +func (x *Primitives) GetFieldC() bool { + if x != nil { + return x.xxx_hidden_FieldC + } + return false +} + +func (x *Primitives) GetFieldD() int32 { + if x != nil { + return x.xxx_hidden_FieldD + } + return 0 +} + +func (x *Primitives) GetFieldE() uint32 { + if x != nil { + return x.xxx_hidden_FieldE + } + return 0 +} + +func (x *Primitives) GetFieldF() int64 { + if x != nil { + return x.xxx_hidden_FieldF + } + return 0 +} + +func (x *Primitives) GetFieldG() uint64 { + if x != nil { + return x.xxx_hidden_FieldG + } + return 0 +} + +func (x *Primitives) GetFieldI() uint64 { + if x != nil { + return x.xxx_hidden_FieldI + } + return 0 +} + +func (x *Primitives) GetFieldJ() float64 { + if x != nil { + return x.xxx_hidden_FieldJ + } + return 0 +} + +func (x *Primitives) GetFieldK() uint32 { + if x != nil { + return x.xxx_hidden_FieldK + } + return 0 +} + +func (x *Primitives) GetFieldH() Primitives_SomeEnum { + if x != nil { + return x.xxx_hidden_FieldH + } + return Primitives_UNKNOWN +} + +func (x *Primitives) GetFieldMa() []byte { + if x != nil { + if x, ok := x.xxx_hidden_FieldM.(*primitives_FieldMa); ok { + return x.FieldMa + } + } + return nil +} + +func (x *Primitives) GetFieldMe() uint32 { + if x != nil { + if x, ok := x.xxx_hidden_FieldM.(*primitives_FieldMe); ok { + return x.FieldMe + } + } + return 0 +} + +func (x *Primitives) GetFieldAux() *Primitives_Aux { + if x != nil { + if x, ok := x.xxx_hidden_FieldM.(*primitives_FieldAux); ok { + return x.FieldAux + } + } + return nil +} + +func (x *Primitives) SetFieldA(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_FieldA = v +} + +func (x *Primitives) SetFieldB(v string) { + x.xxx_hidden_FieldB = v +} + +func (x *Primitives) SetFieldC(v bool) { + x.xxx_hidden_FieldC = v +} + +func (x *Primitives) SetFieldD(v int32) { + x.xxx_hidden_FieldD = v +} + +func (x *Primitives) SetFieldE(v uint32) { + x.xxx_hidden_FieldE = v +} + +func (x *Primitives) SetFieldF(v int64) { + x.xxx_hidden_FieldF = v +} + +func (x *Primitives) SetFieldG(v uint64) { + x.xxx_hidden_FieldG = v +} + +func (x *Primitives) SetFieldI(v uint64) { + x.xxx_hidden_FieldI = v +} + +func (x *Primitives) SetFieldJ(v float64) { + x.xxx_hidden_FieldJ = v +} + +func (x *Primitives) SetFieldK(v uint32) { + x.xxx_hidden_FieldK = v +} + +func (x *Primitives) SetFieldH(v Primitives_SomeEnum) { + x.xxx_hidden_FieldH = v +} + +func (x *Primitives) SetFieldMa(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_FieldM = &primitives_FieldMa{v} +} + +func (x *Primitives) SetFieldMe(v uint32) { + x.xxx_hidden_FieldM = &primitives_FieldMe{v} +} + +func (x *Primitives) SetFieldAux(v *Primitives_Aux) { + if v == nil { + x.xxx_hidden_FieldM = nil + return + } + x.xxx_hidden_FieldM = &primitives_FieldAux{v} +} + +func (x *Primitives) HasFieldM() bool { + if x == nil { + return false + } + return x.xxx_hidden_FieldM != nil +} + +func (x *Primitives) HasFieldMa() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_FieldM.(*primitives_FieldMa) + return ok +} + +func (x *Primitives) HasFieldMe() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_FieldM.(*primitives_FieldMe) + return ok +} + +func (x *Primitives) HasFieldAux() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_FieldM.(*primitives_FieldAux) + return ok +} + +func (x *Primitives) ClearFieldM() { + x.xxx_hidden_FieldM = nil +} + +func (x *Primitives) ClearFieldMa() { + if _, ok := x.xxx_hidden_FieldM.(*primitives_FieldMa); ok { + x.xxx_hidden_FieldM = nil + } +} + +func (x *Primitives) ClearFieldMe() { + if _, ok := x.xxx_hidden_FieldM.(*primitives_FieldMe); ok { + x.xxx_hidden_FieldM = nil + } +} + +func (x *Primitives) ClearFieldAux() { + if _, ok := x.xxx_hidden_FieldM.(*primitives_FieldAux); ok { + x.xxx_hidden_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.xxx_hidden_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 xxx_hidden_FieldM: + FieldMa []byte + FieldMe *uint32 + FieldAux *Primitives_Aux + // -- end of xxx_hidden_FieldM +} + +func (b0 Primitives_builder) Build() *Primitives { + m0 := &Primitives{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_FieldA = b.FieldA + x.xxx_hidden_FieldB = b.FieldB + x.xxx_hidden_FieldC = b.FieldC + x.xxx_hidden_FieldD = b.FieldD + x.xxx_hidden_FieldE = b.FieldE + x.xxx_hidden_FieldF = b.FieldF + x.xxx_hidden_FieldG = b.FieldG + x.xxx_hidden_FieldI = b.FieldI + x.xxx_hidden_FieldJ = b.FieldJ + x.xxx_hidden_FieldK = b.FieldK + x.xxx_hidden_FieldH = b.FieldH + if b.FieldMa != nil { + x.xxx_hidden_FieldM = &primitives_FieldMa{b.FieldMa} + } + if b.FieldMe != nil { + x.xxx_hidden_FieldM = &primitives_FieldMe{*b.FieldMe} + } + if b.FieldAux != nil { + x.xxx_hidden_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:"opaque.v1"` + xxx_hidden_FieldA [][]byte `protobuf:"bytes,1,rep,name=field_a,json=fieldA,proto3" json:"field_a,omitempty"` + xxx_hidden_FieldB []string `protobuf:"bytes,2,rep,name=field_b,json=fieldB,proto3" json:"field_b,omitempty"` + xxx_hidden_FieldC []int32 `protobuf:"varint,3,rep,packed,name=field_c,json=fieldC,proto3" json:"field_c,omitempty"` + xxx_hidden_FieldD []uint32 `protobuf:"varint,4,rep,packed,name=field_d,json=fieldD,proto3" json:"field_d,omitempty"` + xxx_hidden_FieldE []int64 `protobuf:"varint,5,rep,packed,name=field_e,json=fieldE,proto3" json:"field_e,omitempty"` + xxx_hidden_FieldF []uint64 `protobuf:"varint,6,rep,packed,name=field_f,json=fieldF,proto3" json:"field_f,omitempty"` + xxx_hidden_FieldFu []uint64 `protobuf:"varint,7,rep,name=field_fu,json=fieldFu,proto3" json:"field_fu,omitempty"` + xxx_hidden_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.xxx_hidden_FieldA + } + return nil +} + +func (x *RepPrimitives) GetFieldB() []string { + if x != nil { + return x.xxx_hidden_FieldB + } + return nil +} + +func (x *RepPrimitives) GetFieldC() []int32 { + if x != nil { + return x.xxx_hidden_FieldC + } + return nil +} + +func (x *RepPrimitives) GetFieldD() []uint32 { + if x != nil { + return x.xxx_hidden_FieldD + } + return nil +} + +func (x *RepPrimitives) GetFieldE() []int64 { + if x != nil { + return x.xxx_hidden_FieldE + } + return nil +} + +func (x *RepPrimitives) GetFieldF() []uint64 { + if x != nil { + return x.xxx_hidden_FieldF + } + return nil +} + +func (x *RepPrimitives) GetFieldFu() []uint64 { + if x != nil { + return x.xxx_hidden_FieldFu + } + return nil +} + +func (x *RepPrimitives) GetFieldAux() []*RepPrimitives_Aux { + if x != nil { + if x.xxx_hidden_FieldAux != nil { + return *x.xxx_hidden_FieldAux + } + } + return nil +} + +func (x *RepPrimitives) SetFieldA(v [][]byte) { + x.xxx_hidden_FieldA = v +} + +func (x *RepPrimitives) SetFieldB(v []string) { + x.xxx_hidden_FieldB = v +} + +func (x *RepPrimitives) SetFieldC(v []int32) { + x.xxx_hidden_FieldC = v +} + +func (x *RepPrimitives) SetFieldD(v []uint32) { + x.xxx_hidden_FieldD = v +} + +func (x *RepPrimitives) SetFieldE(v []int64) { + x.xxx_hidden_FieldE = v +} + +func (x *RepPrimitives) SetFieldF(v []uint64) { + x.xxx_hidden_FieldF = v +} + +func (x *RepPrimitives) SetFieldFu(v []uint64) { + x.xxx_hidden_FieldFu = v +} + +func (x *RepPrimitives) SetFieldAux(v []*RepPrimitives_Aux) { + x.xxx_hidden_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.xxx_hidden_FieldA = b.FieldA + x.xxx_hidden_FieldB = b.FieldB + x.xxx_hidden_FieldC = b.FieldC + x.xxx_hidden_FieldD = b.FieldD + x.xxx_hidden_FieldE = b.FieldE + x.xxx_hidden_FieldF = b.FieldF + x.xxx_hidden_FieldFu = b.FieldFu + x.xxx_hidden_FieldAux = &b.FieldAux + return m0 +} + +type Primitives_Aux struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_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.xxx_hidden_InnerField + } + return 0 +} + +func (x *Primitives_Aux) SetInnerField(v uint32) { + x.xxx_hidden_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.xxx_hidden_InnerField = b.InnerField + return m0 +} + +type RepPrimitives_Aux struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_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.xxx_hidden_InnerField + } + return 0 +} + +func (x *RepPrimitives_Aux) SetInnerField(v uint32) { + x.xxx_hidden_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.xxx_hidden_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 +}