github.com/tsuna/gohbase@v0.0.0-20250731002811-4ffcadfba63e/pb/Cell.proto (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 19 // Cell and KeyValue protos 20 syntax = "proto2"; 21 package pb; 22 23 option java_package = "org.apache.hadoop.hbase.protobuf.generated"; 24 option java_outer_classname = "CellProtos"; 25 option java_generate_equals_and_hash = true; 26 option optimize_for = SPEED; 27 option go_package = "../pb"; 28 29 /** 30 * The type of the key in a Cell 31 */ 32 enum CellType { 33 MINIMUM = 0; 34 PUT = 4; 35 36 DELETE = 8; 37 DELETE_COLUMN = 12; 38 DELETE_FAMILY = 14; 39 40 // MAXIMUM is used when searching; you look from maximum on down. 41 MAXIMUM = 255; 42 } 43 44 /** 45 * Protocol buffer version of Cell. 46 */ 47 message Cell { 48 optional bytes row = 1; 49 optional bytes family = 2; 50 optional bytes qualifier = 3; 51 optional uint64 timestamp = 4; 52 optional CellType cell_type = 5; 53 optional bytes value = 6; 54 optional bytes tags = 7; 55 } 56 57 /** 58 * Protocol buffer version of KeyValue. 59 * It doesn't have those transient parameters 60 */ 61 message KeyValue { 62 required bytes row = 1; 63 required bytes family = 2; 64 required bytes qualifier = 3; 65 optional uint64 timestamp = 4; 66 optional CellType key_type = 5; 67 optional bytes value = 6; 68 optional bytes tags = 7; 69 }