forked from TrueCloudLab/frostfs-sdk-go
[#320] api: Run 'make proto'
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
parent
4b4f35bbac
commit
7c577ecaeb
2 changed files with 1182 additions and 163 deletions
528
api/util/proto/test/test.pb.go
generated
528
api/util/proto/test/test.pb.go
generated
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue