github.com/TrueCloudLab/frostfs-api-go/v2@v2.0.0-20230228134343-196241c4e79a/util/proto/test/test.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.28.0
     4  // 	protoc        v3.21.9
     5  // source: util/proto/test/test.proto
     6  
     7  package test
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type Primitives_SomeEnum int32
    24  
    25  const (
    26  	Primitives_UNKNOWN  Primitives_SomeEnum = 0
    27  	Primitives_POSITIVE Primitives_SomeEnum = 1
    28  	Primitives_NEGATIVE Primitives_SomeEnum = -1
    29  )
    30  
    31  // Enum value maps for Primitives_SomeEnum.
    32  var (
    33  	Primitives_SomeEnum_name = map[int32]string{
    34  		0:  "UNKNOWN",
    35  		1:  "POSITIVE",
    36  		-1: "NEGATIVE",
    37  	}
    38  	Primitives_SomeEnum_value = map[string]int32{
    39  		"UNKNOWN":  0,
    40  		"POSITIVE": 1,
    41  		"NEGATIVE": -1,
    42  	}
    43  )
    44  
    45  func (x Primitives_SomeEnum) Enum() *Primitives_SomeEnum {
    46  	p := new(Primitives_SomeEnum)
    47  	*p = x
    48  	return p
    49  }
    50  
    51  func (x Primitives_SomeEnum) String() string {
    52  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    53  }
    54  
    55  func (Primitives_SomeEnum) Descriptor() protoreflect.EnumDescriptor {
    56  	return file_util_proto_test_test_proto_enumTypes[0].Descriptor()
    57  }
    58  
    59  func (Primitives_SomeEnum) Type() protoreflect.EnumType {
    60  	return &file_util_proto_test_test_proto_enumTypes[0]
    61  }
    62  
    63  func (x Primitives_SomeEnum) Number() protoreflect.EnumNumber {
    64  	return protoreflect.EnumNumber(x)
    65  }
    66  
    67  // Deprecated: Use Primitives_SomeEnum.Descriptor instead.
    68  func (Primitives_SomeEnum) EnumDescriptor() ([]byte, []int) {
    69  	return file_util_proto_test_test_proto_rawDescGZIP(), []int{0, 0}
    70  }
    71  
    72  type Primitives struct {
    73  	state         protoimpl.MessageState
    74  	sizeCache     protoimpl.SizeCache
    75  	unknownFields protoimpl.UnknownFields
    76  
    77  	FieldA []byte              `protobuf:"bytes,1,opt,name=field_a,json=fieldA,proto3" json:"field_a,omitempty"`
    78  	FieldB string              `protobuf:"bytes,2,opt,name=field_b,json=fieldB,proto3" json:"field_b,omitempty"`
    79  	FieldC bool                `protobuf:"varint,200,opt,name=field_c,json=fieldC,proto3" json:"field_c,omitempty"`
    80  	FieldD int32               `protobuf:"varint,201,opt,name=field_d,json=fieldD,proto3" json:"field_d,omitempty"`
    81  	FieldE uint32              `protobuf:"varint,202,opt,name=field_e,json=fieldE,proto3" json:"field_e,omitempty"`
    82  	FieldF int64               `protobuf:"varint,203,opt,name=field_f,json=fieldF,proto3" json:"field_f,omitempty"`
    83  	FieldG uint64              `protobuf:"varint,204,opt,name=field_g,json=fieldG,proto3" json:"field_g,omitempty"`
    84  	FieldI uint64              `protobuf:"fixed64,205,opt,name=field_i,json=fieldI,proto3" json:"field_i,omitempty"`
    85  	FieldJ float64             `protobuf:"fixed64,206,opt,name=field_j,json=fieldJ,proto3" json:"field_j,omitempty"`
    86  	FieldK uint32              `protobuf:"fixed32,207,opt,name=field_k,json=fieldK,proto3" json:"field_k,omitempty"`
    87  	FieldH Primitives_SomeEnum `protobuf:"varint,300,opt,name=field_h,json=fieldH,proto3,enum=test.Primitives_SomeEnum" json:"field_h,omitempty"`
    88  }
    89  
    90  func (x *Primitives) Reset() {
    91  	*x = Primitives{}
    92  	if protoimpl.UnsafeEnabled {
    93  		mi := &file_util_proto_test_test_proto_msgTypes[0]
    94  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    95  		ms.StoreMessageInfo(mi)
    96  	}
    97  }
    98  
    99  func (x *Primitives) String() string {
   100  	return protoimpl.X.MessageStringOf(x)
   101  }
   102  
   103  func (*Primitives) ProtoMessage() {}
   104  
   105  func (x *Primitives) ProtoReflect() protoreflect.Message {
   106  	mi := &file_util_proto_test_test_proto_msgTypes[0]
   107  	if protoimpl.UnsafeEnabled && x != nil {
   108  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   109  		if ms.LoadMessageInfo() == nil {
   110  			ms.StoreMessageInfo(mi)
   111  		}
   112  		return ms
   113  	}
   114  	return mi.MessageOf(x)
   115  }
   116  
   117  // Deprecated: Use Primitives.ProtoReflect.Descriptor instead.
   118  func (*Primitives) Descriptor() ([]byte, []int) {
   119  	return file_util_proto_test_test_proto_rawDescGZIP(), []int{0}
   120  }
   121  
   122  func (x *Primitives) GetFieldA() []byte {
   123  	if x != nil {
   124  		return x.FieldA
   125  	}
   126  	return nil
   127  }
   128  
   129  func (x *Primitives) GetFieldB() string {
   130  	if x != nil {
   131  		return x.FieldB
   132  	}
   133  	return ""
   134  }
   135  
   136  func (x *Primitives) GetFieldC() bool {
   137  	if x != nil {
   138  		return x.FieldC
   139  	}
   140  	return false
   141  }
   142  
   143  func (x *Primitives) GetFieldD() int32 {
   144  	if x != nil {
   145  		return x.FieldD
   146  	}
   147  	return 0
   148  }
   149  
   150  func (x *Primitives) GetFieldE() uint32 {
   151  	if x != nil {
   152  		return x.FieldE
   153  	}
   154  	return 0
   155  }
   156  
   157  func (x *Primitives) GetFieldF() int64 {
   158  	if x != nil {
   159  		return x.FieldF
   160  	}
   161  	return 0
   162  }
   163  
   164  func (x *Primitives) GetFieldG() uint64 {
   165  	if x != nil {
   166  		return x.FieldG
   167  	}
   168  	return 0
   169  }
   170  
   171  func (x *Primitives) GetFieldI() uint64 {
   172  	if x != nil {
   173  		return x.FieldI
   174  	}
   175  	return 0
   176  }
   177  
   178  func (x *Primitives) GetFieldJ() float64 {
   179  	if x != nil {
   180  		return x.FieldJ
   181  	}
   182  	return 0
   183  }
   184  
   185  func (x *Primitives) GetFieldK() uint32 {
   186  	if x != nil {
   187  		return x.FieldK
   188  	}
   189  	return 0
   190  }
   191  
   192  func (x *Primitives) GetFieldH() Primitives_SomeEnum {
   193  	if x != nil {
   194  		return x.FieldH
   195  	}
   196  	return Primitives_UNKNOWN
   197  }
   198  
   199  type RepPrimitives struct {
   200  	state         protoimpl.MessageState
   201  	sizeCache     protoimpl.SizeCache
   202  	unknownFields protoimpl.UnknownFields
   203  
   204  	FieldA [][]byte `protobuf:"bytes,1,rep,name=field_a,json=fieldA,proto3" json:"field_a,omitempty"`
   205  	FieldB []string `protobuf:"bytes,2,rep,name=field_b,json=fieldB,proto3" json:"field_b,omitempty"`
   206  	FieldC []int32  `protobuf:"varint,3,rep,packed,name=field_c,json=fieldC,proto3" json:"field_c,omitempty"`
   207  	FieldD []uint32 `protobuf:"varint,4,rep,packed,name=field_d,json=fieldD,proto3" json:"field_d,omitempty"`
   208  	FieldE []int64  `protobuf:"varint,5,rep,packed,name=field_e,json=fieldE,proto3" json:"field_e,omitempty"`
   209  	FieldF []uint64 `protobuf:"varint,6,rep,packed,name=field_f,json=fieldF,proto3" json:"field_f,omitempty"`
   210  }
   211  
   212  func (x *RepPrimitives) Reset() {
   213  	*x = RepPrimitives{}
   214  	if protoimpl.UnsafeEnabled {
   215  		mi := &file_util_proto_test_test_proto_msgTypes[1]
   216  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   217  		ms.StoreMessageInfo(mi)
   218  	}
   219  }
   220  
   221  func (x *RepPrimitives) String() string {
   222  	return protoimpl.X.MessageStringOf(x)
   223  }
   224  
   225  func (*RepPrimitives) ProtoMessage() {}
   226  
   227  func (x *RepPrimitives) ProtoReflect() protoreflect.Message {
   228  	mi := &file_util_proto_test_test_proto_msgTypes[1]
   229  	if protoimpl.UnsafeEnabled && x != nil {
   230  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   231  		if ms.LoadMessageInfo() == nil {
   232  			ms.StoreMessageInfo(mi)
   233  		}
   234  		return ms
   235  	}
   236  	return mi.MessageOf(x)
   237  }
   238  
   239  // Deprecated: Use RepPrimitives.ProtoReflect.Descriptor instead.
   240  func (*RepPrimitives) Descriptor() ([]byte, []int) {
   241  	return file_util_proto_test_test_proto_rawDescGZIP(), []int{1}
   242  }
   243  
   244  func (x *RepPrimitives) GetFieldA() [][]byte {
   245  	if x != nil {
   246  		return x.FieldA
   247  	}
   248  	return nil
   249  }
   250  
   251  func (x *RepPrimitives) GetFieldB() []string {
   252  	if x != nil {
   253  		return x.FieldB
   254  	}
   255  	return nil
   256  }
   257  
   258  func (x *RepPrimitives) GetFieldC() []int32 {
   259  	if x != nil {
   260  		return x.FieldC
   261  	}
   262  	return nil
   263  }
   264  
   265  func (x *RepPrimitives) GetFieldD() []uint32 {
   266  	if x != nil {
   267  		return x.FieldD
   268  	}
   269  	return nil
   270  }
   271  
   272  func (x *RepPrimitives) GetFieldE() []int64 {
   273  	if x != nil {
   274  		return x.FieldE
   275  	}
   276  	return nil
   277  }
   278  
   279  func (x *RepPrimitives) GetFieldF() []uint64 {
   280  	if x != nil {
   281  		return x.FieldF
   282  	}
   283  	return nil
   284  }
   285  
   286  var File_util_proto_test_test_proto protoreflect.FileDescriptor
   287  
   288  var file_util_proto_test_test_proto_rawDesc = []byte{
   289  	0x0a, 0x1a, 0x75, 0x74, 0x69, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x65, 0x73,
   290  	0x74, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x74, 0x65,
   291  	0x73, 0x74, 0x22, 0x81, 0x03, 0x0a, 0x0a, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65,
   292  	0x73, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x61, 0x18, 0x01, 0x20, 0x01,
   293  	0x28, 0x0c, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x41, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x69,
   294  	0x65, 0x6c, 0x64, 0x5f, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x65,
   295  	0x6c, 0x64, 0x42, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x63, 0x18, 0xc8,
   296  	0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x43, 0x12, 0x18, 0x0a,
   297  	0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x64, 0x18, 0xc9, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
   298  	0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64,
   299  	0x5f, 0x65, 0x18, 0xca, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64,
   300  	0x45, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x66, 0x18, 0xcb, 0x01, 0x20,
   301  	0x01, 0x28, 0x03, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x46, 0x12, 0x18, 0x0a, 0x07, 0x66,
   302  	0x69, 0x65, 0x6c, 0x64, 0x5f, 0x67, 0x18, 0xcc, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x66,
   303  	0x69, 0x65, 0x6c, 0x64, 0x47, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x69,
   304  	0x18, 0xcd, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x49, 0x12,
   305  	0x18, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6a, 0x18, 0xce, 0x01, 0x20, 0x01, 0x28,
   306  	0x01, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4a, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x65,
   307  	0x6c, 0x64, 0x5f, 0x6b, 0x18, 0xcf, 0x01, 0x20, 0x01, 0x28, 0x07, 0x52, 0x06, 0x66, 0x69, 0x65,
   308  	0x6c, 0x64, 0x4b, 0x12, 0x33, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x68, 0x18, 0xac,
   309  	0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x72, 0x69,
   310  	0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x73, 0x2e, 0x53, 0x6f, 0x6d, 0x65, 0x45, 0x6e, 0x75, 0x6d,
   311  	0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x48, 0x22, 0x3c, 0x0a, 0x08, 0x53, 0x6f, 0x6d, 0x65,
   312  	0x45, 0x6e, 0x75, 0x6d, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10,
   313  	0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12,
   314  	0x15, 0x0a, 0x08, 0x4e, 0x45, 0x47, 0x41, 0x54, 0x49, 0x56, 0x45, 0x10, 0xff, 0xff, 0xff, 0xff,
   315  	0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x22, 0xa5, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x70, 0x50, 0x72,
   316  	0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c,
   317  	0x64, 0x5f, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64,
   318  	0x41, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x18, 0x02, 0x20, 0x03,
   319  	0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x69,
   320  	0x65, 0x6c, 0x64, 0x5f, 0x63, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x06, 0x66, 0x69, 0x65,
   321  	0x6c, 0x64, 0x43, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x64, 0x18, 0x04,
   322  	0x20, 0x03, 0x28, 0x0d, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x12, 0x17, 0x0a, 0x07,
   323  	0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x03, 0x52, 0x06, 0x66,
   324  	0x69, 0x65, 0x6c, 0x64, 0x45, 0x12, 0x17, 0x0a, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x66,
   325  	0x18, 0x06, 0x20, 0x03, 0x28, 0x04, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x46, 0x42, 0x11,
   326  	0x5a, 0x0f, 0x75, 0x74, 0x69, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x65, 0x73,
   327  	0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   328  }
   329  
   330  var (
   331  	file_util_proto_test_test_proto_rawDescOnce sync.Once
   332  	file_util_proto_test_test_proto_rawDescData = file_util_proto_test_test_proto_rawDesc
   333  )
   334  
   335  func file_util_proto_test_test_proto_rawDescGZIP() []byte {
   336  	file_util_proto_test_test_proto_rawDescOnce.Do(func() {
   337  		file_util_proto_test_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_util_proto_test_test_proto_rawDescData)
   338  	})
   339  	return file_util_proto_test_test_proto_rawDescData
   340  }
   341  
   342  var file_util_proto_test_test_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   343  var file_util_proto_test_test_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   344  var file_util_proto_test_test_proto_goTypes = []interface{}{
   345  	(Primitives_SomeEnum)(0), // 0: test.Primitives.SomeEnum
   346  	(*Primitives)(nil),       // 1: test.Primitives
   347  	(*RepPrimitives)(nil),    // 2: test.RepPrimitives
   348  }
   349  var file_util_proto_test_test_proto_depIdxs = []int32{
   350  	0, // 0: test.Primitives.field_h:type_name -> test.Primitives.SomeEnum
   351  	1, // [1:1] is the sub-list for method output_type
   352  	1, // [1:1] is the sub-list for method input_type
   353  	1, // [1:1] is the sub-list for extension type_name
   354  	1, // [1:1] is the sub-list for extension extendee
   355  	0, // [0:1] is the sub-list for field type_name
   356  }
   357  
   358  func init() { file_util_proto_test_test_proto_init() }
   359  func file_util_proto_test_test_proto_init() {
   360  	if File_util_proto_test_test_proto != nil {
   361  		return
   362  	}
   363  	if !protoimpl.UnsafeEnabled {
   364  		file_util_proto_test_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   365  			switch v := v.(*Primitives); i {
   366  			case 0:
   367  				return &v.state
   368  			case 1:
   369  				return &v.sizeCache
   370  			case 2:
   371  				return &v.unknownFields
   372  			default:
   373  				return nil
   374  			}
   375  		}
   376  		file_util_proto_test_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   377  			switch v := v.(*RepPrimitives); i {
   378  			case 0:
   379  				return &v.state
   380  			case 1:
   381  				return &v.sizeCache
   382  			case 2:
   383  				return &v.unknownFields
   384  			default:
   385  				return nil
   386  			}
   387  		}
   388  	}
   389  	type x struct{}
   390  	out := protoimpl.TypeBuilder{
   391  		File: protoimpl.DescBuilder{
   392  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   393  			RawDescriptor: file_util_proto_test_test_proto_rawDesc,
   394  			NumEnums:      1,
   395  			NumMessages:   2,
   396  			NumExtensions: 0,
   397  			NumServices:   0,
   398  		},
   399  		GoTypes:           file_util_proto_test_test_proto_goTypes,
   400  		DependencyIndexes: file_util_proto_test_test_proto_depIdxs,
   401  		EnumInfos:         file_util_proto_test_test_proto_enumTypes,
   402  		MessageInfos:      file_util_proto_test_test_proto_msgTypes,
   403  	}.Build()
   404  	File_util_proto_test_test_proto = out.File
   405  	file_util_proto_test_test_proto_rawDesc = nil
   406  	file_util_proto_test_test_proto_goTypes = nil
   407  	file_util_proto_test_test_proto_depIdxs = nil
   408  }