github.com/ronaksoft/rony@v0.16.26-0.20230807065236-1743dbfe6959/internal/testEnv/pb/model/model.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.27.1
     4  // 	protoc        v3.17.3
     5  // source: model.proto
     6  
     7  package model
     8  
     9  import (
    10  	_ "github.com/ronaksoft/rony"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	reflect "reflect"
    14  	sync "sync"
    15  )
    16  
    17  const (
    18  	// Verify that this generated code is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    22  )
    23  
    24  type Enum int32
    25  
    26  const (
    27  	Enum_None      Enum = 0
    28  	Enum_Something Enum = 1
    29  	Enum_Else      Enum = 2
    30  )
    31  
    32  // Enum value maps for Enum.
    33  var (
    34  	Enum_name = map[int32]string{
    35  		0: "None",
    36  		1: "Something",
    37  		2: "Else",
    38  	}
    39  	Enum_value = map[string]int32{
    40  		"None":      0,
    41  		"Something": 1,
    42  		"Else":      2,
    43  	}
    44  )
    45  
    46  func (x Enum) Enum() *Enum {
    47  	p := new(Enum)
    48  	*p = x
    49  	return p
    50  }
    51  
    52  func (x Enum) String() string {
    53  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    54  }
    55  
    56  func (Enum) Descriptor() protoreflect.EnumDescriptor {
    57  	return file_model_proto_enumTypes[0].Descriptor()
    58  }
    59  
    60  func (Enum) Type() protoreflect.EnumType {
    61  	return &file_model_proto_enumTypes[0]
    62  }
    63  
    64  func (x Enum) Number() protoreflect.EnumNumber {
    65  	return protoreflect.EnumNumber(x)
    66  }
    67  
    68  // Deprecated: Use Enum.Descriptor instead.
    69  func (Enum) EnumDescriptor() ([]byte, []int) {
    70  	return file_model_proto_rawDescGZIP(), []int{0}
    71  }
    72  
    73  type Model1 struct {
    74  	state         protoimpl.MessageState
    75  	sizeCache     protoimpl.SizeCache
    76  	unknownFields protoimpl.UnknownFields
    77  
    78  	ID       int32    `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
    79  	ShardKey int32    `protobuf:"varint,2,opt,name=ShardKey,proto3" json:"ShardKey,omitempty"`
    80  	P1       string   `protobuf:"bytes,3,opt,name=P1,proto3" json:"P1,omitempty"`
    81  	P2       []string `protobuf:"bytes,4,rep,name=P2,proto3" json:"P2,omitempty"`
    82  	P5       uint64   `protobuf:"varint,5,opt,name=P5,proto3" json:"P5,omitempty"`
    83  	Enum     Enum     `protobuf:"varint,7,opt,name=Enum,proto3,enum=model.Enum" json:"Enum,omitempty"`
    84  }
    85  
    86  func (x *Model1) Reset() {
    87  	*x = Model1{}
    88  	if protoimpl.UnsafeEnabled {
    89  		mi := &file_model_proto_msgTypes[0]
    90  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    91  		ms.StoreMessageInfo(mi)
    92  	}
    93  }
    94  
    95  func (x *Model1) String() string {
    96  	return protoimpl.X.MessageStringOf(x)
    97  }
    98  
    99  func (*Model1) ProtoMessage() {}
   100  
   101  func (x *Model1) ProtoReflect() protoreflect.Message {
   102  	mi := &file_model_proto_msgTypes[0]
   103  	if protoimpl.UnsafeEnabled && x != nil {
   104  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   105  		if ms.LoadMessageInfo() == nil {
   106  			ms.StoreMessageInfo(mi)
   107  		}
   108  		return ms
   109  	}
   110  	return mi.MessageOf(x)
   111  }
   112  
   113  // Deprecated: Use Model1.ProtoReflect.Descriptor instead.
   114  func (*Model1) Descriptor() ([]byte, []int) {
   115  	return file_model_proto_rawDescGZIP(), []int{0}
   116  }
   117  
   118  func (x *Model1) GetID() int32 {
   119  	if x != nil {
   120  		return x.ID
   121  	}
   122  	return 0
   123  }
   124  
   125  func (x *Model1) GetShardKey() int32 {
   126  	if x != nil {
   127  		return x.ShardKey
   128  	}
   129  	return 0
   130  }
   131  
   132  func (x *Model1) GetP1() string {
   133  	if x != nil {
   134  		return x.P1
   135  	}
   136  	return ""
   137  }
   138  
   139  func (x *Model1) GetP2() []string {
   140  	if x != nil {
   141  		return x.P2
   142  	}
   143  	return nil
   144  }
   145  
   146  func (x *Model1) GetP5() uint64 {
   147  	if x != nil {
   148  		return x.P5
   149  	}
   150  	return 0
   151  }
   152  
   153  func (x *Model1) GetEnum() Enum {
   154  	if x != nil {
   155  		return x.Enum
   156  	}
   157  	return Enum_None
   158  }
   159  
   160  type Model2 struct {
   161  	state         protoimpl.MessageState
   162  	sizeCache     protoimpl.SizeCache
   163  	unknownFields protoimpl.UnknownFields
   164  
   165  	ID       int64    `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
   166  	ShardKey int32    `protobuf:"varint,2,opt,name=ShardKey,proto3" json:"ShardKey,omitempty"`
   167  	P1       string   `protobuf:"bytes,3,opt,name=P1,proto3" json:"P1,omitempty"`
   168  	P2       []string `protobuf:"bytes,4,rep,name=P2,proto3" json:"P2,omitempty"`
   169  	P5       uint64   `protobuf:"varint,5,opt,name=P5,proto3" json:"P5,omitempty"`
   170  }
   171  
   172  func (x *Model2) Reset() {
   173  	*x = Model2{}
   174  	if protoimpl.UnsafeEnabled {
   175  		mi := &file_model_proto_msgTypes[1]
   176  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   177  		ms.StoreMessageInfo(mi)
   178  	}
   179  }
   180  
   181  func (x *Model2) String() string {
   182  	return protoimpl.X.MessageStringOf(x)
   183  }
   184  
   185  func (*Model2) ProtoMessage() {}
   186  
   187  func (x *Model2) ProtoReflect() protoreflect.Message {
   188  	mi := &file_model_proto_msgTypes[1]
   189  	if protoimpl.UnsafeEnabled && x != nil {
   190  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   191  		if ms.LoadMessageInfo() == nil {
   192  			ms.StoreMessageInfo(mi)
   193  		}
   194  		return ms
   195  	}
   196  	return mi.MessageOf(x)
   197  }
   198  
   199  // Deprecated: Use Model2.ProtoReflect.Descriptor instead.
   200  func (*Model2) Descriptor() ([]byte, []int) {
   201  	return file_model_proto_rawDescGZIP(), []int{1}
   202  }
   203  
   204  func (x *Model2) GetID() int64 {
   205  	if x != nil {
   206  		return x.ID
   207  	}
   208  	return 0
   209  }
   210  
   211  func (x *Model2) GetShardKey() int32 {
   212  	if x != nil {
   213  		return x.ShardKey
   214  	}
   215  	return 0
   216  }
   217  
   218  func (x *Model2) GetP1() string {
   219  	if x != nil {
   220  		return x.P1
   221  	}
   222  	return ""
   223  }
   224  
   225  func (x *Model2) GetP2() []string {
   226  	if x != nil {
   227  		return x.P2
   228  	}
   229  	return nil
   230  }
   231  
   232  func (x *Model2) GetP5() uint64 {
   233  	if x != nil {
   234  		return x.P5
   235  	}
   236  	return 0
   237  }
   238  
   239  type Model3 struct {
   240  	state         protoimpl.MessageState
   241  	sizeCache     protoimpl.SizeCache
   242  	unknownFields protoimpl.UnknownFields
   243  
   244  	ID       int64    `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
   245  	ShardKey int32    `protobuf:"varint,2,opt,name=ShardKey,proto3" json:"ShardKey,omitempty"`
   246  	P1       []byte   `protobuf:"bytes,3,opt,name=P1,proto3" json:"P1,omitempty"`
   247  	P2       []string `protobuf:"bytes,4,rep,name=P2,proto3" json:"P2,omitempty"`
   248  	P5       [][]byte `protobuf:"bytes,5,rep,name=P5,proto3" json:"P5,omitempty"`
   249  }
   250  
   251  func (x *Model3) Reset() {
   252  	*x = Model3{}
   253  	if protoimpl.UnsafeEnabled {
   254  		mi := &file_model_proto_msgTypes[2]
   255  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   256  		ms.StoreMessageInfo(mi)
   257  	}
   258  }
   259  
   260  func (x *Model3) String() string {
   261  	return protoimpl.X.MessageStringOf(x)
   262  }
   263  
   264  func (*Model3) ProtoMessage() {}
   265  
   266  func (x *Model3) ProtoReflect() protoreflect.Message {
   267  	mi := &file_model_proto_msgTypes[2]
   268  	if protoimpl.UnsafeEnabled && x != nil {
   269  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   270  		if ms.LoadMessageInfo() == nil {
   271  			ms.StoreMessageInfo(mi)
   272  		}
   273  		return ms
   274  	}
   275  	return mi.MessageOf(x)
   276  }
   277  
   278  // Deprecated: Use Model3.ProtoReflect.Descriptor instead.
   279  func (*Model3) Descriptor() ([]byte, []int) {
   280  	return file_model_proto_rawDescGZIP(), []int{2}
   281  }
   282  
   283  func (x *Model3) GetID() int64 {
   284  	if x != nil {
   285  		return x.ID
   286  	}
   287  	return 0
   288  }
   289  
   290  func (x *Model3) GetShardKey() int32 {
   291  	if x != nil {
   292  		return x.ShardKey
   293  	}
   294  	return 0
   295  }
   296  
   297  func (x *Model3) GetP1() []byte {
   298  	if x != nil {
   299  		return x.P1
   300  	}
   301  	return nil
   302  }
   303  
   304  func (x *Model3) GetP2() []string {
   305  	if x != nil {
   306  		return x.P2
   307  	}
   308  	return nil
   309  }
   310  
   311  func (x *Model3) GetP5() [][]byte {
   312  	if x != nil {
   313  		return x.P5
   314  	}
   315  	return nil
   316  }
   317  
   318  var File_model_proto protoreflect.FileDescriptor
   319  
   320  var file_model_proto_rawDesc = []byte{
   321  	0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x6d,
   322  	0x6f, 0x64, 0x65, 0x6c, 0x1a, 0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72,
   323  	0x6f, 0x74, 0x6f, 0x22, 0xdd, 0x01, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x31, 0x12, 0x0e,
   324  	0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x49, 0x44, 0x12, 0x1a,
   325  	0x0a, 0x08, 0x53, 0x68, 0x61, 0x72, 0x64, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
   326  	0x52, 0x08, 0x53, 0x68, 0x61, 0x72, 0x64, 0x4b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x02, 0x50, 0x31,
   327  	0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0x88, 0xb5, 0x18, 0x01, 0x52, 0x02, 0x50, 0x31,
   328  	0x12, 0x14, 0x0a, 0x02, 0x50, 0x32, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x42, 0x04, 0x88, 0xb5,
   329  	0x18, 0x01, 0x52, 0x02, 0x50, 0x32, 0x12, 0x0e, 0x0a, 0x02, 0x50, 0x35, 0x18, 0x05, 0x20, 0x01,
   330  	0x28, 0x04, 0x52, 0x02, 0x50, 0x35, 0x12, 0x1f, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x18, 0x07,
   331  	0x20, 0x01, 0x28, 0x0e, 0x32, 0x0b, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x45, 0x6e, 0x75,
   332  	0x6d, 0x52, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x3a, 0x4a, 0x8a, 0xb5, 0x18, 0x46, 0x12, 0x03, 0x63,
   333  	0x71, 0x6c, 0x1a, 0x05, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0x14, 0x0a, 0x02, 0x49, 0x44, 0x12,
   334  	0x08, 0x53, 0x68, 0x61, 0x72, 0x64, 0x4b, 0x65, 0x79, 0x12, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x2a,
   335  	0x22, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x53, 0x68, 0x61, 0x72, 0x64, 0x4b, 0x65,
   336  	0x79, 0x12, 0x02, 0x49, 0x44, 0x22, 0x0c, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x53,
   337  	0x6f, 0x72, 0x74, 0x22, 0x9f, 0x01, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x32, 0x12, 0x0e,
   338  	0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x49, 0x44, 0x12, 0x1a,
   339  	0x0a, 0x08, 0x53, 0x68, 0x61, 0x72, 0x64, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
   340  	0x52, 0x08, 0x53, 0x68, 0x61, 0x72, 0x64, 0x4b, 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x50, 0x31,
   341  	0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x50, 0x31, 0x12, 0x0e, 0x0a, 0x02, 0x50, 0x32,
   342  	0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x02, 0x50, 0x32, 0x12, 0x0e, 0x0a, 0x02, 0x50, 0x35,
   343  	0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x50, 0x35, 0x3a, 0x39, 0x8a, 0xb5, 0x18, 0x35,
   344  	0x12, 0x03, 0x63, 0x71, 0x6c, 0x1a, 0x05, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0x13, 0x0a, 0x02,
   345  	0x49, 0x44, 0x0a, 0x08, 0x53, 0x68, 0x61, 0x72, 0x64, 0x4b, 0x65, 0x79, 0x12, 0x03, 0x2d, 0x50,
   346  	0x31, 0x2a, 0x12, 0x0a, 0x02, 0x50, 0x31, 0x12, 0x08, 0x53, 0x68, 0x61, 0x72, 0x64, 0x4b, 0x65,
   347  	0x79, 0x12, 0x02, 0x49, 0x44, 0x22, 0xb9, 0x01, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x33,
   348  	0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x49, 0x44,
   349  	0x12, 0x1a, 0x0a, 0x08, 0x53, 0x68, 0x61, 0x72, 0x64, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01,
   350  	0x28, 0x05, 0x52, 0x08, 0x53, 0x68, 0x61, 0x72, 0x64, 0x4b, 0x65, 0x79, 0x12, 0x0e, 0x0a, 0x02,
   351  	0x50, 0x31, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x50, 0x31, 0x12, 0x0e, 0x0a, 0x02,
   352  	0x50, 0x32, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x02, 0x50, 0x32, 0x12, 0x14, 0x0a, 0x02,
   353  	0x50, 0x35, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0c, 0x42, 0x04, 0x88, 0xb5, 0x18, 0x01, 0x52, 0x02,
   354  	0x50, 0x35, 0x3a, 0x4d, 0x8a, 0xb5, 0x18, 0x49, 0x12, 0x03, 0x63, 0x71, 0x6c, 0x1a, 0x05, 0x73,
   355  	0x74, 0x6f, 0x72, 0x65, 0x22, 0x13, 0x0a, 0x02, 0x49, 0x44, 0x0a, 0x08, 0x53, 0x68, 0x61, 0x72,
   356  	0x64, 0x4b, 0x65, 0x79, 0x12, 0x03, 0x2d, 0x50, 0x31, 0x2a, 0x12, 0x0a, 0x02, 0x50, 0x31, 0x12,
   357  	0x08, 0x53, 0x68, 0x61, 0x72, 0x64, 0x4b, 0x65, 0x79, 0x12, 0x02, 0x49, 0x44, 0x2a, 0x12, 0x0a,
   358  	0x02, 0x50, 0x31, 0x12, 0x02, 0x49, 0x44, 0x12, 0x08, 0x53, 0x68, 0x61, 0x72, 0x64, 0x4b, 0x65,
   359  	0x79, 0x2a, 0x29, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x6f, 0x6e,
   360  	0x65, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x69, 0x6e, 0x67,
   361  	0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x45, 0x6c, 0x73, 0x65, 0x10, 0x02, 0x42, 0x0a, 0x5a, 0x08,
   362  	0x2e, 0x2f, 0x3b, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   363  }
   364  
   365  var (
   366  	file_model_proto_rawDescOnce sync.Once
   367  	file_model_proto_rawDescData = file_model_proto_rawDesc
   368  )
   369  
   370  func file_model_proto_rawDescGZIP() []byte {
   371  	file_model_proto_rawDescOnce.Do(func() {
   372  		file_model_proto_rawDescData = protoimpl.X.CompressGZIP(file_model_proto_rawDescData)
   373  	})
   374  	return file_model_proto_rawDescData
   375  }
   376  
   377  var file_model_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   378  var file_model_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   379  var file_model_proto_goTypes = []interface{}{
   380  	(Enum)(0),      // 0: model.Enum
   381  	(*Model1)(nil), // 1: model.Model1
   382  	(*Model2)(nil), // 2: model.Model2
   383  	(*Model3)(nil), // 3: model.Model3
   384  }
   385  var file_model_proto_depIdxs = []int32{
   386  	0, // 0: model.Model1.Enum:type_name -> model.Enum
   387  	1, // [1:1] is the sub-list for method output_type
   388  	1, // [1:1] is the sub-list for method input_type
   389  	1, // [1:1] is the sub-list for extension type_name
   390  	1, // [1:1] is the sub-list for extension extendee
   391  	0, // [0:1] is the sub-list for field type_name
   392  }
   393  
   394  func init() { file_model_proto_init() }
   395  func file_model_proto_init() {
   396  	if File_model_proto != nil {
   397  		return
   398  	}
   399  	if !protoimpl.UnsafeEnabled {
   400  		file_model_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   401  			switch v := v.(*Model1); i {
   402  			case 0:
   403  				return &v.state
   404  			case 1:
   405  				return &v.sizeCache
   406  			case 2:
   407  				return &v.unknownFields
   408  			default:
   409  				return nil
   410  			}
   411  		}
   412  		file_model_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   413  			switch v := v.(*Model2); i {
   414  			case 0:
   415  				return &v.state
   416  			case 1:
   417  				return &v.sizeCache
   418  			case 2:
   419  				return &v.unknownFields
   420  			default:
   421  				return nil
   422  			}
   423  		}
   424  		file_model_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   425  			switch v := v.(*Model3); i {
   426  			case 0:
   427  				return &v.state
   428  			case 1:
   429  				return &v.sizeCache
   430  			case 2:
   431  				return &v.unknownFields
   432  			default:
   433  				return nil
   434  			}
   435  		}
   436  	}
   437  	type x struct{}
   438  	out := protoimpl.TypeBuilder{
   439  		File: protoimpl.DescBuilder{
   440  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   441  			RawDescriptor: file_model_proto_rawDesc,
   442  			NumEnums:      1,
   443  			NumMessages:   3,
   444  			NumExtensions: 0,
   445  			NumServices:   0,
   446  		},
   447  		GoTypes:           file_model_proto_goTypes,
   448  		DependencyIndexes: file_model_proto_depIdxs,
   449  		EnumInfos:         file_model_proto_enumTypes,
   450  		MessageInfos:      file_model_proto_msgTypes,
   451  	}.Build()
   452  	File_model_proto = out.File
   453  	file_model_proto_rawDesc = nil
   454  	file_model_proto_goTypes = nil
   455  	file_model_proto_depIdxs = nil
   456  }