1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: Cell.proto
3 
4 package org.apache.hadoop.hbase.protobuf.generated;
5 
6 public final class CellProtos {
CellProtos()7   private CellProtos() {}
registerAllExtensions( com.google.protobuf.ExtensionRegistry registry)8   public static void registerAllExtensions(
9       com.google.protobuf.ExtensionRegistry registry) {
10   }
11   /**
12    * Protobuf enum {@code CellType}
13    *
14    * <pre>
15    **
16    * The type of the key in a Cell
17    * </pre>
18    */
19   public enum CellType
20       implements com.google.protobuf.ProtocolMessageEnum {
21     /**
22      * <code>MINIMUM = 0;</code>
23      */
24     MINIMUM(0, 0),
25     /**
26      * <code>PUT = 4;</code>
27      */
28     PUT(1, 4),
29     /**
30      * <code>DELETE = 8;</code>
31      */
32     DELETE(2, 8),
33     /**
34      * <code>DELETE_COLUMN = 12;</code>
35      */
36     DELETE_COLUMN(3, 12),
37     /**
38      * <code>DELETE_FAMILY = 14;</code>
39      */
40     DELETE_FAMILY(4, 14),
41     /**
42      * <code>MAXIMUM = 255;</code>
43      *
44      * <pre>
45      * MAXIMUM is used when searching; you look from maximum on down.
46      * </pre>
47      */
48     MAXIMUM(5, 255),
49     ;
50 
51     /**
52      * <code>MINIMUM = 0;</code>
53      */
54     public static final int MINIMUM_VALUE = 0;
55     /**
56      * <code>PUT = 4;</code>
57      */
58     public static final int PUT_VALUE = 4;
59     /**
60      * <code>DELETE = 8;</code>
61      */
62     public static final int DELETE_VALUE = 8;
63     /**
64      * <code>DELETE_COLUMN = 12;</code>
65      */
66     public static final int DELETE_COLUMN_VALUE = 12;
67     /**
68      * <code>DELETE_FAMILY = 14;</code>
69      */
70     public static final int DELETE_FAMILY_VALUE = 14;
71     /**
72      * <code>MAXIMUM = 255;</code>
73      *
74      * <pre>
75      * MAXIMUM is used when searching; you look from maximum on down.
76      * </pre>
77      */
78     public static final int MAXIMUM_VALUE = 255;
79 
80 
getNumber()81     public final int getNumber() { return value; }
82 
valueOf(int value)83     public static CellType valueOf(int value) {
84       switch (value) {
85         case 0: return MINIMUM;
86         case 4: return PUT;
87         case 8: return DELETE;
88         case 12: return DELETE_COLUMN;
89         case 14: return DELETE_FAMILY;
90         case 255: return MAXIMUM;
91         default: return null;
92       }
93     }
94 
95     public static com.google.protobuf.Internal.EnumLiteMap<CellType>
internalGetValueMap()96         internalGetValueMap() {
97       return internalValueMap;
98     }
99     private static com.google.protobuf.Internal.EnumLiteMap<CellType>
100         internalValueMap =
101           new com.google.protobuf.Internal.EnumLiteMap<CellType>() {
102             public CellType findValueByNumber(int number) {
103               return CellType.valueOf(number);
104             }
105           };
106 
107     public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()108         getValueDescriptor() {
109       return getDescriptor().getValues().get(index);
110     }
111     public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()112         getDescriptorForType() {
113       return getDescriptor();
114     }
115     public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()116         getDescriptor() {
117       return org.apache.hadoop.hbase.protobuf.generated.CellProtos.getDescriptor().getEnumTypes().get(0);
118     }
119 
120     private static final CellType[] VALUES = values();
121 
valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)122     public static CellType valueOf(
123         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
124       if (desc.getType() != getDescriptor()) {
125         throw new java.lang.IllegalArgumentException(
126           "EnumValueDescriptor is not for this type.");
127       }
128       return VALUES[desc.getIndex()];
129     }
130 
131     private final int index;
132     private final int value;
133 
CellType(int index, int value)134     private CellType(int index, int value) {
135       this.index = index;
136       this.value = value;
137     }
138 
139     // @@protoc_insertion_point(enum_scope:CellType)
140   }
141 
142   public interface CellOrBuilder
143       extends com.google.protobuf.MessageOrBuilder {
144 
145     // optional bytes row = 1;
146     /**
147      * <code>optional bytes row = 1;</code>
148      */
hasRow()149     boolean hasRow();
150     /**
151      * <code>optional bytes row = 1;</code>
152      */
getRow()153     com.google.protobuf.ByteString getRow();
154 
155     // optional bytes family = 2;
156     /**
157      * <code>optional bytes family = 2;</code>
158      */
hasFamily()159     boolean hasFamily();
160     /**
161      * <code>optional bytes family = 2;</code>
162      */
getFamily()163     com.google.protobuf.ByteString getFamily();
164 
165     // optional bytes qualifier = 3;
166     /**
167      * <code>optional bytes qualifier = 3;</code>
168      */
hasQualifier()169     boolean hasQualifier();
170     /**
171      * <code>optional bytes qualifier = 3;</code>
172      */
getQualifier()173     com.google.protobuf.ByteString getQualifier();
174 
175     // optional uint64 timestamp = 4;
176     /**
177      * <code>optional uint64 timestamp = 4;</code>
178      */
hasTimestamp()179     boolean hasTimestamp();
180     /**
181      * <code>optional uint64 timestamp = 4;</code>
182      */
getTimestamp()183     long getTimestamp();
184 
185     // optional .CellType cell_type = 5;
186     /**
187      * <code>optional .CellType cell_type = 5;</code>
188      */
hasCellType()189     boolean hasCellType();
190     /**
191      * <code>optional .CellType cell_type = 5;</code>
192      */
getCellType()193     org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType getCellType();
194 
195     // optional bytes value = 6;
196     /**
197      * <code>optional bytes value = 6;</code>
198      */
hasValue()199     boolean hasValue();
200     /**
201      * <code>optional bytes value = 6;</code>
202      */
getValue()203     com.google.protobuf.ByteString getValue();
204 
205     // optional bytes tags = 7;
206     /**
207      * <code>optional bytes tags = 7;</code>
208      */
hasTags()209     boolean hasTags();
210     /**
211      * <code>optional bytes tags = 7;</code>
212      */
getTags()213     com.google.protobuf.ByteString getTags();
214   }
215   /**
216    * Protobuf type {@code Cell}
217    *
218    * <pre>
219    **
220    * Protocol buffer version of Cell.
221    * </pre>
222    */
223   public static final class Cell extends
224       com.google.protobuf.GeneratedMessage
225       implements CellOrBuilder {
226     // Use Cell.newBuilder() to construct.
Cell(com.google.protobuf.GeneratedMessage.Builder<?> builder)227     private Cell(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
228       super(builder);
229       this.unknownFields = builder.getUnknownFields();
230     }
Cell(boolean noInit)231     private Cell(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
232 
233     private static final Cell defaultInstance;
getDefaultInstance()234     public static Cell getDefaultInstance() {
235       return defaultInstance;
236     }
237 
getDefaultInstanceForType()238     public Cell getDefaultInstanceForType() {
239       return defaultInstance;
240     }
241 
242     private final com.google.protobuf.UnknownFieldSet unknownFields;
243     @java.lang.Override
244     public final com.google.protobuf.UnknownFieldSet
getUnknownFields()245         getUnknownFields() {
246       return this.unknownFields;
247     }
Cell( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)248     private Cell(
249         com.google.protobuf.CodedInputStream input,
250         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
251         throws com.google.protobuf.InvalidProtocolBufferException {
252       initFields();
253       int mutable_bitField0_ = 0;
254       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
255           com.google.protobuf.UnknownFieldSet.newBuilder();
256       try {
257         boolean done = false;
258         while (!done) {
259           int tag = input.readTag();
260           switch (tag) {
261             case 0:
262               done = true;
263               break;
264             default: {
265               if (!parseUnknownField(input, unknownFields,
266                                      extensionRegistry, tag)) {
267                 done = true;
268               }
269               break;
270             }
271             case 10: {
272               bitField0_ |= 0x00000001;
273               row_ = input.readBytes();
274               break;
275             }
276             case 18: {
277               bitField0_ |= 0x00000002;
278               family_ = input.readBytes();
279               break;
280             }
281             case 26: {
282               bitField0_ |= 0x00000004;
283               qualifier_ = input.readBytes();
284               break;
285             }
286             case 32: {
287               bitField0_ |= 0x00000008;
288               timestamp_ = input.readUInt64();
289               break;
290             }
291             case 40: {
292               int rawValue = input.readEnum();
293               org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType value = org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType.valueOf(rawValue);
294               if (value == null) {
295                 unknownFields.mergeVarintField(5, rawValue);
296               } else {
297                 bitField0_ |= 0x00000010;
298                 cellType_ = value;
299               }
300               break;
301             }
302             case 50: {
303               bitField0_ |= 0x00000020;
304               value_ = input.readBytes();
305               break;
306             }
307             case 58: {
308               bitField0_ |= 0x00000040;
309               tags_ = input.readBytes();
310               break;
311             }
312           }
313         }
314       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
315         throw e.setUnfinishedMessage(this);
316       } catch (java.io.IOException e) {
317         throw new com.google.protobuf.InvalidProtocolBufferException(
318             e.getMessage()).setUnfinishedMessage(this);
319       } finally {
320         this.unknownFields = unknownFields.build();
321         makeExtensionsImmutable();
322       }
323     }
324     public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor()325         getDescriptor() {
326       return org.apache.hadoop.hbase.protobuf.generated.CellProtos.internal_static_Cell_descriptor;
327     }
328 
329     protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()330         internalGetFieldAccessorTable() {
331       return org.apache.hadoop.hbase.protobuf.generated.CellProtos.internal_static_Cell_fieldAccessorTable
332           .ensureFieldAccessorsInitialized(
333               org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell.class, org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell.Builder.class);
334     }
335 
336     public static com.google.protobuf.Parser<Cell> PARSER =
337         new com.google.protobuf.AbstractParser<Cell>() {
338       public Cell parsePartialFrom(
339           com.google.protobuf.CodedInputStream input,
340           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
341           throws com.google.protobuf.InvalidProtocolBufferException {
342         return new Cell(input, extensionRegistry);
343       }
344     };
345 
346     @java.lang.Override
getParserForType()347     public com.google.protobuf.Parser<Cell> getParserForType() {
348       return PARSER;
349     }
350 
351     private int bitField0_;
352     // optional bytes row = 1;
353     public static final int ROW_FIELD_NUMBER = 1;
354     private com.google.protobuf.ByteString row_;
355     /**
356      * <code>optional bytes row = 1;</code>
357      */
hasRow()358     public boolean hasRow() {
359       return ((bitField0_ & 0x00000001) == 0x00000001);
360     }
361     /**
362      * <code>optional bytes row = 1;</code>
363      */
getRow()364     public com.google.protobuf.ByteString getRow() {
365       return row_;
366     }
367 
368     // optional bytes family = 2;
369     public static final int FAMILY_FIELD_NUMBER = 2;
370     private com.google.protobuf.ByteString family_;
371     /**
372      * <code>optional bytes family = 2;</code>
373      */
hasFamily()374     public boolean hasFamily() {
375       return ((bitField0_ & 0x00000002) == 0x00000002);
376     }
377     /**
378      * <code>optional bytes family = 2;</code>
379      */
getFamily()380     public com.google.protobuf.ByteString getFamily() {
381       return family_;
382     }
383 
384     // optional bytes qualifier = 3;
385     public static final int QUALIFIER_FIELD_NUMBER = 3;
386     private com.google.protobuf.ByteString qualifier_;
387     /**
388      * <code>optional bytes qualifier = 3;</code>
389      */
hasQualifier()390     public boolean hasQualifier() {
391       return ((bitField0_ & 0x00000004) == 0x00000004);
392     }
393     /**
394      * <code>optional bytes qualifier = 3;</code>
395      */
getQualifier()396     public com.google.protobuf.ByteString getQualifier() {
397       return qualifier_;
398     }
399 
400     // optional uint64 timestamp = 4;
401     public static final int TIMESTAMP_FIELD_NUMBER = 4;
402     private long timestamp_;
403     /**
404      * <code>optional uint64 timestamp = 4;</code>
405      */
hasTimestamp()406     public boolean hasTimestamp() {
407       return ((bitField0_ & 0x00000008) == 0x00000008);
408     }
409     /**
410      * <code>optional uint64 timestamp = 4;</code>
411      */
getTimestamp()412     public long getTimestamp() {
413       return timestamp_;
414     }
415 
416     // optional .CellType cell_type = 5;
417     public static final int CELL_TYPE_FIELD_NUMBER = 5;
418     private org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType cellType_;
419     /**
420      * <code>optional .CellType cell_type = 5;</code>
421      */
hasCellType()422     public boolean hasCellType() {
423       return ((bitField0_ & 0x00000010) == 0x00000010);
424     }
425     /**
426      * <code>optional .CellType cell_type = 5;</code>
427      */
getCellType()428     public org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType getCellType() {
429       return cellType_;
430     }
431 
432     // optional bytes value = 6;
433     public static final int VALUE_FIELD_NUMBER = 6;
434     private com.google.protobuf.ByteString value_;
435     /**
436      * <code>optional bytes value = 6;</code>
437      */
hasValue()438     public boolean hasValue() {
439       return ((bitField0_ & 0x00000020) == 0x00000020);
440     }
441     /**
442      * <code>optional bytes value = 6;</code>
443      */
getValue()444     public com.google.protobuf.ByteString getValue() {
445       return value_;
446     }
447 
448     // optional bytes tags = 7;
449     public static final int TAGS_FIELD_NUMBER = 7;
450     private com.google.protobuf.ByteString tags_;
451     /**
452      * <code>optional bytes tags = 7;</code>
453      */
hasTags()454     public boolean hasTags() {
455       return ((bitField0_ & 0x00000040) == 0x00000040);
456     }
457     /**
458      * <code>optional bytes tags = 7;</code>
459      */
getTags()460     public com.google.protobuf.ByteString getTags() {
461       return tags_;
462     }
463 
initFields()464     private void initFields() {
465       row_ = com.google.protobuf.ByteString.EMPTY;
466       family_ = com.google.protobuf.ByteString.EMPTY;
467       qualifier_ = com.google.protobuf.ByteString.EMPTY;
468       timestamp_ = 0L;
469       cellType_ = org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType.MINIMUM;
470       value_ = com.google.protobuf.ByteString.EMPTY;
471       tags_ = com.google.protobuf.ByteString.EMPTY;
472     }
473     private byte memoizedIsInitialized = -1;
isInitialized()474     public final boolean isInitialized() {
475       byte isInitialized = memoizedIsInitialized;
476       if (isInitialized != -1) return isInitialized == 1;
477 
478       memoizedIsInitialized = 1;
479       return true;
480     }
481 
writeTo(com.google.protobuf.CodedOutputStream output)482     public void writeTo(com.google.protobuf.CodedOutputStream output)
483                         throws java.io.IOException {
484       getSerializedSize();
485       if (((bitField0_ & 0x00000001) == 0x00000001)) {
486         output.writeBytes(1, row_);
487       }
488       if (((bitField0_ & 0x00000002) == 0x00000002)) {
489         output.writeBytes(2, family_);
490       }
491       if (((bitField0_ & 0x00000004) == 0x00000004)) {
492         output.writeBytes(3, qualifier_);
493       }
494       if (((bitField0_ & 0x00000008) == 0x00000008)) {
495         output.writeUInt64(4, timestamp_);
496       }
497       if (((bitField0_ & 0x00000010) == 0x00000010)) {
498         output.writeEnum(5, cellType_.getNumber());
499       }
500       if (((bitField0_ & 0x00000020) == 0x00000020)) {
501         output.writeBytes(6, value_);
502       }
503       if (((bitField0_ & 0x00000040) == 0x00000040)) {
504         output.writeBytes(7, tags_);
505       }
506       getUnknownFields().writeTo(output);
507     }
508 
509     private int memoizedSerializedSize = -1;
getSerializedSize()510     public int getSerializedSize() {
511       int size = memoizedSerializedSize;
512       if (size != -1) return size;
513 
514       size = 0;
515       if (((bitField0_ & 0x00000001) == 0x00000001)) {
516         size += com.google.protobuf.CodedOutputStream
517           .computeBytesSize(1, row_);
518       }
519       if (((bitField0_ & 0x00000002) == 0x00000002)) {
520         size += com.google.protobuf.CodedOutputStream
521           .computeBytesSize(2, family_);
522       }
523       if (((bitField0_ & 0x00000004) == 0x00000004)) {
524         size += com.google.protobuf.CodedOutputStream
525           .computeBytesSize(3, qualifier_);
526       }
527       if (((bitField0_ & 0x00000008) == 0x00000008)) {
528         size += com.google.protobuf.CodedOutputStream
529           .computeUInt64Size(4, timestamp_);
530       }
531       if (((bitField0_ & 0x00000010) == 0x00000010)) {
532         size += com.google.protobuf.CodedOutputStream
533           .computeEnumSize(5, cellType_.getNumber());
534       }
535       if (((bitField0_ & 0x00000020) == 0x00000020)) {
536         size += com.google.protobuf.CodedOutputStream
537           .computeBytesSize(6, value_);
538       }
539       if (((bitField0_ & 0x00000040) == 0x00000040)) {
540         size += com.google.protobuf.CodedOutputStream
541           .computeBytesSize(7, tags_);
542       }
543       size += getUnknownFields().getSerializedSize();
544       memoizedSerializedSize = size;
545       return size;
546     }
547 
548     private static final long serialVersionUID = 0L;
549     @java.lang.Override
writeReplace()550     protected java.lang.Object writeReplace()
551         throws java.io.ObjectStreamException {
552       return super.writeReplace();
553     }
554 
555     @java.lang.Override
equals(final java.lang.Object obj)556     public boolean equals(final java.lang.Object obj) {
557       if (obj == this) {
558        return true;
559       }
560       if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell)) {
561         return super.equals(obj);
562       }
563       org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell other = (org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell) obj;
564 
565       boolean result = true;
566       result = result && (hasRow() == other.hasRow());
567       if (hasRow()) {
568         result = result && getRow()
569             .equals(other.getRow());
570       }
571       result = result && (hasFamily() == other.hasFamily());
572       if (hasFamily()) {
573         result = result && getFamily()
574             .equals(other.getFamily());
575       }
576       result = result && (hasQualifier() == other.hasQualifier());
577       if (hasQualifier()) {
578         result = result && getQualifier()
579             .equals(other.getQualifier());
580       }
581       result = result && (hasTimestamp() == other.hasTimestamp());
582       if (hasTimestamp()) {
583         result = result && (getTimestamp()
584             == other.getTimestamp());
585       }
586       result = result && (hasCellType() == other.hasCellType());
587       if (hasCellType()) {
588         result = result &&
589             (getCellType() == other.getCellType());
590       }
591       result = result && (hasValue() == other.hasValue());
592       if (hasValue()) {
593         result = result && getValue()
594             .equals(other.getValue());
595       }
596       result = result && (hasTags() == other.hasTags());
597       if (hasTags()) {
598         result = result && getTags()
599             .equals(other.getTags());
600       }
601       result = result &&
602           getUnknownFields().equals(other.getUnknownFields());
603       return result;
604     }
605 
606     private int memoizedHashCode = 0;
607     @java.lang.Override
hashCode()608     public int hashCode() {
609       if (memoizedHashCode != 0) {
610         return memoizedHashCode;
611       }
612       int hash = 41;
613       hash = (19 * hash) + getDescriptorForType().hashCode();
614       if (hasRow()) {
615         hash = (37 * hash) + ROW_FIELD_NUMBER;
616         hash = (53 * hash) + getRow().hashCode();
617       }
618       if (hasFamily()) {
619         hash = (37 * hash) + FAMILY_FIELD_NUMBER;
620         hash = (53 * hash) + getFamily().hashCode();
621       }
622       if (hasQualifier()) {
623         hash = (37 * hash) + QUALIFIER_FIELD_NUMBER;
624         hash = (53 * hash) + getQualifier().hashCode();
625       }
626       if (hasTimestamp()) {
627         hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
628         hash = (53 * hash) + hashLong(getTimestamp());
629       }
630       if (hasCellType()) {
631         hash = (37 * hash) + CELL_TYPE_FIELD_NUMBER;
632         hash = (53 * hash) + hashEnum(getCellType());
633       }
634       if (hasValue()) {
635         hash = (37 * hash) + VALUE_FIELD_NUMBER;
636         hash = (53 * hash) + getValue().hashCode();
637       }
638       if (hasTags()) {
639         hash = (37 * hash) + TAGS_FIELD_NUMBER;
640         hash = (53 * hash) + getTags().hashCode();
641       }
642       hash = (29 * hash) + getUnknownFields().hashCode();
643       memoizedHashCode = hash;
644       return hash;
645     }
646 
parseFrom( com.google.protobuf.ByteString data)647     public static org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell parseFrom(
648         com.google.protobuf.ByteString data)
649         throws com.google.protobuf.InvalidProtocolBufferException {
650       return PARSER.parseFrom(data);
651     }
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)652     public static org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell parseFrom(
653         com.google.protobuf.ByteString data,
654         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
655         throws com.google.protobuf.InvalidProtocolBufferException {
656       return PARSER.parseFrom(data, extensionRegistry);
657     }
parseFrom(byte[] data)658     public static org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell parseFrom(byte[] data)
659         throws com.google.protobuf.InvalidProtocolBufferException {
660       return PARSER.parseFrom(data);
661     }
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)662     public static org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell parseFrom(
663         byte[] data,
664         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
665         throws com.google.protobuf.InvalidProtocolBufferException {
666       return PARSER.parseFrom(data, extensionRegistry);
667     }
parseFrom(java.io.InputStream input)668     public static org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell parseFrom(java.io.InputStream input)
669         throws java.io.IOException {
670       return PARSER.parseFrom(input);
671     }
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)672     public static org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell parseFrom(
673         java.io.InputStream input,
674         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
675         throws java.io.IOException {
676       return PARSER.parseFrom(input, extensionRegistry);
677     }
parseDelimitedFrom(java.io.InputStream input)678     public static org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell parseDelimitedFrom(java.io.InputStream input)
679         throws java.io.IOException {
680       return PARSER.parseDelimitedFrom(input);
681     }
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)682     public static org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell parseDelimitedFrom(
683         java.io.InputStream input,
684         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
685         throws java.io.IOException {
686       return PARSER.parseDelimitedFrom(input, extensionRegistry);
687     }
parseFrom( com.google.protobuf.CodedInputStream input)688     public static org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell parseFrom(
689         com.google.protobuf.CodedInputStream input)
690         throws java.io.IOException {
691       return PARSER.parseFrom(input);
692     }
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)693     public static org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell parseFrom(
694         com.google.protobuf.CodedInputStream input,
695         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
696         throws java.io.IOException {
697       return PARSER.parseFrom(input, extensionRegistry);
698     }
699 
newBuilder()700     public static Builder newBuilder() { return Builder.create(); }
newBuilderForType()701     public Builder newBuilderForType() { return newBuilder(); }
newBuilder(org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell prototype)702     public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell prototype) {
703       return newBuilder().mergeFrom(prototype);
704     }
toBuilder()705     public Builder toBuilder() { return newBuilder(this); }
706 
707     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent)708     protected Builder newBuilderForType(
709         com.google.protobuf.GeneratedMessage.BuilderParent parent) {
710       Builder builder = new Builder(parent);
711       return builder;
712     }
713     /**
714      * Protobuf type {@code Cell}
715      *
716      * <pre>
717      **
718      * Protocol buffer version of Cell.
719      * </pre>
720      */
721     public static final class Builder extends
722         com.google.protobuf.GeneratedMessage.Builder<Builder>
723        implements org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellOrBuilder {
724       public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor()725           getDescriptor() {
726         return org.apache.hadoop.hbase.protobuf.generated.CellProtos.internal_static_Cell_descriptor;
727       }
728 
729       protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()730           internalGetFieldAccessorTable() {
731         return org.apache.hadoop.hbase.protobuf.generated.CellProtos.internal_static_Cell_fieldAccessorTable
732             .ensureFieldAccessorsInitialized(
733                 org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell.class, org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell.Builder.class);
734       }
735 
736       // Construct using org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell.newBuilder()
Builder()737       private Builder() {
738         maybeForceBuilderInitialization();
739       }
740 
Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent)741       private Builder(
742           com.google.protobuf.GeneratedMessage.BuilderParent parent) {
743         super(parent);
744         maybeForceBuilderInitialization();
745       }
maybeForceBuilderInitialization()746       private void maybeForceBuilderInitialization() {
747         if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
748         }
749       }
create()750       private static Builder create() {
751         return new Builder();
752       }
753 
clear()754       public Builder clear() {
755         super.clear();
756         row_ = com.google.protobuf.ByteString.EMPTY;
757         bitField0_ = (bitField0_ & ~0x00000001);
758         family_ = com.google.protobuf.ByteString.EMPTY;
759         bitField0_ = (bitField0_ & ~0x00000002);
760         qualifier_ = com.google.protobuf.ByteString.EMPTY;
761         bitField0_ = (bitField0_ & ~0x00000004);
762         timestamp_ = 0L;
763         bitField0_ = (bitField0_ & ~0x00000008);
764         cellType_ = org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType.MINIMUM;
765         bitField0_ = (bitField0_ & ~0x00000010);
766         value_ = com.google.protobuf.ByteString.EMPTY;
767         bitField0_ = (bitField0_ & ~0x00000020);
768         tags_ = com.google.protobuf.ByteString.EMPTY;
769         bitField0_ = (bitField0_ & ~0x00000040);
770         return this;
771       }
772 
clone()773       public Builder clone() {
774         return create().mergeFrom(buildPartial());
775       }
776 
777       public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()778           getDescriptorForType() {
779         return org.apache.hadoop.hbase.protobuf.generated.CellProtos.internal_static_Cell_descriptor;
780       }
781 
getDefaultInstanceForType()782       public org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell getDefaultInstanceForType() {
783         return org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell.getDefaultInstance();
784       }
785 
build()786       public org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell build() {
787         org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell result = buildPartial();
788         if (!result.isInitialized()) {
789           throw newUninitializedMessageException(result);
790         }
791         return result;
792       }
793 
buildPartial()794       public org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell buildPartial() {
795         org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell result = new org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell(this);
796         int from_bitField0_ = bitField0_;
797         int to_bitField0_ = 0;
798         if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
799           to_bitField0_ |= 0x00000001;
800         }
801         result.row_ = row_;
802         if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
803           to_bitField0_ |= 0x00000002;
804         }
805         result.family_ = family_;
806         if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
807           to_bitField0_ |= 0x00000004;
808         }
809         result.qualifier_ = qualifier_;
810         if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
811           to_bitField0_ |= 0x00000008;
812         }
813         result.timestamp_ = timestamp_;
814         if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
815           to_bitField0_ |= 0x00000010;
816         }
817         result.cellType_ = cellType_;
818         if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
819           to_bitField0_ |= 0x00000020;
820         }
821         result.value_ = value_;
822         if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
823           to_bitField0_ |= 0x00000040;
824         }
825         result.tags_ = tags_;
826         result.bitField0_ = to_bitField0_;
827         onBuilt();
828         return result;
829       }
830 
mergeFrom(com.google.protobuf.Message other)831       public Builder mergeFrom(com.google.protobuf.Message other) {
832         if (other instanceof org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell) {
833           return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell)other);
834         } else {
835           super.mergeFrom(other);
836           return this;
837         }
838       }
839 
mergeFrom(org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell other)840       public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell other) {
841         if (other == org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell.getDefaultInstance()) return this;
842         if (other.hasRow()) {
843           setRow(other.getRow());
844         }
845         if (other.hasFamily()) {
846           setFamily(other.getFamily());
847         }
848         if (other.hasQualifier()) {
849           setQualifier(other.getQualifier());
850         }
851         if (other.hasTimestamp()) {
852           setTimestamp(other.getTimestamp());
853         }
854         if (other.hasCellType()) {
855           setCellType(other.getCellType());
856         }
857         if (other.hasValue()) {
858           setValue(other.getValue());
859         }
860         if (other.hasTags()) {
861           setTags(other.getTags());
862         }
863         this.mergeUnknownFields(other.getUnknownFields());
864         return this;
865       }
866 
isInitialized()867       public final boolean isInitialized() {
868         return true;
869       }
870 
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)871       public Builder mergeFrom(
872           com.google.protobuf.CodedInputStream input,
873           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
874           throws java.io.IOException {
875         org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell parsedMessage = null;
876         try {
877           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
878         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
879           parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.CellProtos.Cell) e.getUnfinishedMessage();
880           throw e;
881         } finally {
882           if (parsedMessage != null) {
883             mergeFrom(parsedMessage);
884           }
885         }
886         return this;
887       }
888       private int bitField0_;
889 
890       // optional bytes row = 1;
891       private com.google.protobuf.ByteString row_ = com.google.protobuf.ByteString.EMPTY;
892       /**
893        * <code>optional bytes row = 1;</code>
894        */
hasRow()895       public boolean hasRow() {
896         return ((bitField0_ & 0x00000001) == 0x00000001);
897       }
898       /**
899        * <code>optional bytes row = 1;</code>
900        */
getRow()901       public com.google.protobuf.ByteString getRow() {
902         return row_;
903       }
904       /**
905        * <code>optional bytes row = 1;</code>
906        */
setRow(com.google.protobuf.ByteString value)907       public Builder setRow(com.google.protobuf.ByteString value) {
908         if (value == null) {
909     throw new NullPointerException();
910   }
911   bitField0_ |= 0x00000001;
912         row_ = value;
913         onChanged();
914         return this;
915       }
916       /**
917        * <code>optional bytes row = 1;</code>
918        */
clearRow()919       public Builder clearRow() {
920         bitField0_ = (bitField0_ & ~0x00000001);
921         row_ = getDefaultInstance().getRow();
922         onChanged();
923         return this;
924       }
925 
926       // optional bytes family = 2;
927       private com.google.protobuf.ByteString family_ = com.google.protobuf.ByteString.EMPTY;
928       /**
929        * <code>optional bytes family = 2;</code>
930        */
hasFamily()931       public boolean hasFamily() {
932         return ((bitField0_ & 0x00000002) == 0x00000002);
933       }
934       /**
935        * <code>optional bytes family = 2;</code>
936        */
getFamily()937       public com.google.protobuf.ByteString getFamily() {
938         return family_;
939       }
940       /**
941        * <code>optional bytes family = 2;</code>
942        */
setFamily(com.google.protobuf.ByteString value)943       public Builder setFamily(com.google.protobuf.ByteString value) {
944         if (value == null) {
945     throw new NullPointerException();
946   }
947   bitField0_ |= 0x00000002;
948         family_ = value;
949         onChanged();
950         return this;
951       }
952       /**
953        * <code>optional bytes family = 2;</code>
954        */
clearFamily()955       public Builder clearFamily() {
956         bitField0_ = (bitField0_ & ~0x00000002);
957         family_ = getDefaultInstance().getFamily();
958         onChanged();
959         return this;
960       }
961 
962       // optional bytes qualifier = 3;
963       private com.google.protobuf.ByteString qualifier_ = com.google.protobuf.ByteString.EMPTY;
964       /**
965        * <code>optional bytes qualifier = 3;</code>
966        */
hasQualifier()967       public boolean hasQualifier() {
968         return ((bitField0_ & 0x00000004) == 0x00000004);
969       }
970       /**
971        * <code>optional bytes qualifier = 3;</code>
972        */
getQualifier()973       public com.google.protobuf.ByteString getQualifier() {
974         return qualifier_;
975       }
976       /**
977        * <code>optional bytes qualifier = 3;</code>
978        */
setQualifier(com.google.protobuf.ByteString value)979       public Builder setQualifier(com.google.protobuf.ByteString value) {
980         if (value == null) {
981     throw new NullPointerException();
982   }
983   bitField0_ |= 0x00000004;
984         qualifier_ = value;
985         onChanged();
986         return this;
987       }
988       /**
989        * <code>optional bytes qualifier = 3;</code>
990        */
clearQualifier()991       public Builder clearQualifier() {
992         bitField0_ = (bitField0_ & ~0x00000004);
993         qualifier_ = getDefaultInstance().getQualifier();
994         onChanged();
995         return this;
996       }
997 
998       // optional uint64 timestamp = 4;
999       private long timestamp_ ;
1000       /**
1001        * <code>optional uint64 timestamp = 4;</code>
1002        */
hasTimestamp()1003       public boolean hasTimestamp() {
1004         return ((bitField0_ & 0x00000008) == 0x00000008);
1005       }
1006       /**
1007        * <code>optional uint64 timestamp = 4;</code>
1008        */
getTimestamp()1009       public long getTimestamp() {
1010         return timestamp_;
1011       }
1012       /**
1013        * <code>optional uint64 timestamp = 4;</code>
1014        */
setTimestamp(long value)1015       public Builder setTimestamp(long value) {
1016         bitField0_ |= 0x00000008;
1017         timestamp_ = value;
1018         onChanged();
1019         return this;
1020       }
1021       /**
1022        * <code>optional uint64 timestamp = 4;</code>
1023        */
clearTimestamp()1024       public Builder clearTimestamp() {
1025         bitField0_ = (bitField0_ & ~0x00000008);
1026         timestamp_ = 0L;
1027         onChanged();
1028         return this;
1029       }
1030 
1031       // optional .CellType cell_type = 5;
1032       private org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType cellType_ = org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType.MINIMUM;
1033       /**
1034        * <code>optional .CellType cell_type = 5;</code>
1035        */
hasCellType()1036       public boolean hasCellType() {
1037         return ((bitField0_ & 0x00000010) == 0x00000010);
1038       }
1039       /**
1040        * <code>optional .CellType cell_type = 5;</code>
1041        */
getCellType()1042       public org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType getCellType() {
1043         return cellType_;
1044       }
1045       /**
1046        * <code>optional .CellType cell_type = 5;</code>
1047        */
setCellType(org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType value)1048       public Builder setCellType(org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType value) {
1049         if (value == null) {
1050           throw new NullPointerException();
1051         }
1052         bitField0_ |= 0x00000010;
1053         cellType_ = value;
1054         onChanged();
1055         return this;
1056       }
1057       /**
1058        * <code>optional .CellType cell_type = 5;</code>
1059        */
clearCellType()1060       public Builder clearCellType() {
1061         bitField0_ = (bitField0_ & ~0x00000010);
1062         cellType_ = org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType.MINIMUM;
1063         onChanged();
1064         return this;
1065       }
1066 
1067       // optional bytes value = 6;
1068       private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
1069       /**
1070        * <code>optional bytes value = 6;</code>
1071        */
hasValue()1072       public boolean hasValue() {
1073         return ((bitField0_ & 0x00000020) == 0x00000020);
1074       }
1075       /**
1076        * <code>optional bytes value = 6;</code>
1077        */
getValue()1078       public com.google.protobuf.ByteString getValue() {
1079         return value_;
1080       }
1081       /**
1082        * <code>optional bytes value = 6;</code>
1083        */
setValue(com.google.protobuf.ByteString value)1084       public Builder setValue(com.google.protobuf.ByteString value) {
1085         if (value == null) {
1086     throw new NullPointerException();
1087   }
1088   bitField0_ |= 0x00000020;
1089         value_ = value;
1090         onChanged();
1091         return this;
1092       }
1093       /**
1094        * <code>optional bytes value = 6;</code>
1095        */
clearValue()1096       public Builder clearValue() {
1097         bitField0_ = (bitField0_ & ~0x00000020);
1098         value_ = getDefaultInstance().getValue();
1099         onChanged();
1100         return this;
1101       }
1102 
1103       // optional bytes tags = 7;
1104       private com.google.protobuf.ByteString tags_ = com.google.protobuf.ByteString.EMPTY;
1105       /**
1106        * <code>optional bytes tags = 7;</code>
1107        */
hasTags()1108       public boolean hasTags() {
1109         return ((bitField0_ & 0x00000040) == 0x00000040);
1110       }
1111       /**
1112        * <code>optional bytes tags = 7;</code>
1113        */
getTags()1114       public com.google.protobuf.ByteString getTags() {
1115         return tags_;
1116       }
1117       /**
1118        * <code>optional bytes tags = 7;</code>
1119        */
setTags(com.google.protobuf.ByteString value)1120       public Builder setTags(com.google.protobuf.ByteString value) {
1121         if (value == null) {
1122     throw new NullPointerException();
1123   }
1124   bitField0_ |= 0x00000040;
1125         tags_ = value;
1126         onChanged();
1127         return this;
1128       }
1129       /**
1130        * <code>optional bytes tags = 7;</code>
1131        */
clearTags()1132       public Builder clearTags() {
1133         bitField0_ = (bitField0_ & ~0x00000040);
1134         tags_ = getDefaultInstance().getTags();
1135         onChanged();
1136         return this;
1137       }
1138 
1139       // @@protoc_insertion_point(builder_scope:Cell)
1140     }
1141 
1142     static {
1143       defaultInstance = new Cell(true);
defaultInstance.initFields()1144       defaultInstance.initFields();
1145     }
1146 
1147     // @@protoc_insertion_point(class_scope:Cell)
1148   }
1149 
1150   public interface KeyValueOrBuilder
1151       extends com.google.protobuf.MessageOrBuilder {
1152 
1153     // required bytes row = 1;
1154     /**
1155      * <code>required bytes row = 1;</code>
1156      */
hasRow()1157     boolean hasRow();
1158     /**
1159      * <code>required bytes row = 1;</code>
1160      */
getRow()1161     com.google.protobuf.ByteString getRow();
1162 
1163     // required bytes family = 2;
1164     /**
1165      * <code>required bytes family = 2;</code>
1166      */
hasFamily()1167     boolean hasFamily();
1168     /**
1169      * <code>required bytes family = 2;</code>
1170      */
getFamily()1171     com.google.protobuf.ByteString getFamily();
1172 
1173     // required bytes qualifier = 3;
1174     /**
1175      * <code>required bytes qualifier = 3;</code>
1176      */
hasQualifier()1177     boolean hasQualifier();
1178     /**
1179      * <code>required bytes qualifier = 3;</code>
1180      */
getQualifier()1181     com.google.protobuf.ByteString getQualifier();
1182 
1183     // optional uint64 timestamp = 4;
1184     /**
1185      * <code>optional uint64 timestamp = 4;</code>
1186      */
hasTimestamp()1187     boolean hasTimestamp();
1188     /**
1189      * <code>optional uint64 timestamp = 4;</code>
1190      */
getTimestamp()1191     long getTimestamp();
1192 
1193     // optional .CellType key_type = 5;
1194     /**
1195      * <code>optional .CellType key_type = 5;</code>
1196      */
hasKeyType()1197     boolean hasKeyType();
1198     /**
1199      * <code>optional .CellType key_type = 5;</code>
1200      */
getKeyType()1201     org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType getKeyType();
1202 
1203     // optional bytes value = 6;
1204     /**
1205      * <code>optional bytes value = 6;</code>
1206      */
hasValue()1207     boolean hasValue();
1208     /**
1209      * <code>optional bytes value = 6;</code>
1210      */
getValue()1211     com.google.protobuf.ByteString getValue();
1212 
1213     // optional bytes tags = 7;
1214     /**
1215      * <code>optional bytes tags = 7;</code>
1216      */
hasTags()1217     boolean hasTags();
1218     /**
1219      * <code>optional bytes tags = 7;</code>
1220      */
getTags()1221     com.google.protobuf.ByteString getTags();
1222   }
1223   /**
1224    * Protobuf type {@code KeyValue}
1225    *
1226    * <pre>
1227    **
1228    * Protocol buffer version of KeyValue.
1229    * It doesn't have those transient parameters
1230    * </pre>
1231    */
1232   public static final class KeyValue extends
1233       com.google.protobuf.GeneratedMessage
1234       implements KeyValueOrBuilder {
1235     // Use KeyValue.newBuilder() to construct.
KeyValue(com.google.protobuf.GeneratedMessage.Builder<?> builder)1236     private KeyValue(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
1237       super(builder);
1238       this.unknownFields = builder.getUnknownFields();
1239     }
KeyValue(boolean noInit)1240     private KeyValue(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
1241 
1242     private static final KeyValue defaultInstance;
getDefaultInstance()1243     public static KeyValue getDefaultInstance() {
1244       return defaultInstance;
1245     }
1246 
getDefaultInstanceForType()1247     public KeyValue getDefaultInstanceForType() {
1248       return defaultInstance;
1249     }
1250 
1251     private final com.google.protobuf.UnknownFieldSet unknownFields;
1252     @java.lang.Override
1253     public final com.google.protobuf.UnknownFieldSet
getUnknownFields()1254         getUnknownFields() {
1255       return this.unknownFields;
1256     }
KeyValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1257     private KeyValue(
1258         com.google.protobuf.CodedInputStream input,
1259         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1260         throws com.google.protobuf.InvalidProtocolBufferException {
1261       initFields();
1262       int mutable_bitField0_ = 0;
1263       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1264           com.google.protobuf.UnknownFieldSet.newBuilder();
1265       try {
1266         boolean done = false;
1267         while (!done) {
1268           int tag = input.readTag();
1269           switch (tag) {
1270             case 0:
1271               done = true;
1272               break;
1273             default: {
1274               if (!parseUnknownField(input, unknownFields,
1275                                      extensionRegistry, tag)) {
1276                 done = true;
1277               }
1278               break;
1279             }
1280             case 10: {
1281               bitField0_ |= 0x00000001;
1282               row_ = input.readBytes();
1283               break;
1284             }
1285             case 18: {
1286               bitField0_ |= 0x00000002;
1287               family_ = input.readBytes();
1288               break;
1289             }
1290             case 26: {
1291               bitField0_ |= 0x00000004;
1292               qualifier_ = input.readBytes();
1293               break;
1294             }
1295             case 32: {
1296               bitField0_ |= 0x00000008;
1297               timestamp_ = input.readUInt64();
1298               break;
1299             }
1300             case 40: {
1301               int rawValue = input.readEnum();
1302               org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType value = org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType.valueOf(rawValue);
1303               if (value == null) {
1304                 unknownFields.mergeVarintField(5, rawValue);
1305               } else {
1306                 bitField0_ |= 0x00000010;
1307                 keyType_ = value;
1308               }
1309               break;
1310             }
1311             case 50: {
1312               bitField0_ |= 0x00000020;
1313               value_ = input.readBytes();
1314               break;
1315             }
1316             case 58: {
1317               bitField0_ |= 0x00000040;
1318               tags_ = input.readBytes();
1319               break;
1320             }
1321           }
1322         }
1323       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1324         throw e.setUnfinishedMessage(this);
1325       } catch (java.io.IOException e) {
1326         throw new com.google.protobuf.InvalidProtocolBufferException(
1327             e.getMessage()).setUnfinishedMessage(this);
1328       } finally {
1329         this.unknownFields = unknownFields.build();
1330         makeExtensionsImmutable();
1331       }
1332     }
1333     public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor()1334         getDescriptor() {
1335       return org.apache.hadoop.hbase.protobuf.generated.CellProtos.internal_static_KeyValue_descriptor;
1336     }
1337 
1338     protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()1339         internalGetFieldAccessorTable() {
1340       return org.apache.hadoop.hbase.protobuf.generated.CellProtos.internal_static_KeyValue_fieldAccessorTable
1341           .ensureFieldAccessorsInitialized(
1342               org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue.class, org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue.Builder.class);
1343     }
1344 
1345     public static com.google.protobuf.Parser<KeyValue> PARSER =
1346         new com.google.protobuf.AbstractParser<KeyValue>() {
1347       public KeyValue parsePartialFrom(
1348           com.google.protobuf.CodedInputStream input,
1349           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1350           throws com.google.protobuf.InvalidProtocolBufferException {
1351         return new KeyValue(input, extensionRegistry);
1352       }
1353     };
1354 
1355     @java.lang.Override
getParserForType()1356     public com.google.protobuf.Parser<KeyValue> getParserForType() {
1357       return PARSER;
1358     }
1359 
1360     private int bitField0_;
1361     // required bytes row = 1;
1362     public static final int ROW_FIELD_NUMBER = 1;
1363     private com.google.protobuf.ByteString row_;
1364     /**
1365      * <code>required bytes row = 1;</code>
1366      */
hasRow()1367     public boolean hasRow() {
1368       return ((bitField0_ & 0x00000001) == 0x00000001);
1369     }
1370     /**
1371      * <code>required bytes row = 1;</code>
1372      */
getRow()1373     public com.google.protobuf.ByteString getRow() {
1374       return row_;
1375     }
1376 
1377     // required bytes family = 2;
1378     public static final int FAMILY_FIELD_NUMBER = 2;
1379     private com.google.protobuf.ByteString family_;
1380     /**
1381      * <code>required bytes family = 2;</code>
1382      */
hasFamily()1383     public boolean hasFamily() {
1384       return ((bitField0_ & 0x00000002) == 0x00000002);
1385     }
1386     /**
1387      * <code>required bytes family = 2;</code>
1388      */
getFamily()1389     public com.google.protobuf.ByteString getFamily() {
1390       return family_;
1391     }
1392 
1393     // required bytes qualifier = 3;
1394     public static final int QUALIFIER_FIELD_NUMBER = 3;
1395     private com.google.protobuf.ByteString qualifier_;
1396     /**
1397      * <code>required bytes qualifier = 3;</code>
1398      */
hasQualifier()1399     public boolean hasQualifier() {
1400       return ((bitField0_ & 0x00000004) == 0x00000004);
1401     }
1402     /**
1403      * <code>required bytes qualifier = 3;</code>
1404      */
getQualifier()1405     public com.google.protobuf.ByteString getQualifier() {
1406       return qualifier_;
1407     }
1408 
1409     // optional uint64 timestamp = 4;
1410     public static final int TIMESTAMP_FIELD_NUMBER = 4;
1411     private long timestamp_;
1412     /**
1413      * <code>optional uint64 timestamp = 4;</code>
1414      */
hasTimestamp()1415     public boolean hasTimestamp() {
1416       return ((bitField0_ & 0x00000008) == 0x00000008);
1417     }
1418     /**
1419      * <code>optional uint64 timestamp = 4;</code>
1420      */
getTimestamp()1421     public long getTimestamp() {
1422       return timestamp_;
1423     }
1424 
1425     // optional .CellType key_type = 5;
1426     public static final int KEY_TYPE_FIELD_NUMBER = 5;
1427     private org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType keyType_;
1428     /**
1429      * <code>optional .CellType key_type = 5;</code>
1430      */
hasKeyType()1431     public boolean hasKeyType() {
1432       return ((bitField0_ & 0x00000010) == 0x00000010);
1433     }
1434     /**
1435      * <code>optional .CellType key_type = 5;</code>
1436      */
getKeyType()1437     public org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType getKeyType() {
1438       return keyType_;
1439     }
1440 
1441     // optional bytes value = 6;
1442     public static final int VALUE_FIELD_NUMBER = 6;
1443     private com.google.protobuf.ByteString value_;
1444     /**
1445      * <code>optional bytes value = 6;</code>
1446      */
hasValue()1447     public boolean hasValue() {
1448       return ((bitField0_ & 0x00000020) == 0x00000020);
1449     }
1450     /**
1451      * <code>optional bytes value = 6;</code>
1452      */
getValue()1453     public com.google.protobuf.ByteString getValue() {
1454       return value_;
1455     }
1456 
1457     // optional bytes tags = 7;
1458     public static final int TAGS_FIELD_NUMBER = 7;
1459     private com.google.protobuf.ByteString tags_;
1460     /**
1461      * <code>optional bytes tags = 7;</code>
1462      */
hasTags()1463     public boolean hasTags() {
1464       return ((bitField0_ & 0x00000040) == 0x00000040);
1465     }
1466     /**
1467      * <code>optional bytes tags = 7;</code>
1468      */
getTags()1469     public com.google.protobuf.ByteString getTags() {
1470       return tags_;
1471     }
1472 
initFields()1473     private void initFields() {
1474       row_ = com.google.protobuf.ByteString.EMPTY;
1475       family_ = com.google.protobuf.ByteString.EMPTY;
1476       qualifier_ = com.google.protobuf.ByteString.EMPTY;
1477       timestamp_ = 0L;
1478       keyType_ = org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType.MINIMUM;
1479       value_ = com.google.protobuf.ByteString.EMPTY;
1480       tags_ = com.google.protobuf.ByteString.EMPTY;
1481     }
1482     private byte memoizedIsInitialized = -1;
isInitialized()1483     public final boolean isInitialized() {
1484       byte isInitialized = memoizedIsInitialized;
1485       if (isInitialized != -1) return isInitialized == 1;
1486 
1487       if (!hasRow()) {
1488         memoizedIsInitialized = 0;
1489         return false;
1490       }
1491       if (!hasFamily()) {
1492         memoizedIsInitialized = 0;
1493         return false;
1494       }
1495       if (!hasQualifier()) {
1496         memoizedIsInitialized = 0;
1497         return false;
1498       }
1499       memoizedIsInitialized = 1;
1500       return true;
1501     }
1502 
writeTo(com.google.protobuf.CodedOutputStream output)1503     public void writeTo(com.google.protobuf.CodedOutputStream output)
1504                         throws java.io.IOException {
1505       getSerializedSize();
1506       if (((bitField0_ & 0x00000001) == 0x00000001)) {
1507         output.writeBytes(1, row_);
1508       }
1509       if (((bitField0_ & 0x00000002) == 0x00000002)) {
1510         output.writeBytes(2, family_);
1511       }
1512       if (((bitField0_ & 0x00000004) == 0x00000004)) {
1513         output.writeBytes(3, qualifier_);
1514       }
1515       if (((bitField0_ & 0x00000008) == 0x00000008)) {
1516         output.writeUInt64(4, timestamp_);
1517       }
1518       if (((bitField0_ & 0x00000010) == 0x00000010)) {
1519         output.writeEnum(5, keyType_.getNumber());
1520       }
1521       if (((bitField0_ & 0x00000020) == 0x00000020)) {
1522         output.writeBytes(6, value_);
1523       }
1524       if (((bitField0_ & 0x00000040) == 0x00000040)) {
1525         output.writeBytes(7, tags_);
1526       }
1527       getUnknownFields().writeTo(output);
1528     }
1529 
1530     private int memoizedSerializedSize = -1;
getSerializedSize()1531     public int getSerializedSize() {
1532       int size = memoizedSerializedSize;
1533       if (size != -1) return size;
1534 
1535       size = 0;
1536       if (((bitField0_ & 0x00000001) == 0x00000001)) {
1537         size += com.google.protobuf.CodedOutputStream
1538           .computeBytesSize(1, row_);
1539       }
1540       if (((bitField0_ & 0x00000002) == 0x00000002)) {
1541         size += com.google.protobuf.CodedOutputStream
1542           .computeBytesSize(2, family_);
1543       }
1544       if (((bitField0_ & 0x00000004) == 0x00000004)) {
1545         size += com.google.protobuf.CodedOutputStream
1546           .computeBytesSize(3, qualifier_);
1547       }
1548       if (((bitField0_ & 0x00000008) == 0x00000008)) {
1549         size += com.google.protobuf.CodedOutputStream
1550           .computeUInt64Size(4, timestamp_);
1551       }
1552       if (((bitField0_ & 0x00000010) == 0x00000010)) {
1553         size += com.google.protobuf.CodedOutputStream
1554           .computeEnumSize(5, keyType_.getNumber());
1555       }
1556       if (((bitField0_ & 0x00000020) == 0x00000020)) {
1557         size += com.google.protobuf.CodedOutputStream
1558           .computeBytesSize(6, value_);
1559       }
1560       if (((bitField0_ & 0x00000040) == 0x00000040)) {
1561         size += com.google.protobuf.CodedOutputStream
1562           .computeBytesSize(7, tags_);
1563       }
1564       size += getUnknownFields().getSerializedSize();
1565       memoizedSerializedSize = size;
1566       return size;
1567     }
1568 
1569     private static final long serialVersionUID = 0L;
1570     @java.lang.Override
writeReplace()1571     protected java.lang.Object writeReplace()
1572         throws java.io.ObjectStreamException {
1573       return super.writeReplace();
1574     }
1575 
1576     @java.lang.Override
equals(final java.lang.Object obj)1577     public boolean equals(final java.lang.Object obj) {
1578       if (obj == this) {
1579        return true;
1580       }
1581       if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue)) {
1582         return super.equals(obj);
1583       }
1584       org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue other = (org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue) obj;
1585 
1586       boolean result = true;
1587       result = result && (hasRow() == other.hasRow());
1588       if (hasRow()) {
1589         result = result && getRow()
1590             .equals(other.getRow());
1591       }
1592       result = result && (hasFamily() == other.hasFamily());
1593       if (hasFamily()) {
1594         result = result && getFamily()
1595             .equals(other.getFamily());
1596       }
1597       result = result && (hasQualifier() == other.hasQualifier());
1598       if (hasQualifier()) {
1599         result = result && getQualifier()
1600             .equals(other.getQualifier());
1601       }
1602       result = result && (hasTimestamp() == other.hasTimestamp());
1603       if (hasTimestamp()) {
1604         result = result && (getTimestamp()
1605             == other.getTimestamp());
1606       }
1607       result = result && (hasKeyType() == other.hasKeyType());
1608       if (hasKeyType()) {
1609         result = result &&
1610             (getKeyType() == other.getKeyType());
1611       }
1612       result = result && (hasValue() == other.hasValue());
1613       if (hasValue()) {
1614         result = result && getValue()
1615             .equals(other.getValue());
1616       }
1617       result = result && (hasTags() == other.hasTags());
1618       if (hasTags()) {
1619         result = result && getTags()
1620             .equals(other.getTags());
1621       }
1622       result = result &&
1623           getUnknownFields().equals(other.getUnknownFields());
1624       return result;
1625     }
1626 
1627     private int memoizedHashCode = 0;
1628     @java.lang.Override
hashCode()1629     public int hashCode() {
1630       if (memoizedHashCode != 0) {
1631         return memoizedHashCode;
1632       }
1633       int hash = 41;
1634       hash = (19 * hash) + getDescriptorForType().hashCode();
1635       if (hasRow()) {
1636         hash = (37 * hash) + ROW_FIELD_NUMBER;
1637         hash = (53 * hash) + getRow().hashCode();
1638       }
1639       if (hasFamily()) {
1640         hash = (37 * hash) + FAMILY_FIELD_NUMBER;
1641         hash = (53 * hash) + getFamily().hashCode();
1642       }
1643       if (hasQualifier()) {
1644         hash = (37 * hash) + QUALIFIER_FIELD_NUMBER;
1645         hash = (53 * hash) + getQualifier().hashCode();
1646       }
1647       if (hasTimestamp()) {
1648         hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
1649         hash = (53 * hash) + hashLong(getTimestamp());
1650       }
1651       if (hasKeyType()) {
1652         hash = (37 * hash) + KEY_TYPE_FIELD_NUMBER;
1653         hash = (53 * hash) + hashEnum(getKeyType());
1654       }
1655       if (hasValue()) {
1656         hash = (37 * hash) + VALUE_FIELD_NUMBER;
1657         hash = (53 * hash) + getValue().hashCode();
1658       }
1659       if (hasTags()) {
1660         hash = (37 * hash) + TAGS_FIELD_NUMBER;
1661         hash = (53 * hash) + getTags().hashCode();
1662       }
1663       hash = (29 * hash) + getUnknownFields().hashCode();
1664       memoizedHashCode = hash;
1665       return hash;
1666     }
1667 
parseFrom( com.google.protobuf.ByteString data)1668     public static org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue parseFrom(
1669         com.google.protobuf.ByteString data)
1670         throws com.google.protobuf.InvalidProtocolBufferException {
1671       return PARSER.parseFrom(data);
1672     }
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1673     public static org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue parseFrom(
1674         com.google.protobuf.ByteString data,
1675         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1676         throws com.google.protobuf.InvalidProtocolBufferException {
1677       return PARSER.parseFrom(data, extensionRegistry);
1678     }
parseFrom(byte[] data)1679     public static org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue parseFrom(byte[] data)
1680         throws com.google.protobuf.InvalidProtocolBufferException {
1681       return PARSER.parseFrom(data);
1682     }
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1683     public static org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue parseFrom(
1684         byte[] data,
1685         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1686         throws com.google.protobuf.InvalidProtocolBufferException {
1687       return PARSER.parseFrom(data, extensionRegistry);
1688     }
parseFrom(java.io.InputStream input)1689     public static org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue parseFrom(java.io.InputStream input)
1690         throws java.io.IOException {
1691       return PARSER.parseFrom(input);
1692     }
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1693     public static org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue parseFrom(
1694         java.io.InputStream input,
1695         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1696         throws java.io.IOException {
1697       return PARSER.parseFrom(input, extensionRegistry);
1698     }
parseDelimitedFrom(java.io.InputStream input)1699     public static org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue parseDelimitedFrom(java.io.InputStream input)
1700         throws java.io.IOException {
1701       return PARSER.parseDelimitedFrom(input);
1702     }
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1703     public static org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue parseDelimitedFrom(
1704         java.io.InputStream input,
1705         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1706         throws java.io.IOException {
1707       return PARSER.parseDelimitedFrom(input, extensionRegistry);
1708     }
parseFrom( com.google.protobuf.CodedInputStream input)1709     public static org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue parseFrom(
1710         com.google.protobuf.CodedInputStream input)
1711         throws java.io.IOException {
1712       return PARSER.parseFrom(input);
1713     }
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1714     public static org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue parseFrom(
1715         com.google.protobuf.CodedInputStream input,
1716         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1717         throws java.io.IOException {
1718       return PARSER.parseFrom(input, extensionRegistry);
1719     }
1720 
newBuilder()1721     public static Builder newBuilder() { return Builder.create(); }
newBuilderForType()1722     public Builder newBuilderForType() { return newBuilder(); }
newBuilder(org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue prototype)1723     public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue prototype) {
1724       return newBuilder().mergeFrom(prototype);
1725     }
toBuilder()1726     public Builder toBuilder() { return newBuilder(this); }
1727 
1728     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent)1729     protected Builder newBuilderForType(
1730         com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1731       Builder builder = new Builder(parent);
1732       return builder;
1733     }
1734     /**
1735      * Protobuf type {@code KeyValue}
1736      *
1737      * <pre>
1738      **
1739      * Protocol buffer version of KeyValue.
1740      * It doesn't have those transient parameters
1741      * </pre>
1742      */
1743     public static final class Builder extends
1744         com.google.protobuf.GeneratedMessage.Builder<Builder>
1745        implements org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValueOrBuilder {
1746       public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor()1747           getDescriptor() {
1748         return org.apache.hadoop.hbase.protobuf.generated.CellProtos.internal_static_KeyValue_descriptor;
1749       }
1750 
1751       protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()1752           internalGetFieldAccessorTable() {
1753         return org.apache.hadoop.hbase.protobuf.generated.CellProtos.internal_static_KeyValue_fieldAccessorTable
1754             .ensureFieldAccessorsInitialized(
1755                 org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue.class, org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue.Builder.class);
1756       }
1757 
1758       // Construct using org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue.newBuilder()
Builder()1759       private Builder() {
1760         maybeForceBuilderInitialization();
1761       }
1762 
Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent)1763       private Builder(
1764           com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1765         super(parent);
1766         maybeForceBuilderInitialization();
1767       }
maybeForceBuilderInitialization()1768       private void maybeForceBuilderInitialization() {
1769         if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1770         }
1771       }
create()1772       private static Builder create() {
1773         return new Builder();
1774       }
1775 
clear()1776       public Builder clear() {
1777         super.clear();
1778         row_ = com.google.protobuf.ByteString.EMPTY;
1779         bitField0_ = (bitField0_ & ~0x00000001);
1780         family_ = com.google.protobuf.ByteString.EMPTY;
1781         bitField0_ = (bitField0_ & ~0x00000002);
1782         qualifier_ = com.google.protobuf.ByteString.EMPTY;
1783         bitField0_ = (bitField0_ & ~0x00000004);
1784         timestamp_ = 0L;
1785         bitField0_ = (bitField0_ & ~0x00000008);
1786         keyType_ = org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType.MINIMUM;
1787         bitField0_ = (bitField0_ & ~0x00000010);
1788         value_ = com.google.protobuf.ByteString.EMPTY;
1789         bitField0_ = (bitField0_ & ~0x00000020);
1790         tags_ = com.google.protobuf.ByteString.EMPTY;
1791         bitField0_ = (bitField0_ & ~0x00000040);
1792         return this;
1793       }
1794 
clone()1795       public Builder clone() {
1796         return create().mergeFrom(buildPartial());
1797       }
1798 
1799       public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()1800           getDescriptorForType() {
1801         return org.apache.hadoop.hbase.protobuf.generated.CellProtos.internal_static_KeyValue_descriptor;
1802       }
1803 
getDefaultInstanceForType()1804       public org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue getDefaultInstanceForType() {
1805         return org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue.getDefaultInstance();
1806       }
1807 
build()1808       public org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue build() {
1809         org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue result = buildPartial();
1810         if (!result.isInitialized()) {
1811           throw newUninitializedMessageException(result);
1812         }
1813         return result;
1814       }
1815 
buildPartial()1816       public org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue buildPartial() {
1817         org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue result = new org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue(this);
1818         int from_bitField0_ = bitField0_;
1819         int to_bitField0_ = 0;
1820         if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1821           to_bitField0_ |= 0x00000001;
1822         }
1823         result.row_ = row_;
1824         if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
1825           to_bitField0_ |= 0x00000002;
1826         }
1827         result.family_ = family_;
1828         if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
1829           to_bitField0_ |= 0x00000004;
1830         }
1831         result.qualifier_ = qualifier_;
1832         if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
1833           to_bitField0_ |= 0x00000008;
1834         }
1835         result.timestamp_ = timestamp_;
1836         if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
1837           to_bitField0_ |= 0x00000010;
1838         }
1839         result.keyType_ = keyType_;
1840         if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
1841           to_bitField0_ |= 0x00000020;
1842         }
1843         result.value_ = value_;
1844         if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
1845           to_bitField0_ |= 0x00000040;
1846         }
1847         result.tags_ = tags_;
1848         result.bitField0_ = to_bitField0_;
1849         onBuilt();
1850         return result;
1851       }
1852 
mergeFrom(com.google.protobuf.Message other)1853       public Builder mergeFrom(com.google.protobuf.Message other) {
1854         if (other instanceof org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue) {
1855           return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue)other);
1856         } else {
1857           super.mergeFrom(other);
1858           return this;
1859         }
1860       }
1861 
mergeFrom(org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue other)1862       public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue other) {
1863         if (other == org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue.getDefaultInstance()) return this;
1864         if (other.hasRow()) {
1865           setRow(other.getRow());
1866         }
1867         if (other.hasFamily()) {
1868           setFamily(other.getFamily());
1869         }
1870         if (other.hasQualifier()) {
1871           setQualifier(other.getQualifier());
1872         }
1873         if (other.hasTimestamp()) {
1874           setTimestamp(other.getTimestamp());
1875         }
1876         if (other.hasKeyType()) {
1877           setKeyType(other.getKeyType());
1878         }
1879         if (other.hasValue()) {
1880           setValue(other.getValue());
1881         }
1882         if (other.hasTags()) {
1883           setTags(other.getTags());
1884         }
1885         this.mergeUnknownFields(other.getUnknownFields());
1886         return this;
1887       }
1888 
isInitialized()1889       public final boolean isInitialized() {
1890         if (!hasRow()) {
1891 
1892           return false;
1893         }
1894         if (!hasFamily()) {
1895 
1896           return false;
1897         }
1898         if (!hasQualifier()) {
1899 
1900           return false;
1901         }
1902         return true;
1903       }
1904 
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1905       public Builder mergeFrom(
1906           com.google.protobuf.CodedInputStream input,
1907           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1908           throws java.io.IOException {
1909         org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue parsedMessage = null;
1910         try {
1911           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
1912         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1913           parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.CellProtos.KeyValue) e.getUnfinishedMessage();
1914           throw e;
1915         } finally {
1916           if (parsedMessage != null) {
1917             mergeFrom(parsedMessage);
1918           }
1919         }
1920         return this;
1921       }
1922       private int bitField0_;
1923 
1924       // required bytes row = 1;
1925       private com.google.protobuf.ByteString row_ = com.google.protobuf.ByteString.EMPTY;
1926       /**
1927        * <code>required bytes row = 1;</code>
1928        */
hasRow()1929       public boolean hasRow() {
1930         return ((bitField0_ & 0x00000001) == 0x00000001);
1931       }
1932       /**
1933        * <code>required bytes row = 1;</code>
1934        */
getRow()1935       public com.google.protobuf.ByteString getRow() {
1936         return row_;
1937       }
1938       /**
1939        * <code>required bytes row = 1;</code>
1940        */
setRow(com.google.protobuf.ByteString value)1941       public Builder setRow(com.google.protobuf.ByteString value) {
1942         if (value == null) {
1943     throw new NullPointerException();
1944   }
1945   bitField0_ |= 0x00000001;
1946         row_ = value;
1947         onChanged();
1948         return this;
1949       }
1950       /**
1951        * <code>required bytes row = 1;</code>
1952        */
clearRow()1953       public Builder clearRow() {
1954         bitField0_ = (bitField0_ & ~0x00000001);
1955         row_ = getDefaultInstance().getRow();
1956         onChanged();
1957         return this;
1958       }
1959 
1960       // required bytes family = 2;
1961       private com.google.protobuf.ByteString family_ = com.google.protobuf.ByteString.EMPTY;
1962       /**
1963        * <code>required bytes family = 2;</code>
1964        */
hasFamily()1965       public boolean hasFamily() {
1966         return ((bitField0_ & 0x00000002) == 0x00000002);
1967       }
1968       /**
1969        * <code>required bytes family = 2;</code>
1970        */
getFamily()1971       public com.google.protobuf.ByteString getFamily() {
1972         return family_;
1973       }
1974       /**
1975        * <code>required bytes family = 2;</code>
1976        */
setFamily(com.google.protobuf.ByteString value)1977       public Builder setFamily(com.google.protobuf.ByteString value) {
1978         if (value == null) {
1979     throw new NullPointerException();
1980   }
1981   bitField0_ |= 0x00000002;
1982         family_ = value;
1983         onChanged();
1984         return this;
1985       }
1986       /**
1987        * <code>required bytes family = 2;</code>
1988        */
clearFamily()1989       public Builder clearFamily() {
1990         bitField0_ = (bitField0_ & ~0x00000002);
1991         family_ = getDefaultInstance().getFamily();
1992         onChanged();
1993         return this;
1994       }
1995 
1996       // required bytes qualifier = 3;
1997       private com.google.protobuf.ByteString qualifier_ = com.google.protobuf.ByteString.EMPTY;
1998       /**
1999        * <code>required bytes qualifier = 3;</code>
2000        */
hasQualifier()2001       public boolean hasQualifier() {
2002         return ((bitField0_ & 0x00000004) == 0x00000004);
2003       }
2004       /**
2005        * <code>required bytes qualifier = 3;</code>
2006        */
getQualifier()2007       public com.google.protobuf.ByteString getQualifier() {
2008         return qualifier_;
2009       }
2010       /**
2011        * <code>required bytes qualifier = 3;</code>
2012        */
setQualifier(com.google.protobuf.ByteString value)2013       public Builder setQualifier(com.google.protobuf.ByteString value) {
2014         if (value == null) {
2015     throw new NullPointerException();
2016   }
2017   bitField0_ |= 0x00000004;
2018         qualifier_ = value;
2019         onChanged();
2020         return this;
2021       }
2022       /**
2023        * <code>required bytes qualifier = 3;</code>
2024        */
clearQualifier()2025       public Builder clearQualifier() {
2026         bitField0_ = (bitField0_ & ~0x00000004);
2027         qualifier_ = getDefaultInstance().getQualifier();
2028         onChanged();
2029         return this;
2030       }
2031 
2032       // optional uint64 timestamp = 4;
2033       private long timestamp_ ;
2034       /**
2035        * <code>optional uint64 timestamp = 4;</code>
2036        */
hasTimestamp()2037       public boolean hasTimestamp() {
2038         return ((bitField0_ & 0x00000008) == 0x00000008);
2039       }
2040       /**
2041        * <code>optional uint64 timestamp = 4;</code>
2042        */
getTimestamp()2043       public long getTimestamp() {
2044         return timestamp_;
2045       }
2046       /**
2047        * <code>optional uint64 timestamp = 4;</code>
2048        */
setTimestamp(long value)2049       public Builder setTimestamp(long value) {
2050         bitField0_ |= 0x00000008;
2051         timestamp_ = value;
2052         onChanged();
2053         return this;
2054       }
2055       /**
2056        * <code>optional uint64 timestamp = 4;</code>
2057        */
clearTimestamp()2058       public Builder clearTimestamp() {
2059         bitField0_ = (bitField0_ & ~0x00000008);
2060         timestamp_ = 0L;
2061         onChanged();
2062         return this;
2063       }
2064 
2065       // optional .CellType key_type = 5;
2066       private org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType keyType_ = org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType.MINIMUM;
2067       /**
2068        * <code>optional .CellType key_type = 5;</code>
2069        */
hasKeyType()2070       public boolean hasKeyType() {
2071         return ((bitField0_ & 0x00000010) == 0x00000010);
2072       }
2073       /**
2074        * <code>optional .CellType key_type = 5;</code>
2075        */
getKeyType()2076       public org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType getKeyType() {
2077         return keyType_;
2078       }
2079       /**
2080        * <code>optional .CellType key_type = 5;</code>
2081        */
setKeyType(org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType value)2082       public Builder setKeyType(org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType value) {
2083         if (value == null) {
2084           throw new NullPointerException();
2085         }
2086         bitField0_ |= 0x00000010;
2087         keyType_ = value;
2088         onChanged();
2089         return this;
2090       }
2091       /**
2092        * <code>optional .CellType key_type = 5;</code>
2093        */
clearKeyType()2094       public Builder clearKeyType() {
2095         bitField0_ = (bitField0_ & ~0x00000010);
2096         keyType_ = org.apache.hadoop.hbase.protobuf.generated.CellProtos.CellType.MINIMUM;
2097         onChanged();
2098         return this;
2099       }
2100 
2101       // optional bytes value = 6;
2102       private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
2103       /**
2104        * <code>optional bytes value = 6;</code>
2105        */
hasValue()2106       public boolean hasValue() {
2107         return ((bitField0_ & 0x00000020) == 0x00000020);
2108       }
2109       /**
2110        * <code>optional bytes value = 6;</code>
2111        */
getValue()2112       public com.google.protobuf.ByteString getValue() {
2113         return value_;
2114       }
2115       /**
2116        * <code>optional bytes value = 6;</code>
2117        */
setValue(com.google.protobuf.ByteString value)2118       public Builder setValue(com.google.protobuf.ByteString value) {
2119         if (value == null) {
2120     throw new NullPointerException();
2121   }
2122   bitField0_ |= 0x00000020;
2123         value_ = value;
2124         onChanged();
2125         return this;
2126       }
2127       /**
2128        * <code>optional bytes value = 6;</code>
2129        */
clearValue()2130       public Builder clearValue() {
2131         bitField0_ = (bitField0_ & ~0x00000020);
2132         value_ = getDefaultInstance().getValue();
2133         onChanged();
2134         return this;
2135       }
2136 
2137       // optional bytes tags = 7;
2138       private com.google.protobuf.ByteString tags_ = com.google.protobuf.ByteString.EMPTY;
2139       /**
2140        * <code>optional bytes tags = 7;</code>
2141        */
hasTags()2142       public boolean hasTags() {
2143         return ((bitField0_ & 0x00000040) == 0x00000040);
2144       }
2145       /**
2146        * <code>optional bytes tags = 7;</code>
2147        */
getTags()2148       public com.google.protobuf.ByteString getTags() {
2149         return tags_;
2150       }
2151       /**
2152        * <code>optional bytes tags = 7;</code>
2153        */
setTags(com.google.protobuf.ByteString value)2154       public Builder setTags(com.google.protobuf.ByteString value) {
2155         if (value == null) {
2156     throw new NullPointerException();
2157   }
2158   bitField0_ |= 0x00000040;
2159         tags_ = value;
2160         onChanged();
2161         return this;
2162       }
2163       /**
2164        * <code>optional bytes tags = 7;</code>
2165        */
clearTags()2166       public Builder clearTags() {
2167         bitField0_ = (bitField0_ & ~0x00000040);
2168         tags_ = getDefaultInstance().getTags();
2169         onChanged();
2170         return this;
2171       }
2172 
2173       // @@protoc_insertion_point(builder_scope:KeyValue)
2174     }
2175 
2176     static {
2177       defaultInstance = new KeyValue(true);
defaultInstance.initFields()2178       defaultInstance.initFields();
2179     }
2180 
2181     // @@protoc_insertion_point(class_scope:KeyValue)
2182   }
2183 
2184   private static com.google.protobuf.Descriptors.Descriptor
2185     internal_static_Cell_descriptor;
2186   private static
2187     com.google.protobuf.GeneratedMessage.FieldAccessorTable
2188       internal_static_Cell_fieldAccessorTable;
2189   private static com.google.protobuf.Descriptors.Descriptor
2190     internal_static_KeyValue_descriptor;
2191   private static
2192     com.google.protobuf.GeneratedMessage.FieldAccessorTable
2193       internal_static_KeyValue_fieldAccessorTable;
2194 
2195   public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor()2196       getDescriptor() {
2197     return descriptor;
2198   }
2199   private static com.google.protobuf.Descriptors.FileDescriptor
2200       descriptor;
2201   static {
2202     java.lang.String[] descriptorData = {
2203       "\n\nCell.proto\"\204\001\n\004Cell\022\013\n\003row\030\001 \001(\014\022\016\n\006fa" +
2204       "mily\030\002 \001(\014\022\021\n\tqualifier\030\003 \001(\014\022\021\n\ttimesta" +
2205       "mp\030\004 \001(\004\022\034\n\tcell_type\030\005 \001(\0162\t.CellType\022\r" +
2206       "\n\005value\030\006 \001(\014\022\014\n\004tags\030\007 \001(\014\"\207\001\n\010KeyValue" +
2207       "\022\013\n\003row\030\001 \002(\014\022\016\n\006family\030\002 \002(\014\022\021\n\tqualifi" +
2208       "er\030\003 \002(\014\022\021\n\ttimestamp\030\004 \001(\004\022\033\n\010key_type\030" +
2209       "\005 \001(\0162\t.CellType\022\r\n\005value\030\006 \001(\014\022\014\n\004tags\030" +
2210       "\007 \001(\014*`\n\010CellType\022\013\n\007MINIMUM\020\000\022\007\n\003PUT\020\004\022" +
2211       "\n\n\006DELETE\020\010\022\021\n\rDELETE_COLUMN\020\014\022\021\n\rDELETE" +
2212       "_FAMILY\020\016\022\014\n\007MAXIMUM\020\377\001B=\n*org.apache.ha",
2213       "doop.hbase.protobuf.generatedB\nCellProto" +
2214       "sH\001\240\001\001"
2215     };
2216     com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
2217       new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
2218         public com.google.protobuf.ExtensionRegistry assignDescriptors(
2219             com.google.protobuf.Descriptors.FileDescriptor root) {
2220           descriptor = root;
2221           internal_static_Cell_descriptor =
2222             getDescriptor().getMessageTypes().get(0);
2223           internal_static_Cell_fieldAccessorTable = new
2224             com.google.protobuf.GeneratedMessage.FieldAccessorTable(
2225               internal_static_Cell_descriptor,
2226               new java.lang.String[] { "Row", "Family", "Qualifier", "Timestamp", "CellType", "Value", "Tags", });
2227           internal_static_KeyValue_descriptor =
2228             getDescriptor().getMessageTypes().get(1);
2229           internal_static_KeyValue_fieldAccessorTable = new
2230             com.google.protobuf.GeneratedMessage.FieldAccessorTable(
2231               internal_static_KeyValue_descriptor,
2232               new java.lang.String[] { "Row", "Family", "Qualifier", "Timestamp", "KeyType", "Value", "Tags", });
2233           return null;
2234         }
2235       };
2236     com.google.protobuf.Descriptors.FileDescriptor
internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner)2237       .internalBuildGeneratedFileFrom(descriptorData,
2238         new com.google.protobuf.Descriptors.FileDescriptor[] {
2239         }, assigner);
2240   }
2241 
2242   // @@protoc_insertion_point(outer_class_scope)
2243 }
2244