github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/pingcap/go-hbase/proto/Cell.pb.go (about)

     1  // Code generated by protoc-gen-go.
     2  // source: Cell.proto
     3  // DO NOT EDIT!
     4  
     5  package proto
     6  
     7  import proto1 "github.com/insionng/yougam/libraries/golang/protobuf/proto"
     8  import math "math"
     9  
    10  // Reference imports to suppress errors if they are not otherwise used.
    11  var _ = proto1.Marshal
    12  var _ = math.Inf
    13  
    14  // *
    15  // The type of the key in a Cell
    16  type CellType int32
    17  
    18  const (
    19  	CellType_MINIMUM       CellType = 0
    20  	CellType_PUT           CellType = 4
    21  	CellType_DELETE        CellType = 8
    22  	CellType_DELETE_COLUMN CellType = 12
    23  	CellType_DELETE_FAMILY CellType = 14
    24  	// MAXIMUM is used when searching; you look from maximum on down.
    25  	CellType_MAXIMUM CellType = 255
    26  )
    27  
    28  var CellType_name = map[int32]string{
    29  	0:   "MINIMUM",
    30  	4:   "PUT",
    31  	8:   "DELETE",
    32  	12:  "DELETE_COLUMN",
    33  	14:  "DELETE_FAMILY",
    34  	255: "MAXIMUM",
    35  }
    36  var CellType_value = map[string]int32{
    37  	"MINIMUM":       0,
    38  	"PUT":           4,
    39  	"DELETE":        8,
    40  	"DELETE_COLUMN": 12,
    41  	"DELETE_FAMILY": 14,
    42  	"MAXIMUM":       255,
    43  }
    44  
    45  func (x CellType) Enum() *CellType {
    46  	p := new(CellType)
    47  	*p = x
    48  	return p
    49  }
    50  func (x CellType) String() string {
    51  	return proto1.EnumName(CellType_name, int32(x))
    52  }
    53  func (x *CellType) UnmarshalJSON(data []byte) error {
    54  	value, err := proto1.UnmarshalJSONEnum(CellType_value, data, "CellType")
    55  	if err != nil {
    56  		return err
    57  	}
    58  	*x = CellType(value)
    59  	return nil
    60  }
    61  
    62  // *
    63  // Protocol buffer version of Cell.
    64  type Cell struct {
    65  	Row              []byte    `protobuf:"bytes,1,opt,name=row" json:"row,omitempty"`
    66  	Family           []byte    `protobuf:"bytes,2,opt,name=family" json:"family,omitempty"`
    67  	Qualifier        []byte    `protobuf:"bytes,3,opt,name=qualifier" json:"qualifier,omitempty"`
    68  	Timestamp        *uint64   `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"`
    69  	CellType         *CellType `protobuf:"varint,5,opt,name=cell_type,enum=proto.CellType" json:"cell_type,omitempty"`
    70  	Value            []byte    `protobuf:"bytes,6,opt,name=value" json:"value,omitempty"`
    71  	Tags             []byte    `protobuf:"bytes,7,opt,name=tags" json:"tags,omitempty"`
    72  	XXX_unrecognized []byte    `json:"-"`
    73  }
    74  
    75  func (m *Cell) Reset()         { *m = Cell{} }
    76  func (m *Cell) String() string { return proto1.CompactTextString(m) }
    77  func (*Cell) ProtoMessage()    {}
    78  
    79  func (m *Cell) GetRow() []byte {
    80  	if m != nil {
    81  		return m.Row
    82  	}
    83  	return nil
    84  }
    85  
    86  func (m *Cell) GetFamily() []byte {
    87  	if m != nil {
    88  		return m.Family
    89  	}
    90  	return nil
    91  }
    92  
    93  func (m *Cell) GetQualifier() []byte {
    94  	if m != nil {
    95  		return m.Qualifier
    96  	}
    97  	return nil
    98  }
    99  
   100  func (m *Cell) GetTimestamp() uint64 {
   101  	if m != nil && m.Timestamp != nil {
   102  		return *m.Timestamp
   103  	}
   104  	return 0
   105  }
   106  
   107  func (m *Cell) GetCellType() CellType {
   108  	if m != nil && m.CellType != nil {
   109  		return *m.CellType
   110  	}
   111  	return CellType_MINIMUM
   112  }
   113  
   114  func (m *Cell) GetValue() []byte {
   115  	if m != nil {
   116  		return m.Value
   117  	}
   118  	return nil
   119  }
   120  
   121  func (m *Cell) GetTags() []byte {
   122  	if m != nil {
   123  		return m.Tags
   124  	}
   125  	return nil
   126  }
   127  
   128  // *
   129  // Protocol buffer version of KeyValue.
   130  // It doesn't have those transient parameters
   131  type KeyValue struct {
   132  	Row              []byte    `protobuf:"bytes,1,req,name=row" json:"row,omitempty"`
   133  	Family           []byte    `protobuf:"bytes,2,req,name=family" json:"family,omitempty"`
   134  	Qualifier        []byte    `protobuf:"bytes,3,req,name=qualifier" json:"qualifier,omitempty"`
   135  	Timestamp        *uint64   `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"`
   136  	KeyType          *CellType `protobuf:"varint,5,opt,name=key_type,enum=proto.CellType" json:"key_type,omitempty"`
   137  	Value            []byte    `protobuf:"bytes,6,opt,name=value" json:"value,omitempty"`
   138  	Tags             []byte    `protobuf:"bytes,7,opt,name=tags" json:"tags,omitempty"`
   139  	XXX_unrecognized []byte    `json:"-"`
   140  }
   141  
   142  func (m *KeyValue) Reset()         { *m = KeyValue{} }
   143  func (m *KeyValue) String() string { return proto1.CompactTextString(m) }
   144  func (*KeyValue) ProtoMessage()    {}
   145  
   146  func (m *KeyValue) GetRow() []byte {
   147  	if m != nil {
   148  		return m.Row
   149  	}
   150  	return nil
   151  }
   152  
   153  func (m *KeyValue) GetFamily() []byte {
   154  	if m != nil {
   155  		return m.Family
   156  	}
   157  	return nil
   158  }
   159  
   160  func (m *KeyValue) GetQualifier() []byte {
   161  	if m != nil {
   162  		return m.Qualifier
   163  	}
   164  	return nil
   165  }
   166  
   167  func (m *KeyValue) GetTimestamp() uint64 {
   168  	if m != nil && m.Timestamp != nil {
   169  		return *m.Timestamp
   170  	}
   171  	return 0
   172  }
   173  
   174  func (m *KeyValue) GetKeyType() CellType {
   175  	if m != nil && m.KeyType != nil {
   176  		return *m.KeyType
   177  	}
   178  	return CellType_MINIMUM
   179  }
   180  
   181  func (m *KeyValue) GetValue() []byte {
   182  	if m != nil {
   183  		return m.Value
   184  	}
   185  	return nil
   186  }
   187  
   188  func (m *KeyValue) GetTags() []byte {
   189  	if m != nil {
   190  		return m.Tags
   191  	}
   192  	return nil
   193  }
   194  
   195  func init() {
   196  	proto1.RegisterEnum("proto.CellType", CellType_name, CellType_value)
   197  }