Cell.pb.go 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: Cell.proto
  3. package pb
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. // *
  12. // The type of the key in a Cell
  13. type CellType int32
  14. const (
  15. CellType_MINIMUM CellType = 0
  16. CellType_PUT CellType = 4
  17. CellType_DELETE CellType = 8
  18. CellType_DELETE_COLUMN CellType = 12
  19. CellType_DELETE_FAMILY CellType = 14
  20. // MAXIMUM is used when searching; you look from maximum on down.
  21. CellType_MAXIMUM CellType = 255
  22. )
  23. var CellType_name = map[int32]string{
  24. 0: "MINIMUM",
  25. 4: "PUT",
  26. 8: "DELETE",
  27. 12: "DELETE_COLUMN",
  28. 14: "DELETE_FAMILY",
  29. 255: "MAXIMUM",
  30. }
  31. var CellType_value = map[string]int32{
  32. "MINIMUM": 0,
  33. "PUT": 4,
  34. "DELETE": 8,
  35. "DELETE_COLUMN": 12,
  36. "DELETE_FAMILY": 14,
  37. "MAXIMUM": 255,
  38. }
  39. func (x CellType) Enum() *CellType {
  40. p := new(CellType)
  41. *p = x
  42. return p
  43. }
  44. func (x CellType) String() string {
  45. return proto.EnumName(CellType_name, int32(x))
  46. }
  47. func (x *CellType) UnmarshalJSON(data []byte) error {
  48. value, err := proto.UnmarshalJSONEnum(CellType_value, data, "CellType")
  49. if err != nil {
  50. return err
  51. }
  52. *x = CellType(value)
  53. return nil
  54. }
  55. func (CellType) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
  56. // *
  57. // Protocol buffer version of Cell.
  58. type Cell struct {
  59. Row []byte `protobuf:"bytes,1,opt,name=row" json:"row,omitempty"`
  60. Family []byte `protobuf:"bytes,2,opt,name=family" json:"family,omitempty"`
  61. Qualifier []byte `protobuf:"bytes,3,opt,name=qualifier" json:"qualifier,omitempty"`
  62. Timestamp *uint64 `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"`
  63. CellType *CellType `protobuf:"varint,5,opt,name=cell_type,json=cellType,enum=pb.CellType" json:"cell_type,omitempty"`
  64. Value []byte `protobuf:"bytes,6,opt,name=value" json:"value,omitempty"`
  65. Tags []byte `protobuf:"bytes,7,opt,name=tags" json:"tags,omitempty"`
  66. XXX_unrecognized []byte `json:"-"`
  67. }
  68. func (m *Cell) Reset() { *m = Cell{} }
  69. func (m *Cell) String() string { return proto.CompactTextString(m) }
  70. func (*Cell) ProtoMessage() {}
  71. func (*Cell) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
  72. func (m *Cell) GetRow() []byte {
  73. if m != nil {
  74. return m.Row
  75. }
  76. return nil
  77. }
  78. func (m *Cell) GetFamily() []byte {
  79. if m != nil {
  80. return m.Family
  81. }
  82. return nil
  83. }
  84. func (m *Cell) GetQualifier() []byte {
  85. if m != nil {
  86. return m.Qualifier
  87. }
  88. return nil
  89. }
  90. func (m *Cell) GetTimestamp() uint64 {
  91. if m != nil && m.Timestamp != nil {
  92. return *m.Timestamp
  93. }
  94. return 0
  95. }
  96. func (m *Cell) GetCellType() CellType {
  97. if m != nil && m.CellType != nil {
  98. return *m.CellType
  99. }
  100. return CellType_MINIMUM
  101. }
  102. func (m *Cell) GetValue() []byte {
  103. if m != nil {
  104. return m.Value
  105. }
  106. return nil
  107. }
  108. func (m *Cell) GetTags() []byte {
  109. if m != nil {
  110. return m.Tags
  111. }
  112. return nil
  113. }
  114. // *
  115. // Protocol buffer version of KeyValue.
  116. // It doesn't have those transient parameters
  117. type KeyValue struct {
  118. Row []byte `protobuf:"bytes,1,req,name=row" json:"row,omitempty"`
  119. Family []byte `protobuf:"bytes,2,req,name=family" json:"family,omitempty"`
  120. Qualifier []byte `protobuf:"bytes,3,req,name=qualifier" json:"qualifier,omitempty"`
  121. Timestamp *uint64 `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"`
  122. KeyType *CellType `protobuf:"varint,5,opt,name=key_type,json=keyType,enum=pb.CellType" json:"key_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. XXX_unrecognized []byte `json:"-"`
  126. }
  127. func (m *KeyValue) Reset() { *m = KeyValue{} }
  128. func (m *KeyValue) String() string { return proto.CompactTextString(m) }
  129. func (*KeyValue) ProtoMessage() {}
  130. func (*KeyValue) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
  131. func (m *KeyValue) GetRow() []byte {
  132. if m != nil {
  133. return m.Row
  134. }
  135. return nil
  136. }
  137. func (m *KeyValue) GetFamily() []byte {
  138. if m != nil {
  139. return m.Family
  140. }
  141. return nil
  142. }
  143. func (m *KeyValue) GetQualifier() []byte {
  144. if m != nil {
  145. return m.Qualifier
  146. }
  147. return nil
  148. }
  149. func (m *KeyValue) GetTimestamp() uint64 {
  150. if m != nil && m.Timestamp != nil {
  151. return *m.Timestamp
  152. }
  153. return 0
  154. }
  155. func (m *KeyValue) GetKeyType() CellType {
  156. if m != nil && m.KeyType != nil {
  157. return *m.KeyType
  158. }
  159. return CellType_MINIMUM
  160. }
  161. func (m *KeyValue) GetValue() []byte {
  162. if m != nil {
  163. return m.Value
  164. }
  165. return nil
  166. }
  167. func (m *KeyValue) GetTags() []byte {
  168. if m != nil {
  169. return m.Tags
  170. }
  171. return nil
  172. }
  173. func init() {
  174. proto.RegisterType((*Cell)(nil), "pb.Cell")
  175. proto.RegisterType((*KeyValue)(nil), "pb.KeyValue")
  176. proto.RegisterEnum("pb.CellType", CellType_name, CellType_value)
  177. }
  178. func init() { proto.RegisterFile("Cell.proto", fileDescriptor2) }
  179. var fileDescriptor2 = []byte{
  180. // 338 bytes of a gzipped FileDescriptorProto
  181. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x4f, 0x4f, 0xf2, 0x40,
  182. 0x10, 0x87, 0xdf, 0x2d, 0x85, 0x96, 0x79, 0x2b, 0xa9, 0x1b, 0x63, 0xf6, 0xe0, 0x81, 0x70, 0x11,
  183. 0x39, 0xec, 0xc1, 0xbb, 0x07, 0x40, 0x8c, 0x44, 0x8a, 0x84, 0x80, 0xd1, 0x13, 0x6e, 0x61, 0x80,
  184. 0x86, 0xc5, 0xae, 0x6d, 0xd1, 0xf4, 0xdb, 0xf8, 0x55, 0x8c, 0x1f, 0x4c, 0xd3, 0x05, 0xc5, 0x83,
  185. 0x1c, 0xb8, 0xfd, 0xe6, 0x99, 0xfd, 0x33, 0x4f, 0x32, 0x00, 0x4d, 0x94, 0x92, 0xab, 0x28, 0x4c,
  186. 0x42, 0x6a, 0x28, 0xbf, 0xf2, 0x4e, 0xc0, 0xcc, 0x10, 0x75, 0x21, 0x17, 0x85, 0xaf, 0x8c, 0x94,
  187. 0x49, 0xd5, 0xe9, 0x67, 0x91, 0x1e, 0x43, 0x61, 0x2a, 0x96, 0x81, 0x4c, 0x99, 0xa1, 0xe1, 0xa6,
  188. 0xa2, 0x27, 0x50, 0x7c, 0x5e, 0x09, 0x19, 0x4c, 0x03, 0x8c, 0x58, 0x4e, 0xb7, 0xb6, 0x20, 0xeb,
  189. 0x26, 0xc1, 0x12, 0xe3, 0x44, 0x2c, 0x15, 0x33, 0xcb, 0xa4, 0x6a, 0xf6, 0xb7, 0x80, 0x9e, 0x41,
  190. 0x71, 0x8c, 0x52, 0x8e, 0x92, 0x54, 0x21, 0xcb, 0x97, 0x49, 0xb5, 0x74, 0xee, 0x70, 0xe5, 0xf3,
  191. 0x6c, 0x84, 0x41, 0xaa, 0xb0, 0x6f, 0x8f, 0x37, 0x89, 0x1e, 0x41, 0xfe, 0x45, 0xc8, 0x15, 0xb2,
  192. 0x82, 0xfe, 0x62, 0x5d, 0x50, 0x0a, 0x66, 0x22, 0x66, 0x31, 0xb3, 0x34, 0xd4, 0xb9, 0xf2, 0x41,
  193. 0xc0, 0xbe, 0xc1, 0xf4, 0x4e, 0x1f, 0xf8, 0xf1, 0x30, 0xfe, 0xf2, 0x30, 0x76, 0x7b, 0x18, 0xfb,
  194. 0x78, 0x9c, 0x82, 0xbd, 0xc0, 0x74, 0xb7, 0x86, 0xb5, 0xc0, 0x74, 0x3f, 0x8b, 0xda, 0x23, 0xd8,
  195. 0xdf, 0xd7, 0xe9, 0x7f, 0xb0, 0xbc, 0x76, 0xb7, 0xed, 0x0d, 0x3d, 0xf7, 0x1f, 0xb5, 0x20, 0xd7,
  196. 0x1b, 0x0e, 0x5c, 0x93, 0x02, 0x14, 0x2e, 0x5b, 0x9d, 0xd6, 0xa0, 0xe5, 0xda, 0xf4, 0x10, 0x0e,
  197. 0xd6, 0x79, 0xd4, 0xbc, 0xed, 0x0c, 0xbd, 0xae, 0xeb, 0xfc, 0x42, 0x57, 0x75, 0xaf, 0xdd, 0x79,
  198. 0x70, 0x4b, 0xd4, 0x01, 0xcb, 0xab, 0xdf, 0xeb, 0x77, 0x3e, 0x49, 0xe3, 0x02, 0x6a, 0x61, 0x34,
  199. 0xe3, 0x42, 0x89, 0xf1, 0x1c, 0xf9, 0x5c, 0x4c, 0xc2, 0x50, 0xf1, 0xb9, 0x2f, 0x62, 0x5c, 0x2f,
  200. 0x84, 0xbf, 0x9a, 0xf2, 0x19, 0x3e, 0x61, 0x24, 0x12, 0x9c, 0x34, 0xf4, 0xa6, 0xf4, 0x32, 0x1e,
  201. 0x5f, 0x93, 0x37, 0x42, 0xbe, 0x02, 0x00, 0x00, 0xff, 0xff, 0x5f, 0xa7, 0x5d, 0xd4, 0x3b, 0x02,
  202. 0x00, 0x00,
  203. }