github.com/tsuna/gohbase@v0.0.0-20250731002811-4ffcadfba63e/pb/Cell.pb.go (about)

     1  //*
     2  // Licensed to the Apache Software Foundation (ASF) under one
     3  // or more contributor license agreements.  See the NOTICE file
     4  // distributed with this work for additional information
     5  // regarding copyright ownership.  The ASF licenses this file
     6  // to you under the Apache License, Version 2.0 (the
     7  // "License"); you may not use this file except in compliance
     8  // with the License.  You may obtain a copy of the License at
     9  //
    10  //     http://www.apache.org/licenses/LICENSE-2.0
    11  //
    12  // Unless required by applicable law or agreed to in writing, software
    13  // distributed under the License is distributed on an "AS IS" BASIS,
    14  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    15  // See the License for the specific language governing permissions and
    16  // limitations under the License.
    17  
    18  // Cell and KeyValue protos
    19  
    20  // Code generated by protoc-gen-go. DO NOT EDIT.
    21  // versions:
    22  // 	protoc-gen-go v1.36.4
    23  // 	protoc        v5.28.3
    24  // source: Cell.proto
    25  
    26  package pb
    27  
    28  import (
    29  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    30  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    31  	reflect "reflect"
    32  	sync "sync"
    33  	unsafe "unsafe"
    34  )
    35  
    36  const (
    37  	// Verify that this generated code is sufficiently up-to-date.
    38  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    39  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    40  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    41  )
    42  
    43  // *
    44  // The type of the key in a Cell
    45  type CellType int32
    46  
    47  const (
    48  	CellType_MINIMUM       CellType = 0
    49  	CellType_PUT           CellType = 4
    50  	CellType_DELETE        CellType = 8
    51  	CellType_DELETE_COLUMN CellType = 12
    52  	CellType_DELETE_FAMILY CellType = 14
    53  	// MAXIMUM is used when searching; you look from maximum on down.
    54  	CellType_MAXIMUM CellType = 255
    55  )
    56  
    57  // Enum value maps for CellType.
    58  var (
    59  	CellType_name = map[int32]string{
    60  		0:   "MINIMUM",
    61  		4:   "PUT",
    62  		8:   "DELETE",
    63  		12:  "DELETE_COLUMN",
    64  		14:  "DELETE_FAMILY",
    65  		255: "MAXIMUM",
    66  	}
    67  	CellType_value = map[string]int32{
    68  		"MINIMUM":       0,
    69  		"PUT":           4,
    70  		"DELETE":        8,
    71  		"DELETE_COLUMN": 12,
    72  		"DELETE_FAMILY": 14,
    73  		"MAXIMUM":       255,
    74  	}
    75  )
    76  
    77  func (x CellType) Enum() *CellType {
    78  	p := new(CellType)
    79  	*p = x
    80  	return p
    81  }
    82  
    83  func (x CellType) String() string {
    84  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    85  }
    86  
    87  func (CellType) Descriptor() protoreflect.EnumDescriptor {
    88  	return file_Cell_proto_enumTypes[0].Descriptor()
    89  }
    90  
    91  func (CellType) Type() protoreflect.EnumType {
    92  	return &file_Cell_proto_enumTypes[0]
    93  }
    94  
    95  func (x CellType) Number() protoreflect.EnumNumber {
    96  	return protoreflect.EnumNumber(x)
    97  }
    98  
    99  // Deprecated: Do not use.
   100  func (x *CellType) UnmarshalJSON(b []byte) error {
   101  	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
   102  	if err != nil {
   103  		return err
   104  	}
   105  	*x = CellType(num)
   106  	return nil
   107  }
   108  
   109  // Deprecated: Use CellType.Descriptor instead.
   110  func (CellType) EnumDescriptor() ([]byte, []int) {
   111  	return file_Cell_proto_rawDescGZIP(), []int{0}
   112  }
   113  
   114  // *
   115  // Protocol buffer version of Cell.
   116  type Cell struct {
   117  	state         protoimpl.MessageState `protogen:"open.v1"`
   118  	Row           []byte                 `protobuf:"bytes,1,opt,name=row" json:"row,omitempty"`
   119  	Family        []byte                 `protobuf:"bytes,2,opt,name=family" json:"family,omitempty"`
   120  	Qualifier     []byte                 `protobuf:"bytes,3,opt,name=qualifier" json:"qualifier,omitempty"`
   121  	Timestamp     *uint64                `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"`
   122  	CellType      *CellType              `protobuf:"varint,5,opt,name=cell_type,json=cellType,enum=pb.CellType" json:"cell_type,omitempty"`
   123  	Value         []byte                 `protobuf:"bytes,6,opt,name=value" json:"value,omitempty"`
   124  	Tags          []byte                 `protobuf:"bytes,7,opt,name=tags" json:"tags,omitempty"`
   125  	unknownFields protoimpl.UnknownFields
   126  	sizeCache     protoimpl.SizeCache
   127  }
   128  
   129  func (x *Cell) Reset() {
   130  	*x = Cell{}
   131  	mi := &file_Cell_proto_msgTypes[0]
   132  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   133  	ms.StoreMessageInfo(mi)
   134  }
   135  
   136  func (x *Cell) String() string {
   137  	return protoimpl.X.MessageStringOf(x)
   138  }
   139  
   140  func (*Cell) ProtoMessage() {}
   141  
   142  func (x *Cell) ProtoReflect() protoreflect.Message {
   143  	mi := &file_Cell_proto_msgTypes[0]
   144  	if x != nil {
   145  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   146  		if ms.LoadMessageInfo() == nil {
   147  			ms.StoreMessageInfo(mi)
   148  		}
   149  		return ms
   150  	}
   151  	return mi.MessageOf(x)
   152  }
   153  
   154  // Deprecated: Use Cell.ProtoReflect.Descriptor instead.
   155  func (*Cell) Descriptor() ([]byte, []int) {
   156  	return file_Cell_proto_rawDescGZIP(), []int{0}
   157  }
   158  
   159  func (x *Cell) GetRow() []byte {
   160  	if x != nil {
   161  		return x.Row
   162  	}
   163  	return nil
   164  }
   165  
   166  func (x *Cell) GetFamily() []byte {
   167  	if x != nil {
   168  		return x.Family
   169  	}
   170  	return nil
   171  }
   172  
   173  func (x *Cell) GetQualifier() []byte {
   174  	if x != nil {
   175  		return x.Qualifier
   176  	}
   177  	return nil
   178  }
   179  
   180  func (x *Cell) GetTimestamp() uint64 {
   181  	if x != nil && x.Timestamp != nil {
   182  		return *x.Timestamp
   183  	}
   184  	return 0
   185  }
   186  
   187  func (x *Cell) GetCellType() CellType {
   188  	if x != nil && x.CellType != nil {
   189  		return *x.CellType
   190  	}
   191  	return CellType_MINIMUM
   192  }
   193  
   194  func (x *Cell) GetValue() []byte {
   195  	if x != nil {
   196  		return x.Value
   197  	}
   198  	return nil
   199  }
   200  
   201  func (x *Cell) GetTags() []byte {
   202  	if x != nil {
   203  		return x.Tags
   204  	}
   205  	return nil
   206  }
   207  
   208  // *
   209  // Protocol buffer version of KeyValue.
   210  // It doesn't have those transient parameters
   211  type KeyValue struct {
   212  	state         protoimpl.MessageState `protogen:"open.v1"`
   213  	Row           []byte                 `protobuf:"bytes,1,req,name=row" json:"row,omitempty"`
   214  	Family        []byte                 `protobuf:"bytes,2,req,name=family" json:"family,omitempty"`
   215  	Qualifier     []byte                 `protobuf:"bytes,3,req,name=qualifier" json:"qualifier,omitempty"`
   216  	Timestamp     *uint64                `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"`
   217  	KeyType       *CellType              `protobuf:"varint,5,opt,name=key_type,json=keyType,enum=pb.CellType" json:"key_type,omitempty"`
   218  	Value         []byte                 `protobuf:"bytes,6,opt,name=value" json:"value,omitempty"`
   219  	Tags          []byte                 `protobuf:"bytes,7,opt,name=tags" json:"tags,omitempty"`
   220  	unknownFields protoimpl.UnknownFields
   221  	sizeCache     protoimpl.SizeCache
   222  }
   223  
   224  func (x *KeyValue) Reset() {
   225  	*x = KeyValue{}
   226  	mi := &file_Cell_proto_msgTypes[1]
   227  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   228  	ms.StoreMessageInfo(mi)
   229  }
   230  
   231  func (x *KeyValue) String() string {
   232  	return protoimpl.X.MessageStringOf(x)
   233  }
   234  
   235  func (*KeyValue) ProtoMessage() {}
   236  
   237  func (x *KeyValue) ProtoReflect() protoreflect.Message {
   238  	mi := &file_Cell_proto_msgTypes[1]
   239  	if x != nil {
   240  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   241  		if ms.LoadMessageInfo() == nil {
   242  			ms.StoreMessageInfo(mi)
   243  		}
   244  		return ms
   245  	}
   246  	return mi.MessageOf(x)
   247  }
   248  
   249  // Deprecated: Use KeyValue.ProtoReflect.Descriptor instead.
   250  func (*KeyValue) Descriptor() ([]byte, []int) {
   251  	return file_Cell_proto_rawDescGZIP(), []int{1}
   252  }
   253  
   254  func (x *KeyValue) GetRow() []byte {
   255  	if x != nil {
   256  		return x.Row
   257  	}
   258  	return nil
   259  }
   260  
   261  func (x *KeyValue) GetFamily() []byte {
   262  	if x != nil {
   263  		return x.Family
   264  	}
   265  	return nil
   266  }
   267  
   268  func (x *KeyValue) GetQualifier() []byte {
   269  	if x != nil {
   270  		return x.Qualifier
   271  	}
   272  	return nil
   273  }
   274  
   275  func (x *KeyValue) GetTimestamp() uint64 {
   276  	if x != nil && x.Timestamp != nil {
   277  		return *x.Timestamp
   278  	}
   279  	return 0
   280  }
   281  
   282  func (x *KeyValue) GetKeyType() CellType {
   283  	if x != nil && x.KeyType != nil {
   284  		return *x.KeyType
   285  	}
   286  	return CellType_MINIMUM
   287  }
   288  
   289  func (x *KeyValue) GetValue() []byte {
   290  	if x != nil {
   291  		return x.Value
   292  	}
   293  	return nil
   294  }
   295  
   296  func (x *KeyValue) GetTags() []byte {
   297  	if x != nil {
   298  		return x.Tags
   299  	}
   300  	return nil
   301  }
   302  
   303  var File_Cell_proto protoreflect.FileDescriptor
   304  
   305  var file_Cell_proto_rawDesc = string([]byte{
   306  	0x0a, 0x0a, 0x43, 0x65, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62,
   307  	0x22, 0xc1, 0x01, 0x0a, 0x04, 0x43, 0x65, 0x6c, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x6f, 0x77,
   308  	0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x72, 0x6f, 0x77, 0x12, 0x16, 0x0a, 0x06, 0x66,
   309  	0x61, 0x6d, 0x69, 0x6c, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x66, 0x61, 0x6d,
   310  	0x69, 0x6c, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x72,
   311  	0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x65,
   312  	0x72, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x04,
   313  	0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12,
   314  	0x29, 0x0a, 0x09, 0x63, 0x65, 0x6c, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01,
   315  	0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x65, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65,
   316  	0x52, 0x08, 0x63, 0x65, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
   317  	0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
   318  	0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04,
   319  	0x74, 0x61, 0x67, 0x73, 0x22, 0xc3, 0x01, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75,
   320  	0x65, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0c, 0x52, 0x03,
   321  	0x72, 0x6f, 0x77, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x18, 0x02, 0x20,
   322  	0x02, 0x28, 0x0c, 0x52, 0x06, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x71,
   323  	0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x03, 0x20, 0x02, 0x28, 0x0c, 0x52, 0x09,
   324  	0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d,
   325  	0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x69,
   326  	0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x27, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x74,
   327  	0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x43,
   328  	0x65, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65,
   329  	0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52,
   330  	0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x07,
   331  	0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x2a, 0x60, 0x0a, 0x08, 0x43, 0x65,
   332  	0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x49, 0x4e, 0x49, 0x4d, 0x55,
   333  	0x4d, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x55, 0x54, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06,
   334  	0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x08, 0x12, 0x11, 0x0a, 0x0d, 0x44, 0x45, 0x4c, 0x45,
   335  	0x54, 0x45, 0x5f, 0x43, 0x4f, 0x4c, 0x55, 0x4d, 0x4e, 0x10, 0x0c, 0x12, 0x11, 0x0a, 0x0d, 0x44,
   336  	0x45, 0x4c, 0x45, 0x54, 0x45, 0x5f, 0x46, 0x41, 0x4d, 0x49, 0x4c, 0x59, 0x10, 0x0e, 0x12, 0x0c,
   337  	0x0a, 0x07, 0x4d, 0x41, 0x58, 0x49, 0x4d, 0x55, 0x4d, 0x10, 0xff, 0x01, 0x42, 0x44, 0x0a, 0x2a,
   338  	0x6f, 0x72, 0x67, 0x2e, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x68, 0x61, 0x64, 0x6f, 0x6f,
   339  	0x70, 0x2e, 0x68, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
   340  	0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x42, 0x0a, 0x43, 0x65, 0x6c, 0x6c,
   341  	0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x48, 0x01, 0x5a, 0x05, 0x2e, 0x2e, 0x2f, 0x70, 0x62, 0xa0,
   342  	0x01, 0x01,
   343  })
   344  
   345  var (
   346  	file_Cell_proto_rawDescOnce sync.Once
   347  	file_Cell_proto_rawDescData []byte
   348  )
   349  
   350  func file_Cell_proto_rawDescGZIP() []byte {
   351  	file_Cell_proto_rawDescOnce.Do(func() {
   352  		file_Cell_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_Cell_proto_rawDesc), len(file_Cell_proto_rawDesc)))
   353  	})
   354  	return file_Cell_proto_rawDescData
   355  }
   356  
   357  var file_Cell_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   358  var file_Cell_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   359  var file_Cell_proto_goTypes = []any{
   360  	(CellType)(0),    // 0: pb.CellType
   361  	(*Cell)(nil),     // 1: pb.Cell
   362  	(*KeyValue)(nil), // 2: pb.KeyValue
   363  }
   364  var file_Cell_proto_depIdxs = []int32{
   365  	0, // 0: pb.Cell.cell_type:type_name -> pb.CellType
   366  	0, // 1: pb.KeyValue.key_type:type_name -> pb.CellType
   367  	2, // [2:2] is the sub-list for method output_type
   368  	2, // [2:2] is the sub-list for method input_type
   369  	2, // [2:2] is the sub-list for extension type_name
   370  	2, // [2:2] is the sub-list for extension extendee
   371  	0, // [0:2] is the sub-list for field type_name
   372  }
   373  
   374  func init() { file_Cell_proto_init() }
   375  func file_Cell_proto_init() {
   376  	if File_Cell_proto != nil {
   377  		return
   378  	}
   379  	type x struct{}
   380  	out := protoimpl.TypeBuilder{
   381  		File: protoimpl.DescBuilder{
   382  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   383  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_Cell_proto_rawDesc), len(file_Cell_proto_rawDesc)),
   384  			NumEnums:      1,
   385  			NumMessages:   2,
   386  			NumExtensions: 0,
   387  			NumServices:   0,
   388  		},
   389  		GoTypes:           file_Cell_proto_goTypes,
   390  		DependencyIndexes: file_Cell_proto_depIdxs,
   391  		EnumInfos:         file_Cell_proto_enumTypes,
   392  		MessageInfos:      file_Cell_proto_msgTypes,
   393  	}.Build()
   394  	File_Cell_proto = out.File
   395  	file_Cell_proto_goTypes = nil
   396  	file_Cell_proto_depIdxs = nil
   397  }