1
2
3
4 package org.apache.hadoop.hbase.protobuf.generated;
5
6 public final class ClientProtos {
7 private ClientProtos() {}
8 public static void registerAllExtensions(
9 com.google.protobuf.ExtensionRegistry registry) {
10 }
11 public interface ColumnOrBuilder
12 extends com.google.protobuf.MessageOrBuilder {
13
14
15 boolean hasFamily();
16 com.google.protobuf.ByteString getFamily();
17
18
19 java.util.List<com.google.protobuf.ByteString> getQualifierList();
20 int getQualifierCount();
21 com.google.protobuf.ByteString getQualifier(int index);
22 }
23 public static final class Column extends
24 com.google.protobuf.GeneratedMessage
25 implements ColumnOrBuilder {
26
27 private Column(Builder builder) {
28 super(builder);
29 }
30 private Column(boolean noInit) {}
31
32 private static final Column defaultInstance;
33 public static Column getDefaultInstance() {
34 return defaultInstance;
35 }
36
37 public Column getDefaultInstanceForType() {
38 return defaultInstance;
39 }
40
41 public static final com.google.protobuf.Descriptors.Descriptor
42 getDescriptor() {
43 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_Column_descriptor;
44 }
45
46 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
47 internalGetFieldAccessorTable() {
48 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_Column_fieldAccessorTable;
49 }
50
51 private int bitField0_;
52
53 public static final int FAMILY_FIELD_NUMBER = 1;
54 private com.google.protobuf.ByteString family_;
55 public boolean hasFamily() {
56 return ((bitField0_ & 0x00000001) == 0x00000001);
57 }
58 public com.google.protobuf.ByteString getFamily() {
59 return family_;
60 }
61
62
63 public static final int QUALIFIER_FIELD_NUMBER = 2;
64 private java.util.List<com.google.protobuf.ByteString> qualifier_;
65 public java.util.List<com.google.protobuf.ByteString>
66 getQualifierList() {
67 return qualifier_;
68 }
69 public int getQualifierCount() {
70 return qualifier_.size();
71 }
72 public com.google.protobuf.ByteString getQualifier(int index) {
73 return qualifier_.get(index);
74 }
75
76 private void initFields() {
77 family_ = com.google.protobuf.ByteString.EMPTY;
78 qualifier_ = java.util.Collections.emptyList();;
79 }
80 private byte memoizedIsInitialized = -1;
81 public final boolean isInitialized() {
82 byte isInitialized = memoizedIsInitialized;
83 if (isInitialized != -1) return isInitialized == 1;
84
85 if (!hasFamily()) {
86 memoizedIsInitialized = 0;
87 return false;
88 }
89 memoizedIsInitialized = 1;
90 return true;
91 }
92
93 public void writeTo(com.google.protobuf.CodedOutputStream output)
94 throws java.io.IOException {
95 getSerializedSize();
96 if (((bitField0_ & 0x00000001) == 0x00000001)) {
97 output.writeBytes(1, family_);
98 }
99 for (int i = 0; i < qualifier_.size(); i++) {
100 output.writeBytes(2, qualifier_.get(i));
101 }
102 getUnknownFields().writeTo(output);
103 }
104
105 private int memoizedSerializedSize = -1;
106 public int getSerializedSize() {
107 int size = memoizedSerializedSize;
108 if (size != -1) return size;
109
110 size = 0;
111 if (((bitField0_ & 0x00000001) == 0x00000001)) {
112 size += com.google.protobuf.CodedOutputStream
113 .computeBytesSize(1, family_);
114 }
115 {
116 int dataSize = 0;
117 for (int i = 0; i < qualifier_.size(); i++) {
118 dataSize += com.google.protobuf.CodedOutputStream
119 .computeBytesSizeNoTag(qualifier_.get(i));
120 }
121 size += dataSize;
122 size += 1 * getQualifierList().size();
123 }
124 size += getUnknownFields().getSerializedSize();
125 memoizedSerializedSize = size;
126 return size;
127 }
128
129 private static final long serialVersionUID = 0L;
130 @java.lang.Override
131 protected java.lang.Object writeReplace()
132 throws java.io.ObjectStreamException {
133 return super.writeReplace();
134 }
135
136 @java.lang.Override
137 public boolean equals(final java.lang.Object obj) {
138 if (obj == this) {
139 return true;
140 }
141 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column)) {
142 return super.equals(obj);
143 }
144 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column other = (org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column) obj;
145
146 boolean result = true;
147 result = result && (hasFamily() == other.hasFamily());
148 if (hasFamily()) {
149 result = result && getFamily()
150 .equals(other.getFamily());
151 }
152 result = result && getQualifierList()
153 .equals(other.getQualifierList());
154 result = result &&
155 getUnknownFields().equals(other.getUnknownFields());
156 return result;
157 }
158
159 @java.lang.Override
160 public int hashCode() {
161 int hash = 41;
162 hash = (19 * hash) + getDescriptorForType().hashCode();
163 if (hasFamily()) {
164 hash = (37 * hash) + FAMILY_FIELD_NUMBER;
165 hash = (53 * hash) + getFamily().hashCode();
166 }
167 if (getQualifierCount() > 0) {
168 hash = (37 * hash) + QUALIFIER_FIELD_NUMBER;
169 hash = (53 * hash) + getQualifierList().hashCode();
170 }
171 hash = (29 * hash) + getUnknownFields().hashCode();
172 return hash;
173 }
174
175 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column parseFrom(
176 com.google.protobuf.ByteString data)
177 throws com.google.protobuf.InvalidProtocolBufferException {
178 return newBuilder().mergeFrom(data).buildParsed();
179 }
180 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column parseFrom(
181 com.google.protobuf.ByteString data,
182 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
183 throws com.google.protobuf.InvalidProtocolBufferException {
184 return newBuilder().mergeFrom(data, extensionRegistry)
185 .buildParsed();
186 }
187 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column parseFrom(byte[] data)
188 throws com.google.protobuf.InvalidProtocolBufferException {
189 return newBuilder().mergeFrom(data).buildParsed();
190 }
191 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column parseFrom(
192 byte[] data,
193 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
194 throws com.google.protobuf.InvalidProtocolBufferException {
195 return newBuilder().mergeFrom(data, extensionRegistry)
196 .buildParsed();
197 }
198 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column parseFrom(java.io.InputStream input)
199 throws java.io.IOException {
200 return newBuilder().mergeFrom(input).buildParsed();
201 }
202 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column parseFrom(
203 java.io.InputStream input,
204 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
205 throws java.io.IOException {
206 return newBuilder().mergeFrom(input, extensionRegistry)
207 .buildParsed();
208 }
209 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column parseDelimitedFrom(java.io.InputStream input)
210 throws java.io.IOException {
211 Builder builder = newBuilder();
212 if (builder.mergeDelimitedFrom(input)) {
213 return builder.buildParsed();
214 } else {
215 return null;
216 }
217 }
218 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column parseDelimitedFrom(
219 java.io.InputStream input,
220 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
221 throws java.io.IOException {
222 Builder builder = newBuilder();
223 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
224 return builder.buildParsed();
225 } else {
226 return null;
227 }
228 }
229 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column parseFrom(
230 com.google.protobuf.CodedInputStream input)
231 throws java.io.IOException {
232 return newBuilder().mergeFrom(input).buildParsed();
233 }
234 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column parseFrom(
235 com.google.protobuf.CodedInputStream input,
236 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
237 throws java.io.IOException {
238 return newBuilder().mergeFrom(input, extensionRegistry)
239 .buildParsed();
240 }
241
242 public static Builder newBuilder() { return Builder.create(); }
243 public Builder newBuilderForType() { return newBuilder(); }
244 public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column prototype) {
245 return newBuilder().mergeFrom(prototype);
246 }
247 public Builder toBuilder() { return newBuilder(this); }
248
249 @java.lang.Override
250 protected Builder newBuilderForType(
251 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
252 Builder builder = new Builder(parent);
253 return builder;
254 }
255 public static final class Builder extends
256 com.google.protobuf.GeneratedMessage.Builder<Builder>
257 implements org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ColumnOrBuilder {
258 public static final com.google.protobuf.Descriptors.Descriptor
259 getDescriptor() {
260 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_Column_descriptor;
261 }
262
263 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
264 internalGetFieldAccessorTable() {
265 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_Column_fieldAccessorTable;
266 }
267
268
269 private Builder() {
270 maybeForceBuilderInitialization();
271 }
272
273 private Builder(BuilderParent parent) {
274 super(parent);
275 maybeForceBuilderInitialization();
276 }
277 private void maybeForceBuilderInitialization() {
278 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
279 }
280 }
281 private static Builder create() {
282 return new Builder();
283 }
284
285 public Builder clear() {
286 super.clear();
287 family_ = com.google.protobuf.ByteString.EMPTY;
288 bitField0_ = (bitField0_ & ~0x00000001);
289 qualifier_ = java.util.Collections.emptyList();;
290 bitField0_ = (bitField0_ & ~0x00000002);
291 return this;
292 }
293
294 public Builder clone() {
295 return create().mergeFrom(buildPartial());
296 }
297
298 public com.google.protobuf.Descriptors.Descriptor
299 getDescriptorForType() {
300 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column.getDescriptor();
301 }
302
303 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column getDefaultInstanceForType() {
304 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column.getDefaultInstance();
305 }
306
307 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column build() {
308 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column result = buildPartial();
309 if (!result.isInitialized()) {
310 throw newUninitializedMessageException(result);
311 }
312 return result;
313 }
314
315 private org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column buildParsed()
316 throws com.google.protobuf.InvalidProtocolBufferException {
317 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column result = buildPartial();
318 if (!result.isInitialized()) {
319 throw newUninitializedMessageException(
320 result).asInvalidProtocolBufferException();
321 }
322 return result;
323 }
324
325 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column buildPartial() {
326 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column result = new org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column(this);
327 int from_bitField0_ = bitField0_;
328 int to_bitField0_ = 0;
329 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
330 to_bitField0_ |= 0x00000001;
331 }
332 result.family_ = family_;
333 if (((bitField0_ & 0x00000002) == 0x00000002)) {
334 qualifier_ = java.util.Collections.unmodifiableList(qualifier_);
335 bitField0_ = (bitField0_ & ~0x00000002);
336 }
337 result.qualifier_ = qualifier_;
338 result.bitField0_ = to_bitField0_;
339 onBuilt();
340 return result;
341 }
342
343 public Builder mergeFrom(com.google.protobuf.Message other) {
344 if (other instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column) {
345 return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column)other);
346 } else {
347 super.mergeFrom(other);
348 return this;
349 }
350 }
351
352 public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column other) {
353 if (other == org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column.getDefaultInstance()) return this;
354 if (other.hasFamily()) {
355 setFamily(other.getFamily());
356 }
357 if (!other.qualifier_.isEmpty()) {
358 if (qualifier_.isEmpty()) {
359 qualifier_ = other.qualifier_;
360 bitField0_ = (bitField0_ & ~0x00000002);
361 } else {
362 ensureQualifierIsMutable();
363 qualifier_.addAll(other.qualifier_);
364 }
365 onChanged();
366 }
367 this.mergeUnknownFields(other.getUnknownFields());
368 return this;
369 }
370
371 public final boolean isInitialized() {
372 if (!hasFamily()) {
373
374 return false;
375 }
376 return true;
377 }
378
379 public Builder mergeFrom(
380 com.google.protobuf.CodedInputStream input,
381 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
382 throws java.io.IOException {
383 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
384 com.google.protobuf.UnknownFieldSet.newBuilder(
385 this.getUnknownFields());
386 while (true) {
387 int tag = input.readTag();
388 switch (tag) {
389 case 0:
390 this.setUnknownFields(unknownFields.build());
391 onChanged();
392 return this;
393 default: {
394 if (!parseUnknownField(input, unknownFields,
395 extensionRegistry, tag)) {
396 this.setUnknownFields(unknownFields.build());
397 onChanged();
398 return this;
399 }
400 break;
401 }
402 case 10: {
403 bitField0_ |= 0x00000001;
404 family_ = input.readBytes();
405 break;
406 }
407 case 18: {
408 ensureQualifierIsMutable();
409 qualifier_.add(input.readBytes());
410 break;
411 }
412 }
413 }
414 }
415
416 private int bitField0_;
417
418
419 private com.google.protobuf.ByteString family_ = com.google.protobuf.ByteString.EMPTY;
420 public boolean hasFamily() {
421 return ((bitField0_ & 0x00000001) == 0x00000001);
422 }
423 public com.google.protobuf.ByteString getFamily() {
424 return family_;
425 }
426 public Builder setFamily(com.google.protobuf.ByteString value) {
427 if (value == null) {
428 throw new NullPointerException();
429 }
430 bitField0_ |= 0x00000001;
431 family_ = value;
432 onChanged();
433 return this;
434 }
435 public Builder clearFamily() {
436 bitField0_ = (bitField0_ & ~0x00000001);
437 family_ = getDefaultInstance().getFamily();
438 onChanged();
439 return this;
440 }
441
442
443 private java.util.List<com.google.protobuf.ByteString> qualifier_ = java.util.Collections.emptyList();;
444 private void ensureQualifierIsMutable() {
445 if (!((bitField0_ & 0x00000002) == 0x00000002)) {
446 qualifier_ = new java.util.ArrayList<com.google.protobuf.ByteString>(qualifier_);
447 bitField0_ |= 0x00000002;
448 }
449 }
450 public java.util.List<com.google.protobuf.ByteString>
451 getQualifierList() {
452 return java.util.Collections.unmodifiableList(qualifier_);
453 }
454 public int getQualifierCount() {
455 return qualifier_.size();
456 }
457 public com.google.protobuf.ByteString getQualifier(int index) {
458 return qualifier_.get(index);
459 }
460 public Builder setQualifier(
461 int index, com.google.protobuf.ByteString value) {
462 if (value == null) {
463 throw new NullPointerException();
464 }
465 ensureQualifierIsMutable();
466 qualifier_.set(index, value);
467 onChanged();
468 return this;
469 }
470 public Builder addQualifier(com.google.protobuf.ByteString value) {
471 if (value == null) {
472 throw new NullPointerException();
473 }
474 ensureQualifierIsMutable();
475 qualifier_.add(value);
476 onChanged();
477 return this;
478 }
479 public Builder addAllQualifier(
480 java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {
481 ensureQualifierIsMutable();
482 super.addAll(values, qualifier_);
483 onChanged();
484 return this;
485 }
486 public Builder clearQualifier() {
487 qualifier_ = java.util.Collections.emptyList();;
488 bitField0_ = (bitField0_ & ~0x00000002);
489 onChanged();
490 return this;
491 }
492
493
494 }
495
496 static {
497 defaultInstance = new Column(true);
498 defaultInstance.initFields();
499 }
500
501
502 }
503
504 public interface GetOrBuilder
505 extends com.google.protobuf.MessageOrBuilder {
506
507
508 boolean hasRow();
509 com.google.protobuf.ByteString getRow();
510
511
512 java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column>
513 getColumnList();
514 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column getColumn(int index);
515 int getColumnCount();
516 java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ColumnOrBuilder>
517 getColumnOrBuilderList();
518 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ColumnOrBuilder getColumnOrBuilder(
519 int index);
520
521
522 java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair>
523 getAttributeList();
524 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair getAttribute(int index);
525 int getAttributeCount();
526 java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder>
527 getAttributeOrBuilderList();
528 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder getAttributeOrBuilder(
529 int index);
530
531
532 boolean hasFilter();
533 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter getFilter();
534 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FilterOrBuilder getFilterOrBuilder();
535
536
537 boolean hasTimeRange();
538 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange getTimeRange();
539 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRangeOrBuilder getTimeRangeOrBuilder();
540
541
542 boolean hasMaxVersions();
543 int getMaxVersions();
544
545
546 boolean hasCacheBlocks();
547 boolean getCacheBlocks();
548
549
550 boolean hasStoreLimit();
551 int getStoreLimit();
552
553
554 boolean hasStoreOffset();
555 int getStoreOffset();
556 }
557 public static final class Get extends
558 com.google.protobuf.GeneratedMessage
559 implements GetOrBuilder {
560
561 private Get(Builder builder) {
562 super(builder);
563 }
564 private Get(boolean noInit) {}
565
566 private static final Get defaultInstance;
567 public static Get getDefaultInstance() {
568 return defaultInstance;
569 }
570
571 public Get getDefaultInstanceForType() {
572 return defaultInstance;
573 }
574
575 public static final com.google.protobuf.Descriptors.Descriptor
576 getDescriptor() {
577 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_Get_descriptor;
578 }
579
580 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
581 internalGetFieldAccessorTable() {
582 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_Get_fieldAccessorTable;
583 }
584
585 private int bitField0_;
586
587 public static final int ROW_FIELD_NUMBER = 1;
588 private com.google.protobuf.ByteString row_;
589 public boolean hasRow() {
590 return ((bitField0_ & 0x00000001) == 0x00000001);
591 }
592 public com.google.protobuf.ByteString getRow() {
593 return row_;
594 }
595
596
597 public static final int COLUMN_FIELD_NUMBER = 2;
598 private java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column> column_;
599 public java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column> getColumnList() {
600 return column_;
601 }
602 public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ColumnOrBuilder>
603 getColumnOrBuilderList() {
604 return column_;
605 }
606 public int getColumnCount() {
607 return column_.size();
608 }
609 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column getColumn(int index) {
610 return column_.get(index);
611 }
612 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ColumnOrBuilder getColumnOrBuilder(
613 int index) {
614 return column_.get(index);
615 }
616
617
618 public static final int ATTRIBUTE_FIELD_NUMBER = 3;
619 private java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair> attribute_;
620 public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair> getAttributeList() {
621 return attribute_;
622 }
623 public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder>
624 getAttributeOrBuilderList() {
625 return attribute_;
626 }
627 public int getAttributeCount() {
628 return attribute_.size();
629 }
630 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair getAttribute(int index) {
631 return attribute_.get(index);
632 }
633 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder getAttributeOrBuilder(
634 int index) {
635 return attribute_.get(index);
636 }
637
638
639 public static final int FILTER_FIELD_NUMBER = 4;
640 private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter filter_;
641 public boolean hasFilter() {
642 return ((bitField0_ & 0x00000002) == 0x00000002);
643 }
644 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter getFilter() {
645 return filter_;
646 }
647 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FilterOrBuilder getFilterOrBuilder() {
648 return filter_;
649 }
650
651
652 public static final int TIMERANGE_FIELD_NUMBER = 5;
653 private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange timeRange_;
654 public boolean hasTimeRange() {
655 return ((bitField0_ & 0x00000004) == 0x00000004);
656 }
657 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange getTimeRange() {
658 return timeRange_;
659 }
660 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRangeOrBuilder getTimeRangeOrBuilder() {
661 return timeRange_;
662 }
663
664
665 public static final int MAXVERSIONS_FIELD_NUMBER = 6;
666 private int maxVersions_;
667 public boolean hasMaxVersions() {
668 return ((bitField0_ & 0x00000008) == 0x00000008);
669 }
670 public int getMaxVersions() {
671 return maxVersions_;
672 }
673
674
675 public static final int CACHEBLOCKS_FIELD_NUMBER = 7;
676 private boolean cacheBlocks_;
677 public boolean hasCacheBlocks() {
678 return ((bitField0_ & 0x00000010) == 0x00000010);
679 }
680 public boolean getCacheBlocks() {
681 return cacheBlocks_;
682 }
683
684
685 public static final int STORELIMIT_FIELD_NUMBER = 8;
686 private int storeLimit_;
687 public boolean hasStoreLimit() {
688 return ((bitField0_ & 0x00000020) == 0x00000020);
689 }
690 public int getStoreLimit() {
691 return storeLimit_;
692 }
693
694
695 public static final int STOREOFFSET_FIELD_NUMBER = 9;
696 private int storeOffset_;
697 public boolean hasStoreOffset() {
698 return ((bitField0_ & 0x00000040) == 0x00000040);
699 }
700 public int getStoreOffset() {
701 return storeOffset_;
702 }
703
704 private void initFields() {
705 row_ = com.google.protobuf.ByteString.EMPTY;
706 column_ = java.util.Collections.emptyList();
707 attribute_ = java.util.Collections.emptyList();
708 filter_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter.getDefaultInstance();
709 timeRange_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.getDefaultInstance();
710 maxVersions_ = 1;
711 cacheBlocks_ = true;
712 storeLimit_ = 0;
713 storeOffset_ = 0;
714 }
715 private byte memoizedIsInitialized = -1;
716 public final boolean isInitialized() {
717 byte isInitialized = memoizedIsInitialized;
718 if (isInitialized != -1) return isInitialized == 1;
719
720 if (!hasRow()) {
721 memoizedIsInitialized = 0;
722 return false;
723 }
724 for (int i = 0; i < getColumnCount(); i++) {
725 if (!getColumn(i).isInitialized()) {
726 memoizedIsInitialized = 0;
727 return false;
728 }
729 }
730 for (int i = 0; i < getAttributeCount(); i++) {
731 if (!getAttribute(i).isInitialized()) {
732 memoizedIsInitialized = 0;
733 return false;
734 }
735 }
736 if (hasFilter()) {
737 if (!getFilter().isInitialized()) {
738 memoizedIsInitialized = 0;
739 return false;
740 }
741 }
742 memoizedIsInitialized = 1;
743 return true;
744 }
745
746 public void writeTo(com.google.protobuf.CodedOutputStream output)
747 throws java.io.IOException {
748 getSerializedSize();
749 if (((bitField0_ & 0x00000001) == 0x00000001)) {
750 output.writeBytes(1, row_);
751 }
752 for (int i = 0; i < column_.size(); i++) {
753 output.writeMessage(2, column_.get(i));
754 }
755 for (int i = 0; i < attribute_.size(); i++) {
756 output.writeMessage(3, attribute_.get(i));
757 }
758 if (((bitField0_ & 0x00000002) == 0x00000002)) {
759 output.writeMessage(4, filter_);
760 }
761 if (((bitField0_ & 0x00000004) == 0x00000004)) {
762 output.writeMessage(5, timeRange_);
763 }
764 if (((bitField0_ & 0x00000008) == 0x00000008)) {
765 output.writeUInt32(6, maxVersions_);
766 }
767 if (((bitField0_ & 0x00000010) == 0x00000010)) {
768 output.writeBool(7, cacheBlocks_);
769 }
770 if (((bitField0_ & 0x00000020) == 0x00000020)) {
771 output.writeUInt32(8, storeLimit_);
772 }
773 if (((bitField0_ & 0x00000040) == 0x00000040)) {
774 output.writeUInt32(9, storeOffset_);
775 }
776 getUnknownFields().writeTo(output);
777 }
778
779 private int memoizedSerializedSize = -1;
780 public int getSerializedSize() {
781 int size = memoizedSerializedSize;
782 if (size != -1) return size;
783
784 size = 0;
785 if (((bitField0_ & 0x00000001) == 0x00000001)) {
786 size += com.google.protobuf.CodedOutputStream
787 .computeBytesSize(1, row_);
788 }
789 for (int i = 0; i < column_.size(); i++) {
790 size += com.google.protobuf.CodedOutputStream
791 .computeMessageSize(2, column_.get(i));
792 }
793 for (int i = 0; i < attribute_.size(); i++) {
794 size += com.google.protobuf.CodedOutputStream
795 .computeMessageSize(3, attribute_.get(i));
796 }
797 if (((bitField0_ & 0x00000002) == 0x00000002)) {
798 size += com.google.protobuf.CodedOutputStream
799 .computeMessageSize(4, filter_);
800 }
801 if (((bitField0_ & 0x00000004) == 0x00000004)) {
802 size += com.google.protobuf.CodedOutputStream
803 .computeMessageSize(5, timeRange_);
804 }
805 if (((bitField0_ & 0x00000008) == 0x00000008)) {
806 size += com.google.protobuf.CodedOutputStream
807 .computeUInt32Size(6, maxVersions_);
808 }
809 if (((bitField0_ & 0x00000010) == 0x00000010)) {
810 size += com.google.protobuf.CodedOutputStream
811 .computeBoolSize(7, cacheBlocks_);
812 }
813 if (((bitField0_ & 0x00000020) == 0x00000020)) {
814 size += com.google.protobuf.CodedOutputStream
815 .computeUInt32Size(8, storeLimit_);
816 }
817 if (((bitField0_ & 0x00000040) == 0x00000040)) {
818 size += com.google.protobuf.CodedOutputStream
819 .computeUInt32Size(9, storeOffset_);
820 }
821 size += getUnknownFields().getSerializedSize();
822 memoizedSerializedSize = size;
823 return size;
824 }
825
826 private static final long serialVersionUID = 0L;
827 @java.lang.Override
828 protected java.lang.Object writeReplace()
829 throws java.io.ObjectStreamException {
830 return super.writeReplace();
831 }
832
833 @java.lang.Override
834 public boolean equals(final java.lang.Object obj) {
835 if (obj == this) {
836 return true;
837 }
838 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get)) {
839 return super.equals(obj);
840 }
841 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get other = (org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get) obj;
842
843 boolean result = true;
844 result = result && (hasRow() == other.hasRow());
845 if (hasRow()) {
846 result = result && getRow()
847 .equals(other.getRow());
848 }
849 result = result && getColumnList()
850 .equals(other.getColumnList());
851 result = result && getAttributeList()
852 .equals(other.getAttributeList());
853 result = result && (hasFilter() == other.hasFilter());
854 if (hasFilter()) {
855 result = result && getFilter()
856 .equals(other.getFilter());
857 }
858 result = result && (hasTimeRange() == other.hasTimeRange());
859 if (hasTimeRange()) {
860 result = result && getTimeRange()
861 .equals(other.getTimeRange());
862 }
863 result = result && (hasMaxVersions() == other.hasMaxVersions());
864 if (hasMaxVersions()) {
865 result = result && (getMaxVersions()
866 == other.getMaxVersions());
867 }
868 result = result && (hasCacheBlocks() == other.hasCacheBlocks());
869 if (hasCacheBlocks()) {
870 result = result && (getCacheBlocks()
871 == other.getCacheBlocks());
872 }
873 result = result && (hasStoreLimit() == other.hasStoreLimit());
874 if (hasStoreLimit()) {
875 result = result && (getStoreLimit()
876 == other.getStoreLimit());
877 }
878 result = result && (hasStoreOffset() == other.hasStoreOffset());
879 if (hasStoreOffset()) {
880 result = result && (getStoreOffset()
881 == other.getStoreOffset());
882 }
883 result = result &&
884 getUnknownFields().equals(other.getUnknownFields());
885 return result;
886 }
887
888 @java.lang.Override
889 public int hashCode() {
890 int hash = 41;
891 hash = (19 * hash) + getDescriptorForType().hashCode();
892 if (hasRow()) {
893 hash = (37 * hash) + ROW_FIELD_NUMBER;
894 hash = (53 * hash) + getRow().hashCode();
895 }
896 if (getColumnCount() > 0) {
897 hash = (37 * hash) + COLUMN_FIELD_NUMBER;
898 hash = (53 * hash) + getColumnList().hashCode();
899 }
900 if (getAttributeCount() > 0) {
901 hash = (37 * hash) + ATTRIBUTE_FIELD_NUMBER;
902 hash = (53 * hash) + getAttributeList().hashCode();
903 }
904 if (hasFilter()) {
905 hash = (37 * hash) + FILTER_FIELD_NUMBER;
906 hash = (53 * hash) + getFilter().hashCode();
907 }
908 if (hasTimeRange()) {
909 hash = (37 * hash) + TIMERANGE_FIELD_NUMBER;
910 hash = (53 * hash) + getTimeRange().hashCode();
911 }
912 if (hasMaxVersions()) {
913 hash = (37 * hash) + MAXVERSIONS_FIELD_NUMBER;
914 hash = (53 * hash) + getMaxVersions();
915 }
916 if (hasCacheBlocks()) {
917 hash = (37 * hash) + CACHEBLOCKS_FIELD_NUMBER;
918 hash = (53 * hash) + hashBoolean(getCacheBlocks());
919 }
920 if (hasStoreLimit()) {
921 hash = (37 * hash) + STORELIMIT_FIELD_NUMBER;
922 hash = (53 * hash) + getStoreLimit();
923 }
924 if (hasStoreOffset()) {
925 hash = (37 * hash) + STOREOFFSET_FIELD_NUMBER;
926 hash = (53 * hash) + getStoreOffset();
927 }
928 hash = (29 * hash) + getUnknownFields().hashCode();
929 return hash;
930 }
931
932 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get parseFrom(
933 com.google.protobuf.ByteString data)
934 throws com.google.protobuf.InvalidProtocolBufferException {
935 return newBuilder().mergeFrom(data).buildParsed();
936 }
937 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get parseFrom(
938 com.google.protobuf.ByteString data,
939 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
940 throws com.google.protobuf.InvalidProtocolBufferException {
941 return newBuilder().mergeFrom(data, extensionRegistry)
942 .buildParsed();
943 }
944 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get parseFrom(byte[] data)
945 throws com.google.protobuf.InvalidProtocolBufferException {
946 return newBuilder().mergeFrom(data).buildParsed();
947 }
948 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get parseFrom(
949 byte[] data,
950 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
951 throws com.google.protobuf.InvalidProtocolBufferException {
952 return newBuilder().mergeFrom(data, extensionRegistry)
953 .buildParsed();
954 }
955 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get parseFrom(java.io.InputStream input)
956 throws java.io.IOException {
957 return newBuilder().mergeFrom(input).buildParsed();
958 }
959 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get parseFrom(
960 java.io.InputStream input,
961 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
962 throws java.io.IOException {
963 return newBuilder().mergeFrom(input, extensionRegistry)
964 .buildParsed();
965 }
966 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get parseDelimitedFrom(java.io.InputStream input)
967 throws java.io.IOException {
968 Builder builder = newBuilder();
969 if (builder.mergeDelimitedFrom(input)) {
970 return builder.buildParsed();
971 } else {
972 return null;
973 }
974 }
975 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get parseDelimitedFrom(
976 java.io.InputStream input,
977 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
978 throws java.io.IOException {
979 Builder builder = newBuilder();
980 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
981 return builder.buildParsed();
982 } else {
983 return null;
984 }
985 }
986 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get parseFrom(
987 com.google.protobuf.CodedInputStream input)
988 throws java.io.IOException {
989 return newBuilder().mergeFrom(input).buildParsed();
990 }
991 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get parseFrom(
992 com.google.protobuf.CodedInputStream input,
993 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
994 throws java.io.IOException {
995 return newBuilder().mergeFrom(input, extensionRegistry)
996 .buildParsed();
997 }
998
999 public static Builder newBuilder() { return Builder.create(); }
1000 public Builder newBuilderForType() { return newBuilder(); }
1001 public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get prototype) {
1002 return newBuilder().mergeFrom(prototype);
1003 }
1004 public Builder toBuilder() { return newBuilder(this); }
1005
1006 @java.lang.Override
1007 protected Builder newBuilderForType(
1008 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1009 Builder builder = new Builder(parent);
1010 return builder;
1011 }
1012 public static final class Builder extends
1013 com.google.protobuf.GeneratedMessage.Builder<Builder>
1014 implements org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetOrBuilder {
1015 public static final com.google.protobuf.Descriptors.Descriptor
1016 getDescriptor() {
1017 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_Get_descriptor;
1018 }
1019
1020 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1021 internalGetFieldAccessorTable() {
1022 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_Get_fieldAccessorTable;
1023 }
1024
1025
1026 private Builder() {
1027 maybeForceBuilderInitialization();
1028 }
1029
1030 private Builder(BuilderParent parent) {
1031 super(parent);
1032 maybeForceBuilderInitialization();
1033 }
1034 private void maybeForceBuilderInitialization() {
1035 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
1036 getColumnFieldBuilder();
1037 getAttributeFieldBuilder();
1038 getFilterFieldBuilder();
1039 getTimeRangeFieldBuilder();
1040 }
1041 }
1042 private static Builder create() {
1043 return new Builder();
1044 }
1045
1046 public Builder clear() {
1047 super.clear();
1048 row_ = com.google.protobuf.ByteString.EMPTY;
1049 bitField0_ = (bitField0_ & ~0x00000001);
1050 if (columnBuilder_ == null) {
1051 column_ = java.util.Collections.emptyList();
1052 bitField0_ = (bitField0_ & ~0x00000002);
1053 } else {
1054 columnBuilder_.clear();
1055 }
1056 if (attributeBuilder_ == null) {
1057 attribute_ = java.util.Collections.emptyList();
1058 bitField0_ = (bitField0_ & ~0x00000004);
1059 } else {
1060 attributeBuilder_.clear();
1061 }
1062 if (filterBuilder_ == null) {
1063 filter_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter.getDefaultInstance();
1064 } else {
1065 filterBuilder_.clear();
1066 }
1067 bitField0_ = (bitField0_ & ~0x00000008);
1068 if (timeRangeBuilder_ == null) {
1069 timeRange_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.getDefaultInstance();
1070 } else {
1071 timeRangeBuilder_.clear();
1072 }
1073 bitField0_ = (bitField0_ & ~0x00000010);
1074 maxVersions_ = 1;
1075 bitField0_ = (bitField0_ & ~0x00000020);
1076 cacheBlocks_ = true;
1077 bitField0_ = (bitField0_ & ~0x00000040);
1078 storeLimit_ = 0;
1079 bitField0_ = (bitField0_ & ~0x00000080);
1080 storeOffset_ = 0;
1081 bitField0_ = (bitField0_ & ~0x00000100);
1082 return this;
1083 }
1084
1085 public Builder clone() {
1086 return create().mergeFrom(buildPartial());
1087 }
1088
1089 public com.google.protobuf.Descriptors.Descriptor
1090 getDescriptorForType() {
1091 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.getDescriptor();
1092 }
1093
1094 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get getDefaultInstanceForType() {
1095 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.getDefaultInstance();
1096 }
1097
1098 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get build() {
1099 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get result = buildPartial();
1100 if (!result.isInitialized()) {
1101 throw newUninitializedMessageException(result);
1102 }
1103 return result;
1104 }
1105
1106 private org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get buildParsed()
1107 throws com.google.protobuf.InvalidProtocolBufferException {
1108 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get result = buildPartial();
1109 if (!result.isInitialized()) {
1110 throw newUninitializedMessageException(
1111 result).asInvalidProtocolBufferException();
1112 }
1113 return result;
1114 }
1115
1116 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get buildPartial() {
1117 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get result = new org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get(this);
1118 int from_bitField0_ = bitField0_;
1119 int to_bitField0_ = 0;
1120 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
1121 to_bitField0_ |= 0x00000001;
1122 }
1123 result.row_ = row_;
1124 if (columnBuilder_ == null) {
1125 if (((bitField0_ & 0x00000002) == 0x00000002)) {
1126 column_ = java.util.Collections.unmodifiableList(column_);
1127 bitField0_ = (bitField0_ & ~0x00000002);
1128 }
1129 result.column_ = column_;
1130 } else {
1131 result.column_ = columnBuilder_.build();
1132 }
1133 if (attributeBuilder_ == null) {
1134 if (((bitField0_ & 0x00000004) == 0x00000004)) {
1135 attribute_ = java.util.Collections.unmodifiableList(attribute_);
1136 bitField0_ = (bitField0_ & ~0x00000004);
1137 }
1138 result.attribute_ = attribute_;
1139 } else {
1140 result.attribute_ = attributeBuilder_.build();
1141 }
1142 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
1143 to_bitField0_ |= 0x00000002;
1144 }
1145 if (filterBuilder_ == null) {
1146 result.filter_ = filter_;
1147 } else {
1148 result.filter_ = filterBuilder_.build();
1149 }
1150 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
1151 to_bitField0_ |= 0x00000004;
1152 }
1153 if (timeRangeBuilder_ == null) {
1154 result.timeRange_ = timeRange_;
1155 } else {
1156 result.timeRange_ = timeRangeBuilder_.build();
1157 }
1158 if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
1159 to_bitField0_ |= 0x00000008;
1160 }
1161 result.maxVersions_ = maxVersions_;
1162 if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
1163 to_bitField0_ |= 0x00000010;
1164 }
1165 result.cacheBlocks_ = cacheBlocks_;
1166 if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
1167 to_bitField0_ |= 0x00000020;
1168 }
1169 result.storeLimit_ = storeLimit_;
1170 if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
1171 to_bitField0_ |= 0x00000040;
1172 }
1173 result.storeOffset_ = storeOffset_;
1174 result.bitField0_ = to_bitField0_;
1175 onBuilt();
1176 return result;
1177 }
1178
1179 public Builder mergeFrom(com.google.protobuf.Message other) {
1180 if (other instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get) {
1181 return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get)other);
1182 } else {
1183 super.mergeFrom(other);
1184 return this;
1185 }
1186 }
1187
1188 public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get other) {
1189 if (other == org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.getDefaultInstance()) return this;
1190 if (other.hasRow()) {
1191 setRow(other.getRow());
1192 }
1193 if (columnBuilder_ == null) {
1194 if (!other.column_.isEmpty()) {
1195 if (column_.isEmpty()) {
1196 column_ = other.column_;
1197 bitField0_ = (bitField0_ & ~0x00000002);
1198 } else {
1199 ensureColumnIsMutable();
1200 column_.addAll(other.column_);
1201 }
1202 onChanged();
1203 }
1204 } else {
1205 if (!other.column_.isEmpty()) {
1206 if (columnBuilder_.isEmpty()) {
1207 columnBuilder_.dispose();
1208 columnBuilder_ = null;
1209 column_ = other.column_;
1210 bitField0_ = (bitField0_ & ~0x00000002);
1211 columnBuilder_ =
1212 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1213 getColumnFieldBuilder() : null;
1214 } else {
1215 columnBuilder_.addAllMessages(other.column_);
1216 }
1217 }
1218 }
1219 if (attributeBuilder_ == null) {
1220 if (!other.attribute_.isEmpty()) {
1221 if (attribute_.isEmpty()) {
1222 attribute_ = other.attribute_;
1223 bitField0_ = (bitField0_ & ~0x00000004);
1224 } else {
1225 ensureAttributeIsMutable();
1226 attribute_.addAll(other.attribute_);
1227 }
1228 onChanged();
1229 }
1230 } else {
1231 if (!other.attribute_.isEmpty()) {
1232 if (attributeBuilder_.isEmpty()) {
1233 attributeBuilder_.dispose();
1234 attributeBuilder_ = null;
1235 attribute_ = other.attribute_;
1236 bitField0_ = (bitField0_ & ~0x00000004);
1237 attributeBuilder_ =
1238 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
1239 getAttributeFieldBuilder() : null;
1240 } else {
1241 attributeBuilder_.addAllMessages(other.attribute_);
1242 }
1243 }
1244 }
1245 if (other.hasFilter()) {
1246 mergeFilter(other.getFilter());
1247 }
1248 if (other.hasTimeRange()) {
1249 mergeTimeRange(other.getTimeRange());
1250 }
1251 if (other.hasMaxVersions()) {
1252 setMaxVersions(other.getMaxVersions());
1253 }
1254 if (other.hasCacheBlocks()) {
1255 setCacheBlocks(other.getCacheBlocks());
1256 }
1257 if (other.hasStoreLimit()) {
1258 setStoreLimit(other.getStoreLimit());
1259 }
1260 if (other.hasStoreOffset()) {
1261 setStoreOffset(other.getStoreOffset());
1262 }
1263 this.mergeUnknownFields(other.getUnknownFields());
1264 return this;
1265 }
1266
1267 public final boolean isInitialized() {
1268 if (!hasRow()) {
1269
1270 return false;
1271 }
1272 for (int i = 0; i < getColumnCount(); i++) {
1273 if (!getColumn(i).isInitialized()) {
1274
1275 return false;
1276 }
1277 }
1278 for (int i = 0; i < getAttributeCount(); i++) {
1279 if (!getAttribute(i).isInitialized()) {
1280
1281 return false;
1282 }
1283 }
1284 if (hasFilter()) {
1285 if (!getFilter().isInitialized()) {
1286
1287 return false;
1288 }
1289 }
1290 return true;
1291 }
1292
1293 public Builder mergeFrom(
1294 com.google.protobuf.CodedInputStream input,
1295 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1296 throws java.io.IOException {
1297 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
1298 com.google.protobuf.UnknownFieldSet.newBuilder(
1299 this.getUnknownFields());
1300 while (true) {
1301 int tag = input.readTag();
1302 switch (tag) {
1303 case 0:
1304 this.setUnknownFields(unknownFields.build());
1305 onChanged();
1306 return this;
1307 default: {
1308 if (!parseUnknownField(input, unknownFields,
1309 extensionRegistry, tag)) {
1310 this.setUnknownFields(unknownFields.build());
1311 onChanged();
1312 return this;
1313 }
1314 break;
1315 }
1316 case 10: {
1317 bitField0_ |= 0x00000001;
1318 row_ = input.readBytes();
1319 break;
1320 }
1321 case 18: {
1322 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column.newBuilder();
1323 input.readMessage(subBuilder, extensionRegistry);
1324 addColumn(subBuilder.buildPartial());
1325 break;
1326 }
1327 case 26: {
1328 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.newBuilder();
1329 input.readMessage(subBuilder, extensionRegistry);
1330 addAttribute(subBuilder.buildPartial());
1331 break;
1332 }
1333 case 34: {
1334 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter.newBuilder();
1335 if (hasFilter()) {
1336 subBuilder.mergeFrom(getFilter());
1337 }
1338 input.readMessage(subBuilder, extensionRegistry);
1339 setFilter(subBuilder.buildPartial());
1340 break;
1341 }
1342 case 42: {
1343 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.newBuilder();
1344 if (hasTimeRange()) {
1345 subBuilder.mergeFrom(getTimeRange());
1346 }
1347 input.readMessage(subBuilder, extensionRegistry);
1348 setTimeRange(subBuilder.buildPartial());
1349 break;
1350 }
1351 case 48: {
1352 bitField0_ |= 0x00000020;
1353 maxVersions_ = input.readUInt32();
1354 break;
1355 }
1356 case 56: {
1357 bitField0_ |= 0x00000040;
1358 cacheBlocks_ = input.readBool();
1359 break;
1360 }
1361 case 64: {
1362 bitField0_ |= 0x00000080;
1363 storeLimit_ = input.readUInt32();
1364 break;
1365 }
1366 case 72: {
1367 bitField0_ |= 0x00000100;
1368 storeOffset_ = input.readUInt32();
1369 break;
1370 }
1371 }
1372 }
1373 }
1374
1375 private int bitField0_;
1376
1377
1378 private com.google.protobuf.ByteString row_ = com.google.protobuf.ByteString.EMPTY;
1379 public boolean hasRow() {
1380 return ((bitField0_ & 0x00000001) == 0x00000001);
1381 }
1382 public com.google.protobuf.ByteString getRow() {
1383 return row_;
1384 }
1385 public Builder setRow(com.google.protobuf.ByteString value) {
1386 if (value == null) {
1387 throw new NullPointerException();
1388 }
1389 bitField0_ |= 0x00000001;
1390 row_ = value;
1391 onChanged();
1392 return this;
1393 }
1394 public Builder clearRow() {
1395 bitField0_ = (bitField0_ & ~0x00000001);
1396 row_ = getDefaultInstance().getRow();
1397 onChanged();
1398 return this;
1399 }
1400
1401
1402 private java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column> column_ =
1403 java.util.Collections.emptyList();
1404 private void ensureColumnIsMutable() {
1405 if (!((bitField0_ & 0x00000002) == 0x00000002)) {
1406 column_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column>(column_);
1407 bitField0_ |= 0x00000002;
1408 }
1409 }
1410
1411 private com.google.protobuf.RepeatedFieldBuilder<
1412 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ColumnOrBuilder> columnBuilder_;
1413
1414 public java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column> getColumnList() {
1415 if (columnBuilder_ == null) {
1416 return java.util.Collections.unmodifiableList(column_);
1417 } else {
1418 return columnBuilder_.getMessageList();
1419 }
1420 }
1421 public int getColumnCount() {
1422 if (columnBuilder_ == null) {
1423 return column_.size();
1424 } else {
1425 return columnBuilder_.getCount();
1426 }
1427 }
1428 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column getColumn(int index) {
1429 if (columnBuilder_ == null) {
1430 return column_.get(index);
1431 } else {
1432 return columnBuilder_.getMessage(index);
1433 }
1434 }
1435 public Builder setColumn(
1436 int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column value) {
1437 if (columnBuilder_ == null) {
1438 if (value == null) {
1439 throw new NullPointerException();
1440 }
1441 ensureColumnIsMutable();
1442 column_.set(index, value);
1443 onChanged();
1444 } else {
1445 columnBuilder_.setMessage(index, value);
1446 }
1447 return this;
1448 }
1449 public Builder setColumn(
1450 int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column.Builder builderForValue) {
1451 if (columnBuilder_ == null) {
1452 ensureColumnIsMutable();
1453 column_.set(index, builderForValue.build());
1454 onChanged();
1455 } else {
1456 columnBuilder_.setMessage(index, builderForValue.build());
1457 }
1458 return this;
1459 }
1460 public Builder addColumn(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column value) {
1461 if (columnBuilder_ == null) {
1462 if (value == null) {
1463 throw new NullPointerException();
1464 }
1465 ensureColumnIsMutable();
1466 column_.add(value);
1467 onChanged();
1468 } else {
1469 columnBuilder_.addMessage(value);
1470 }
1471 return this;
1472 }
1473 public Builder addColumn(
1474 int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column value) {
1475 if (columnBuilder_ == null) {
1476 if (value == null) {
1477 throw new NullPointerException();
1478 }
1479 ensureColumnIsMutable();
1480 column_.add(index, value);
1481 onChanged();
1482 } else {
1483 columnBuilder_.addMessage(index, value);
1484 }
1485 return this;
1486 }
1487 public Builder addColumn(
1488 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column.Builder builderForValue) {
1489 if (columnBuilder_ == null) {
1490 ensureColumnIsMutable();
1491 column_.add(builderForValue.build());
1492 onChanged();
1493 } else {
1494 columnBuilder_.addMessage(builderForValue.build());
1495 }
1496 return this;
1497 }
1498 public Builder addColumn(
1499 int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column.Builder builderForValue) {
1500 if (columnBuilder_ == null) {
1501 ensureColumnIsMutable();
1502 column_.add(index, builderForValue.build());
1503 onChanged();
1504 } else {
1505 columnBuilder_.addMessage(index, builderForValue.build());
1506 }
1507 return this;
1508 }
1509 public Builder addAllColumn(
1510 java.lang.Iterable<? extends org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column> values) {
1511 if (columnBuilder_ == null) {
1512 ensureColumnIsMutable();
1513 super.addAll(values, column_);
1514 onChanged();
1515 } else {
1516 columnBuilder_.addAllMessages(values);
1517 }
1518 return this;
1519 }
1520 public Builder clearColumn() {
1521 if (columnBuilder_ == null) {
1522 column_ = java.util.Collections.emptyList();
1523 bitField0_ = (bitField0_ & ~0x00000002);
1524 onChanged();
1525 } else {
1526 columnBuilder_.clear();
1527 }
1528 return this;
1529 }
1530 public Builder removeColumn(int index) {
1531 if (columnBuilder_ == null) {
1532 ensureColumnIsMutable();
1533 column_.remove(index);
1534 onChanged();
1535 } else {
1536 columnBuilder_.remove(index);
1537 }
1538 return this;
1539 }
1540 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column.Builder getColumnBuilder(
1541 int index) {
1542 return getColumnFieldBuilder().getBuilder(index);
1543 }
1544 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ColumnOrBuilder getColumnOrBuilder(
1545 int index) {
1546 if (columnBuilder_ == null) {
1547 return column_.get(index); } else {
1548 return columnBuilder_.getMessageOrBuilder(index);
1549 }
1550 }
1551 public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ColumnOrBuilder>
1552 getColumnOrBuilderList() {
1553 if (columnBuilder_ != null) {
1554 return columnBuilder_.getMessageOrBuilderList();
1555 } else {
1556 return java.util.Collections.unmodifiableList(column_);
1557 }
1558 }
1559 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column.Builder addColumnBuilder() {
1560 return getColumnFieldBuilder().addBuilder(
1561 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column.getDefaultInstance());
1562 }
1563 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column.Builder addColumnBuilder(
1564 int index) {
1565 return getColumnFieldBuilder().addBuilder(
1566 index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column.getDefaultInstance());
1567 }
1568 public java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column.Builder>
1569 getColumnBuilderList() {
1570 return getColumnFieldBuilder().getBuilderList();
1571 }
1572 private com.google.protobuf.RepeatedFieldBuilder<
1573 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ColumnOrBuilder>
1574 getColumnFieldBuilder() {
1575 if (columnBuilder_ == null) {
1576 columnBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
1577 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Column.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ColumnOrBuilder>(
1578 column_,
1579 ((bitField0_ & 0x00000002) == 0x00000002),
1580 getParentForChildren(),
1581 isClean());
1582 column_ = null;
1583 }
1584 return columnBuilder_;
1585 }
1586
1587
1588 private java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair> attribute_ =
1589 java.util.Collections.emptyList();
1590 private void ensureAttributeIsMutable() {
1591 if (!((bitField0_ & 0x00000004) == 0x00000004)) {
1592 attribute_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair>(attribute_);
1593 bitField0_ |= 0x00000004;
1594 }
1595 }
1596
1597 private com.google.protobuf.RepeatedFieldBuilder<
1598 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder> attributeBuilder_;
1599
1600 public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair> getAttributeList() {
1601 if (attributeBuilder_ == null) {
1602 return java.util.Collections.unmodifiableList(attribute_);
1603 } else {
1604 return attributeBuilder_.getMessageList();
1605 }
1606 }
1607 public int getAttributeCount() {
1608 if (attributeBuilder_ == null) {
1609 return attribute_.size();
1610 } else {
1611 return attributeBuilder_.getCount();
1612 }
1613 }
1614 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair getAttribute(int index) {
1615 if (attributeBuilder_ == null) {
1616 return attribute_.get(index);
1617 } else {
1618 return attributeBuilder_.getMessage(index);
1619 }
1620 }
1621 public Builder setAttribute(
1622 int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair value) {
1623 if (attributeBuilder_ == null) {
1624 if (value == null) {
1625 throw new NullPointerException();
1626 }
1627 ensureAttributeIsMutable();
1628 attribute_.set(index, value);
1629 onChanged();
1630 } else {
1631 attributeBuilder_.setMessage(index, value);
1632 }
1633 return this;
1634 }
1635 public Builder setAttribute(
1636 int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder builderForValue) {
1637 if (attributeBuilder_ == null) {
1638 ensureAttributeIsMutable();
1639 attribute_.set(index, builderForValue.build());
1640 onChanged();
1641 } else {
1642 attributeBuilder_.setMessage(index, builderForValue.build());
1643 }
1644 return this;
1645 }
1646 public Builder addAttribute(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair value) {
1647 if (attributeBuilder_ == null) {
1648 if (value == null) {
1649 throw new NullPointerException();
1650 }
1651 ensureAttributeIsMutable();
1652 attribute_.add(value);
1653 onChanged();
1654 } else {
1655 attributeBuilder_.addMessage(value);
1656 }
1657 return this;
1658 }
1659 public Builder addAttribute(
1660 int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair value) {
1661 if (attributeBuilder_ == null) {
1662 if (value == null) {
1663 throw new NullPointerException();
1664 }
1665 ensureAttributeIsMutable();
1666 attribute_.add(index, value);
1667 onChanged();
1668 } else {
1669 attributeBuilder_.addMessage(index, value);
1670 }
1671 return this;
1672 }
1673 public Builder addAttribute(
1674 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder builderForValue) {
1675 if (attributeBuilder_ == null) {
1676 ensureAttributeIsMutable();
1677 attribute_.add(builderForValue.build());
1678 onChanged();
1679 } else {
1680 attributeBuilder_.addMessage(builderForValue.build());
1681 }
1682 return this;
1683 }
1684 public Builder addAttribute(
1685 int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder builderForValue) {
1686 if (attributeBuilder_ == null) {
1687 ensureAttributeIsMutable();
1688 attribute_.add(index, builderForValue.build());
1689 onChanged();
1690 } else {
1691 attributeBuilder_.addMessage(index, builderForValue.build());
1692 }
1693 return this;
1694 }
1695 public Builder addAllAttribute(
1696 java.lang.Iterable<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair> values) {
1697 if (attributeBuilder_ == null) {
1698 ensureAttributeIsMutable();
1699 super.addAll(values, attribute_);
1700 onChanged();
1701 } else {
1702 attributeBuilder_.addAllMessages(values);
1703 }
1704 return this;
1705 }
1706 public Builder clearAttribute() {
1707 if (attributeBuilder_ == null) {
1708 attribute_ = java.util.Collections.emptyList();
1709 bitField0_ = (bitField0_ & ~0x00000004);
1710 onChanged();
1711 } else {
1712 attributeBuilder_.clear();
1713 }
1714 return this;
1715 }
1716 public Builder removeAttribute(int index) {
1717 if (attributeBuilder_ == null) {
1718 ensureAttributeIsMutable();
1719 attribute_.remove(index);
1720 onChanged();
1721 } else {
1722 attributeBuilder_.remove(index);
1723 }
1724 return this;
1725 }
1726 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder getAttributeBuilder(
1727 int index) {
1728 return getAttributeFieldBuilder().getBuilder(index);
1729 }
1730 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder getAttributeOrBuilder(
1731 int index) {
1732 if (attributeBuilder_ == null) {
1733 return attribute_.get(index); } else {
1734 return attributeBuilder_.getMessageOrBuilder(index);
1735 }
1736 }
1737 public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder>
1738 getAttributeOrBuilderList() {
1739 if (attributeBuilder_ != null) {
1740 return attributeBuilder_.getMessageOrBuilderList();
1741 } else {
1742 return java.util.Collections.unmodifiableList(attribute_);
1743 }
1744 }
1745 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder addAttributeBuilder() {
1746 return getAttributeFieldBuilder().addBuilder(
1747 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.getDefaultInstance());
1748 }
1749 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder addAttributeBuilder(
1750 int index) {
1751 return getAttributeFieldBuilder().addBuilder(
1752 index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.getDefaultInstance());
1753 }
1754 public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder>
1755 getAttributeBuilderList() {
1756 return getAttributeFieldBuilder().getBuilderList();
1757 }
1758 private com.google.protobuf.RepeatedFieldBuilder<
1759 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder>
1760 getAttributeFieldBuilder() {
1761 if (attributeBuilder_ == null) {
1762 attributeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
1763 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder>(
1764 attribute_,
1765 ((bitField0_ & 0x00000004) == 0x00000004),
1766 getParentForChildren(),
1767 isClean());
1768 attribute_ = null;
1769 }
1770 return attributeBuilder_;
1771 }
1772
1773
1774 private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter filter_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter.getDefaultInstance();
1775 private com.google.protobuf.SingleFieldBuilder<
1776 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FilterOrBuilder> filterBuilder_;
1777 public boolean hasFilter() {
1778 return ((bitField0_ & 0x00000008) == 0x00000008);
1779 }
1780 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter getFilter() {
1781 if (filterBuilder_ == null) {
1782 return filter_;
1783 } else {
1784 return filterBuilder_.getMessage();
1785 }
1786 }
1787 public Builder setFilter(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter value) {
1788 if (filterBuilder_ == null) {
1789 if (value == null) {
1790 throw new NullPointerException();
1791 }
1792 filter_ = value;
1793 onChanged();
1794 } else {
1795 filterBuilder_.setMessage(value);
1796 }
1797 bitField0_ |= 0x00000008;
1798 return this;
1799 }
1800 public Builder setFilter(
1801 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter.Builder builderForValue) {
1802 if (filterBuilder_ == null) {
1803 filter_ = builderForValue.build();
1804 onChanged();
1805 } else {
1806 filterBuilder_.setMessage(builderForValue.build());
1807 }
1808 bitField0_ |= 0x00000008;
1809 return this;
1810 }
1811 public Builder mergeFilter(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter value) {
1812 if (filterBuilder_ == null) {
1813 if (((bitField0_ & 0x00000008) == 0x00000008) &&
1814 filter_ != org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter.getDefaultInstance()) {
1815 filter_ =
1816 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter.newBuilder(filter_).mergeFrom(value).buildPartial();
1817 } else {
1818 filter_ = value;
1819 }
1820 onChanged();
1821 } else {
1822 filterBuilder_.mergeFrom(value);
1823 }
1824 bitField0_ |= 0x00000008;
1825 return this;
1826 }
1827 public Builder clearFilter() {
1828 if (filterBuilder_ == null) {
1829 filter_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter.getDefaultInstance();
1830 onChanged();
1831 } else {
1832 filterBuilder_.clear();
1833 }
1834 bitField0_ = (bitField0_ & ~0x00000008);
1835 return this;
1836 }
1837 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter.Builder getFilterBuilder() {
1838 bitField0_ |= 0x00000008;
1839 onChanged();
1840 return getFilterFieldBuilder().getBuilder();
1841 }
1842 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FilterOrBuilder getFilterOrBuilder() {
1843 if (filterBuilder_ != null) {
1844 return filterBuilder_.getMessageOrBuilder();
1845 } else {
1846 return filter_;
1847 }
1848 }
1849 private com.google.protobuf.SingleFieldBuilder<
1850 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FilterOrBuilder>
1851 getFilterFieldBuilder() {
1852 if (filterBuilder_ == null) {
1853 filterBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1854 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Filter.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FilterOrBuilder>(
1855 filter_,
1856 getParentForChildren(),
1857 isClean());
1858 filter_ = null;
1859 }
1860 return filterBuilder_;
1861 }
1862
1863
1864 private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange timeRange_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.getDefaultInstance();
1865 private com.google.protobuf.SingleFieldBuilder<
1866 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRangeOrBuilder> timeRangeBuilder_;
1867 public boolean hasTimeRange() {
1868 return ((bitField0_ & 0x00000010) == 0x00000010);
1869 }
1870 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange getTimeRange() {
1871 if (timeRangeBuilder_ == null) {
1872 return timeRange_;
1873 } else {
1874 return timeRangeBuilder_.getMessage();
1875 }
1876 }
1877 public Builder setTimeRange(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange value) {
1878 if (timeRangeBuilder_ == null) {
1879 if (value == null) {
1880 throw new NullPointerException();
1881 }
1882 timeRange_ = value;
1883 onChanged();
1884 } else {
1885 timeRangeBuilder_.setMessage(value);
1886 }
1887 bitField0_ |= 0x00000010;
1888 return this;
1889 }
1890 public Builder setTimeRange(
1891 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.Builder builderForValue) {
1892 if (timeRangeBuilder_ == null) {
1893 timeRange_ = builderForValue.build();
1894 onChanged();
1895 } else {
1896 timeRangeBuilder_.setMessage(builderForValue.build());
1897 }
1898 bitField0_ |= 0x00000010;
1899 return this;
1900 }
1901 public Builder mergeTimeRange(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange value) {
1902 if (timeRangeBuilder_ == null) {
1903 if (((bitField0_ & 0x00000010) == 0x00000010) &&
1904 timeRange_ != org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.getDefaultInstance()) {
1905 timeRange_ =
1906 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.newBuilder(timeRange_).mergeFrom(value).buildPartial();
1907 } else {
1908 timeRange_ = value;
1909 }
1910 onChanged();
1911 } else {
1912 timeRangeBuilder_.mergeFrom(value);
1913 }
1914 bitField0_ |= 0x00000010;
1915 return this;
1916 }
1917 public Builder clearTimeRange() {
1918 if (timeRangeBuilder_ == null) {
1919 timeRange_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.getDefaultInstance();
1920 onChanged();
1921 } else {
1922 timeRangeBuilder_.clear();
1923 }
1924 bitField0_ = (bitField0_ & ~0x00000010);
1925 return this;
1926 }
1927 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.Builder getTimeRangeBuilder() {
1928 bitField0_ |= 0x00000010;
1929 onChanged();
1930 return getTimeRangeFieldBuilder().getBuilder();
1931 }
1932 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRangeOrBuilder getTimeRangeOrBuilder() {
1933 if (timeRangeBuilder_ != null) {
1934 return timeRangeBuilder_.getMessageOrBuilder();
1935 } else {
1936 return timeRange_;
1937 }
1938 }
1939 private com.google.protobuf.SingleFieldBuilder<
1940 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRangeOrBuilder>
1941 getTimeRangeFieldBuilder() {
1942 if (timeRangeBuilder_ == null) {
1943 timeRangeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
1944 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRangeOrBuilder>(
1945 timeRange_,
1946 getParentForChildren(),
1947 isClean());
1948 timeRange_ = null;
1949 }
1950 return timeRangeBuilder_;
1951 }
1952
1953
1954 private int maxVersions_ = 1;
1955 public boolean hasMaxVersions() {
1956 return ((bitField0_ & 0x00000020) == 0x00000020);
1957 }
1958 public int getMaxVersions() {
1959 return maxVersions_;
1960 }
1961 public Builder setMaxVersions(int value) {
1962 bitField0_ |= 0x00000020;
1963 maxVersions_ = value;
1964 onChanged();
1965 return this;
1966 }
1967 public Builder clearMaxVersions() {
1968 bitField0_ = (bitField0_ & ~0x00000020);
1969 maxVersions_ = 1;
1970 onChanged();
1971 return this;
1972 }
1973
1974
1975 private boolean cacheBlocks_ = true;
1976 public boolean hasCacheBlocks() {
1977 return ((bitField0_ & 0x00000040) == 0x00000040);
1978 }
1979 public boolean getCacheBlocks() {
1980 return cacheBlocks_;
1981 }
1982 public Builder setCacheBlocks(boolean value) {
1983 bitField0_ |= 0x00000040;
1984 cacheBlocks_ = value;
1985 onChanged();
1986 return this;
1987 }
1988 public Builder clearCacheBlocks() {
1989 bitField0_ = (bitField0_ & ~0x00000040);
1990 cacheBlocks_ = true;
1991 onChanged();
1992 return this;
1993 }
1994
1995
1996 private int storeLimit_ ;
1997 public boolean hasStoreLimit() {
1998 return ((bitField0_ & 0x00000080) == 0x00000080);
1999 }
2000 public int getStoreLimit() {
2001 return storeLimit_;
2002 }
2003 public Builder setStoreLimit(int value) {
2004 bitField0_ |= 0x00000080;
2005 storeLimit_ = value;
2006 onChanged();
2007 return this;
2008 }
2009 public Builder clearStoreLimit() {
2010 bitField0_ = (bitField0_ & ~0x00000080);
2011 storeLimit_ = 0;
2012 onChanged();
2013 return this;
2014 }
2015
2016
2017 private int storeOffset_ ;
2018 public boolean hasStoreOffset() {
2019 return ((bitField0_ & 0x00000100) == 0x00000100);
2020 }
2021 public int getStoreOffset() {
2022 return storeOffset_;
2023 }
2024 public Builder setStoreOffset(int value) {
2025 bitField0_ |= 0x00000100;
2026 storeOffset_ = value;
2027 onChanged();
2028 return this;
2029 }
2030 public Builder clearStoreOffset() {
2031 bitField0_ = (bitField0_ & ~0x00000100);
2032 storeOffset_ = 0;
2033 onChanged();
2034 return this;
2035 }
2036
2037
2038 }
2039
2040 static {
2041 defaultInstance = new Get(true);
2042 defaultInstance.initFields();
2043 }
2044
2045
2046 }
2047
2048 public interface ResultOrBuilder
2049 extends com.google.protobuf.MessageOrBuilder {
2050
2051
2052 java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell>
2053 getCellList();
2054 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell getCell(int index);
2055 int getCellCount();
2056 java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellOrBuilder>
2057 getCellOrBuilderList();
2058 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellOrBuilder getCellOrBuilder(
2059 int index);
2060
2061
2062 boolean hasAssociatedCellCount();
2063 int getAssociatedCellCount();
2064 }
2065 public static final class Result extends
2066 com.google.protobuf.GeneratedMessage
2067 implements ResultOrBuilder {
2068
2069 private Result(Builder builder) {
2070 super(builder);
2071 }
2072 private Result(boolean noInit) {}
2073
2074 private static final Result defaultInstance;
2075 public static Result getDefaultInstance() {
2076 return defaultInstance;
2077 }
2078
2079 public Result getDefaultInstanceForType() {
2080 return defaultInstance;
2081 }
2082
2083 public static final com.google.protobuf.Descriptors.Descriptor
2084 getDescriptor() {
2085 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_Result_descriptor;
2086 }
2087
2088 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2089 internalGetFieldAccessorTable() {
2090 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_Result_fieldAccessorTable;
2091 }
2092
2093 private int bitField0_;
2094
2095 public static final int CELL_FIELD_NUMBER = 1;
2096 private java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell> cell_;
2097 public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell> getCellList() {
2098 return cell_;
2099 }
2100 public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellOrBuilder>
2101 getCellOrBuilderList() {
2102 return cell_;
2103 }
2104 public int getCellCount() {
2105 return cell_.size();
2106 }
2107 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell getCell(int index) {
2108 return cell_.get(index);
2109 }
2110 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellOrBuilder getCellOrBuilder(
2111 int index) {
2112 return cell_.get(index);
2113 }
2114
2115
2116 public static final int ASSOCIATEDCELLCOUNT_FIELD_NUMBER = 2;
2117 private int associatedCellCount_;
2118 public boolean hasAssociatedCellCount() {
2119 return ((bitField0_ & 0x00000001) == 0x00000001);
2120 }
2121 public int getAssociatedCellCount() {
2122 return associatedCellCount_;
2123 }
2124
2125 private void initFields() {
2126 cell_ = java.util.Collections.emptyList();
2127 associatedCellCount_ = 0;
2128 }
2129 private byte memoizedIsInitialized = -1;
2130 public final boolean isInitialized() {
2131 byte isInitialized = memoizedIsInitialized;
2132 if (isInitialized != -1) return isInitialized == 1;
2133
2134 memoizedIsInitialized = 1;
2135 return true;
2136 }
2137
2138 public void writeTo(com.google.protobuf.CodedOutputStream output)
2139 throws java.io.IOException {
2140 getSerializedSize();
2141 for (int i = 0; i < cell_.size(); i++) {
2142 output.writeMessage(1, cell_.get(i));
2143 }
2144 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2145 output.writeInt32(2, associatedCellCount_);
2146 }
2147 getUnknownFields().writeTo(output);
2148 }
2149
2150 private int memoizedSerializedSize = -1;
2151 public int getSerializedSize() {
2152 int size = memoizedSerializedSize;
2153 if (size != -1) return size;
2154
2155 size = 0;
2156 for (int i = 0; i < cell_.size(); i++) {
2157 size += com.google.protobuf.CodedOutputStream
2158 .computeMessageSize(1, cell_.get(i));
2159 }
2160 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2161 size += com.google.protobuf.CodedOutputStream
2162 .computeInt32Size(2, associatedCellCount_);
2163 }
2164 size += getUnknownFields().getSerializedSize();
2165 memoizedSerializedSize = size;
2166 return size;
2167 }
2168
2169 private static final long serialVersionUID = 0L;
2170 @java.lang.Override
2171 protected java.lang.Object writeReplace()
2172 throws java.io.ObjectStreamException {
2173 return super.writeReplace();
2174 }
2175
2176 @java.lang.Override
2177 public boolean equals(final java.lang.Object obj) {
2178 if (obj == this) {
2179 return true;
2180 }
2181 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result)) {
2182 return super.equals(obj);
2183 }
2184 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result other = (org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result) obj;
2185
2186 boolean result = true;
2187 result = result && getCellList()
2188 .equals(other.getCellList());
2189 result = result && (hasAssociatedCellCount() == other.hasAssociatedCellCount());
2190 if (hasAssociatedCellCount()) {
2191 result = result && (getAssociatedCellCount()
2192 == other.getAssociatedCellCount());
2193 }
2194 result = result &&
2195 getUnknownFields().equals(other.getUnknownFields());
2196 return result;
2197 }
2198
2199 @java.lang.Override
2200 public int hashCode() {
2201 int hash = 41;
2202 hash = (19 * hash) + getDescriptorForType().hashCode();
2203 if (getCellCount() > 0) {
2204 hash = (37 * hash) + CELL_FIELD_NUMBER;
2205 hash = (53 * hash) + getCellList().hashCode();
2206 }
2207 if (hasAssociatedCellCount()) {
2208 hash = (37 * hash) + ASSOCIATEDCELLCOUNT_FIELD_NUMBER;
2209 hash = (53 * hash) + getAssociatedCellCount();
2210 }
2211 hash = (29 * hash) + getUnknownFields().hashCode();
2212 return hash;
2213 }
2214
2215 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result parseFrom(
2216 com.google.protobuf.ByteString data)
2217 throws com.google.protobuf.InvalidProtocolBufferException {
2218 return newBuilder().mergeFrom(data).buildParsed();
2219 }
2220 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result parseFrom(
2221 com.google.protobuf.ByteString data,
2222 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2223 throws com.google.protobuf.InvalidProtocolBufferException {
2224 return newBuilder().mergeFrom(data, extensionRegistry)
2225 .buildParsed();
2226 }
2227 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result parseFrom(byte[] data)
2228 throws com.google.protobuf.InvalidProtocolBufferException {
2229 return newBuilder().mergeFrom(data).buildParsed();
2230 }
2231 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result parseFrom(
2232 byte[] data,
2233 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2234 throws com.google.protobuf.InvalidProtocolBufferException {
2235 return newBuilder().mergeFrom(data, extensionRegistry)
2236 .buildParsed();
2237 }
2238 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result parseFrom(java.io.InputStream input)
2239 throws java.io.IOException {
2240 return newBuilder().mergeFrom(input).buildParsed();
2241 }
2242 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result parseFrom(
2243 java.io.InputStream input,
2244 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2245 throws java.io.IOException {
2246 return newBuilder().mergeFrom(input, extensionRegistry)
2247 .buildParsed();
2248 }
2249 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result parseDelimitedFrom(java.io.InputStream input)
2250 throws java.io.IOException {
2251 Builder builder = newBuilder();
2252 if (builder.mergeDelimitedFrom(input)) {
2253 return builder.buildParsed();
2254 } else {
2255 return null;
2256 }
2257 }
2258 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result parseDelimitedFrom(
2259 java.io.InputStream input,
2260 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2261 throws java.io.IOException {
2262 Builder builder = newBuilder();
2263 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
2264 return builder.buildParsed();
2265 } else {
2266 return null;
2267 }
2268 }
2269 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result parseFrom(
2270 com.google.protobuf.CodedInputStream input)
2271 throws java.io.IOException {
2272 return newBuilder().mergeFrom(input).buildParsed();
2273 }
2274 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result parseFrom(
2275 com.google.protobuf.CodedInputStream input,
2276 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2277 throws java.io.IOException {
2278 return newBuilder().mergeFrom(input, extensionRegistry)
2279 .buildParsed();
2280 }
2281
2282 public static Builder newBuilder() { return Builder.create(); }
2283 public Builder newBuilderForType() { return newBuilder(); }
2284 public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result prototype) {
2285 return newBuilder().mergeFrom(prototype);
2286 }
2287 public Builder toBuilder() { return newBuilder(this); }
2288
2289 @java.lang.Override
2290 protected Builder newBuilderForType(
2291 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2292 Builder builder = new Builder(parent);
2293 return builder;
2294 }
2295 public static final class Builder extends
2296 com.google.protobuf.GeneratedMessage.Builder<Builder>
2297 implements org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrBuilder {
2298 public static final com.google.protobuf.Descriptors.Descriptor
2299 getDescriptor() {
2300 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_Result_descriptor;
2301 }
2302
2303 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2304 internalGetFieldAccessorTable() {
2305 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_Result_fieldAccessorTable;
2306 }
2307
2308
2309 private Builder() {
2310 maybeForceBuilderInitialization();
2311 }
2312
2313 private Builder(BuilderParent parent) {
2314 super(parent);
2315 maybeForceBuilderInitialization();
2316 }
2317 private void maybeForceBuilderInitialization() {
2318 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
2319 getCellFieldBuilder();
2320 }
2321 }
2322 private static Builder create() {
2323 return new Builder();
2324 }
2325
2326 public Builder clear() {
2327 super.clear();
2328 if (cellBuilder_ == null) {
2329 cell_ = java.util.Collections.emptyList();
2330 bitField0_ = (bitField0_ & ~0x00000001);
2331 } else {
2332 cellBuilder_.clear();
2333 }
2334 associatedCellCount_ = 0;
2335 bitField0_ = (bitField0_ & ~0x00000002);
2336 return this;
2337 }
2338
2339 public Builder clone() {
2340 return create().mergeFrom(buildPartial());
2341 }
2342
2343 public com.google.protobuf.Descriptors.Descriptor
2344 getDescriptorForType() {
2345 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.getDescriptor();
2346 }
2347
2348 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result getDefaultInstanceForType() {
2349 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.getDefaultInstance();
2350 }
2351
2352 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result build() {
2353 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result result = buildPartial();
2354 if (!result.isInitialized()) {
2355 throw newUninitializedMessageException(result);
2356 }
2357 return result;
2358 }
2359
2360 private org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result buildParsed()
2361 throws com.google.protobuf.InvalidProtocolBufferException {
2362 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result result = buildPartial();
2363 if (!result.isInitialized()) {
2364 throw newUninitializedMessageException(
2365 result).asInvalidProtocolBufferException();
2366 }
2367 return result;
2368 }
2369
2370 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result buildPartial() {
2371 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result result = new org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result(this);
2372 int from_bitField0_ = bitField0_;
2373 int to_bitField0_ = 0;
2374 if (cellBuilder_ == null) {
2375 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2376 cell_ = java.util.Collections.unmodifiableList(cell_);
2377 bitField0_ = (bitField0_ & ~0x00000001);
2378 }
2379 result.cell_ = cell_;
2380 } else {
2381 result.cell_ = cellBuilder_.build();
2382 }
2383 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
2384 to_bitField0_ |= 0x00000001;
2385 }
2386 result.associatedCellCount_ = associatedCellCount_;
2387 result.bitField0_ = to_bitField0_;
2388 onBuilt();
2389 return result;
2390 }
2391
2392 public Builder mergeFrom(com.google.protobuf.Message other) {
2393 if (other instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result) {
2394 return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result)other);
2395 } else {
2396 super.mergeFrom(other);
2397 return this;
2398 }
2399 }
2400
2401 public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result other) {
2402 if (other == org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.getDefaultInstance()) return this;
2403 if (cellBuilder_ == null) {
2404 if (!other.cell_.isEmpty()) {
2405 if (cell_.isEmpty()) {
2406 cell_ = other.cell_;
2407 bitField0_ = (bitField0_ & ~0x00000001);
2408 } else {
2409 ensureCellIsMutable();
2410 cell_.addAll(other.cell_);
2411 }
2412 onChanged();
2413 }
2414 } else {
2415 if (!other.cell_.isEmpty()) {
2416 if (cellBuilder_.isEmpty()) {
2417 cellBuilder_.dispose();
2418 cellBuilder_ = null;
2419 cell_ = other.cell_;
2420 bitField0_ = (bitField0_ & ~0x00000001);
2421 cellBuilder_ =
2422 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
2423 getCellFieldBuilder() : null;
2424 } else {
2425 cellBuilder_.addAllMessages(other.cell_);
2426 }
2427 }
2428 }
2429 if (other.hasAssociatedCellCount()) {
2430 setAssociatedCellCount(other.getAssociatedCellCount());
2431 }
2432 this.mergeUnknownFields(other.getUnknownFields());
2433 return this;
2434 }
2435
2436 public final boolean isInitialized() {
2437 return true;
2438 }
2439
2440 public Builder mergeFrom(
2441 com.google.protobuf.CodedInputStream input,
2442 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2443 throws java.io.IOException {
2444 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
2445 com.google.protobuf.UnknownFieldSet.newBuilder(
2446 this.getUnknownFields());
2447 while (true) {
2448 int tag = input.readTag();
2449 switch (tag) {
2450 case 0:
2451 this.setUnknownFields(unknownFields.build());
2452 onChanged();
2453 return this;
2454 default: {
2455 if (!parseUnknownField(input, unknownFields,
2456 extensionRegistry, tag)) {
2457 this.setUnknownFields(unknownFields.build());
2458 onChanged();
2459 return this;
2460 }
2461 break;
2462 }
2463 case 10: {
2464 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell.newBuilder();
2465 input.readMessage(subBuilder, extensionRegistry);
2466 addCell(subBuilder.buildPartial());
2467 break;
2468 }
2469 case 16: {
2470 bitField0_ |= 0x00000002;
2471 associatedCellCount_ = input.readInt32();
2472 break;
2473 }
2474 }
2475 }
2476 }
2477
2478 private int bitField0_;
2479
2480
2481 private java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell> cell_ =
2482 java.util.Collections.emptyList();
2483 private void ensureCellIsMutable() {
2484 if (!((bitField0_ & 0x00000001) == 0x00000001)) {
2485 cell_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell>(cell_);
2486 bitField0_ |= 0x00000001;
2487 }
2488 }
2489
2490 private com.google.protobuf.RepeatedFieldBuilder<
2491 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellOrBuilder> cellBuilder_;
2492
2493 public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell> getCellList() {
2494 if (cellBuilder_ == null) {
2495 return java.util.Collections.unmodifiableList(cell_);
2496 } else {
2497 return cellBuilder_.getMessageList();
2498 }
2499 }
2500 public int getCellCount() {
2501 if (cellBuilder_ == null) {
2502 return cell_.size();
2503 } else {
2504 return cellBuilder_.getCount();
2505 }
2506 }
2507 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell getCell(int index) {
2508 if (cellBuilder_ == null) {
2509 return cell_.get(index);
2510 } else {
2511 return cellBuilder_.getMessage(index);
2512 }
2513 }
2514 public Builder setCell(
2515 int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell value) {
2516 if (cellBuilder_ == null) {
2517 if (value == null) {
2518 throw new NullPointerException();
2519 }
2520 ensureCellIsMutable();
2521 cell_.set(index, value);
2522 onChanged();
2523 } else {
2524 cellBuilder_.setMessage(index, value);
2525 }
2526 return this;
2527 }
2528 public Builder setCell(
2529 int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell.Builder builderForValue) {
2530 if (cellBuilder_ == null) {
2531 ensureCellIsMutable();
2532 cell_.set(index, builderForValue.build());
2533 onChanged();
2534 } else {
2535 cellBuilder_.setMessage(index, builderForValue.build());
2536 }
2537 return this;
2538 }
2539 public Builder addCell(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell value) {
2540 if (cellBuilder_ == null) {
2541 if (value == null) {
2542 throw new NullPointerException();
2543 }
2544 ensureCellIsMutable();
2545 cell_.add(value);
2546 onChanged();
2547 } else {
2548 cellBuilder_.addMessage(value);
2549 }
2550 return this;
2551 }
2552 public Builder addCell(
2553 int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell value) {
2554 if (cellBuilder_ == null) {
2555 if (value == null) {
2556 throw new NullPointerException();
2557 }
2558 ensureCellIsMutable();
2559 cell_.add(index, value);
2560 onChanged();
2561 } else {
2562 cellBuilder_.addMessage(index, value);
2563 }
2564 return this;
2565 }
2566 public Builder addCell(
2567 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell.Builder builderForValue) {
2568 if (cellBuilder_ == null) {
2569 ensureCellIsMutable();
2570 cell_.add(builderForValue.build());
2571 onChanged();
2572 } else {
2573 cellBuilder_.addMessage(builderForValue.build());
2574 }
2575 return this;
2576 }
2577 public Builder addCell(
2578 int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell.Builder builderForValue) {
2579 if (cellBuilder_ == null) {
2580 ensureCellIsMutable();
2581 cell_.add(index, builderForValue.build());
2582 onChanged();
2583 } else {
2584 cellBuilder_.addMessage(index, builderForValue.build());
2585 }
2586 return this;
2587 }
2588 public Builder addAllCell(
2589 java.lang.Iterable<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell> values) {
2590 if (cellBuilder_ == null) {
2591 ensureCellIsMutable();
2592 super.addAll(values, cell_);
2593 onChanged();
2594 } else {
2595 cellBuilder_.addAllMessages(values);
2596 }
2597 return this;
2598 }
2599 public Builder clearCell() {
2600 if (cellBuilder_ == null) {
2601 cell_ = java.util.Collections.emptyList();
2602 bitField0_ = (bitField0_ & ~0x00000001);
2603 onChanged();
2604 } else {
2605 cellBuilder_.clear();
2606 }
2607 return this;
2608 }
2609 public Builder removeCell(int index) {
2610 if (cellBuilder_ == null) {
2611 ensureCellIsMutable();
2612 cell_.remove(index);
2613 onChanged();
2614 } else {
2615 cellBuilder_.remove(index);
2616 }
2617 return this;
2618 }
2619 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell.Builder getCellBuilder(
2620 int index) {
2621 return getCellFieldBuilder().getBuilder(index);
2622 }
2623 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellOrBuilder getCellOrBuilder(
2624 int index) {
2625 if (cellBuilder_ == null) {
2626 return cell_.get(index); } else {
2627 return cellBuilder_.getMessageOrBuilder(index);
2628 }
2629 }
2630 public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellOrBuilder>
2631 getCellOrBuilderList() {
2632 if (cellBuilder_ != null) {
2633 return cellBuilder_.getMessageOrBuilderList();
2634 } else {
2635 return java.util.Collections.unmodifiableList(cell_);
2636 }
2637 }
2638 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell.Builder addCellBuilder() {
2639 return getCellFieldBuilder().addBuilder(
2640 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell.getDefaultInstance());
2641 }
2642 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell.Builder addCellBuilder(
2643 int index) {
2644 return getCellFieldBuilder().addBuilder(
2645 index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell.getDefaultInstance());
2646 }
2647 public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell.Builder>
2648 getCellBuilderList() {
2649 return getCellFieldBuilder().getBuilderList();
2650 }
2651 private com.google.protobuf.RepeatedFieldBuilder<
2652 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellOrBuilder>
2653 getCellFieldBuilder() {
2654 if (cellBuilder_ == null) {
2655 cellBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
2656 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellOrBuilder>(
2657 cell_,
2658 ((bitField0_ & 0x00000001) == 0x00000001),
2659 getParentForChildren(),
2660 isClean());
2661 cell_ = null;
2662 }
2663 return cellBuilder_;
2664 }
2665
2666
2667 private int associatedCellCount_ ;
2668 public boolean hasAssociatedCellCount() {
2669 return ((bitField0_ & 0x00000002) == 0x00000002);
2670 }
2671 public int getAssociatedCellCount() {
2672 return associatedCellCount_;
2673 }
2674 public Builder setAssociatedCellCount(int value) {
2675 bitField0_ |= 0x00000002;
2676 associatedCellCount_ = value;
2677 onChanged();
2678 return this;
2679 }
2680 public Builder clearAssociatedCellCount() {
2681 bitField0_ = (bitField0_ & ~0x00000002);
2682 associatedCellCount_ = 0;
2683 onChanged();
2684 return this;
2685 }
2686
2687
2688 }
2689
2690 static {
2691 defaultInstance = new Result(true);
2692 defaultInstance.initFields();
2693 }
2694
2695
2696 }
2697
2698 public interface GetRequestOrBuilder
2699 extends com.google.protobuf.MessageOrBuilder {
2700
2701
2702 boolean hasRegion();
2703 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier getRegion();
2704 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifierOrBuilder getRegionOrBuilder();
2705
2706
2707 boolean hasGet();
2708 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get getGet();
2709 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetOrBuilder getGetOrBuilder();
2710
2711
2712 boolean hasClosestRowBefore();
2713 boolean getClosestRowBefore();
2714
2715
2716 boolean hasExistenceOnly();
2717 boolean getExistenceOnly();
2718 }
2719 public static final class GetRequest extends
2720 com.google.protobuf.GeneratedMessage
2721 implements GetRequestOrBuilder {
2722
2723 private GetRequest(Builder builder) {
2724 super(builder);
2725 }
2726 private GetRequest(boolean noInit) {}
2727
2728 private static final GetRequest defaultInstance;
2729 public static GetRequest getDefaultInstance() {
2730 return defaultInstance;
2731 }
2732
2733 public GetRequest getDefaultInstanceForType() {
2734 return defaultInstance;
2735 }
2736
2737 public static final com.google.protobuf.Descriptors.Descriptor
2738 getDescriptor() {
2739 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_GetRequest_descriptor;
2740 }
2741
2742 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2743 internalGetFieldAccessorTable() {
2744 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_GetRequest_fieldAccessorTable;
2745 }
2746
2747 private int bitField0_;
2748
2749 public static final int REGION_FIELD_NUMBER = 1;
2750 private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier region_;
2751 public boolean hasRegion() {
2752 return ((bitField0_ & 0x00000001) == 0x00000001);
2753 }
2754 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier getRegion() {
2755 return region_;
2756 }
2757 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifierOrBuilder getRegionOrBuilder() {
2758 return region_;
2759 }
2760
2761
2762 public static final int GET_FIELD_NUMBER = 2;
2763 private org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get get_;
2764 public boolean hasGet() {
2765 return ((bitField0_ & 0x00000002) == 0x00000002);
2766 }
2767 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get getGet() {
2768 return get_;
2769 }
2770 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetOrBuilder getGetOrBuilder() {
2771 return get_;
2772 }
2773
2774
2775 public static final int CLOSESTROWBEFORE_FIELD_NUMBER = 3;
2776 private boolean closestRowBefore_;
2777 public boolean hasClosestRowBefore() {
2778 return ((bitField0_ & 0x00000004) == 0x00000004);
2779 }
2780 public boolean getClosestRowBefore() {
2781 return closestRowBefore_;
2782 }
2783
2784
2785 public static final int EXISTENCEONLY_FIELD_NUMBER = 4;
2786 private boolean existenceOnly_;
2787 public boolean hasExistenceOnly() {
2788 return ((bitField0_ & 0x00000008) == 0x00000008);
2789 }
2790 public boolean getExistenceOnly() {
2791 return existenceOnly_;
2792 }
2793
2794 private void initFields() {
2795 region_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.getDefaultInstance();
2796 get_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.getDefaultInstance();
2797 closestRowBefore_ = false;
2798 existenceOnly_ = false;
2799 }
2800 private byte memoizedIsInitialized = -1;
2801 public final boolean isInitialized() {
2802 byte isInitialized = memoizedIsInitialized;
2803 if (isInitialized != -1) return isInitialized == 1;
2804
2805 if (!hasRegion()) {
2806 memoizedIsInitialized = 0;
2807 return false;
2808 }
2809 if (!hasGet()) {
2810 memoizedIsInitialized = 0;
2811 return false;
2812 }
2813 if (!getRegion().isInitialized()) {
2814 memoizedIsInitialized = 0;
2815 return false;
2816 }
2817 if (!getGet().isInitialized()) {
2818 memoizedIsInitialized = 0;
2819 return false;
2820 }
2821 memoizedIsInitialized = 1;
2822 return true;
2823 }
2824
2825 public void writeTo(com.google.protobuf.CodedOutputStream output)
2826 throws java.io.IOException {
2827 getSerializedSize();
2828 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2829 output.writeMessage(1, region_);
2830 }
2831 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2832 output.writeMessage(2, get_);
2833 }
2834 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2835 output.writeBool(3, closestRowBefore_);
2836 }
2837 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2838 output.writeBool(4, existenceOnly_);
2839 }
2840 getUnknownFields().writeTo(output);
2841 }
2842
2843 private int memoizedSerializedSize = -1;
2844 public int getSerializedSize() {
2845 int size = memoizedSerializedSize;
2846 if (size != -1) return size;
2847
2848 size = 0;
2849 if (((bitField0_ & 0x00000001) == 0x00000001)) {
2850 size += com.google.protobuf.CodedOutputStream
2851 .computeMessageSize(1, region_);
2852 }
2853 if (((bitField0_ & 0x00000002) == 0x00000002)) {
2854 size += com.google.protobuf.CodedOutputStream
2855 .computeMessageSize(2, get_);
2856 }
2857 if (((bitField0_ & 0x00000004) == 0x00000004)) {
2858 size += com.google.protobuf.CodedOutputStream
2859 .computeBoolSize(3, closestRowBefore_);
2860 }
2861 if (((bitField0_ & 0x00000008) == 0x00000008)) {
2862 size += com.google.protobuf.CodedOutputStream
2863 .computeBoolSize(4, existenceOnly_);
2864 }
2865 size += getUnknownFields().getSerializedSize();
2866 memoizedSerializedSize = size;
2867 return size;
2868 }
2869
2870 private static final long serialVersionUID = 0L;
2871 @java.lang.Override
2872 protected java.lang.Object writeReplace()
2873 throws java.io.ObjectStreamException {
2874 return super.writeReplace();
2875 }
2876
2877 @java.lang.Override
2878 public boolean equals(final java.lang.Object obj) {
2879 if (obj == this) {
2880 return true;
2881 }
2882 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest)) {
2883 return super.equals(obj);
2884 }
2885 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest other = (org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest) obj;
2886
2887 boolean result = true;
2888 result = result && (hasRegion() == other.hasRegion());
2889 if (hasRegion()) {
2890 result = result && getRegion()
2891 .equals(other.getRegion());
2892 }
2893 result = result && (hasGet() == other.hasGet());
2894 if (hasGet()) {
2895 result = result && getGet()
2896 .equals(other.getGet());
2897 }
2898 result = result && (hasClosestRowBefore() == other.hasClosestRowBefore());
2899 if (hasClosestRowBefore()) {
2900 result = result && (getClosestRowBefore()
2901 == other.getClosestRowBefore());
2902 }
2903 result = result && (hasExistenceOnly() == other.hasExistenceOnly());
2904 if (hasExistenceOnly()) {
2905 result = result && (getExistenceOnly()
2906 == other.getExistenceOnly());
2907 }
2908 result = result &&
2909 getUnknownFields().equals(other.getUnknownFields());
2910 return result;
2911 }
2912
2913 @java.lang.Override
2914 public int hashCode() {
2915 int hash = 41;
2916 hash = (19 * hash) + getDescriptorForType().hashCode();
2917 if (hasRegion()) {
2918 hash = (37 * hash) + REGION_FIELD_NUMBER;
2919 hash = (53 * hash) + getRegion().hashCode();
2920 }
2921 if (hasGet()) {
2922 hash = (37 * hash) + GET_FIELD_NUMBER;
2923 hash = (53 * hash) + getGet().hashCode();
2924 }
2925 if (hasClosestRowBefore()) {
2926 hash = (37 * hash) + CLOSESTROWBEFORE_FIELD_NUMBER;
2927 hash = (53 * hash) + hashBoolean(getClosestRowBefore());
2928 }
2929 if (hasExistenceOnly()) {
2930 hash = (37 * hash) + EXISTENCEONLY_FIELD_NUMBER;
2931 hash = (53 * hash) + hashBoolean(getExistenceOnly());
2932 }
2933 hash = (29 * hash) + getUnknownFields().hashCode();
2934 return hash;
2935 }
2936
2937 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest parseFrom(
2938 com.google.protobuf.ByteString data)
2939 throws com.google.protobuf.InvalidProtocolBufferException {
2940 return newBuilder().mergeFrom(data).buildParsed();
2941 }
2942 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest parseFrom(
2943 com.google.protobuf.ByteString data,
2944 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2945 throws com.google.protobuf.InvalidProtocolBufferException {
2946 return newBuilder().mergeFrom(data, extensionRegistry)
2947 .buildParsed();
2948 }
2949 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest parseFrom(byte[] data)
2950 throws com.google.protobuf.InvalidProtocolBufferException {
2951 return newBuilder().mergeFrom(data).buildParsed();
2952 }
2953 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest parseFrom(
2954 byte[] data,
2955 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2956 throws com.google.protobuf.InvalidProtocolBufferException {
2957 return newBuilder().mergeFrom(data, extensionRegistry)
2958 .buildParsed();
2959 }
2960 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest parseFrom(java.io.InputStream input)
2961 throws java.io.IOException {
2962 return newBuilder().mergeFrom(input).buildParsed();
2963 }
2964 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest parseFrom(
2965 java.io.InputStream input,
2966 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2967 throws java.io.IOException {
2968 return newBuilder().mergeFrom(input, extensionRegistry)
2969 .buildParsed();
2970 }
2971 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest parseDelimitedFrom(java.io.InputStream input)
2972 throws java.io.IOException {
2973 Builder builder = newBuilder();
2974 if (builder.mergeDelimitedFrom(input)) {
2975 return builder.buildParsed();
2976 } else {
2977 return null;
2978 }
2979 }
2980 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest parseDelimitedFrom(
2981 java.io.InputStream input,
2982 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2983 throws java.io.IOException {
2984 Builder builder = newBuilder();
2985 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
2986 return builder.buildParsed();
2987 } else {
2988 return null;
2989 }
2990 }
2991 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest parseFrom(
2992 com.google.protobuf.CodedInputStream input)
2993 throws java.io.IOException {
2994 return newBuilder().mergeFrom(input).buildParsed();
2995 }
2996 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest parseFrom(
2997 com.google.protobuf.CodedInputStream input,
2998 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2999 throws java.io.IOException {
3000 return newBuilder().mergeFrom(input, extensionRegistry)
3001 .buildParsed();
3002 }
3003
3004 public static Builder newBuilder() { return Builder.create(); }
3005 public Builder newBuilderForType() { return newBuilder(); }
3006 public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest prototype) {
3007 return newBuilder().mergeFrom(prototype);
3008 }
3009 public Builder toBuilder() { return newBuilder(this); }
3010
3011 @java.lang.Override
3012 protected Builder newBuilderForType(
3013 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3014 Builder builder = new Builder(parent);
3015 return builder;
3016 }
3017 public static final class Builder extends
3018 com.google.protobuf.GeneratedMessage.Builder<Builder>
3019 implements org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequestOrBuilder {
3020 public static final com.google.protobuf.Descriptors.Descriptor
3021 getDescriptor() {
3022 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_GetRequest_descriptor;
3023 }
3024
3025 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3026 internalGetFieldAccessorTable() {
3027 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_GetRequest_fieldAccessorTable;
3028 }
3029
3030
3031 private Builder() {
3032 maybeForceBuilderInitialization();
3033 }
3034
3035 private Builder(BuilderParent parent) {
3036 super(parent);
3037 maybeForceBuilderInitialization();
3038 }
3039 private void maybeForceBuilderInitialization() {
3040 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
3041 getRegionFieldBuilder();
3042 getGetFieldBuilder();
3043 }
3044 }
3045 private static Builder create() {
3046 return new Builder();
3047 }
3048
3049 public Builder clear() {
3050 super.clear();
3051 if (regionBuilder_ == null) {
3052 region_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.getDefaultInstance();
3053 } else {
3054 regionBuilder_.clear();
3055 }
3056 bitField0_ = (bitField0_ & ~0x00000001);
3057 if (getBuilder_ == null) {
3058 get_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.getDefaultInstance();
3059 } else {
3060 getBuilder_.clear();
3061 }
3062 bitField0_ = (bitField0_ & ~0x00000002);
3063 closestRowBefore_ = false;
3064 bitField0_ = (bitField0_ & ~0x00000004);
3065 existenceOnly_ = false;
3066 bitField0_ = (bitField0_ & ~0x00000008);
3067 return this;
3068 }
3069
3070 public Builder clone() {
3071 return create().mergeFrom(buildPartial());
3072 }
3073
3074 public com.google.protobuf.Descriptors.Descriptor
3075 getDescriptorForType() {
3076 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest.getDescriptor();
3077 }
3078
3079 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest getDefaultInstanceForType() {
3080 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest.getDefaultInstance();
3081 }
3082
3083 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest build() {
3084 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest result = buildPartial();
3085 if (!result.isInitialized()) {
3086 throw newUninitializedMessageException(result);
3087 }
3088 return result;
3089 }
3090
3091 private org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest buildParsed()
3092 throws com.google.protobuf.InvalidProtocolBufferException {
3093 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest result = buildPartial();
3094 if (!result.isInitialized()) {
3095 throw newUninitializedMessageException(
3096 result).asInvalidProtocolBufferException();
3097 }
3098 return result;
3099 }
3100
3101 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest buildPartial() {
3102 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest result = new org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest(this);
3103 int from_bitField0_ = bitField0_;
3104 int to_bitField0_ = 0;
3105 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
3106 to_bitField0_ |= 0x00000001;
3107 }
3108 if (regionBuilder_ == null) {
3109 result.region_ = region_;
3110 } else {
3111 result.region_ = regionBuilder_.build();
3112 }
3113 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
3114 to_bitField0_ |= 0x00000002;
3115 }
3116 if (getBuilder_ == null) {
3117 result.get_ = get_;
3118 } else {
3119 result.get_ = getBuilder_.build();
3120 }
3121 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
3122 to_bitField0_ |= 0x00000004;
3123 }
3124 result.closestRowBefore_ = closestRowBefore_;
3125 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
3126 to_bitField0_ |= 0x00000008;
3127 }
3128 result.existenceOnly_ = existenceOnly_;
3129 result.bitField0_ = to_bitField0_;
3130 onBuilt();
3131 return result;
3132 }
3133
3134 public Builder mergeFrom(com.google.protobuf.Message other) {
3135 if (other instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest) {
3136 return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest)other);
3137 } else {
3138 super.mergeFrom(other);
3139 return this;
3140 }
3141 }
3142
3143 public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest other) {
3144 if (other == org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetRequest.getDefaultInstance()) return this;
3145 if (other.hasRegion()) {
3146 mergeRegion(other.getRegion());
3147 }
3148 if (other.hasGet()) {
3149 mergeGet(other.getGet());
3150 }
3151 if (other.hasClosestRowBefore()) {
3152 setClosestRowBefore(other.getClosestRowBefore());
3153 }
3154 if (other.hasExistenceOnly()) {
3155 setExistenceOnly(other.getExistenceOnly());
3156 }
3157 this.mergeUnknownFields(other.getUnknownFields());
3158 return this;
3159 }
3160
3161 public final boolean isInitialized() {
3162 if (!hasRegion()) {
3163
3164 return false;
3165 }
3166 if (!hasGet()) {
3167
3168 return false;
3169 }
3170 if (!getRegion().isInitialized()) {
3171
3172 return false;
3173 }
3174 if (!getGet().isInitialized()) {
3175
3176 return false;
3177 }
3178 return true;
3179 }
3180
3181 public Builder mergeFrom(
3182 com.google.protobuf.CodedInputStream input,
3183 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3184 throws java.io.IOException {
3185 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
3186 com.google.protobuf.UnknownFieldSet.newBuilder(
3187 this.getUnknownFields());
3188 while (true) {
3189 int tag = input.readTag();
3190 switch (tag) {
3191 case 0:
3192 this.setUnknownFields(unknownFields.build());
3193 onChanged();
3194 return this;
3195 default: {
3196 if (!parseUnknownField(input, unknownFields,
3197 extensionRegistry, tag)) {
3198 this.setUnknownFields(unknownFields.build());
3199 onChanged();
3200 return this;
3201 }
3202 break;
3203 }
3204 case 10: {
3205 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.newBuilder();
3206 if (hasRegion()) {
3207 subBuilder.mergeFrom(getRegion());
3208 }
3209 input.readMessage(subBuilder, extensionRegistry);
3210 setRegion(subBuilder.buildPartial());
3211 break;
3212 }
3213 case 18: {
3214 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.newBuilder();
3215 if (hasGet()) {
3216 subBuilder.mergeFrom(getGet());
3217 }
3218 input.readMessage(subBuilder, extensionRegistry);
3219 setGet(subBuilder.buildPartial());
3220 break;
3221 }
3222 case 24: {
3223 bitField0_ |= 0x00000004;
3224 closestRowBefore_ = input.readBool();
3225 break;
3226 }
3227 case 32: {
3228 bitField0_ |= 0x00000008;
3229 existenceOnly_ = input.readBool();
3230 break;
3231 }
3232 }
3233 }
3234 }
3235
3236 private int bitField0_;
3237
3238
3239 private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier region_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.getDefaultInstance();
3240 private com.google.protobuf.SingleFieldBuilder<
3241 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifierOrBuilder> regionBuilder_;
3242 public boolean hasRegion() {
3243 return ((bitField0_ & 0x00000001) == 0x00000001);
3244 }
3245 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier getRegion() {
3246 if (regionBuilder_ == null) {
3247 return region_;
3248 } else {
3249 return regionBuilder_.getMessage();
3250 }
3251 }
3252 public Builder setRegion(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier value) {
3253 if (regionBuilder_ == null) {
3254 if (value == null) {
3255 throw new NullPointerException();
3256 }
3257 region_ = value;
3258 onChanged();
3259 } else {
3260 regionBuilder_.setMessage(value);
3261 }
3262 bitField0_ |= 0x00000001;
3263 return this;
3264 }
3265 public Builder setRegion(
3266 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.Builder builderForValue) {
3267 if (regionBuilder_ == null) {
3268 region_ = builderForValue.build();
3269 onChanged();
3270 } else {
3271 regionBuilder_.setMessage(builderForValue.build());
3272 }
3273 bitField0_ |= 0x00000001;
3274 return this;
3275 }
3276 public Builder mergeRegion(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier value) {
3277 if (regionBuilder_ == null) {
3278 if (((bitField0_ & 0x00000001) == 0x00000001) &&
3279 region_ != org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.getDefaultInstance()) {
3280 region_ =
3281 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.newBuilder(region_).mergeFrom(value).buildPartial();
3282 } else {
3283 region_ = value;
3284 }
3285 onChanged();
3286 } else {
3287 regionBuilder_.mergeFrom(value);
3288 }
3289 bitField0_ |= 0x00000001;
3290 return this;
3291 }
3292 public Builder clearRegion() {
3293 if (regionBuilder_ == null) {
3294 region_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.getDefaultInstance();
3295 onChanged();
3296 } else {
3297 regionBuilder_.clear();
3298 }
3299 bitField0_ = (bitField0_ & ~0x00000001);
3300 return this;
3301 }
3302 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.Builder getRegionBuilder() {
3303 bitField0_ |= 0x00000001;
3304 onChanged();
3305 return getRegionFieldBuilder().getBuilder();
3306 }
3307 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifierOrBuilder getRegionOrBuilder() {
3308 if (regionBuilder_ != null) {
3309 return regionBuilder_.getMessageOrBuilder();
3310 } else {
3311 return region_;
3312 }
3313 }
3314 private com.google.protobuf.SingleFieldBuilder<
3315 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifierOrBuilder>
3316 getRegionFieldBuilder() {
3317 if (regionBuilder_ == null) {
3318 regionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3319 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifierOrBuilder>(
3320 region_,
3321 getParentForChildren(),
3322 isClean());
3323 region_ = null;
3324 }
3325 return regionBuilder_;
3326 }
3327
3328
3329 private org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get get_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.getDefaultInstance();
3330 private com.google.protobuf.SingleFieldBuilder<
3331 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetOrBuilder> getBuilder_;
3332 public boolean hasGet() {
3333 return ((bitField0_ & 0x00000002) == 0x00000002);
3334 }
3335 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get getGet() {
3336 if (getBuilder_ == null) {
3337 return get_;
3338 } else {
3339 return getBuilder_.getMessage();
3340 }
3341 }
3342 public Builder setGet(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get value) {
3343 if (getBuilder_ == null) {
3344 if (value == null) {
3345 throw new NullPointerException();
3346 }
3347 get_ = value;
3348 onChanged();
3349 } else {
3350 getBuilder_.setMessage(value);
3351 }
3352 bitField0_ |= 0x00000002;
3353 return this;
3354 }
3355 public Builder setGet(
3356 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.Builder builderForValue) {
3357 if (getBuilder_ == null) {
3358 get_ = builderForValue.build();
3359 onChanged();
3360 } else {
3361 getBuilder_.setMessage(builderForValue.build());
3362 }
3363 bitField0_ |= 0x00000002;
3364 return this;
3365 }
3366 public Builder mergeGet(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get value) {
3367 if (getBuilder_ == null) {
3368 if (((bitField0_ & 0x00000002) == 0x00000002) &&
3369 get_ != org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.getDefaultInstance()) {
3370 get_ =
3371 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.newBuilder(get_).mergeFrom(value).buildPartial();
3372 } else {
3373 get_ = value;
3374 }
3375 onChanged();
3376 } else {
3377 getBuilder_.mergeFrom(value);
3378 }
3379 bitField0_ |= 0x00000002;
3380 return this;
3381 }
3382 public Builder clearGet() {
3383 if (getBuilder_ == null) {
3384 get_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.getDefaultInstance();
3385 onChanged();
3386 } else {
3387 getBuilder_.clear();
3388 }
3389 bitField0_ = (bitField0_ & ~0x00000002);
3390 return this;
3391 }
3392 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.Builder getGetBuilder() {
3393 bitField0_ |= 0x00000002;
3394 onChanged();
3395 return getGetFieldBuilder().getBuilder();
3396 }
3397 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetOrBuilder getGetOrBuilder() {
3398 if (getBuilder_ != null) {
3399 return getBuilder_.getMessageOrBuilder();
3400 } else {
3401 return get_;
3402 }
3403 }
3404 private com.google.protobuf.SingleFieldBuilder<
3405 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetOrBuilder>
3406 getGetFieldBuilder() {
3407 if (getBuilder_ == null) {
3408 getBuilder_ = new com.google.protobuf.SingleFieldBuilder<
3409 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetOrBuilder>(
3410 get_,
3411 getParentForChildren(),
3412 isClean());
3413 get_ = null;
3414 }
3415 return getBuilder_;
3416 }
3417
3418
3419 private boolean closestRowBefore_ ;
3420 public boolean hasClosestRowBefore() {
3421 return ((bitField0_ & 0x00000004) == 0x00000004);
3422 }
3423 public boolean getClosestRowBefore() {
3424 return closestRowBefore_;
3425 }
3426 public Builder setClosestRowBefore(boolean value) {
3427 bitField0_ |= 0x00000004;
3428 closestRowBefore_ = value;
3429 onChanged();
3430 return this;
3431 }
3432 public Builder clearClosestRowBefore() {
3433 bitField0_ = (bitField0_ & ~0x00000004);
3434 closestRowBefore_ = false;
3435 onChanged();
3436 return this;
3437 }
3438
3439
3440 private boolean existenceOnly_ ;
3441 public boolean hasExistenceOnly() {
3442 return ((bitField0_ & 0x00000008) == 0x00000008);
3443 }
3444 public boolean getExistenceOnly() {
3445 return existenceOnly_;
3446 }
3447 public Builder setExistenceOnly(boolean value) {
3448 bitField0_ |= 0x00000008;
3449 existenceOnly_ = value;
3450 onChanged();
3451 return this;
3452 }
3453 public Builder clearExistenceOnly() {
3454 bitField0_ = (bitField0_ & ~0x00000008);
3455 existenceOnly_ = false;
3456 onChanged();
3457 return this;
3458 }
3459
3460
3461 }
3462
3463 static {
3464 defaultInstance = new GetRequest(true);
3465 defaultInstance.initFields();
3466 }
3467
3468
3469 }
3470
3471 public interface MultiGetRequestOrBuilder
3472 extends com.google.protobuf.MessageOrBuilder {
3473
3474
3475 boolean hasRegion();
3476 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier getRegion();
3477 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifierOrBuilder getRegionOrBuilder();
3478
3479
3480 java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get>
3481 getGetList();
3482 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get getGet(int index);
3483 int getGetCount();
3484 java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetOrBuilder>
3485 getGetOrBuilderList();
3486 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetOrBuilder getGetOrBuilder(
3487 int index);
3488
3489
3490 boolean hasClosestRowBefore();
3491 boolean getClosestRowBefore();
3492
3493
3494 boolean hasExistenceOnly();
3495 boolean getExistenceOnly();
3496 }
3497 public static final class MultiGetRequest extends
3498 com.google.protobuf.GeneratedMessage
3499 implements MultiGetRequestOrBuilder {
3500
3501 private MultiGetRequest(Builder builder) {
3502 super(builder);
3503 }
3504 private MultiGetRequest(boolean noInit) {}
3505
3506 private static final MultiGetRequest defaultInstance;
3507 public static MultiGetRequest getDefaultInstance() {
3508 return defaultInstance;
3509 }
3510
3511 public MultiGetRequest getDefaultInstanceForType() {
3512 return defaultInstance;
3513 }
3514
3515 public static final com.google.protobuf.Descriptors.Descriptor
3516 getDescriptor() {
3517 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_MultiGetRequest_descriptor;
3518 }
3519
3520 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3521 internalGetFieldAccessorTable() {
3522 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_MultiGetRequest_fieldAccessorTable;
3523 }
3524
3525 private int bitField0_;
3526
3527 public static final int REGION_FIELD_NUMBER = 1;
3528 private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier region_;
3529 public boolean hasRegion() {
3530 return ((bitField0_ & 0x00000001) == 0x00000001);
3531 }
3532 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier getRegion() {
3533 return region_;
3534 }
3535 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifierOrBuilder getRegionOrBuilder() {
3536 return region_;
3537 }
3538
3539
3540 public static final int GET_FIELD_NUMBER = 2;
3541 private java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get> get_;
3542 public java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get> getGetList() {
3543 return get_;
3544 }
3545 public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetOrBuilder>
3546 getGetOrBuilderList() {
3547 return get_;
3548 }
3549 public int getGetCount() {
3550 return get_.size();
3551 }
3552 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get getGet(int index) {
3553 return get_.get(index);
3554 }
3555 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetOrBuilder getGetOrBuilder(
3556 int index) {
3557 return get_.get(index);
3558 }
3559
3560
3561 public static final int CLOSESTROWBEFORE_FIELD_NUMBER = 3;
3562 private boolean closestRowBefore_;
3563 public boolean hasClosestRowBefore() {
3564 return ((bitField0_ & 0x00000002) == 0x00000002);
3565 }
3566 public boolean getClosestRowBefore() {
3567 return closestRowBefore_;
3568 }
3569
3570
3571 public static final int EXISTENCEONLY_FIELD_NUMBER = 4;
3572 private boolean existenceOnly_;
3573 public boolean hasExistenceOnly() {
3574 return ((bitField0_ & 0x00000004) == 0x00000004);
3575 }
3576 public boolean getExistenceOnly() {
3577 return existenceOnly_;
3578 }
3579
3580 private void initFields() {
3581 region_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.getDefaultInstance();
3582 get_ = java.util.Collections.emptyList();
3583 closestRowBefore_ = false;
3584 existenceOnly_ = false;
3585 }
3586 private byte memoizedIsInitialized = -1;
3587 public final boolean isInitialized() {
3588 byte isInitialized = memoizedIsInitialized;
3589 if (isInitialized != -1) return isInitialized == 1;
3590
3591 if (!hasRegion()) {
3592 memoizedIsInitialized = 0;
3593 return false;
3594 }
3595 if (!getRegion().isInitialized()) {
3596 memoizedIsInitialized = 0;
3597 return false;
3598 }
3599 for (int i = 0; i < getGetCount(); i++) {
3600 if (!getGet(i).isInitialized()) {
3601 memoizedIsInitialized = 0;
3602 return false;
3603 }
3604 }
3605 memoizedIsInitialized = 1;
3606 return true;
3607 }
3608
3609 public void writeTo(com.google.protobuf.CodedOutputStream output)
3610 throws java.io.IOException {
3611 getSerializedSize();
3612 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3613 output.writeMessage(1, region_);
3614 }
3615 for (int i = 0; i < get_.size(); i++) {
3616 output.writeMessage(2, get_.get(i));
3617 }
3618 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3619 output.writeBool(3, closestRowBefore_);
3620 }
3621 if (((bitField0_ & 0x00000004) == 0x00000004)) {
3622 output.writeBool(4, existenceOnly_);
3623 }
3624 getUnknownFields().writeTo(output);
3625 }
3626
3627 private int memoizedSerializedSize = -1;
3628 public int getSerializedSize() {
3629 int size = memoizedSerializedSize;
3630 if (size != -1) return size;
3631
3632 size = 0;
3633 if (((bitField0_ & 0x00000001) == 0x00000001)) {
3634 size += com.google.protobuf.CodedOutputStream
3635 .computeMessageSize(1, region_);
3636 }
3637 for (int i = 0; i < get_.size(); i++) {
3638 size += com.google.protobuf.CodedOutputStream
3639 .computeMessageSize(2, get_.get(i));
3640 }
3641 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3642 size += com.google.protobuf.CodedOutputStream
3643 .computeBoolSize(3, closestRowBefore_);
3644 }
3645 if (((bitField0_ & 0x00000004) == 0x00000004)) {
3646 size += com.google.protobuf.CodedOutputStream
3647 .computeBoolSize(4, existenceOnly_);
3648 }
3649 size += getUnknownFields().getSerializedSize();
3650 memoizedSerializedSize = size;
3651 return size;
3652 }
3653
3654 private static final long serialVersionUID = 0L;
3655 @java.lang.Override
3656 protected java.lang.Object writeReplace()
3657 throws java.io.ObjectStreamException {
3658 return super.writeReplace();
3659 }
3660
3661 @java.lang.Override
3662 public boolean equals(final java.lang.Object obj) {
3663 if (obj == this) {
3664 return true;
3665 }
3666 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest)) {
3667 return super.equals(obj);
3668 }
3669 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest other = (org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest) obj;
3670
3671 boolean result = true;
3672 result = result && (hasRegion() == other.hasRegion());
3673 if (hasRegion()) {
3674 result = result && getRegion()
3675 .equals(other.getRegion());
3676 }
3677 result = result && getGetList()
3678 .equals(other.getGetList());
3679 result = result && (hasClosestRowBefore() == other.hasClosestRowBefore());
3680 if (hasClosestRowBefore()) {
3681 result = result && (getClosestRowBefore()
3682 == other.getClosestRowBefore());
3683 }
3684 result = result && (hasExistenceOnly() == other.hasExistenceOnly());
3685 if (hasExistenceOnly()) {
3686 result = result && (getExistenceOnly()
3687 == other.getExistenceOnly());
3688 }
3689 result = result &&
3690 getUnknownFields().equals(other.getUnknownFields());
3691 return result;
3692 }
3693
3694 @java.lang.Override
3695 public int hashCode() {
3696 int hash = 41;
3697 hash = (19 * hash) + getDescriptorForType().hashCode();
3698 if (hasRegion()) {
3699 hash = (37 * hash) + REGION_FIELD_NUMBER;
3700 hash = (53 * hash) + getRegion().hashCode();
3701 }
3702 if (getGetCount() > 0) {
3703 hash = (37 * hash) + GET_FIELD_NUMBER;
3704 hash = (53 * hash) + getGetList().hashCode();
3705 }
3706 if (hasClosestRowBefore()) {
3707 hash = (37 * hash) + CLOSESTROWBEFORE_FIELD_NUMBER;
3708 hash = (53 * hash) + hashBoolean(getClosestRowBefore());
3709 }
3710 if (hasExistenceOnly()) {
3711 hash = (37 * hash) + EXISTENCEONLY_FIELD_NUMBER;
3712 hash = (53 * hash) + hashBoolean(getExistenceOnly());
3713 }
3714 hash = (29 * hash) + getUnknownFields().hashCode();
3715 return hash;
3716 }
3717
3718 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest parseFrom(
3719 com.google.protobuf.ByteString data)
3720 throws com.google.protobuf.InvalidProtocolBufferException {
3721 return newBuilder().mergeFrom(data).buildParsed();
3722 }
3723 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest parseFrom(
3724 com.google.protobuf.ByteString data,
3725 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3726 throws com.google.protobuf.InvalidProtocolBufferException {
3727 return newBuilder().mergeFrom(data, extensionRegistry)
3728 .buildParsed();
3729 }
3730 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest parseFrom(byte[] data)
3731 throws com.google.protobuf.InvalidProtocolBufferException {
3732 return newBuilder().mergeFrom(data).buildParsed();
3733 }
3734 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest parseFrom(
3735 byte[] data,
3736 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3737 throws com.google.protobuf.InvalidProtocolBufferException {
3738 return newBuilder().mergeFrom(data, extensionRegistry)
3739 .buildParsed();
3740 }
3741 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest parseFrom(java.io.InputStream input)
3742 throws java.io.IOException {
3743 return newBuilder().mergeFrom(input).buildParsed();
3744 }
3745 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest parseFrom(
3746 java.io.InputStream input,
3747 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3748 throws java.io.IOException {
3749 return newBuilder().mergeFrom(input, extensionRegistry)
3750 .buildParsed();
3751 }
3752 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest parseDelimitedFrom(java.io.InputStream input)
3753 throws java.io.IOException {
3754 Builder builder = newBuilder();
3755 if (builder.mergeDelimitedFrom(input)) {
3756 return builder.buildParsed();
3757 } else {
3758 return null;
3759 }
3760 }
3761 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest parseDelimitedFrom(
3762 java.io.InputStream input,
3763 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3764 throws java.io.IOException {
3765 Builder builder = newBuilder();
3766 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
3767 return builder.buildParsed();
3768 } else {
3769 return null;
3770 }
3771 }
3772 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest parseFrom(
3773 com.google.protobuf.CodedInputStream input)
3774 throws java.io.IOException {
3775 return newBuilder().mergeFrom(input).buildParsed();
3776 }
3777 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest parseFrom(
3778 com.google.protobuf.CodedInputStream input,
3779 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3780 throws java.io.IOException {
3781 return newBuilder().mergeFrom(input, extensionRegistry)
3782 .buildParsed();
3783 }
3784
3785 public static Builder newBuilder() { return Builder.create(); }
3786 public Builder newBuilderForType() { return newBuilder(); }
3787 public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest prototype) {
3788 return newBuilder().mergeFrom(prototype);
3789 }
3790 public Builder toBuilder() { return newBuilder(this); }
3791
3792 @java.lang.Override
3793 protected Builder newBuilderForType(
3794 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3795 Builder builder = new Builder(parent);
3796 return builder;
3797 }
3798 public static final class Builder extends
3799 com.google.protobuf.GeneratedMessage.Builder<Builder>
3800 implements org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequestOrBuilder {
3801 public static final com.google.protobuf.Descriptors.Descriptor
3802 getDescriptor() {
3803 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_MultiGetRequest_descriptor;
3804 }
3805
3806 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3807 internalGetFieldAccessorTable() {
3808 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_MultiGetRequest_fieldAccessorTable;
3809 }
3810
3811
3812 private Builder() {
3813 maybeForceBuilderInitialization();
3814 }
3815
3816 private Builder(BuilderParent parent) {
3817 super(parent);
3818 maybeForceBuilderInitialization();
3819 }
3820 private void maybeForceBuilderInitialization() {
3821 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
3822 getRegionFieldBuilder();
3823 getGetFieldBuilder();
3824 }
3825 }
3826 private static Builder create() {
3827 return new Builder();
3828 }
3829
3830 public Builder clear() {
3831 super.clear();
3832 if (regionBuilder_ == null) {
3833 region_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.getDefaultInstance();
3834 } else {
3835 regionBuilder_.clear();
3836 }
3837 bitField0_ = (bitField0_ & ~0x00000001);
3838 if (getBuilder_ == null) {
3839 get_ = java.util.Collections.emptyList();
3840 bitField0_ = (bitField0_ & ~0x00000002);
3841 } else {
3842 getBuilder_.clear();
3843 }
3844 closestRowBefore_ = false;
3845 bitField0_ = (bitField0_ & ~0x00000004);
3846 existenceOnly_ = false;
3847 bitField0_ = (bitField0_ & ~0x00000008);
3848 return this;
3849 }
3850
3851 public Builder clone() {
3852 return create().mergeFrom(buildPartial());
3853 }
3854
3855 public com.google.protobuf.Descriptors.Descriptor
3856 getDescriptorForType() {
3857 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest.getDescriptor();
3858 }
3859
3860 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest getDefaultInstanceForType() {
3861 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest.getDefaultInstance();
3862 }
3863
3864 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest build() {
3865 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest result = buildPartial();
3866 if (!result.isInitialized()) {
3867 throw newUninitializedMessageException(result);
3868 }
3869 return result;
3870 }
3871
3872 private org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest buildParsed()
3873 throws com.google.protobuf.InvalidProtocolBufferException {
3874 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest result = buildPartial();
3875 if (!result.isInitialized()) {
3876 throw newUninitializedMessageException(
3877 result).asInvalidProtocolBufferException();
3878 }
3879 return result;
3880 }
3881
3882 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest buildPartial() {
3883 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest result = new org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest(this);
3884 int from_bitField0_ = bitField0_;
3885 int to_bitField0_ = 0;
3886 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
3887 to_bitField0_ |= 0x00000001;
3888 }
3889 if (regionBuilder_ == null) {
3890 result.region_ = region_;
3891 } else {
3892 result.region_ = regionBuilder_.build();
3893 }
3894 if (getBuilder_ == null) {
3895 if (((bitField0_ & 0x00000002) == 0x00000002)) {
3896 get_ = java.util.Collections.unmodifiableList(get_);
3897 bitField0_ = (bitField0_ & ~0x00000002);
3898 }
3899 result.get_ = get_;
3900 } else {
3901 result.get_ = getBuilder_.build();
3902 }
3903 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
3904 to_bitField0_ |= 0x00000002;
3905 }
3906 result.closestRowBefore_ = closestRowBefore_;
3907 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
3908 to_bitField0_ |= 0x00000004;
3909 }
3910 result.existenceOnly_ = existenceOnly_;
3911 result.bitField0_ = to_bitField0_;
3912 onBuilt();
3913 return result;
3914 }
3915
3916 public Builder mergeFrom(com.google.protobuf.Message other) {
3917 if (other instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest) {
3918 return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest)other);
3919 } else {
3920 super.mergeFrom(other);
3921 return this;
3922 }
3923 }
3924
3925 public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest other) {
3926 if (other == org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetRequest.getDefaultInstance()) return this;
3927 if (other.hasRegion()) {
3928 mergeRegion(other.getRegion());
3929 }
3930 if (getBuilder_ == null) {
3931 if (!other.get_.isEmpty()) {
3932 if (get_.isEmpty()) {
3933 get_ = other.get_;
3934 bitField0_ = (bitField0_ & ~0x00000002);
3935 } else {
3936 ensureGetIsMutable();
3937 get_.addAll(other.get_);
3938 }
3939 onChanged();
3940 }
3941 } else {
3942 if (!other.get_.isEmpty()) {
3943 if (getBuilder_.isEmpty()) {
3944 getBuilder_.dispose();
3945 getBuilder_ = null;
3946 get_ = other.get_;
3947 bitField0_ = (bitField0_ & ~0x00000002);
3948 getBuilder_ =
3949 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
3950 getGetFieldBuilder() : null;
3951 } else {
3952 getBuilder_.addAllMessages(other.get_);
3953 }
3954 }
3955 }
3956 if (other.hasClosestRowBefore()) {
3957 setClosestRowBefore(other.getClosestRowBefore());
3958 }
3959 if (other.hasExistenceOnly()) {
3960 setExistenceOnly(other.getExistenceOnly());
3961 }
3962 this.mergeUnknownFields(other.getUnknownFields());
3963 return this;
3964 }
3965
3966 public final boolean isInitialized() {
3967 if (!hasRegion()) {
3968
3969 return false;
3970 }
3971 if (!getRegion().isInitialized()) {
3972
3973 return false;
3974 }
3975 for (int i = 0; i < getGetCount(); i++) {
3976 if (!getGet(i).isInitialized()) {
3977
3978 return false;
3979 }
3980 }
3981 return true;
3982 }
3983
3984 public Builder mergeFrom(
3985 com.google.protobuf.CodedInputStream input,
3986 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3987 throws java.io.IOException {
3988 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
3989 com.google.protobuf.UnknownFieldSet.newBuilder(
3990 this.getUnknownFields());
3991 while (true) {
3992 int tag = input.readTag();
3993 switch (tag) {
3994 case 0:
3995 this.setUnknownFields(unknownFields.build());
3996 onChanged();
3997 return this;
3998 default: {
3999 if (!parseUnknownField(input, unknownFields,
4000 extensionRegistry, tag)) {
4001 this.setUnknownFields(unknownFields.build());
4002 onChanged();
4003 return this;
4004 }
4005 break;
4006 }
4007 case 10: {
4008 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.newBuilder();
4009 if (hasRegion()) {
4010 subBuilder.mergeFrom(getRegion());
4011 }
4012 input.readMessage(subBuilder, extensionRegistry);
4013 setRegion(subBuilder.buildPartial());
4014 break;
4015 }
4016 case 18: {
4017 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.newBuilder();
4018 input.readMessage(subBuilder, extensionRegistry);
4019 addGet(subBuilder.buildPartial());
4020 break;
4021 }
4022 case 24: {
4023 bitField0_ |= 0x00000004;
4024 closestRowBefore_ = input.readBool();
4025 break;
4026 }
4027 case 32: {
4028 bitField0_ |= 0x00000008;
4029 existenceOnly_ = input.readBool();
4030 break;
4031 }
4032 }
4033 }
4034 }
4035
4036 private int bitField0_;
4037
4038
4039 private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier region_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.getDefaultInstance();
4040 private com.google.protobuf.SingleFieldBuilder<
4041 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifierOrBuilder> regionBuilder_;
4042 public boolean hasRegion() {
4043 return ((bitField0_ & 0x00000001) == 0x00000001);
4044 }
4045 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier getRegion() {
4046 if (regionBuilder_ == null) {
4047 return region_;
4048 } else {
4049 return regionBuilder_.getMessage();
4050 }
4051 }
4052 public Builder setRegion(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier value) {
4053 if (regionBuilder_ == null) {
4054 if (value == null) {
4055 throw new NullPointerException();
4056 }
4057 region_ = value;
4058 onChanged();
4059 } else {
4060 regionBuilder_.setMessage(value);
4061 }
4062 bitField0_ |= 0x00000001;
4063 return this;
4064 }
4065 public Builder setRegion(
4066 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.Builder builderForValue) {
4067 if (regionBuilder_ == null) {
4068 region_ = builderForValue.build();
4069 onChanged();
4070 } else {
4071 regionBuilder_.setMessage(builderForValue.build());
4072 }
4073 bitField0_ |= 0x00000001;
4074 return this;
4075 }
4076 public Builder mergeRegion(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier value) {
4077 if (regionBuilder_ == null) {
4078 if (((bitField0_ & 0x00000001) == 0x00000001) &&
4079 region_ != org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.getDefaultInstance()) {
4080 region_ =
4081 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.newBuilder(region_).mergeFrom(value).buildPartial();
4082 } else {
4083 region_ = value;
4084 }
4085 onChanged();
4086 } else {
4087 regionBuilder_.mergeFrom(value);
4088 }
4089 bitField0_ |= 0x00000001;
4090 return this;
4091 }
4092 public Builder clearRegion() {
4093 if (regionBuilder_ == null) {
4094 region_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.getDefaultInstance();
4095 onChanged();
4096 } else {
4097 regionBuilder_.clear();
4098 }
4099 bitField0_ = (bitField0_ & ~0x00000001);
4100 return this;
4101 }
4102 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.Builder getRegionBuilder() {
4103 bitField0_ |= 0x00000001;
4104 onChanged();
4105 return getRegionFieldBuilder().getBuilder();
4106 }
4107 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifierOrBuilder getRegionOrBuilder() {
4108 if (regionBuilder_ != null) {
4109 return regionBuilder_.getMessageOrBuilder();
4110 } else {
4111 return region_;
4112 }
4113 }
4114 private com.google.protobuf.SingleFieldBuilder<
4115 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifierOrBuilder>
4116 getRegionFieldBuilder() {
4117 if (regionBuilder_ == null) {
4118 regionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
4119 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifierOrBuilder>(
4120 region_,
4121 getParentForChildren(),
4122 isClean());
4123 region_ = null;
4124 }
4125 return regionBuilder_;
4126 }
4127
4128
4129 private java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get> get_ =
4130 java.util.Collections.emptyList();
4131 private void ensureGetIsMutable() {
4132 if (!((bitField0_ & 0x00000002) == 0x00000002)) {
4133 get_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get>(get_);
4134 bitField0_ |= 0x00000002;
4135 }
4136 }
4137
4138 private com.google.protobuf.RepeatedFieldBuilder<
4139 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetOrBuilder> getBuilder_;
4140
4141 public java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get> getGetList() {
4142 if (getBuilder_ == null) {
4143 return java.util.Collections.unmodifiableList(get_);
4144 } else {
4145 return getBuilder_.getMessageList();
4146 }
4147 }
4148 public int getGetCount() {
4149 if (getBuilder_ == null) {
4150 return get_.size();
4151 } else {
4152 return getBuilder_.getCount();
4153 }
4154 }
4155 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get getGet(int index) {
4156 if (getBuilder_ == null) {
4157 return get_.get(index);
4158 } else {
4159 return getBuilder_.getMessage(index);
4160 }
4161 }
4162 public Builder setGet(
4163 int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get value) {
4164 if (getBuilder_ == null) {
4165 if (value == null) {
4166 throw new NullPointerException();
4167 }
4168 ensureGetIsMutable();
4169 get_.set(index, value);
4170 onChanged();
4171 } else {
4172 getBuilder_.setMessage(index, value);
4173 }
4174 return this;
4175 }
4176 public Builder setGet(
4177 int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.Builder builderForValue) {
4178 if (getBuilder_ == null) {
4179 ensureGetIsMutable();
4180 get_.set(index, builderForValue.build());
4181 onChanged();
4182 } else {
4183 getBuilder_.setMessage(index, builderForValue.build());
4184 }
4185 return this;
4186 }
4187 public Builder addGet(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get value) {
4188 if (getBuilder_ == null) {
4189 if (value == null) {
4190 throw new NullPointerException();
4191 }
4192 ensureGetIsMutable();
4193 get_.add(value);
4194 onChanged();
4195 } else {
4196 getBuilder_.addMessage(value);
4197 }
4198 return this;
4199 }
4200 public Builder addGet(
4201 int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get value) {
4202 if (getBuilder_ == null) {
4203 if (value == null) {
4204 throw new NullPointerException();
4205 }
4206 ensureGetIsMutable();
4207 get_.add(index, value);
4208 onChanged();
4209 } else {
4210 getBuilder_.addMessage(index, value);
4211 }
4212 return this;
4213 }
4214 public Builder addGet(
4215 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.Builder builderForValue) {
4216 if (getBuilder_ == null) {
4217 ensureGetIsMutable();
4218 get_.add(builderForValue.build());
4219 onChanged();
4220 } else {
4221 getBuilder_.addMessage(builderForValue.build());
4222 }
4223 return this;
4224 }
4225 public Builder addGet(
4226 int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.Builder builderForValue) {
4227 if (getBuilder_ == null) {
4228 ensureGetIsMutable();
4229 get_.add(index, builderForValue.build());
4230 onChanged();
4231 } else {
4232 getBuilder_.addMessage(index, builderForValue.build());
4233 }
4234 return this;
4235 }
4236 public Builder addAllGet(
4237 java.lang.Iterable<? extends org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get> values) {
4238 if (getBuilder_ == null) {
4239 ensureGetIsMutable();
4240 super.addAll(values, get_);
4241 onChanged();
4242 } else {
4243 getBuilder_.addAllMessages(values);
4244 }
4245 return this;
4246 }
4247 public Builder clearGet() {
4248 if (getBuilder_ == null) {
4249 get_ = java.util.Collections.emptyList();
4250 bitField0_ = (bitField0_ & ~0x00000002);
4251 onChanged();
4252 } else {
4253 getBuilder_.clear();
4254 }
4255 return this;
4256 }
4257 public Builder removeGet(int index) {
4258 if (getBuilder_ == null) {
4259 ensureGetIsMutable();
4260 get_.remove(index);
4261 onChanged();
4262 } else {
4263 getBuilder_.remove(index);
4264 }
4265 return this;
4266 }
4267 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.Builder getGetBuilder(
4268 int index) {
4269 return getGetFieldBuilder().getBuilder(index);
4270 }
4271 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetOrBuilder getGetOrBuilder(
4272 int index) {
4273 if (getBuilder_ == null) {
4274 return get_.get(index); } else {
4275 return getBuilder_.getMessageOrBuilder(index);
4276 }
4277 }
4278 public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetOrBuilder>
4279 getGetOrBuilderList() {
4280 if (getBuilder_ != null) {
4281 return getBuilder_.getMessageOrBuilderList();
4282 } else {
4283 return java.util.Collections.unmodifiableList(get_);
4284 }
4285 }
4286 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.Builder addGetBuilder() {
4287 return getGetFieldBuilder().addBuilder(
4288 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.getDefaultInstance());
4289 }
4290 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.Builder addGetBuilder(
4291 int index) {
4292 return getGetFieldBuilder().addBuilder(
4293 index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.getDefaultInstance());
4294 }
4295 public java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.Builder>
4296 getGetBuilderList() {
4297 return getGetFieldBuilder().getBuilderList();
4298 }
4299 private com.google.protobuf.RepeatedFieldBuilder<
4300 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetOrBuilder>
4301 getGetFieldBuilder() {
4302 if (getBuilder_ == null) {
4303 getBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
4304 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Get.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetOrBuilder>(
4305 get_,
4306 ((bitField0_ & 0x00000002) == 0x00000002),
4307 getParentForChildren(),
4308 isClean());
4309 get_ = null;
4310 }
4311 return getBuilder_;
4312 }
4313
4314
4315 private boolean closestRowBefore_ ;
4316 public boolean hasClosestRowBefore() {
4317 return ((bitField0_ & 0x00000004) == 0x00000004);
4318 }
4319 public boolean getClosestRowBefore() {
4320 return closestRowBefore_;
4321 }
4322 public Builder setClosestRowBefore(boolean value) {
4323 bitField0_ |= 0x00000004;
4324 closestRowBefore_ = value;
4325 onChanged();
4326 return this;
4327 }
4328 public Builder clearClosestRowBefore() {
4329 bitField0_ = (bitField0_ & ~0x00000004);
4330 closestRowBefore_ = false;
4331 onChanged();
4332 return this;
4333 }
4334
4335
4336 private boolean existenceOnly_ ;
4337 public boolean hasExistenceOnly() {
4338 return ((bitField0_ & 0x00000008) == 0x00000008);
4339 }
4340 public boolean getExistenceOnly() {
4341 return existenceOnly_;
4342 }
4343 public Builder setExistenceOnly(boolean value) {
4344 bitField0_ |= 0x00000008;
4345 existenceOnly_ = value;
4346 onChanged();
4347 return this;
4348 }
4349 public Builder clearExistenceOnly() {
4350 bitField0_ = (bitField0_ & ~0x00000008);
4351 existenceOnly_ = false;
4352 onChanged();
4353 return this;
4354 }
4355
4356
4357 }
4358
4359 static {
4360 defaultInstance = new MultiGetRequest(true);
4361 defaultInstance.initFields();
4362 }
4363
4364
4365 }
4366
4367 public interface GetResponseOrBuilder
4368 extends com.google.protobuf.MessageOrBuilder {
4369
4370
4371 boolean hasResult();
4372 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result getResult();
4373 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrBuilder getResultOrBuilder();
4374
4375
4376 boolean hasExists();
4377 boolean getExists();
4378 }
4379 public static final class GetResponse extends
4380 com.google.protobuf.GeneratedMessage
4381 implements GetResponseOrBuilder {
4382
4383 private GetResponse(Builder builder) {
4384 super(builder);
4385 }
4386 private GetResponse(boolean noInit) {}
4387
4388 private static final GetResponse defaultInstance;
4389 public static GetResponse getDefaultInstance() {
4390 return defaultInstance;
4391 }
4392
4393 public GetResponse getDefaultInstanceForType() {
4394 return defaultInstance;
4395 }
4396
4397 public static final com.google.protobuf.Descriptors.Descriptor
4398 getDescriptor() {
4399 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_GetResponse_descriptor;
4400 }
4401
4402 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4403 internalGetFieldAccessorTable() {
4404 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_GetResponse_fieldAccessorTable;
4405 }
4406
4407 private int bitField0_;
4408
4409 public static final int RESULT_FIELD_NUMBER = 1;
4410 private org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result result_;
4411 public boolean hasResult() {
4412 return ((bitField0_ & 0x00000001) == 0x00000001);
4413 }
4414 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result getResult() {
4415 return result_;
4416 }
4417 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrBuilder getResultOrBuilder() {
4418 return result_;
4419 }
4420
4421
4422 public static final int EXISTS_FIELD_NUMBER = 2;
4423 private boolean exists_;
4424 public boolean hasExists() {
4425 return ((bitField0_ & 0x00000002) == 0x00000002);
4426 }
4427 public boolean getExists() {
4428 return exists_;
4429 }
4430
4431 private void initFields() {
4432 result_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.getDefaultInstance();
4433 exists_ = false;
4434 }
4435 private byte memoizedIsInitialized = -1;
4436 public final boolean isInitialized() {
4437 byte isInitialized = memoizedIsInitialized;
4438 if (isInitialized != -1) return isInitialized == 1;
4439
4440 memoizedIsInitialized = 1;
4441 return true;
4442 }
4443
4444 public void writeTo(com.google.protobuf.CodedOutputStream output)
4445 throws java.io.IOException {
4446 getSerializedSize();
4447 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4448 output.writeMessage(1, result_);
4449 }
4450 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4451 output.writeBool(2, exists_);
4452 }
4453 getUnknownFields().writeTo(output);
4454 }
4455
4456 private int memoizedSerializedSize = -1;
4457 public int getSerializedSize() {
4458 int size = memoizedSerializedSize;
4459 if (size != -1) return size;
4460
4461 size = 0;
4462 if (((bitField0_ & 0x00000001) == 0x00000001)) {
4463 size += com.google.protobuf.CodedOutputStream
4464 .computeMessageSize(1, result_);
4465 }
4466 if (((bitField0_ & 0x00000002) == 0x00000002)) {
4467 size += com.google.protobuf.CodedOutputStream
4468 .computeBoolSize(2, exists_);
4469 }
4470 size += getUnknownFields().getSerializedSize();
4471 memoizedSerializedSize = size;
4472 return size;
4473 }
4474
4475 private static final long serialVersionUID = 0L;
4476 @java.lang.Override
4477 protected java.lang.Object writeReplace()
4478 throws java.io.ObjectStreamException {
4479 return super.writeReplace();
4480 }
4481
4482 @java.lang.Override
4483 public boolean equals(final java.lang.Object obj) {
4484 if (obj == this) {
4485 return true;
4486 }
4487 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse)) {
4488 return super.equals(obj);
4489 }
4490 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse other = (org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse) obj;
4491
4492 boolean result = true;
4493 result = result && (hasResult() == other.hasResult());
4494 if (hasResult()) {
4495 result = result && getResult()
4496 .equals(other.getResult());
4497 }
4498 result = result && (hasExists() == other.hasExists());
4499 if (hasExists()) {
4500 result = result && (getExists()
4501 == other.getExists());
4502 }
4503 result = result &&
4504 getUnknownFields().equals(other.getUnknownFields());
4505 return result;
4506 }
4507
4508 @java.lang.Override
4509 public int hashCode() {
4510 int hash = 41;
4511 hash = (19 * hash) + getDescriptorForType().hashCode();
4512 if (hasResult()) {
4513 hash = (37 * hash) + RESULT_FIELD_NUMBER;
4514 hash = (53 * hash) + getResult().hashCode();
4515 }
4516 if (hasExists()) {
4517 hash = (37 * hash) + EXISTS_FIELD_NUMBER;
4518 hash = (53 * hash) + hashBoolean(getExists());
4519 }
4520 hash = (29 * hash) + getUnknownFields().hashCode();
4521 return hash;
4522 }
4523
4524 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse parseFrom(
4525 com.google.protobuf.ByteString data)
4526 throws com.google.protobuf.InvalidProtocolBufferException {
4527 return newBuilder().mergeFrom(data).buildParsed();
4528 }
4529 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse parseFrom(
4530 com.google.protobuf.ByteString data,
4531 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4532 throws com.google.protobuf.InvalidProtocolBufferException {
4533 return newBuilder().mergeFrom(data, extensionRegistry)
4534 .buildParsed();
4535 }
4536 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse parseFrom(byte[] data)
4537 throws com.google.protobuf.InvalidProtocolBufferException {
4538 return newBuilder().mergeFrom(data).buildParsed();
4539 }
4540 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse parseFrom(
4541 byte[] data,
4542 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4543 throws com.google.protobuf.InvalidProtocolBufferException {
4544 return newBuilder().mergeFrom(data, extensionRegistry)
4545 .buildParsed();
4546 }
4547 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse parseFrom(java.io.InputStream input)
4548 throws java.io.IOException {
4549 return newBuilder().mergeFrom(input).buildParsed();
4550 }
4551 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse parseFrom(
4552 java.io.InputStream input,
4553 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4554 throws java.io.IOException {
4555 return newBuilder().mergeFrom(input, extensionRegistry)
4556 .buildParsed();
4557 }
4558 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse parseDelimitedFrom(java.io.InputStream input)
4559 throws java.io.IOException {
4560 Builder builder = newBuilder();
4561 if (builder.mergeDelimitedFrom(input)) {
4562 return builder.buildParsed();
4563 } else {
4564 return null;
4565 }
4566 }
4567 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse parseDelimitedFrom(
4568 java.io.InputStream input,
4569 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4570 throws java.io.IOException {
4571 Builder builder = newBuilder();
4572 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
4573 return builder.buildParsed();
4574 } else {
4575 return null;
4576 }
4577 }
4578 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse parseFrom(
4579 com.google.protobuf.CodedInputStream input)
4580 throws java.io.IOException {
4581 return newBuilder().mergeFrom(input).buildParsed();
4582 }
4583 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse parseFrom(
4584 com.google.protobuf.CodedInputStream input,
4585 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4586 throws java.io.IOException {
4587 return newBuilder().mergeFrom(input, extensionRegistry)
4588 .buildParsed();
4589 }
4590
4591 public static Builder newBuilder() { return Builder.create(); }
4592 public Builder newBuilderForType() { return newBuilder(); }
4593 public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse prototype) {
4594 return newBuilder().mergeFrom(prototype);
4595 }
4596 public Builder toBuilder() { return newBuilder(this); }
4597
4598 @java.lang.Override
4599 protected Builder newBuilderForType(
4600 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
4601 Builder builder = new Builder(parent);
4602 return builder;
4603 }
4604 public static final class Builder extends
4605 com.google.protobuf.GeneratedMessage.Builder<Builder>
4606 implements org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponseOrBuilder {
4607 public static final com.google.protobuf.Descriptors.Descriptor
4608 getDescriptor() {
4609 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_GetResponse_descriptor;
4610 }
4611
4612 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4613 internalGetFieldAccessorTable() {
4614 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_GetResponse_fieldAccessorTable;
4615 }
4616
4617
4618 private Builder() {
4619 maybeForceBuilderInitialization();
4620 }
4621
4622 private Builder(BuilderParent parent) {
4623 super(parent);
4624 maybeForceBuilderInitialization();
4625 }
4626 private void maybeForceBuilderInitialization() {
4627 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
4628 getResultFieldBuilder();
4629 }
4630 }
4631 private static Builder create() {
4632 return new Builder();
4633 }
4634
4635 public Builder clear() {
4636 super.clear();
4637 if (resultBuilder_ == null) {
4638 result_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.getDefaultInstance();
4639 } else {
4640 resultBuilder_.clear();
4641 }
4642 bitField0_ = (bitField0_ & ~0x00000001);
4643 exists_ = false;
4644 bitField0_ = (bitField0_ & ~0x00000002);
4645 return this;
4646 }
4647
4648 public Builder clone() {
4649 return create().mergeFrom(buildPartial());
4650 }
4651
4652 public com.google.protobuf.Descriptors.Descriptor
4653 getDescriptorForType() {
4654 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse.getDescriptor();
4655 }
4656
4657 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse getDefaultInstanceForType() {
4658 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse.getDefaultInstance();
4659 }
4660
4661 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse build() {
4662 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse result = buildPartial();
4663 if (!result.isInitialized()) {
4664 throw newUninitializedMessageException(result);
4665 }
4666 return result;
4667 }
4668
4669 private org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse buildParsed()
4670 throws com.google.protobuf.InvalidProtocolBufferException {
4671 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse result = buildPartial();
4672 if (!result.isInitialized()) {
4673 throw newUninitializedMessageException(
4674 result).asInvalidProtocolBufferException();
4675 }
4676 return result;
4677 }
4678
4679 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse buildPartial() {
4680 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse result = new org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse(this);
4681 int from_bitField0_ = bitField0_;
4682 int to_bitField0_ = 0;
4683 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
4684 to_bitField0_ |= 0x00000001;
4685 }
4686 if (resultBuilder_ == null) {
4687 result.result_ = result_;
4688 } else {
4689 result.result_ = resultBuilder_.build();
4690 }
4691 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
4692 to_bitField0_ |= 0x00000002;
4693 }
4694 result.exists_ = exists_;
4695 result.bitField0_ = to_bitField0_;
4696 onBuilt();
4697 return result;
4698 }
4699
4700 public Builder mergeFrom(com.google.protobuf.Message other) {
4701 if (other instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse) {
4702 return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse)other);
4703 } else {
4704 super.mergeFrom(other);
4705 return this;
4706 }
4707 }
4708
4709 public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse other) {
4710 if (other == org.apache.hadoop.hbase.protobuf.generated.ClientProtos.GetResponse.getDefaultInstance()) return this;
4711 if (other.hasResult()) {
4712 mergeResult(other.getResult());
4713 }
4714 if (other.hasExists()) {
4715 setExists(other.getExists());
4716 }
4717 this.mergeUnknownFields(other.getUnknownFields());
4718 return this;
4719 }
4720
4721 public final boolean isInitialized() {
4722 return true;
4723 }
4724
4725 public Builder mergeFrom(
4726 com.google.protobuf.CodedInputStream input,
4727 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4728 throws java.io.IOException {
4729 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
4730 com.google.protobuf.UnknownFieldSet.newBuilder(
4731 this.getUnknownFields());
4732 while (true) {
4733 int tag = input.readTag();
4734 switch (tag) {
4735 case 0:
4736 this.setUnknownFields(unknownFields.build());
4737 onChanged();
4738 return this;
4739 default: {
4740 if (!parseUnknownField(input, unknownFields,
4741 extensionRegistry, tag)) {
4742 this.setUnknownFields(unknownFields.build());
4743 onChanged();
4744 return this;
4745 }
4746 break;
4747 }
4748 case 10: {
4749 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.newBuilder();
4750 if (hasResult()) {
4751 subBuilder.mergeFrom(getResult());
4752 }
4753 input.readMessage(subBuilder, extensionRegistry);
4754 setResult(subBuilder.buildPartial());
4755 break;
4756 }
4757 case 16: {
4758 bitField0_ |= 0x00000002;
4759 exists_ = input.readBool();
4760 break;
4761 }
4762 }
4763 }
4764 }
4765
4766 private int bitField0_;
4767
4768
4769 private org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result result_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.getDefaultInstance();
4770 private com.google.protobuf.SingleFieldBuilder<
4771 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrBuilder> resultBuilder_;
4772 public boolean hasResult() {
4773 return ((bitField0_ & 0x00000001) == 0x00000001);
4774 }
4775 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result getResult() {
4776 if (resultBuilder_ == null) {
4777 return result_;
4778 } else {
4779 return resultBuilder_.getMessage();
4780 }
4781 }
4782 public Builder setResult(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result value) {
4783 if (resultBuilder_ == null) {
4784 if (value == null) {
4785 throw new NullPointerException();
4786 }
4787 result_ = value;
4788 onChanged();
4789 } else {
4790 resultBuilder_.setMessage(value);
4791 }
4792 bitField0_ |= 0x00000001;
4793 return this;
4794 }
4795 public Builder setResult(
4796 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.Builder builderForValue) {
4797 if (resultBuilder_ == null) {
4798 result_ = builderForValue.build();
4799 onChanged();
4800 } else {
4801 resultBuilder_.setMessage(builderForValue.build());
4802 }
4803 bitField0_ |= 0x00000001;
4804 return this;
4805 }
4806 public Builder mergeResult(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result value) {
4807 if (resultBuilder_ == null) {
4808 if (((bitField0_ & 0x00000001) == 0x00000001) &&
4809 result_ != org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.getDefaultInstance()) {
4810 result_ =
4811 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.newBuilder(result_).mergeFrom(value).buildPartial();
4812 } else {
4813 result_ = value;
4814 }
4815 onChanged();
4816 } else {
4817 resultBuilder_.mergeFrom(value);
4818 }
4819 bitField0_ |= 0x00000001;
4820 return this;
4821 }
4822 public Builder clearResult() {
4823 if (resultBuilder_ == null) {
4824 result_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.getDefaultInstance();
4825 onChanged();
4826 } else {
4827 resultBuilder_.clear();
4828 }
4829 bitField0_ = (bitField0_ & ~0x00000001);
4830 return this;
4831 }
4832 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.Builder getResultBuilder() {
4833 bitField0_ |= 0x00000001;
4834 onChanged();
4835 return getResultFieldBuilder().getBuilder();
4836 }
4837 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrBuilder getResultOrBuilder() {
4838 if (resultBuilder_ != null) {
4839 return resultBuilder_.getMessageOrBuilder();
4840 } else {
4841 return result_;
4842 }
4843 }
4844 private com.google.protobuf.SingleFieldBuilder<
4845 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrBuilder>
4846 getResultFieldBuilder() {
4847 if (resultBuilder_ == null) {
4848 resultBuilder_ = new com.google.protobuf.SingleFieldBuilder<
4849 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrBuilder>(
4850 result_,
4851 getParentForChildren(),
4852 isClean());
4853 result_ = null;
4854 }
4855 return resultBuilder_;
4856 }
4857
4858
4859 private boolean exists_ ;
4860 public boolean hasExists() {
4861 return ((bitField0_ & 0x00000002) == 0x00000002);
4862 }
4863 public boolean getExists() {
4864 return exists_;
4865 }
4866 public Builder setExists(boolean value) {
4867 bitField0_ |= 0x00000002;
4868 exists_ = value;
4869 onChanged();
4870 return this;
4871 }
4872 public Builder clearExists() {
4873 bitField0_ = (bitField0_ & ~0x00000002);
4874 exists_ = false;
4875 onChanged();
4876 return this;
4877 }
4878
4879
4880 }
4881
4882 static {
4883 defaultInstance = new GetResponse(true);
4884 defaultInstance.initFields();
4885 }
4886
4887
4888 }
4889
4890 public interface MultiGetResponseOrBuilder
4891 extends com.google.protobuf.MessageOrBuilder {
4892
4893
4894 java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result>
4895 getResultList();
4896 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result getResult(int index);
4897 int getResultCount();
4898 java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrBuilder>
4899 getResultOrBuilderList();
4900 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrBuilder getResultOrBuilder(
4901 int index);
4902
4903
4904 java.util.List<java.lang.Boolean> getExistsList();
4905 int getExistsCount();
4906 boolean getExists(int index);
4907 }
4908 public static final class MultiGetResponse extends
4909 com.google.protobuf.GeneratedMessage
4910 implements MultiGetResponseOrBuilder {
4911
4912 private MultiGetResponse(Builder builder) {
4913 super(builder);
4914 }
4915 private MultiGetResponse(boolean noInit) {}
4916
4917 private static final MultiGetResponse defaultInstance;
4918 public static MultiGetResponse getDefaultInstance() {
4919 return defaultInstance;
4920 }
4921
4922 public MultiGetResponse getDefaultInstanceForType() {
4923 return defaultInstance;
4924 }
4925
4926 public static final com.google.protobuf.Descriptors.Descriptor
4927 getDescriptor() {
4928 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_MultiGetResponse_descriptor;
4929 }
4930
4931 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
4932 internalGetFieldAccessorTable() {
4933 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_MultiGetResponse_fieldAccessorTable;
4934 }
4935
4936
4937 public static final int RESULT_FIELD_NUMBER = 1;
4938 private java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result> result_;
4939 public java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result> getResultList() {
4940 return result_;
4941 }
4942 public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrBuilder>
4943 getResultOrBuilderList() {
4944 return result_;
4945 }
4946 public int getResultCount() {
4947 return result_.size();
4948 }
4949 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result getResult(int index) {
4950 return result_.get(index);
4951 }
4952 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrBuilder getResultOrBuilder(
4953 int index) {
4954 return result_.get(index);
4955 }
4956
4957
4958 public static final int EXISTS_FIELD_NUMBER = 2;
4959 private java.util.List<java.lang.Boolean> exists_;
4960 public java.util.List<java.lang.Boolean>
4961 getExistsList() {
4962 return exists_;
4963 }
4964 public int getExistsCount() {
4965 return exists_.size();
4966 }
4967 public boolean getExists(int index) {
4968 return exists_.get(index);
4969 }
4970
4971 private void initFields() {
4972 result_ = java.util.Collections.emptyList();
4973 exists_ = java.util.Collections.emptyList();;
4974 }
4975 private byte memoizedIsInitialized = -1;
4976 public final boolean isInitialized() {
4977 byte isInitialized = memoizedIsInitialized;
4978 if (isInitialized != -1) return isInitialized == 1;
4979
4980 memoizedIsInitialized = 1;
4981 return true;
4982 }
4983
4984 public void writeTo(com.google.protobuf.CodedOutputStream output)
4985 throws java.io.IOException {
4986 getSerializedSize();
4987 for (int i = 0; i < result_.size(); i++) {
4988 output.writeMessage(1, result_.get(i));
4989 }
4990 for (int i = 0; i < exists_.size(); i++) {
4991 output.writeBool(2, exists_.get(i));
4992 }
4993 getUnknownFields().writeTo(output);
4994 }
4995
4996 private int memoizedSerializedSize = -1;
4997 public int getSerializedSize() {
4998 int size = memoizedSerializedSize;
4999 if (size != -1) return size;
5000
5001 size = 0;
5002 for (int i = 0; i < result_.size(); i++) {
5003 size += com.google.protobuf.CodedOutputStream
5004 .computeMessageSize(1, result_.get(i));
5005 }
5006 {
5007 int dataSize = 0;
5008 dataSize = 1 * getExistsList().size();
5009 size += dataSize;
5010 size += 1 * getExistsList().size();
5011 }
5012 size += getUnknownFields().getSerializedSize();
5013 memoizedSerializedSize = size;
5014 return size;
5015 }
5016
5017 private static final long serialVersionUID = 0L;
5018 @java.lang.Override
5019 protected java.lang.Object writeReplace()
5020 throws java.io.ObjectStreamException {
5021 return super.writeReplace();
5022 }
5023
5024 @java.lang.Override
5025 public boolean equals(final java.lang.Object obj) {
5026 if (obj == this) {
5027 return true;
5028 }
5029 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse)) {
5030 return super.equals(obj);
5031 }
5032 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse other = (org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse) obj;
5033
5034 boolean result = true;
5035 result = result && getResultList()
5036 .equals(other.getResultList());
5037 result = result && getExistsList()
5038 .equals(other.getExistsList());
5039 result = result &&
5040 getUnknownFields().equals(other.getUnknownFields());
5041 return result;
5042 }
5043
5044 @java.lang.Override
5045 public int hashCode() {
5046 int hash = 41;
5047 hash = (19 * hash) + getDescriptorForType().hashCode();
5048 if (getResultCount() > 0) {
5049 hash = (37 * hash) + RESULT_FIELD_NUMBER;
5050 hash = (53 * hash) + getResultList().hashCode();
5051 }
5052 if (getExistsCount() > 0) {
5053 hash = (37 * hash) + EXISTS_FIELD_NUMBER;
5054 hash = (53 * hash) + getExistsList().hashCode();
5055 }
5056 hash = (29 * hash) + getUnknownFields().hashCode();
5057 return hash;
5058 }
5059
5060 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse parseFrom(
5061 com.google.protobuf.ByteString data)
5062 throws com.google.protobuf.InvalidProtocolBufferException {
5063 return newBuilder().mergeFrom(data).buildParsed();
5064 }
5065 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse parseFrom(
5066 com.google.protobuf.ByteString data,
5067 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5068 throws com.google.protobuf.InvalidProtocolBufferException {
5069 return newBuilder().mergeFrom(data, extensionRegistry)
5070 .buildParsed();
5071 }
5072 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse parseFrom(byte[] data)
5073 throws com.google.protobuf.InvalidProtocolBufferException {
5074 return newBuilder().mergeFrom(data).buildParsed();
5075 }
5076 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse parseFrom(
5077 byte[] data,
5078 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5079 throws com.google.protobuf.InvalidProtocolBufferException {
5080 return newBuilder().mergeFrom(data, extensionRegistry)
5081 .buildParsed();
5082 }
5083 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse parseFrom(java.io.InputStream input)
5084 throws java.io.IOException {
5085 return newBuilder().mergeFrom(input).buildParsed();
5086 }
5087 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse parseFrom(
5088 java.io.InputStream input,
5089 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5090 throws java.io.IOException {
5091 return newBuilder().mergeFrom(input, extensionRegistry)
5092 .buildParsed();
5093 }
5094 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse parseDelimitedFrom(java.io.InputStream input)
5095 throws java.io.IOException {
5096 Builder builder = newBuilder();
5097 if (builder.mergeDelimitedFrom(input)) {
5098 return builder.buildParsed();
5099 } else {
5100 return null;
5101 }
5102 }
5103 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse parseDelimitedFrom(
5104 java.io.InputStream input,
5105 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5106 throws java.io.IOException {
5107 Builder builder = newBuilder();
5108 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
5109 return builder.buildParsed();
5110 } else {
5111 return null;
5112 }
5113 }
5114 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse parseFrom(
5115 com.google.protobuf.CodedInputStream input)
5116 throws java.io.IOException {
5117 return newBuilder().mergeFrom(input).buildParsed();
5118 }
5119 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse parseFrom(
5120 com.google.protobuf.CodedInputStream input,
5121 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5122 throws java.io.IOException {
5123 return newBuilder().mergeFrom(input, extensionRegistry)
5124 .buildParsed();
5125 }
5126
5127 public static Builder newBuilder() { return Builder.create(); }
5128 public Builder newBuilderForType() { return newBuilder(); }
5129 public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse prototype) {
5130 return newBuilder().mergeFrom(prototype);
5131 }
5132 public Builder toBuilder() { return newBuilder(this); }
5133
5134 @java.lang.Override
5135 protected Builder newBuilderForType(
5136 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5137 Builder builder = new Builder(parent);
5138 return builder;
5139 }
5140 public static final class Builder extends
5141 com.google.protobuf.GeneratedMessage.Builder<Builder>
5142 implements org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponseOrBuilder {
5143 public static final com.google.protobuf.Descriptors.Descriptor
5144 getDescriptor() {
5145 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_MultiGetResponse_descriptor;
5146 }
5147
5148 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5149 internalGetFieldAccessorTable() {
5150 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_MultiGetResponse_fieldAccessorTable;
5151 }
5152
5153
5154 private Builder() {
5155 maybeForceBuilderInitialization();
5156 }
5157
5158 private Builder(BuilderParent parent) {
5159 super(parent);
5160 maybeForceBuilderInitialization();
5161 }
5162 private void maybeForceBuilderInitialization() {
5163 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
5164 getResultFieldBuilder();
5165 }
5166 }
5167 private static Builder create() {
5168 return new Builder();
5169 }
5170
5171 public Builder clear() {
5172 super.clear();
5173 if (resultBuilder_ == null) {
5174 result_ = java.util.Collections.emptyList();
5175 bitField0_ = (bitField0_ & ~0x00000001);
5176 } else {
5177 resultBuilder_.clear();
5178 }
5179 exists_ = java.util.Collections.emptyList();;
5180 bitField0_ = (bitField0_ & ~0x00000002);
5181 return this;
5182 }
5183
5184 public Builder clone() {
5185 return create().mergeFrom(buildPartial());
5186 }
5187
5188 public com.google.protobuf.Descriptors.Descriptor
5189 getDescriptorForType() {
5190 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse.getDescriptor();
5191 }
5192
5193 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse getDefaultInstanceForType() {
5194 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse.getDefaultInstance();
5195 }
5196
5197 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse build() {
5198 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse result = buildPartial();
5199 if (!result.isInitialized()) {
5200 throw newUninitializedMessageException(result);
5201 }
5202 return result;
5203 }
5204
5205 private org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse buildParsed()
5206 throws com.google.protobuf.InvalidProtocolBufferException {
5207 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse result = buildPartial();
5208 if (!result.isInitialized()) {
5209 throw newUninitializedMessageException(
5210 result).asInvalidProtocolBufferException();
5211 }
5212 return result;
5213 }
5214
5215 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse buildPartial() {
5216 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse result = new org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse(this);
5217 int from_bitField0_ = bitField0_;
5218 if (resultBuilder_ == null) {
5219 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5220 result_ = java.util.Collections.unmodifiableList(result_);
5221 bitField0_ = (bitField0_ & ~0x00000001);
5222 }
5223 result.result_ = result_;
5224 } else {
5225 result.result_ = resultBuilder_.build();
5226 }
5227 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5228 exists_ = java.util.Collections.unmodifiableList(exists_);
5229 bitField0_ = (bitField0_ & ~0x00000002);
5230 }
5231 result.exists_ = exists_;
5232 onBuilt();
5233 return result;
5234 }
5235
5236 public Builder mergeFrom(com.google.protobuf.Message other) {
5237 if (other instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse) {
5238 return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse)other);
5239 } else {
5240 super.mergeFrom(other);
5241 return this;
5242 }
5243 }
5244
5245 public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse other) {
5246 if (other == org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MultiGetResponse.getDefaultInstance()) return this;
5247 if (resultBuilder_ == null) {
5248 if (!other.result_.isEmpty()) {
5249 if (result_.isEmpty()) {
5250 result_ = other.result_;
5251 bitField0_ = (bitField0_ & ~0x00000001);
5252 } else {
5253 ensureResultIsMutable();
5254 result_.addAll(other.result_);
5255 }
5256 onChanged();
5257 }
5258 } else {
5259 if (!other.result_.isEmpty()) {
5260 if (resultBuilder_.isEmpty()) {
5261 resultBuilder_.dispose();
5262 resultBuilder_ = null;
5263 result_ = other.result_;
5264 bitField0_ = (bitField0_ & ~0x00000001);
5265 resultBuilder_ =
5266 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
5267 getResultFieldBuilder() : null;
5268 } else {
5269 resultBuilder_.addAllMessages(other.result_);
5270 }
5271 }
5272 }
5273 if (!other.exists_.isEmpty()) {
5274 if (exists_.isEmpty()) {
5275 exists_ = other.exists_;
5276 bitField0_ = (bitField0_ & ~0x00000002);
5277 } else {
5278 ensureExistsIsMutable();
5279 exists_.addAll(other.exists_);
5280 }
5281 onChanged();
5282 }
5283 this.mergeUnknownFields(other.getUnknownFields());
5284 return this;
5285 }
5286
5287 public final boolean isInitialized() {
5288 return true;
5289 }
5290
5291 public Builder mergeFrom(
5292 com.google.protobuf.CodedInputStream input,
5293 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5294 throws java.io.IOException {
5295 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
5296 com.google.protobuf.UnknownFieldSet.newBuilder(
5297 this.getUnknownFields());
5298 while (true) {
5299 int tag = input.readTag();
5300 switch (tag) {
5301 case 0:
5302 this.setUnknownFields(unknownFields.build());
5303 onChanged();
5304 return this;
5305 default: {
5306 if (!parseUnknownField(input, unknownFields,
5307 extensionRegistry, tag)) {
5308 this.setUnknownFields(unknownFields.build());
5309 onChanged();
5310 return this;
5311 }
5312 break;
5313 }
5314 case 10: {
5315 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.newBuilder();
5316 input.readMessage(subBuilder, extensionRegistry);
5317 addResult(subBuilder.buildPartial());
5318 break;
5319 }
5320 case 16: {
5321 ensureExistsIsMutable();
5322 exists_.add(input.readBool());
5323 break;
5324 }
5325 case 18: {
5326 int length = input.readRawVarint32();
5327 int limit = input.pushLimit(length);
5328 while (input.getBytesUntilLimit() > 0) {
5329 addExists(input.readBool());
5330 }
5331 input.popLimit(limit);
5332 break;
5333 }
5334 }
5335 }
5336 }
5337
5338 private int bitField0_;
5339
5340
5341 private java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result> result_ =
5342 java.util.Collections.emptyList();
5343 private void ensureResultIsMutable() {
5344 if (!((bitField0_ & 0x00000001) == 0x00000001)) {
5345 result_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result>(result_);
5346 bitField0_ |= 0x00000001;
5347 }
5348 }
5349
5350 private com.google.protobuf.RepeatedFieldBuilder<
5351 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrBuilder> resultBuilder_;
5352
5353 public java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result> getResultList() {
5354 if (resultBuilder_ == null) {
5355 return java.util.Collections.unmodifiableList(result_);
5356 } else {
5357 return resultBuilder_.getMessageList();
5358 }
5359 }
5360 public int getResultCount() {
5361 if (resultBuilder_ == null) {
5362 return result_.size();
5363 } else {
5364 return resultBuilder_.getCount();
5365 }
5366 }
5367 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result getResult(int index) {
5368 if (resultBuilder_ == null) {
5369 return result_.get(index);
5370 } else {
5371 return resultBuilder_.getMessage(index);
5372 }
5373 }
5374 public Builder setResult(
5375 int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result value) {
5376 if (resultBuilder_ == null) {
5377 if (value == null) {
5378 throw new NullPointerException();
5379 }
5380 ensureResultIsMutable();
5381 result_.set(index, value);
5382 onChanged();
5383 } else {
5384 resultBuilder_.setMessage(index, value);
5385 }
5386 return this;
5387 }
5388 public Builder setResult(
5389 int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.Builder builderForValue) {
5390 if (resultBuilder_ == null) {
5391 ensureResultIsMutable();
5392 result_.set(index, builderForValue.build());
5393 onChanged();
5394 } else {
5395 resultBuilder_.setMessage(index, builderForValue.build());
5396 }
5397 return this;
5398 }
5399 public Builder addResult(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result value) {
5400 if (resultBuilder_ == null) {
5401 if (value == null) {
5402 throw new NullPointerException();
5403 }
5404 ensureResultIsMutable();
5405 result_.add(value);
5406 onChanged();
5407 } else {
5408 resultBuilder_.addMessage(value);
5409 }
5410 return this;
5411 }
5412 public Builder addResult(
5413 int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result value) {
5414 if (resultBuilder_ == null) {
5415 if (value == null) {
5416 throw new NullPointerException();
5417 }
5418 ensureResultIsMutable();
5419 result_.add(index, value);
5420 onChanged();
5421 } else {
5422 resultBuilder_.addMessage(index, value);
5423 }
5424 return this;
5425 }
5426 public Builder addResult(
5427 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.Builder builderForValue) {
5428 if (resultBuilder_ == null) {
5429 ensureResultIsMutable();
5430 result_.add(builderForValue.build());
5431 onChanged();
5432 } else {
5433 resultBuilder_.addMessage(builderForValue.build());
5434 }
5435 return this;
5436 }
5437 public Builder addResult(
5438 int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.Builder builderForValue) {
5439 if (resultBuilder_ == null) {
5440 ensureResultIsMutable();
5441 result_.add(index, builderForValue.build());
5442 onChanged();
5443 } else {
5444 resultBuilder_.addMessage(index, builderForValue.build());
5445 }
5446 return this;
5447 }
5448 public Builder addAllResult(
5449 java.lang.Iterable<? extends org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result> values) {
5450 if (resultBuilder_ == null) {
5451 ensureResultIsMutable();
5452 super.addAll(values, result_);
5453 onChanged();
5454 } else {
5455 resultBuilder_.addAllMessages(values);
5456 }
5457 return this;
5458 }
5459 public Builder clearResult() {
5460 if (resultBuilder_ == null) {
5461 result_ = java.util.Collections.emptyList();
5462 bitField0_ = (bitField0_ & ~0x00000001);
5463 onChanged();
5464 } else {
5465 resultBuilder_.clear();
5466 }
5467 return this;
5468 }
5469 public Builder removeResult(int index) {
5470 if (resultBuilder_ == null) {
5471 ensureResultIsMutable();
5472 result_.remove(index);
5473 onChanged();
5474 } else {
5475 resultBuilder_.remove(index);
5476 }
5477 return this;
5478 }
5479 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.Builder getResultBuilder(
5480 int index) {
5481 return getResultFieldBuilder().getBuilder(index);
5482 }
5483 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrBuilder getResultOrBuilder(
5484 int index) {
5485 if (resultBuilder_ == null) {
5486 return result_.get(index); } else {
5487 return resultBuilder_.getMessageOrBuilder(index);
5488 }
5489 }
5490 public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrBuilder>
5491 getResultOrBuilderList() {
5492 if (resultBuilder_ != null) {
5493 return resultBuilder_.getMessageOrBuilderList();
5494 } else {
5495 return java.util.Collections.unmodifiableList(result_);
5496 }
5497 }
5498 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.Builder addResultBuilder() {
5499 return getResultFieldBuilder().addBuilder(
5500 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.getDefaultInstance());
5501 }
5502 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.Builder addResultBuilder(
5503 int index) {
5504 return getResultFieldBuilder().addBuilder(
5505 index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.getDefaultInstance());
5506 }
5507 public java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.Builder>
5508 getResultBuilderList() {
5509 return getResultFieldBuilder().getBuilderList();
5510 }
5511 private com.google.protobuf.RepeatedFieldBuilder<
5512 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrBuilder>
5513 getResultFieldBuilder() {
5514 if (resultBuilder_ == null) {
5515 resultBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
5516 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Result.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrBuilder>(
5517 result_,
5518 ((bitField0_ & 0x00000001) == 0x00000001),
5519 getParentForChildren(),
5520 isClean());
5521 result_ = null;
5522 }
5523 return resultBuilder_;
5524 }
5525
5526
5527 private java.util.List<java.lang.Boolean> exists_ = java.util.Collections.emptyList();;
5528 private void ensureExistsIsMutable() {
5529 if (!((bitField0_ & 0x00000002) == 0x00000002)) {
5530 exists_ = new java.util.ArrayList<java.lang.Boolean>(exists_);
5531 bitField0_ |= 0x00000002;
5532 }
5533 }
5534 public java.util.List<java.lang.Boolean>
5535 getExistsList() {
5536 return java.util.Collections.unmodifiableList(exists_);
5537 }
5538 public int getExistsCount() {
5539 return exists_.size();
5540 }
5541 public boolean getExists(int index) {
5542 return exists_.get(index);
5543 }
5544 public Builder setExists(
5545 int index, boolean value) {
5546 ensureExistsIsMutable();
5547 exists_.set(index, value);
5548 onChanged();
5549 return this;
5550 }
5551 public Builder addExists(boolean value) {
5552 ensureExistsIsMutable();
5553 exists_.add(value);
5554 onChanged();
5555 return this;
5556 }
5557 public Builder addAllExists(
5558 java.lang.Iterable<? extends java.lang.Boolean> values) {
5559 ensureExistsIsMutable();
5560 super.addAll(values, exists_);
5561 onChanged();
5562 return this;
5563 }
5564 public Builder clearExists() {
5565 exists_ = java.util.Collections.emptyList();;
5566 bitField0_ = (bitField0_ & ~0x00000002);
5567 onChanged();
5568 return this;
5569 }
5570
5571
5572 }
5573
5574 static {
5575 defaultInstance = new MultiGetResponse(true);
5576 defaultInstance.initFields();
5577 }
5578
5579
5580 }
5581
5582 public interface ConditionOrBuilder
5583 extends com.google.protobuf.MessageOrBuilder {
5584
5585
5586 boolean hasRow();
5587 com.google.protobuf.ByteString getRow();
5588
5589
5590 boolean hasFamily();
5591 com.google.protobuf.ByteString getFamily();
5592
5593
5594 boolean hasQualifier();
5595 com.google.protobuf.ByteString getQualifier();
5596
5597
5598 boolean hasCompareType();
5599 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CompareType getCompareType();
5600
5601
5602 boolean hasComparator();
5603 org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator getComparator();
5604 org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.ComparatorOrBuilder getComparatorOrBuilder();
5605 }
5606 public static final class Condition extends
5607 com.google.protobuf.GeneratedMessage
5608 implements ConditionOrBuilder {
5609
5610 private Condition(Builder builder) {
5611 super(builder);
5612 }
5613 private Condition(boolean noInit) {}
5614
5615 private static final Condition defaultInstance;
5616 public static Condition getDefaultInstance() {
5617 return defaultInstance;
5618 }
5619
5620 public Condition getDefaultInstanceForType() {
5621 return defaultInstance;
5622 }
5623
5624 public static final com.google.protobuf.Descriptors.Descriptor
5625 getDescriptor() {
5626 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_Condition_descriptor;
5627 }
5628
5629 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5630 internalGetFieldAccessorTable() {
5631 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_Condition_fieldAccessorTable;
5632 }
5633
5634 private int bitField0_;
5635
5636 public static final int ROW_FIELD_NUMBER = 1;
5637 private com.google.protobuf.ByteString row_;
5638 public boolean hasRow() {
5639 return ((bitField0_ & 0x00000001) == 0x00000001);
5640 }
5641 public com.google.protobuf.ByteString getRow() {
5642 return row_;
5643 }
5644
5645
5646 public static final int FAMILY_FIELD_NUMBER = 2;
5647 private com.google.protobuf.ByteString family_;
5648 public boolean hasFamily() {
5649 return ((bitField0_ & 0x00000002) == 0x00000002);
5650 }
5651 public com.google.protobuf.ByteString getFamily() {
5652 return family_;
5653 }
5654
5655
5656 public static final int QUALIFIER_FIELD_NUMBER = 3;
5657 private com.google.protobuf.ByteString qualifier_;
5658 public boolean hasQualifier() {
5659 return ((bitField0_ & 0x00000004) == 0x00000004);
5660 }
5661 public com.google.protobuf.ByteString getQualifier() {
5662 return qualifier_;
5663 }
5664
5665
5666 public static final int COMPARETYPE_FIELD_NUMBER = 4;
5667 private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CompareType compareType_;
5668 public boolean hasCompareType() {
5669 return ((bitField0_ & 0x00000008) == 0x00000008);
5670 }
5671 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CompareType getCompareType() {
5672 return compareType_;
5673 }
5674
5675
5676 public static final int COMPARATOR_FIELD_NUMBER = 5;
5677 private org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator comparator_;
5678 public boolean hasComparator() {
5679 return ((bitField0_ & 0x00000010) == 0x00000010);
5680 }
5681 public org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator getComparator() {
5682 return comparator_;
5683 }
5684 public org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.ComparatorOrBuilder getComparatorOrBuilder() {
5685 return comparator_;
5686 }
5687
5688 private void initFields() {
5689 row_ = com.google.protobuf.ByteString.EMPTY;
5690 family_ = com.google.protobuf.ByteString.EMPTY;
5691 qualifier_ = com.google.protobuf.ByteString.EMPTY;
5692 compareType_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CompareType.LESS;
5693 comparator_ = org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator.getDefaultInstance();
5694 }
5695 private byte memoizedIsInitialized = -1;
5696 public final boolean isInitialized() {
5697 byte isInitialized = memoizedIsInitialized;
5698 if (isInitialized != -1) return isInitialized == 1;
5699
5700 if (!hasRow()) {
5701 memoizedIsInitialized = 0;
5702 return false;
5703 }
5704 if (!hasFamily()) {
5705 memoizedIsInitialized = 0;
5706 return false;
5707 }
5708 if (!hasQualifier()) {
5709 memoizedIsInitialized = 0;
5710 return false;
5711 }
5712 if (!hasCompareType()) {
5713 memoizedIsInitialized = 0;
5714 return false;
5715 }
5716 if (!hasComparator()) {
5717 memoizedIsInitialized = 0;
5718 return false;
5719 }
5720 if (!getComparator().isInitialized()) {
5721 memoizedIsInitialized = 0;
5722 return false;
5723 }
5724 memoizedIsInitialized = 1;
5725 return true;
5726 }
5727
5728 public void writeTo(com.google.protobuf.CodedOutputStream output)
5729 throws java.io.IOException {
5730 getSerializedSize();
5731 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5732 output.writeBytes(1, row_);
5733 }
5734 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5735 output.writeBytes(2, family_);
5736 }
5737 if (((bitField0_ & 0x00000004) == 0x00000004)) {
5738 output.writeBytes(3, qualifier_);
5739 }
5740 if (((bitField0_ & 0x00000008) == 0x00000008)) {
5741 output.writeEnum(4, compareType_.getNumber());
5742 }
5743 if (((bitField0_ & 0x00000010) == 0x00000010)) {
5744 output.writeMessage(5, comparator_);
5745 }
5746 getUnknownFields().writeTo(output);
5747 }
5748
5749 private int memoizedSerializedSize = -1;
5750 public int getSerializedSize() {
5751 int size = memoizedSerializedSize;
5752 if (size != -1) return size;
5753
5754 size = 0;
5755 if (((bitField0_ & 0x00000001) == 0x00000001)) {
5756 size += com.google.protobuf.CodedOutputStream
5757 .computeBytesSize(1, row_);
5758 }
5759 if (((bitField0_ & 0x00000002) == 0x00000002)) {
5760 size += com.google.protobuf.CodedOutputStream
5761 .computeBytesSize(2, family_);
5762 }
5763 if (((bitField0_ & 0x00000004) == 0x00000004)) {
5764 size += com.google.protobuf.CodedOutputStream
5765 .computeBytesSize(3, qualifier_);
5766 }
5767 if (((bitField0_ & 0x00000008) == 0x00000008)) {
5768 size += com.google.protobuf.CodedOutputStream
5769 .computeEnumSize(4, compareType_.getNumber());
5770 }
5771 if (((bitField0_ & 0x00000010) == 0x00000010)) {
5772 size += com.google.protobuf.CodedOutputStream
5773 .computeMessageSize(5, comparator_);
5774 }
5775 size += getUnknownFields().getSerializedSize();
5776 memoizedSerializedSize = size;
5777 return size;
5778 }
5779
5780 private static final long serialVersionUID = 0L;
5781 @java.lang.Override
5782 protected java.lang.Object writeReplace()
5783 throws java.io.ObjectStreamException {
5784 return super.writeReplace();
5785 }
5786
5787 @java.lang.Override
5788 public boolean equals(final java.lang.Object obj) {
5789 if (obj == this) {
5790 return true;
5791 }
5792 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition)) {
5793 return super.equals(obj);
5794 }
5795 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition other = (org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition) obj;
5796
5797 boolean result = true;
5798 result = result && (hasRow() == other.hasRow());
5799 if (hasRow()) {
5800 result = result && getRow()
5801 .equals(other.getRow());
5802 }
5803 result = result && (hasFamily() == other.hasFamily());
5804 if (hasFamily()) {
5805 result = result && getFamily()
5806 .equals(other.getFamily());
5807 }
5808 result = result && (hasQualifier() == other.hasQualifier());
5809 if (hasQualifier()) {
5810 result = result && getQualifier()
5811 .equals(other.getQualifier());
5812 }
5813 result = result && (hasCompareType() == other.hasCompareType());
5814 if (hasCompareType()) {
5815 result = result &&
5816 (getCompareType() == other.getCompareType());
5817 }
5818 result = result && (hasComparator() == other.hasComparator());
5819 if (hasComparator()) {
5820 result = result && getComparator()
5821 .equals(other.getComparator());
5822 }
5823 result = result &&
5824 getUnknownFields().equals(other.getUnknownFields());
5825 return result;
5826 }
5827
5828 @java.lang.Override
5829 public int hashCode() {
5830 int hash = 41;
5831 hash = (19 * hash) + getDescriptorForType().hashCode();
5832 if (hasRow()) {
5833 hash = (37 * hash) + ROW_FIELD_NUMBER;
5834 hash = (53 * hash) + getRow().hashCode();
5835 }
5836 if (hasFamily()) {
5837 hash = (37 * hash) + FAMILY_FIELD_NUMBER;
5838 hash = (53 * hash) + getFamily().hashCode();
5839 }
5840 if (hasQualifier()) {
5841 hash = (37 * hash) + QUALIFIER_FIELD_NUMBER;
5842 hash = (53 * hash) + getQualifier().hashCode();
5843 }
5844 if (hasCompareType()) {
5845 hash = (37 * hash) + COMPARETYPE_FIELD_NUMBER;
5846 hash = (53 * hash) + hashEnum(getCompareType());
5847 }
5848 if (hasComparator()) {
5849 hash = (37 * hash) + COMPARATOR_FIELD_NUMBER;
5850 hash = (53 * hash) + getComparator().hashCode();
5851 }
5852 hash = (29 * hash) + getUnknownFields().hashCode();
5853 return hash;
5854 }
5855
5856 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition parseFrom(
5857 com.google.protobuf.ByteString data)
5858 throws com.google.protobuf.InvalidProtocolBufferException {
5859 return newBuilder().mergeFrom(data).buildParsed();
5860 }
5861 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition parseFrom(
5862 com.google.protobuf.ByteString data,
5863 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5864 throws com.google.protobuf.InvalidProtocolBufferException {
5865 return newBuilder().mergeFrom(data, extensionRegistry)
5866 .buildParsed();
5867 }
5868 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition parseFrom(byte[] data)
5869 throws com.google.protobuf.InvalidProtocolBufferException {
5870 return newBuilder().mergeFrom(data).buildParsed();
5871 }
5872 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition parseFrom(
5873 byte[] data,
5874 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5875 throws com.google.protobuf.InvalidProtocolBufferException {
5876 return newBuilder().mergeFrom(data, extensionRegistry)
5877 .buildParsed();
5878 }
5879 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition parseFrom(java.io.InputStream input)
5880 throws java.io.IOException {
5881 return newBuilder().mergeFrom(input).buildParsed();
5882 }
5883 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition parseFrom(
5884 java.io.InputStream input,
5885 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5886 throws java.io.IOException {
5887 return newBuilder().mergeFrom(input, extensionRegistry)
5888 .buildParsed();
5889 }
5890 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition parseDelimitedFrom(java.io.InputStream input)
5891 throws java.io.IOException {
5892 Builder builder = newBuilder();
5893 if (builder.mergeDelimitedFrom(input)) {
5894 return builder.buildParsed();
5895 } else {
5896 return null;
5897 }
5898 }
5899 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition parseDelimitedFrom(
5900 java.io.InputStream input,
5901 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5902 throws java.io.IOException {
5903 Builder builder = newBuilder();
5904 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
5905 return builder.buildParsed();
5906 } else {
5907 return null;
5908 }
5909 }
5910 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition parseFrom(
5911 com.google.protobuf.CodedInputStream input)
5912 throws java.io.IOException {
5913 return newBuilder().mergeFrom(input).buildParsed();
5914 }
5915 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition parseFrom(
5916 com.google.protobuf.CodedInputStream input,
5917 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5918 throws java.io.IOException {
5919 return newBuilder().mergeFrom(input, extensionRegistry)
5920 .buildParsed();
5921 }
5922
5923 public static Builder newBuilder() { return Builder.create(); }
5924 public Builder newBuilderForType() { return newBuilder(); }
5925 public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition prototype) {
5926 return newBuilder().mergeFrom(prototype);
5927 }
5928 public Builder toBuilder() { return newBuilder(this); }
5929
5930 @java.lang.Override
5931 protected Builder newBuilderForType(
5932 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
5933 Builder builder = new Builder(parent);
5934 return builder;
5935 }
5936 public static final class Builder extends
5937 com.google.protobuf.GeneratedMessage.Builder<Builder>
5938 implements org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ConditionOrBuilder {
5939 public static final com.google.protobuf.Descriptors.Descriptor
5940 getDescriptor() {
5941 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_Condition_descriptor;
5942 }
5943
5944 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
5945 internalGetFieldAccessorTable() {
5946 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_Condition_fieldAccessorTable;
5947 }
5948
5949
5950 private Builder() {
5951 maybeForceBuilderInitialization();
5952 }
5953
5954 private Builder(BuilderParent parent) {
5955 super(parent);
5956 maybeForceBuilderInitialization();
5957 }
5958 private void maybeForceBuilderInitialization() {
5959 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
5960 getComparatorFieldBuilder();
5961 }
5962 }
5963 private static Builder create() {
5964 return new Builder();
5965 }
5966
5967 public Builder clear() {
5968 super.clear();
5969 row_ = com.google.protobuf.ByteString.EMPTY;
5970 bitField0_ = (bitField0_ & ~0x00000001);
5971 family_ = com.google.protobuf.ByteString.EMPTY;
5972 bitField0_ = (bitField0_ & ~0x00000002);
5973 qualifier_ = com.google.protobuf.ByteString.EMPTY;
5974 bitField0_ = (bitField0_ & ~0x00000004);
5975 compareType_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CompareType.LESS;
5976 bitField0_ = (bitField0_ & ~0x00000008);
5977 if (comparatorBuilder_ == null) {
5978 comparator_ = org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator.getDefaultInstance();
5979 } else {
5980 comparatorBuilder_.clear();
5981 }
5982 bitField0_ = (bitField0_ & ~0x00000010);
5983 return this;
5984 }
5985
5986 public Builder clone() {
5987 return create().mergeFrom(buildPartial());
5988 }
5989
5990 public com.google.protobuf.Descriptors.Descriptor
5991 getDescriptorForType() {
5992 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition.getDescriptor();
5993 }
5994
5995 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition getDefaultInstanceForType() {
5996 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition.getDefaultInstance();
5997 }
5998
5999 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition build() {
6000 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition result = buildPartial();
6001 if (!result.isInitialized()) {
6002 throw newUninitializedMessageException(result);
6003 }
6004 return result;
6005 }
6006
6007 private org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition buildParsed()
6008 throws com.google.protobuf.InvalidProtocolBufferException {
6009 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition result = buildPartial();
6010 if (!result.isInitialized()) {
6011 throw newUninitializedMessageException(
6012 result).asInvalidProtocolBufferException();
6013 }
6014 return result;
6015 }
6016
6017 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition buildPartial() {
6018 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition result = new org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition(this);
6019 int from_bitField0_ = bitField0_;
6020 int to_bitField0_ = 0;
6021 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
6022 to_bitField0_ |= 0x00000001;
6023 }
6024 result.row_ = row_;
6025 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
6026 to_bitField0_ |= 0x00000002;
6027 }
6028 result.family_ = family_;
6029 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
6030 to_bitField0_ |= 0x00000004;
6031 }
6032 result.qualifier_ = qualifier_;
6033 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
6034 to_bitField0_ |= 0x00000008;
6035 }
6036 result.compareType_ = compareType_;
6037 if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
6038 to_bitField0_ |= 0x00000010;
6039 }
6040 if (comparatorBuilder_ == null) {
6041 result.comparator_ = comparator_;
6042 } else {
6043 result.comparator_ = comparatorBuilder_.build();
6044 }
6045 result.bitField0_ = to_bitField0_;
6046 onBuilt();
6047 return result;
6048 }
6049
6050 public Builder mergeFrom(com.google.protobuf.Message other) {
6051 if (other instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition) {
6052 return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition)other);
6053 } else {
6054 super.mergeFrom(other);
6055 return this;
6056 }
6057 }
6058
6059 public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition other) {
6060 if (other == org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Condition.getDefaultInstance()) return this;
6061 if (other.hasRow()) {
6062 setRow(other.getRow());
6063 }
6064 if (other.hasFamily()) {
6065 setFamily(other.getFamily());
6066 }
6067 if (other.hasQualifier()) {
6068 setQualifier(other.getQualifier());
6069 }
6070 if (other.hasCompareType()) {
6071 setCompareType(other.getCompareType());
6072 }
6073 if (other.hasComparator()) {
6074 mergeComparator(other.getComparator());
6075 }
6076 this.mergeUnknownFields(other.getUnknownFields());
6077 return this;
6078 }
6079
6080 public final boolean isInitialized() {
6081 if (!hasRow()) {
6082
6083 return false;
6084 }
6085 if (!hasFamily()) {
6086
6087 return false;
6088 }
6089 if (!hasQualifier()) {
6090
6091 return false;
6092 }
6093 if (!hasCompareType()) {
6094
6095 return false;
6096 }
6097 if (!hasComparator()) {
6098
6099 return false;
6100 }
6101 if (!getComparator().isInitialized()) {
6102
6103 return false;
6104 }
6105 return true;
6106 }
6107
6108 public Builder mergeFrom(
6109 com.google.protobuf.CodedInputStream input,
6110 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6111 throws java.io.IOException {
6112 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
6113 com.google.protobuf.UnknownFieldSet.newBuilder(
6114 this.getUnknownFields());
6115 while (true) {
6116 int tag = input.readTag();
6117 switch (tag) {
6118 case 0:
6119 this.setUnknownFields(unknownFields.build());
6120 onChanged();
6121 return this;
6122 default: {
6123 if (!parseUnknownField(input, unknownFields,
6124 extensionRegistry, tag)) {
6125 this.setUnknownFields(unknownFields.build());
6126 onChanged();
6127 return this;
6128 }
6129 break;
6130 }
6131 case 10: {
6132 bitField0_ |= 0x00000001;
6133 row_ = input.readBytes();
6134 break;
6135 }
6136 case 18: {
6137 bitField0_ |= 0x00000002;
6138 family_ = input.readBytes();
6139 break;
6140 }
6141 case 26: {
6142 bitField0_ |= 0x00000004;
6143 qualifier_ = input.readBytes();
6144 break;
6145 }
6146 case 32: {
6147 int rawValue = input.readEnum();
6148 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CompareType value = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CompareType.valueOf(rawValue);
6149 if (value == null) {
6150 unknownFields.mergeVarintField(4, rawValue);
6151 } else {
6152 bitField0_ |= 0x00000008;
6153 compareType_ = value;
6154 }
6155 break;
6156 }
6157 case 42: {
6158 org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator.newBuilder();
6159 if (hasComparator()) {
6160 subBuilder.mergeFrom(getComparator());
6161 }
6162 input.readMessage(subBuilder, extensionRegistry);
6163 setComparator(subBuilder.buildPartial());
6164 break;
6165 }
6166 }
6167 }
6168 }
6169
6170 private int bitField0_;
6171
6172
6173 private com.google.protobuf.ByteString row_ = com.google.protobuf.ByteString.EMPTY;
6174 public boolean hasRow() {
6175 return ((bitField0_ & 0x00000001) == 0x00000001);
6176 }
6177 public com.google.protobuf.ByteString getRow() {
6178 return row_;
6179 }
6180 public Builder setRow(com.google.protobuf.ByteString value) {
6181 if (value == null) {
6182 throw new NullPointerException();
6183 }
6184 bitField0_ |= 0x00000001;
6185 row_ = value;
6186 onChanged();
6187 return this;
6188 }
6189 public Builder clearRow() {
6190 bitField0_ = (bitField0_ & ~0x00000001);
6191 row_ = getDefaultInstance().getRow();
6192 onChanged();
6193 return this;
6194 }
6195
6196
6197 private com.google.protobuf.ByteString family_ = com.google.protobuf.ByteString.EMPTY;
6198 public boolean hasFamily() {
6199 return ((bitField0_ & 0x00000002) == 0x00000002);
6200 }
6201 public com.google.protobuf.ByteString getFamily() {
6202 return family_;
6203 }
6204 public Builder setFamily(com.google.protobuf.ByteString value) {
6205 if (value == null) {
6206 throw new NullPointerException();
6207 }
6208 bitField0_ |= 0x00000002;
6209 family_ = value;
6210 onChanged();
6211 return this;
6212 }
6213 public Builder clearFamily() {
6214 bitField0_ = (bitField0_ & ~0x00000002);
6215 family_ = getDefaultInstance().getFamily();
6216 onChanged();
6217 return this;
6218 }
6219
6220
6221 private com.google.protobuf.ByteString qualifier_ = com.google.protobuf.ByteString.EMPTY;
6222 public boolean hasQualifier() {
6223 return ((bitField0_ & 0x00000004) == 0x00000004);
6224 }
6225 public com.google.protobuf.ByteString getQualifier() {
6226 return qualifier_;
6227 }
6228 public Builder setQualifier(com.google.protobuf.ByteString value) {
6229 if (value == null) {
6230 throw new NullPointerException();
6231 }
6232 bitField0_ |= 0x00000004;
6233 qualifier_ = value;
6234 onChanged();
6235 return this;
6236 }
6237 public Builder clearQualifier() {
6238 bitField0_ = (bitField0_ & ~0x00000004);
6239 qualifier_ = getDefaultInstance().getQualifier();
6240 onChanged();
6241 return this;
6242 }
6243
6244
6245 private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CompareType compareType_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CompareType.LESS;
6246 public boolean hasCompareType() {
6247 return ((bitField0_ & 0x00000008) == 0x00000008);
6248 }
6249 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CompareType getCompareType() {
6250 return compareType_;
6251 }
6252 public Builder setCompareType(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CompareType value) {
6253 if (value == null) {
6254 throw new NullPointerException();
6255 }
6256 bitField0_ |= 0x00000008;
6257 compareType_ = value;
6258 onChanged();
6259 return this;
6260 }
6261 public Builder clearCompareType() {
6262 bitField0_ = (bitField0_ & ~0x00000008);
6263 compareType_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CompareType.LESS;
6264 onChanged();
6265 return this;
6266 }
6267
6268
6269 private org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator comparator_ = org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator.getDefaultInstance();
6270 private com.google.protobuf.SingleFieldBuilder<
6271 org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator, org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator.Builder, org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.ComparatorOrBuilder> comparatorBuilder_;
6272 public boolean hasComparator() {
6273 return ((bitField0_ & 0x00000010) == 0x00000010);
6274 }
6275 public org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator getComparator() {
6276 if (comparatorBuilder_ == null) {
6277 return comparator_;
6278 } else {
6279 return comparatorBuilder_.getMessage();
6280 }
6281 }
6282 public Builder setComparator(org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator value) {
6283 if (comparatorBuilder_ == null) {
6284 if (value == null) {
6285 throw new NullPointerException();
6286 }
6287 comparator_ = value;
6288 onChanged();
6289 } else {
6290 comparatorBuilder_.setMessage(value);
6291 }
6292 bitField0_ |= 0x00000010;
6293 return this;
6294 }
6295 public Builder setComparator(
6296 org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator.Builder builderForValue) {
6297 if (comparatorBuilder_ == null) {
6298 comparator_ = builderForValue.build();
6299 onChanged();
6300 } else {
6301 comparatorBuilder_.setMessage(builderForValue.build());
6302 }
6303 bitField0_ |= 0x00000010;
6304 return this;
6305 }
6306 public Builder mergeComparator(org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator value) {
6307 if (comparatorBuilder_ == null) {
6308 if (((bitField0_ & 0x00000010) == 0x00000010) &&
6309 comparator_ != org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator.getDefaultInstance()) {
6310 comparator_ =
6311 org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator.newBuilder(comparator_).mergeFrom(value).buildPartial();
6312 } else {
6313 comparator_ = value;
6314 }
6315 onChanged();
6316 } else {
6317 comparatorBuilder_.mergeFrom(value);
6318 }
6319 bitField0_ |= 0x00000010;
6320 return this;
6321 }
6322 public Builder clearComparator() {
6323 if (comparatorBuilder_ == null) {
6324 comparator_ = org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator.getDefaultInstance();
6325 onChanged();
6326 } else {
6327 comparatorBuilder_.clear();
6328 }
6329 bitField0_ = (bitField0_ & ~0x00000010);
6330 return this;
6331 }
6332 public org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator.Builder getComparatorBuilder() {
6333 bitField0_ |= 0x00000010;
6334 onChanged();
6335 return getComparatorFieldBuilder().getBuilder();
6336 }
6337 public org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.ComparatorOrBuilder getComparatorOrBuilder() {
6338 if (comparatorBuilder_ != null) {
6339 return comparatorBuilder_.getMessageOrBuilder();
6340 } else {
6341 return comparator_;
6342 }
6343 }
6344 private com.google.protobuf.SingleFieldBuilder<
6345 org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator, org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator.Builder, org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.ComparatorOrBuilder>
6346 getComparatorFieldBuilder() {
6347 if (comparatorBuilder_ == null) {
6348 comparatorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
6349 org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator, org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.Comparator.Builder, org.apache.hadoop.hbase.protobuf.generated.ComparatorProtos.ComparatorOrBuilder>(
6350 comparator_,
6351 getParentForChildren(),
6352 isClean());
6353 comparator_ = null;
6354 }
6355 return comparatorBuilder_;
6356 }
6357
6358
6359 }
6360
6361 static {
6362 defaultInstance = new Condition(true);
6363 defaultInstance.initFields();
6364 }
6365
6366
6367 }
6368
6369 public interface MutationProtoOrBuilder
6370 extends com.google.protobuf.MessageOrBuilder {
6371
6372
6373 boolean hasRow();
6374 com.google.protobuf.ByteString getRow();
6375
6376
6377 boolean hasMutateType();
6378 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.MutationType getMutateType();
6379
6380
6381 java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue>
6382 getColumnValueList();
6383 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue getColumnValue(int index);
6384 int getColumnValueCount();
6385 java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValueOrBuilder>
6386 getColumnValueOrBuilderList();
6387 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValueOrBuilder getColumnValueOrBuilder(
6388 int index);
6389
6390
6391 boolean hasTimestamp();
6392 long getTimestamp();
6393
6394
6395 java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair>
6396 getAttributeList();
6397 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair getAttribute(int index);
6398 int getAttributeCount();
6399 java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder>
6400 getAttributeOrBuilderList();
6401 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder getAttributeOrBuilder(
6402 int index);
6403
6404
6405 boolean hasWriteToWAL();
6406 boolean getWriteToWAL();
6407
6408
6409 boolean hasTimeRange();
6410 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange getTimeRange();
6411 org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRangeOrBuilder getTimeRangeOrBuilder();
6412
6413
6414 boolean hasAssociatedCellCount();
6415 int getAssociatedCellCount();
6416 }
6417 public static final class MutationProto extends
6418 com.google.protobuf.GeneratedMessage
6419 implements MutationProtoOrBuilder {
6420
6421 private MutationProto(Builder builder) {
6422 super(builder);
6423 }
6424 private MutationProto(boolean noInit) {}
6425
6426 private static final MutationProto defaultInstance;
6427 public static MutationProto getDefaultInstance() {
6428 return defaultInstance;
6429 }
6430
6431 public MutationProto getDefaultInstanceForType() {
6432 return defaultInstance;
6433 }
6434
6435 public static final com.google.protobuf.Descriptors.Descriptor
6436 getDescriptor() {
6437 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_MutationProto_descriptor;
6438 }
6439
6440 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6441 internalGetFieldAccessorTable() {
6442 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_MutationProto_fieldAccessorTable;
6443 }
6444
6445 public enum MutationType
6446 implements com.google.protobuf.ProtocolMessageEnum {
6447 APPEND(0, 0),
6448 INCREMENT(1, 1),
6449 PUT(2, 2),
6450 DELETE(3, 3),
6451 ;
6452
6453 public static final int APPEND_VALUE = 0;
6454 public static final int INCREMENT_VALUE = 1;
6455 public static final int PUT_VALUE = 2;
6456 public static final int DELETE_VALUE = 3;
6457
6458
6459 public final int getNumber() { return value; }
6460
6461 public static MutationType valueOf(int value) {
6462 switch (value) {
6463 case 0: return APPEND;
6464 case 1: return INCREMENT;
6465 case 2: return PUT;
6466 case 3: return DELETE;
6467 default: return null;
6468 }
6469 }
6470
6471 public static com.google.protobuf.Internal.EnumLiteMap<MutationType>
6472 internalGetValueMap() {
6473 return internalValueMap;
6474 }
6475 private static com.google.protobuf.Internal.EnumLiteMap<MutationType>
6476 internalValueMap =
6477 new com.google.protobuf.Internal.EnumLiteMap<MutationType>() {
6478 public MutationType findValueByNumber(int number) {
6479 return MutationType.valueOf(number);
6480 }
6481 };
6482
6483 public final com.google.protobuf.Descriptors.EnumValueDescriptor
6484 getValueDescriptor() {
6485 return getDescriptor().getValues().get(index);
6486 }
6487 public final com.google.protobuf.Descriptors.EnumDescriptor
6488 getDescriptorForType() {
6489 return getDescriptor();
6490 }
6491 public static final com.google.protobuf.Descriptors.EnumDescriptor
6492 getDescriptor() {
6493 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.getDescriptor().getEnumTypes().get(0);
6494 }
6495
6496 private static final MutationType[] VALUES = {
6497 APPEND, INCREMENT, PUT, DELETE,
6498 };
6499
6500 public static MutationType valueOf(
6501 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
6502 if (desc.getType() != getDescriptor()) {
6503 throw new java.lang.IllegalArgumentException(
6504 "EnumValueDescriptor is not for this type.");
6505 }
6506 return VALUES[desc.getIndex()];
6507 }
6508
6509 private final int index;
6510 private final int value;
6511
6512 private MutationType(int index, int value) {
6513 this.index = index;
6514 this.value = value;
6515 }
6516
6517
6518 }
6519
6520 public enum DeleteType
6521 implements com.google.protobuf.ProtocolMessageEnum {
6522 DELETE_ONE_VERSION(0, 0),
6523 DELETE_MULTIPLE_VERSIONS(1, 1),
6524 DELETE_FAMILY(2, 2),
6525 ;
6526
6527 public static final int DELETE_ONE_VERSION_VALUE = 0;
6528 public static final int DELETE_MULTIPLE_VERSIONS_VALUE = 1;
6529 public static final int DELETE_FAMILY_VALUE = 2;
6530
6531
6532 public final int getNumber() { return value; }
6533
6534 public static DeleteType valueOf(int value) {
6535 switch (value) {
6536 case 0: return DELETE_ONE_VERSION;
6537 case 1: return DELETE_MULTIPLE_VERSIONS;
6538 case 2: return DELETE_FAMILY;
6539 default: return null;
6540 }
6541 }
6542
6543 public static com.google.protobuf.Internal.EnumLiteMap<DeleteType>
6544 internalGetValueMap() {
6545 return internalValueMap;
6546 }
6547 private static com.google.protobuf.Internal.EnumLiteMap<DeleteType>
6548 internalValueMap =
6549 new com.google.protobuf.Internal.EnumLiteMap<DeleteType>() {
6550 public DeleteType findValueByNumber(int number) {
6551 return DeleteType.valueOf(number);
6552 }
6553 };
6554
6555 public final com.google.protobuf.Descriptors.EnumValueDescriptor
6556 getValueDescriptor() {
6557 return getDescriptor().getValues().get(index);
6558 }
6559 public final com.google.protobuf.Descriptors.EnumDescriptor
6560 getDescriptorForType() {
6561 return getDescriptor();
6562 }
6563 public static final com.google.protobuf.Descriptors.EnumDescriptor
6564 getDescriptor() {
6565 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.getDescriptor().getEnumTypes().get(1);
6566 }
6567
6568 private static final DeleteType[] VALUES = {
6569 DELETE_ONE_VERSION, DELETE_MULTIPLE_VERSIONS, DELETE_FAMILY,
6570 };
6571
6572 public static DeleteType valueOf(
6573 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
6574 if (desc.getType() != getDescriptor()) {
6575 throw new java.lang.IllegalArgumentException(
6576 "EnumValueDescriptor is not for this type.");
6577 }
6578 return VALUES[desc.getIndex()];
6579 }
6580
6581 private final int index;
6582 private final int value;
6583
6584 private DeleteType(int index, int value) {
6585 this.index = index;
6586 this.value = value;
6587 }
6588
6589
6590 }
6591
6592 public interface ColumnValueOrBuilder
6593 extends com.google.protobuf.MessageOrBuilder {
6594
6595
6596 boolean hasFamily();
6597 com.google.protobuf.ByteString getFamily();
6598
6599
6600 java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue>
6601 getQualifierValueList();
6602 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue getQualifierValue(int index);
6603 int getQualifierValueCount();
6604 java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValueOrBuilder>
6605 getQualifierValueOrBuilderList();
6606 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValueOrBuilder getQualifierValueOrBuilder(
6607 int index);
6608 }
6609 public static final class ColumnValue extends
6610 com.google.protobuf.GeneratedMessage
6611 implements ColumnValueOrBuilder {
6612
6613 private ColumnValue(Builder builder) {
6614 super(builder);
6615 }
6616 private ColumnValue(boolean noInit) {}
6617
6618 private static final ColumnValue defaultInstance;
6619 public static ColumnValue getDefaultInstance() {
6620 return defaultInstance;
6621 }
6622
6623 public ColumnValue getDefaultInstanceForType() {
6624 return defaultInstance;
6625 }
6626
6627 public static final com.google.protobuf.Descriptors.Descriptor
6628 getDescriptor() {
6629 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_MutationProto_ColumnValue_descriptor;
6630 }
6631
6632 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6633 internalGetFieldAccessorTable() {
6634 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_MutationProto_ColumnValue_fieldAccessorTable;
6635 }
6636
6637 public interface QualifierValueOrBuilder
6638 extends com.google.protobuf.MessageOrBuilder {
6639
6640
6641 boolean hasQualifier();
6642 com.google.protobuf.ByteString getQualifier();
6643
6644
6645 boolean hasValue();
6646 com.google.protobuf.ByteString getValue();
6647
6648
6649 boolean hasTimestamp();
6650 long getTimestamp();
6651
6652
6653 boolean hasDeleteType();
6654 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.DeleteType getDeleteType();
6655 }
6656 public static final class QualifierValue extends
6657 com.google.protobuf.GeneratedMessage
6658 implements QualifierValueOrBuilder {
6659
6660 private QualifierValue(Builder builder) {
6661 super(builder);
6662 }
6663 private QualifierValue(boolean noInit) {}
6664
6665 private static final QualifierValue defaultInstance;
6666 public static QualifierValue getDefaultInstance() {
6667 return defaultInstance;
6668 }
6669
6670 public QualifierValue getDefaultInstanceForType() {
6671 return defaultInstance;
6672 }
6673
6674 public static final com.google.protobuf.Descriptors.Descriptor
6675 getDescriptor() {
6676 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_MutationProto_ColumnValue_QualifierValue_descriptor;
6677 }
6678
6679 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6680 internalGetFieldAccessorTable() {
6681 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_MutationProto_ColumnValue_QualifierValue_fieldAccessorTable;
6682 }
6683
6684 private int bitField0_;
6685
6686 public static final int QUALIFIER_FIELD_NUMBER = 1;
6687 private com.google.protobuf.ByteString qualifier_;
6688 public boolean hasQualifier() {
6689 return ((bitField0_ & 0x00000001) == 0x00000001);
6690 }
6691 public com.google.protobuf.ByteString getQualifier() {
6692 return qualifier_;
6693 }
6694
6695
6696 public static final int VALUE_FIELD_NUMBER = 2;
6697 private com.google.protobuf.ByteString value_;
6698 public boolean hasValue() {
6699 return ((bitField0_ & 0x00000002) == 0x00000002);
6700 }
6701 public com.google.protobuf.ByteString getValue() {
6702 return value_;
6703 }
6704
6705
6706 public static final int TIMESTAMP_FIELD_NUMBER = 3;
6707 private long timestamp_;
6708 public boolean hasTimestamp() {
6709 return ((bitField0_ & 0x00000004) == 0x00000004);
6710 }
6711 public long getTimestamp() {
6712 return timestamp_;
6713 }
6714
6715
6716 public static final int DELETETYPE_FIELD_NUMBER = 4;
6717 private org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.DeleteType deleteType_;
6718 public boolean hasDeleteType() {
6719 return ((bitField0_ & 0x00000008) == 0x00000008);
6720 }
6721 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.DeleteType getDeleteType() {
6722 return deleteType_;
6723 }
6724
6725 private void initFields() {
6726 qualifier_ = com.google.protobuf.ByteString.EMPTY;
6727 value_ = com.google.protobuf.ByteString.EMPTY;
6728 timestamp_ = 0L;
6729 deleteType_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.DeleteType.DELETE_ONE_VERSION;
6730 }
6731 private byte memoizedIsInitialized = -1;
6732 public final boolean isInitialized() {
6733 byte isInitialized = memoizedIsInitialized;
6734 if (isInitialized != -1) return isInitialized == 1;
6735
6736 memoizedIsInitialized = 1;
6737 return true;
6738 }
6739
6740 public void writeTo(com.google.protobuf.CodedOutputStream output)
6741 throws java.io.IOException {
6742 getSerializedSize();
6743 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6744 output.writeBytes(1, qualifier_);
6745 }
6746 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6747 output.writeBytes(2, value_);
6748 }
6749 if (((bitField0_ & 0x00000004) == 0x00000004)) {
6750 output.writeUInt64(3, timestamp_);
6751 }
6752 if (((bitField0_ & 0x00000008) == 0x00000008)) {
6753 output.writeEnum(4, deleteType_.getNumber());
6754 }
6755 getUnknownFields().writeTo(output);
6756 }
6757
6758 private int memoizedSerializedSize = -1;
6759 public int getSerializedSize() {
6760 int size = memoizedSerializedSize;
6761 if (size != -1) return size;
6762
6763 size = 0;
6764 if (((bitField0_ & 0x00000001) == 0x00000001)) {
6765 size += com.google.protobuf.CodedOutputStream
6766 .computeBytesSize(1, qualifier_);
6767 }
6768 if (((bitField0_ & 0x00000002) == 0x00000002)) {
6769 size += com.google.protobuf.CodedOutputStream
6770 .computeBytesSize(2, value_);
6771 }
6772 if (((bitField0_ & 0x00000004) == 0x00000004)) {
6773 size += com.google.protobuf.CodedOutputStream
6774 .computeUInt64Size(3, timestamp_);
6775 }
6776 if (((bitField0_ & 0x00000008) == 0x00000008)) {
6777 size += com.google.protobuf.CodedOutputStream
6778 .computeEnumSize(4, deleteType_.getNumber());
6779 }
6780 size += getUnknownFields().getSerializedSize();
6781 memoizedSerializedSize = size;
6782 return size;
6783 }
6784
6785 private static final long serialVersionUID = 0L;
6786 @java.lang.Override
6787 protected java.lang.Object writeReplace()
6788 throws java.io.ObjectStreamException {
6789 return super.writeReplace();
6790 }
6791
6792 @java.lang.Override
6793 public boolean equals(final java.lang.Object obj) {
6794 if (obj == this) {
6795 return true;
6796 }
6797 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue)) {
6798 return super.equals(obj);
6799 }
6800 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue other = (org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue) obj;
6801
6802 boolean result = true;
6803 result = result && (hasQualifier() == other.hasQualifier());
6804 if (hasQualifier()) {
6805 result = result && getQualifier()
6806 .equals(other.getQualifier());
6807 }
6808 result = result && (hasValue() == other.hasValue());
6809 if (hasValue()) {
6810 result = result && getValue()
6811 .equals(other.getValue());
6812 }
6813 result = result && (hasTimestamp() == other.hasTimestamp());
6814 if (hasTimestamp()) {
6815 result = result && (getTimestamp()
6816 == other.getTimestamp());
6817 }
6818 result = result && (hasDeleteType() == other.hasDeleteType());
6819 if (hasDeleteType()) {
6820 result = result &&
6821 (getDeleteType() == other.getDeleteType());
6822 }
6823 result = result &&
6824 getUnknownFields().equals(other.getUnknownFields());
6825 return result;
6826 }
6827
6828 @java.lang.Override
6829 public int hashCode() {
6830 int hash = 41;
6831 hash = (19 * hash) + getDescriptorForType().hashCode();
6832 if (hasQualifier()) {
6833 hash = (37 * hash) + QUALIFIER_FIELD_NUMBER;
6834 hash = (53 * hash) + getQualifier().hashCode();
6835 }
6836 if (hasValue()) {
6837 hash = (37 * hash) + VALUE_FIELD_NUMBER;
6838 hash = (53 * hash) + getValue().hashCode();
6839 }
6840 if (hasTimestamp()) {
6841 hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
6842 hash = (53 * hash) + hashLong(getTimestamp());
6843 }
6844 if (hasDeleteType()) {
6845 hash = (37 * hash) + DELETETYPE_FIELD_NUMBER;
6846 hash = (53 * hash) + hashEnum(getDeleteType());
6847 }
6848 hash = (29 * hash) + getUnknownFields().hashCode();
6849 return hash;
6850 }
6851
6852 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue parseFrom(
6853 com.google.protobuf.ByteString data)
6854 throws com.google.protobuf.InvalidProtocolBufferException {
6855 return newBuilder().mergeFrom(data).buildParsed();
6856 }
6857 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue parseFrom(
6858 com.google.protobuf.ByteString data,
6859 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6860 throws com.google.protobuf.InvalidProtocolBufferException {
6861 return newBuilder().mergeFrom(data, extensionRegistry)
6862 .buildParsed();
6863 }
6864 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue parseFrom(byte[] data)
6865 throws com.google.protobuf.InvalidProtocolBufferException {
6866 return newBuilder().mergeFrom(data).buildParsed();
6867 }
6868 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue parseFrom(
6869 byte[] data,
6870 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6871 throws com.google.protobuf.InvalidProtocolBufferException {
6872 return newBuilder().mergeFrom(data, extensionRegistry)
6873 .buildParsed();
6874 }
6875 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue parseFrom(java.io.InputStream input)
6876 throws java.io.IOException {
6877 return newBuilder().mergeFrom(input).buildParsed();
6878 }
6879 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue parseFrom(
6880 java.io.InputStream input,
6881 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6882 throws java.io.IOException {
6883 return newBuilder().mergeFrom(input, extensionRegistry)
6884 .buildParsed();
6885 }
6886 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue parseDelimitedFrom(java.io.InputStream input)
6887 throws java.io.IOException {
6888 Builder builder = newBuilder();
6889 if (builder.mergeDelimitedFrom(input)) {
6890 return builder.buildParsed();
6891 } else {
6892 return null;
6893 }
6894 }
6895 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue parseDelimitedFrom(
6896 java.io.InputStream input,
6897 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6898 throws java.io.IOException {
6899 Builder builder = newBuilder();
6900 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
6901 return builder.buildParsed();
6902 } else {
6903 return null;
6904 }
6905 }
6906 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue parseFrom(
6907 com.google.protobuf.CodedInputStream input)
6908 throws java.io.IOException {
6909 return newBuilder().mergeFrom(input).buildParsed();
6910 }
6911 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue parseFrom(
6912 com.google.protobuf.CodedInputStream input,
6913 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
6914 throws java.io.IOException {
6915 return newBuilder().mergeFrom(input, extensionRegistry)
6916 .buildParsed();
6917 }
6918
6919 public static Builder newBuilder() { return Builder.create(); }
6920 public Builder newBuilderForType() { return newBuilder(); }
6921 public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue prototype) {
6922 return newBuilder().mergeFrom(prototype);
6923 }
6924 public Builder toBuilder() { return newBuilder(this); }
6925
6926 @java.lang.Override
6927 protected Builder newBuilderForType(
6928 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
6929 Builder builder = new Builder(parent);
6930 return builder;
6931 }
6932 public static final class Builder extends
6933 com.google.protobuf.GeneratedMessage.Builder<Builder>
6934 implements org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValueOrBuilder {
6935 public static final com.google.protobuf.Descriptors.Descriptor
6936 getDescriptor() {
6937 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_MutationProto_ColumnValue_QualifierValue_descriptor;
6938 }
6939
6940 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
6941 internalGetFieldAccessorTable() {
6942 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_MutationProto_ColumnValue_QualifierValue_fieldAccessorTable;
6943 }
6944
6945
6946 private Builder() {
6947 maybeForceBuilderInitialization();
6948 }
6949
6950 private Builder(BuilderParent parent) {
6951 super(parent);
6952 maybeForceBuilderInitialization();
6953 }
6954 private void maybeForceBuilderInitialization() {
6955 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
6956 }
6957 }
6958 private static Builder create() {
6959 return new Builder();
6960 }
6961
6962 public Builder clear() {
6963 super.clear();
6964 qualifier_ = com.google.protobuf.ByteString.EMPTY;
6965 bitField0_ = (bitField0_ & ~0x00000001);
6966 value_ = com.google.protobuf.ByteString.EMPTY;
6967 bitField0_ = (bitField0_ & ~0x00000002);
6968 timestamp_ = 0L;
6969 bitField0_ = (bitField0_ & ~0x00000004);
6970 deleteType_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.DeleteType.DELETE_ONE_VERSION;
6971 bitField0_ = (bitField0_ & ~0x00000008);
6972 return this;
6973 }
6974
6975 public Builder clone() {
6976 return create().mergeFrom(buildPartial());
6977 }
6978
6979 public com.google.protobuf.Descriptors.Descriptor
6980 getDescriptorForType() {
6981 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue.getDescriptor();
6982 }
6983
6984 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue getDefaultInstanceForType() {
6985 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue.getDefaultInstance();
6986 }
6987
6988 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue build() {
6989 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue result = buildPartial();
6990 if (!result.isInitialized()) {
6991 throw newUninitializedMessageException(result);
6992 }
6993 return result;
6994 }
6995
6996 private org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue buildParsed()
6997 throws com.google.protobuf.InvalidProtocolBufferException {
6998 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue result = buildPartial();
6999 if (!result.isInitialized()) {
7000 throw newUninitializedMessageException(
7001 result).asInvalidProtocolBufferException();
7002 }
7003 return result;
7004 }
7005
7006 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue buildPartial() {
7007 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue result = new org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue(this);
7008 int from_bitField0_ = bitField0_;
7009 int to_bitField0_ = 0;
7010 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
7011 to_bitField0_ |= 0x00000001;
7012 }
7013 result.qualifier_ = qualifier_;
7014 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
7015 to_bitField0_ |= 0x00000002;
7016 }
7017 result.value_ = value_;
7018 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
7019 to_bitField0_ |= 0x00000004;
7020 }
7021 result.timestamp_ = timestamp_;
7022 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
7023 to_bitField0_ |= 0x00000008;
7024 }
7025 result.deleteType_ = deleteType_;
7026 result.bitField0_ = to_bitField0_;
7027 onBuilt();
7028 return result;
7029 }
7030
7031 public Builder mergeFrom(com.google.protobuf.Message other) {
7032 if (other instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue) {
7033 return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue)other);
7034 } else {
7035 super.mergeFrom(other);
7036 return this;
7037 }
7038 }
7039
7040 public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue other) {
7041 if (other == org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue.getDefaultInstance()) return this;
7042 if (other.hasQualifier()) {
7043 setQualifier(other.getQualifier());
7044 }
7045 if (other.hasValue()) {
7046 setValue(other.getValue());
7047 }
7048 if (other.hasTimestamp()) {
7049 setTimestamp(other.getTimestamp());
7050 }
7051 if (other.hasDeleteType()) {
7052 setDeleteType(other.getDeleteType());
7053 }
7054 this.mergeUnknownFields(other.getUnknownFields());
7055 return this;
7056 }
7057
7058 public final boolean isInitialized() {
7059 return true;
7060 }
7061
7062 public Builder mergeFrom(
7063 com.google.protobuf.CodedInputStream input,
7064 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7065 throws java.io.IOException {
7066 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
7067 com.google.protobuf.UnknownFieldSet.newBuilder(
7068 this.getUnknownFields());
7069 while (true) {
7070 int tag = input.readTag();
7071 switch (tag) {
7072 case 0:
7073 this.setUnknownFields(unknownFields.build());
7074 onChanged();
7075 return this;
7076 default: {
7077 if (!parseUnknownField(input, unknownFields,
7078 extensionRegistry, tag)) {
7079 this.setUnknownFields(unknownFields.build());
7080 onChanged();
7081 return this;
7082 }
7083 break;
7084 }
7085 case 10: {
7086 bitField0_ |= 0x00000001;
7087 qualifier_ = input.readBytes();
7088 break;
7089 }
7090 case 18: {
7091 bitField0_ |= 0x00000002;
7092 value_ = input.readBytes();
7093 break;
7094 }
7095 case 24: {
7096 bitField0_ |= 0x00000004;
7097 timestamp_ = input.readUInt64();
7098 break;
7099 }
7100 case 32: {
7101 int rawValue = input.readEnum();
7102 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.DeleteType value = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.DeleteType.valueOf(rawValue);
7103 if (value == null) {
7104 unknownFields.mergeVarintField(4, rawValue);
7105 } else {
7106 bitField0_ |= 0x00000008;
7107 deleteType_ = value;
7108 }
7109 break;
7110 }
7111 }
7112 }
7113 }
7114
7115 private int bitField0_;
7116
7117
7118 private com.google.protobuf.ByteString qualifier_ = com.google.protobuf.ByteString.EMPTY;
7119 public boolean hasQualifier() {
7120 return ((bitField0_ & 0x00000001) == 0x00000001);
7121 }
7122 public com.google.protobuf.ByteString getQualifier() {
7123 return qualifier_;
7124 }
7125 public Builder setQualifier(com.google.protobuf.ByteString value) {
7126 if (value == null) {
7127 throw new NullPointerException();
7128 }
7129 bitField0_ |= 0x00000001;
7130 qualifier_ = value;
7131 onChanged();
7132 return this;
7133 }
7134 public Builder clearQualifier() {
7135 bitField0_ = (bitField0_ & ~0x00000001);
7136 qualifier_ = getDefaultInstance().getQualifier();
7137 onChanged();
7138 return this;
7139 }
7140
7141
7142 private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
7143 public boolean hasValue() {
7144 return ((bitField0_ & 0x00000002) == 0x00000002);
7145 }
7146 public com.google.protobuf.ByteString getValue() {
7147 return value_;
7148 }
7149 public Builder setValue(com.google.protobuf.ByteString value) {
7150 if (value == null) {
7151 throw new NullPointerException();
7152 }
7153 bitField0_ |= 0x00000002;
7154 value_ = value;
7155 onChanged();
7156 return this;
7157 }
7158 public Builder clearValue() {
7159 bitField0_ = (bitField0_ & ~0x00000002);
7160 value_ = getDefaultInstance().getValue();
7161 onChanged();
7162 return this;
7163 }
7164
7165
7166 private long timestamp_ ;
7167 public boolean hasTimestamp() {
7168 return ((bitField0_ & 0x00000004) == 0x00000004);
7169 }
7170 public long getTimestamp() {
7171 return timestamp_;
7172 }
7173 public Builder setTimestamp(long value) {
7174 bitField0_ |= 0x00000004;
7175 timestamp_ = value;
7176 onChanged();
7177 return this;
7178 }
7179 public Builder clearTimestamp() {
7180 bitField0_ = (bitField0_ & ~0x00000004);
7181 timestamp_ = 0L;
7182 onChanged();
7183 return this;
7184 }
7185
7186
7187 private org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.DeleteType deleteType_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.DeleteType.DELETE_ONE_VERSION;
7188 public boolean hasDeleteType() {
7189 return ((bitField0_ & 0x00000008) == 0x00000008);
7190 }
7191 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.DeleteType getDeleteType() {
7192 return deleteType_;
7193 }
7194 public Builder setDeleteType(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.DeleteType value) {
7195 if (value == null) {
7196 throw new NullPointerException();
7197 }
7198 bitField0_ |= 0x00000008;
7199 deleteType_ = value;
7200 onChanged();
7201 return this;
7202 }
7203 public Builder clearDeleteType() {
7204 bitField0_ = (bitField0_ & ~0x00000008);
7205 deleteType_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.DeleteType.DELETE_ONE_VERSION;
7206 onChanged();
7207 return this;
7208 }
7209
7210
7211 }
7212
7213 static {
7214 defaultInstance = new QualifierValue(true);
7215 defaultInstance.initFields();
7216 }
7217
7218
7219 }
7220
7221 private int bitField0_;
7222
7223 public static final int FAMILY_FIELD_NUMBER = 1;
7224 private com.google.protobuf.ByteString family_;
7225 public boolean hasFamily() {
7226 return ((bitField0_ & 0x00000001) == 0x00000001);
7227 }
7228 public com.google.protobuf.ByteString getFamily() {
7229 return family_;
7230 }
7231
7232
7233 public static final int QUALIFIERVALUE_FIELD_NUMBER = 2;
7234 private java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue> qualifierValue_;
7235 public java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue> getQualifierValueList() {
7236 return qualifierValue_;
7237 }
7238 public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValueOrBuilder>
7239 getQualifierValueOrBuilderList() {
7240 return qualifierValue_;
7241 }
7242 public int getQualifierValueCount() {
7243 return qualifierValue_.size();
7244 }
7245 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue getQualifierValue(int index) {
7246 return qualifierValue_.get(index);
7247 }
7248 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValueOrBuilder getQualifierValueOrBuilder(
7249 int index) {
7250 return qualifierValue_.get(index);
7251 }
7252
7253 private void initFields() {
7254 family_ = com.google.protobuf.ByteString.EMPTY;
7255 qualifierValue_ = java.util.Collections.emptyList();
7256 }
7257 private byte memoizedIsInitialized = -1;
7258 public final boolean isInitialized() {
7259 byte isInitialized = memoizedIsInitialized;
7260 if (isInitialized != -1) return isInitialized == 1;
7261
7262 if (!hasFamily()) {
7263 memoizedIsInitialized = 0;
7264 return false;
7265 }
7266 memoizedIsInitialized = 1;
7267 return true;
7268 }
7269
7270 public void writeTo(com.google.protobuf.CodedOutputStream output)
7271 throws java.io.IOException {
7272 getSerializedSize();
7273 if (((bitField0_ & 0x00000001) == 0x00000001)) {
7274 output.writeBytes(1, family_);
7275 }
7276 for (int i = 0; i < qualifierValue_.size(); i++) {
7277 output.writeMessage(2, qualifierValue_.get(i));
7278 }
7279 getUnknownFields().writeTo(output);
7280 }
7281
7282 private int memoizedSerializedSize = -1;
7283 public int getSerializedSize() {
7284 int size = memoizedSerializedSize;
7285 if (size != -1) return size;
7286
7287 size = 0;
7288 if (((bitField0_ & 0x00000001) == 0x00000001)) {
7289 size += com.google.protobuf.CodedOutputStream
7290 .computeBytesSize(1, family_);
7291 }
7292 for (int i = 0; i < qualifierValue_.size(); i++) {
7293 size += com.google.protobuf.CodedOutputStream
7294 .computeMessageSize(2, qualifierValue_.get(i));
7295 }
7296 size += getUnknownFields().getSerializedSize();
7297 memoizedSerializedSize = size;
7298 return size;
7299 }
7300
7301 private static final long serialVersionUID = 0L;
7302 @java.lang.Override
7303 protected java.lang.Object writeReplace()
7304 throws java.io.ObjectStreamException {
7305 return super.writeReplace();
7306 }
7307
7308 @java.lang.Override
7309 public boolean equals(final java.lang.Object obj) {
7310 if (obj == this) {
7311 return true;
7312 }
7313 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue)) {
7314 return super.equals(obj);
7315 }
7316 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue other = (org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue) obj;
7317
7318 boolean result = true;
7319 result = result && (hasFamily() == other.hasFamily());
7320 if (hasFamily()) {
7321 result = result && getFamily()
7322 .equals(other.getFamily());
7323 }
7324 result = result && getQualifierValueList()
7325 .equals(other.getQualifierValueList());
7326 result = result &&
7327 getUnknownFields().equals(other.getUnknownFields());
7328 return result;
7329 }
7330
7331 @java.lang.Override
7332 public int hashCode() {
7333 int hash = 41;
7334 hash = (19 * hash) + getDescriptorForType().hashCode();
7335 if (hasFamily()) {
7336 hash = (37 * hash) + FAMILY_FIELD_NUMBER;
7337 hash = (53 * hash) + getFamily().hashCode();
7338 }
7339 if (getQualifierValueCount() > 0) {
7340 hash = (37 * hash) + QUALIFIERVALUE_FIELD_NUMBER;
7341 hash = (53 * hash) + getQualifierValueList().hashCode();
7342 }
7343 hash = (29 * hash) + getUnknownFields().hashCode();
7344 return hash;
7345 }
7346
7347 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue parseFrom(
7348 com.google.protobuf.ByteString data)
7349 throws com.google.protobuf.InvalidProtocolBufferException {
7350 return newBuilder().mergeFrom(data).buildParsed();
7351 }
7352 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue parseFrom(
7353 com.google.protobuf.ByteString data,
7354 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7355 throws com.google.protobuf.InvalidProtocolBufferException {
7356 return newBuilder().mergeFrom(data, extensionRegistry)
7357 .buildParsed();
7358 }
7359 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue parseFrom(byte[] data)
7360 throws com.google.protobuf.InvalidProtocolBufferException {
7361 return newBuilder().mergeFrom(data).buildParsed();
7362 }
7363 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue parseFrom(
7364 byte[] data,
7365 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7366 throws com.google.protobuf.InvalidProtocolBufferException {
7367 return newBuilder().mergeFrom(data, extensionRegistry)
7368 .buildParsed();
7369 }
7370 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue parseFrom(java.io.InputStream input)
7371 throws java.io.IOException {
7372 return newBuilder().mergeFrom(input).buildParsed();
7373 }
7374 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue parseFrom(
7375 java.io.InputStream input,
7376 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7377 throws java.io.IOException {
7378 return newBuilder().mergeFrom(input, extensionRegistry)
7379 .buildParsed();
7380 }
7381 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue parseDelimitedFrom(java.io.InputStream input)
7382 throws java.io.IOException {
7383 Builder builder = newBuilder();
7384 if (builder.mergeDelimitedFrom(input)) {
7385 return builder.buildParsed();
7386 } else {
7387 return null;
7388 }
7389 }
7390 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue parseDelimitedFrom(
7391 java.io.InputStream input,
7392 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7393 throws java.io.IOException {
7394 Builder builder = newBuilder();
7395 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
7396 return builder.buildParsed();
7397 } else {
7398 return null;
7399 }
7400 }
7401 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue parseFrom(
7402 com.google.protobuf.CodedInputStream input)
7403 throws java.io.IOException {
7404 return newBuilder().mergeFrom(input).buildParsed();
7405 }
7406 public static org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue parseFrom(
7407 com.google.protobuf.CodedInputStream input,
7408 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7409 throws java.io.IOException {
7410 return newBuilder().mergeFrom(input, extensionRegistry)
7411 .buildParsed();
7412 }
7413
7414 public static Builder newBuilder() { return Builder.create(); }
7415 public Builder newBuilderForType() { return newBuilder(); }
7416 public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue prototype) {
7417 return newBuilder().mergeFrom(prototype);
7418 }
7419 public Builder toBuilder() { return newBuilder(this); }
7420
7421 @java.lang.Override
7422 protected Builder newBuilderForType(
7423 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
7424 Builder builder = new Builder(parent);
7425 return builder;
7426 }
7427 public static final class Builder extends
7428 com.google.protobuf.GeneratedMessage.Builder<Builder>
7429 implements org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValueOrBuilder {
7430 public static final com.google.protobuf.Descriptors.Descriptor
7431 getDescriptor() {
7432 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_MutationProto_ColumnValue_descriptor;
7433 }
7434
7435 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
7436 internalGetFieldAccessorTable() {
7437 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.internal_static_MutationProto_ColumnValue_fieldAccessorTable;
7438 }
7439
7440
7441 private Builder() {
7442 maybeForceBuilderInitialization();
7443 }
7444
7445 private Builder(BuilderParent parent) {
7446 super(parent);
7447 maybeForceBuilderInitialization();
7448 }
7449 private void maybeForceBuilderInitialization() {
7450 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
7451 getQualifierValueFieldBuilder();
7452 }
7453 }
7454 private static Builder create() {
7455 return new Builder();
7456 }
7457
7458 public Builder clear() {
7459 super.clear();
7460 family_ = com.google.protobuf.ByteString.EMPTY;
7461 bitField0_ = (bitField0_ & ~0x00000001);
7462 if (qualifierValueBuilder_ == null) {
7463 qualifierValue_ = java.util.Collections.emptyList();
7464 bitField0_ = (bitField0_ & ~0x00000002);
7465 } else {
7466 qualifierValueBuilder_.clear();
7467 }
7468 return this;
7469 }
7470
7471 public Builder clone() {
7472 return create().mergeFrom(buildPartial());
7473 }
7474
7475 public com.google.protobuf.Descriptors.Descriptor
7476 getDescriptorForType() {
7477 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.getDescriptor();
7478 }
7479
7480 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue getDefaultInstanceForType() {
7481 return org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.getDefaultInstance();
7482 }
7483
7484 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue build() {
7485 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue result = buildPartial();
7486 if (!result.isInitialized()) {
7487 throw newUninitializedMessageException(result);
7488 }
7489 return result;
7490 }
7491
7492 private org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue buildParsed()
7493 throws com.google.protobuf.InvalidProtocolBufferException {
7494 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue result = buildPartial();
7495 if (!result.isInitialized()) {
7496 throw newUninitializedMessageException(
7497 result).asInvalidProtocolBufferException();
7498 }
7499 return result;
7500 }
7501
7502 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue buildPartial() {
7503 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue result = new org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue(this);
7504 int from_bitField0_ = bitField0_;
7505 int to_bitField0_ = 0;
7506 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
7507 to_bitField0_ |= 0x00000001;
7508 }
7509 result.family_ = family_;
7510 if (qualifierValueBuilder_ == null) {
7511 if (((bitField0_ & 0x00000002) == 0x00000002)) {
7512 qualifierValue_ = java.util.Collections.unmodifiableList(qualifierValue_);
7513 bitField0_ = (bitField0_ & ~0x00000002);
7514 }
7515 result.qualifierValue_ = qualifierValue_;
7516 } else {
7517 result.qualifierValue_ = qualifierValueBuilder_.build();
7518 }
7519 result.bitField0_ = to_bitField0_;
7520 onBuilt();
7521 return result;
7522 }
7523
7524 public Builder mergeFrom(com.google.protobuf.Message other) {
7525 if (other instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue) {
7526 return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue)other);
7527 } else {
7528 super.mergeFrom(other);
7529 return this;
7530 }
7531 }
7532
7533 public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue other) {
7534 if (other == org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.getDefaultInstance()) return this;
7535 if (other.hasFamily()) {
7536 setFamily(other.getFamily());
7537 }
7538 if (qualifierValueBuilder_ == null) {
7539 if (!other.qualifierValue_.isEmpty()) {
7540 if (qualifierValue_.isEmpty()) {
7541 qualifierValue_ = other.qualifierValue_;
7542 bitField0_ = (bitField0_ & ~0x00000002);
7543 } else {
7544 ensureQualifierValueIsMutable();
7545 qualifierValue_.addAll(other.qualifierValue_);
7546 }
7547 onChanged();
7548 }
7549 } else {
7550 if (!other.qualifierValue_.isEmpty()) {
7551 if (qualifierValueBuilder_.isEmpty()) {
7552 qualifierValueBuilder_.dispose();
7553 qualifierValueBuilder_ = null;
7554 qualifierValue_ = other.qualifierValue_;
7555 bitField0_ = (bitField0_ & ~0x00000002);
7556 qualifierValueBuilder_ =
7557 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
7558 getQualifierValueFieldBuilder() : null;
7559 } else {
7560 qualifierValueBuilder_.addAllMessages(other.qualifierValue_);
7561 }
7562 }
7563 }
7564 this.mergeUnknownFields(other.getUnknownFields());
7565 return this;
7566 }
7567
7568 public final boolean isInitialized() {
7569 if (!hasFamily()) {
7570
7571 return false;
7572 }
7573 return true;
7574 }
7575
7576 public Builder mergeFrom(
7577 com.google.protobuf.CodedInputStream input,
7578 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7579 throws java.io.IOException {
7580 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
7581 com.google.protobuf.UnknownFieldSet.newBuilder(
7582 this.getUnknownFields());
7583 while (true) {
7584 int tag = input.readTag();
7585 switch (tag) {
7586 case 0:
7587 this.setUnknownFields(unknownFields.build());
7588 onChanged();
7589 return this;
7590 default: {
7591 if (!parseUnknownField(input, unknownFields,
7592 extensionRegistry, tag)) {
7593 this.setUnknownFields(unknownFields.build());
7594 onChanged();
7595 return this;
7596 }
7597 break;
7598 }
7599 case 10: {
7600 bitField0_ |= 0x00000001;
7601 family_ = input.readBytes();
7602 break;
7603 }
7604 case 18: {
7605 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue.newBuilder();
7606 input.readMessage(subBuilder, extensionRegistry);
7607 addQualifierValue(subBuilder.buildPartial());
7608 break;
7609 }
7610 }
7611 }
7612 }
7613
7614 private int bitField0_;
7615
7616
7617 private com.google.protobuf.ByteString family_ = com.google.protobuf.ByteString.EMPTY;
7618 public boolean hasFamily() {
7619 return ((bitField0_ & 0x00000001) == 0x00000001);
7620 }
7621 public com.google.protobuf.ByteString getFamily() {
7622 return family_;
7623 }
7624 public Builder setFamily(com.google.protobuf.ByteString value) {
7625 if (value == null) {
7626 throw new NullPointerException();
7627 }
7628 bitField0_ |= 0x00000001;
7629 family_ = value;
7630 onChanged();
7631 return this;
7632 }
7633 public Builder clearFamily() {
7634 bitField0_ = (bitField0_ & ~0x00000001);
7635 family_ = getDefaultInstance().getFamily();
7636 onChanged();
7637 return this;
7638 }
7639
7640
7641 private java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue> qualifierValue_ =
7642 java.util.Collections.emptyList();
7643 private void ensureQualifierValueIsMutable() {
7644 if (!((bitField0_ & 0x00000002) == 0x00000002)) {
7645 qualifierValue_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue>(qualifierValue_);
7646 bitField0_ |= 0x00000002;
7647 }
7648 }
7649
7650 private com.google.protobuf.RepeatedFieldBuilder<
7651 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValueOrBuilder> qualifierValueBuilder_;
7652
7653 public java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue> getQualifierValueList() {
7654 if (qualifierValueBuilder_ == null) {
7655 return java.util.Collections.unmodifiableList(qualifierValue_);
7656 } else {
7657 return qualifierValueBuilder_.getMessageList();
7658 }
7659 }
7660 public int getQualifierValueCount() {
7661 if (qualifierValueBuilder_ == null) {
7662 return qualifierValue_.size();
7663 } else {
7664 return qualifierValueBuilder_.getCount();
7665 }
7666 }
7667 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue getQualifierValue(int index) {
7668 if (qualifierValueBuilder_ == null) {
7669 return qualifierValue_.get(index);
7670 } else {
7671 return qualifierValueBuilder_.getMessage(index);
7672 }
7673 }
7674 public Builder setQualifierValue(
7675 int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue value) {
7676 if (qualifierValueBuilder_ == null) {
7677 if (value == null) {
7678 throw new NullPointerException();
7679 }
7680 ensureQualifierValueIsMutable();
7681 qualifierValue_.set(index, value);
7682 onChanged();
7683 } else {
7684 qualifierValueBuilder_.setMessage(index, value);
7685 }
7686 return this;
7687 }
7688 public Builder setQualifierValue(
7689 int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue.Builder builderForValue) {
7690 if (qualifierValueBuilder_ == null) {
7691 ensureQualifierValueIsMutable();
7692 qualifierValue_.set(index, builderForValue.build());
7693 onChanged();
7694 } else {
7695 qualifierValueBuilder_.setMessage(index, builderForValue.build());
7696 }
7697 return this;
7698 }
7699 public Builder addQualifierValue(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue value) {
7700 if (qualifierValueBuilder_ == null) {
7701 if (value == null) {
7702 throw new NullPointerException();
7703 }
7704 ensureQualifierValueIsMutable();
7705 qualifierValue_.add(value);
7706 onChanged();
7707 } else {
7708 qualifierValueBuilder_.addMessage(value);
7709 }
7710 return this;
7711 }
7712 public Builder addQualifierValue(
7713 int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue value) {
7714 if (qualifierValueBuilder_ == null) {
7715 if (value == null) {
7716 throw new NullPointerException();
7717 }
7718 ensureQualifierValueIsMutable();
7719 qualifierValue_.add(index, value);
7720 onChanged();
7721 } else {
7722 qualifierValueBuilder_.addMessage(index, value);
7723 }
7724 return this;
7725 }
7726 public Builder addQualifierValue(
7727 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue.Builder builderForValue) {
7728 if (qualifierValueBuilder_ == null) {
7729 ensureQualifierValueIsMutable();
7730 qualifierValue_.add(builderForValue.build());
7731 onChanged();
7732 } else {
7733 qualifierValueBuilder_.addMessage(builderForValue.build());
7734 }
7735 return this;
7736 }
7737 public Builder addQualifierValue(
7738 int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue.Builder builderForValue) {
7739 if (qualifierValueBuilder_ == null) {
7740 ensureQualifierValueIsMutable();
7741 qualifierValue_.add(index, builderForValue.build());
7742 onChanged();
7743 } else {
7744 qualifierValueBuilder_.addMessage(index, builderForValue.build());
7745 }
7746 return this;
7747 }
7748 public Builder addAllQualifierValue(
7749 java.lang.Iterable<? extends org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue> values) {
7750 if (qualifierValueBuilder_ == null) {
7751 ensureQualifierValueIsMutable();
7752 super.addAll(values, qualifierValue_);
7753 onChanged();
7754 } else {
7755 qualifierValueBuilder_.addAllMessages(values);
7756 }
7757 return this;
7758 }
7759 public Builder clearQualifierValue() {
7760 if (qualifierValueBuilder_ == null) {
7761 qualifierValue_ = java.util.Collections.emptyList();
7762 bitField0_ = (bitField0_ & ~0x00000002);
7763 onChanged();
7764 } else {
7765 qualifierValueBuilder_.clear();
7766 }
7767 return this;
7768 }
7769 public Builder removeQualifierValue(int index) {
7770 if (qualifierValueBuilder_ == null) {
7771 ensureQualifierValueIsMutable();
7772 qualifierValue_.remove(index);
7773 onChanged();
7774 } else {
7775 qualifierValueBuilder_.remove(index);
7776 }
7777 return this;
7778 }
7779 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue.Builder getQualifierValueBuilder(
7780 int index) {
7781 return getQualifierValueFieldBuilder().getBuilder(index);
7782 }
7783 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValueOrBuilder getQualifierValueOrBuilder(
7784 int index) {
7785 if (qualifierValueBuilder_ == null) {
7786 return qualifierValue_.get(index); } else {
7787 return qualifierValueBuilder_.getMessageOrBuilder(index);
7788 }
7789 }
7790 public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValueOrBuilder>
7791 getQualifierValueOrBuilderList() {
7792 if (qualifierValueBuilder_ != null) {
7793 return qualifierValueBuilder_.getMessageOrBuilderList();
7794 } else {
7795 return java.util.Collections.unmodifiableList(qualifierValue_);
7796 }
7797 }
7798 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue.Builder addQualifierValueBuilder() {
7799 return getQualifierValueFieldBuilder().addBuilder(
7800 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue.getDefaultInstance());
7801 }
7802 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue.Builder addQualifierValueBuilder(
7803 int index) {
7804 return getQualifierValueFieldBuilder().addBuilder(
7805 index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue.getDefaultInstance());
7806 }
7807 public java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue.Builder>
7808 getQualifierValueBuilderList() {
7809 return getQualifierValueFieldBuilder().getBuilderList();
7810 }
7811 private com.google.protobuf.RepeatedFieldBuilder<
7812 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValueOrBuilder>
7813 getQualifierValueFieldBuilder() {
7814 if (qualifierValueBuilder_ == null) {
7815 qualifierValueBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
7816 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValue.Builder, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue.QualifierValueOrBuilder>(
7817 qualifierValue_,
7818 ((bitField0_ & 0x00000002) == 0x00000002),
7819 getParentForChildren(),
7820 isClean());
7821 qualifierValue_ = null;
7822 }
7823 return qualifierValueBuilder_;
7824 }
7825
7826
7827 }
7828
7829 static {
7830 defaultInstance = new ColumnValue(true);
7831 defaultInstance.initFields();
7832 }
7833
7834
7835 }
7836
7837 private int bitField0_;
7838
7839 public static final int ROW_FIELD_NUMBER = 1;
7840 private com.google.protobuf.ByteString row_;
7841 public boolean hasRow() {
7842 return ((bitField0_ & 0x00000001) == 0x00000001);
7843 }
7844 public com.google.protobuf.ByteString getRow() {
7845 return row_;
7846 }
7847
7848
7849 public static final int MUTATETYPE_FIELD_NUMBER = 2;
7850 private org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.MutationType mutateType_;
7851 public boolean hasMutateType() {
7852 return ((bitField0_ & 0x00000002) == 0x00000002);
7853 }
7854 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.MutationType getMutateType() {
7855 return mutateType_;
7856 }
7857
7858
7859 public static final int COLUMNVALUE_FIELD_NUMBER = 3;
7860 private java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue> columnValue_;
7861 public java.util.List<org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue> getColumnValueList() {
7862 return columnValue_;
7863 }
7864 public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValueOrBuilder>
7865 getColumnValueOrBuilderList() {
7866 return columnValue_;
7867 }
7868 public int getColumnValueCount() {
7869 return columnValue_.size();
7870 }
7871 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValue getColumnValue(int index) {
7872 return columnValue_.get(index);
7873 }
7874 public org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.ColumnValueOrBuilder getColumnValueOrBuilder(
7875 int index) {
7876 return columnValue_.get(index);
7877 }
7878
7879
7880 public static final int TIMESTAMP_FIELD_NUMBER = 4;
7881 private long timestamp_;
7882 public boolean hasTimestamp() {
7883 return ((bitField0_ & 0x00000004) == 0x00000004);
7884 }
7885 public long getTimestamp() {
7886 return timestamp_;
7887 }
7888
7889
7890 public static final int ATTRIBUTE_FIELD_NUMBER = 5;
7891 private java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair> attribute_;
7892 public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair> getAttributeList() {
7893 return attribute_;
7894 }
7895 public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder>
7896 getAttributeOrBuilderList() {
7897 return attribute_;
7898 }
7899 public int getAttributeCount() {
7900 return attribute_.size();
7901 }
7902 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair getAttribute(int index) {
7903 return attribute_.get(index);
7904 }
7905 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder getAttributeOrBuilder(
7906 int index) {
7907 return attribute_.get(index);
7908 }
7909
7910
7911 public static final int WRITETOWAL_FIELD_NUMBER = 6;
7912 private boolean writeToWAL_;
7913 public boolean hasWriteToWAL() {
7914 return ((bitField0_ & 0x00000008) == 0x00000008);
7915 }
7916 public boolean getWriteToWAL() {
7917 return writeToWAL_;
7918 }
7919
7920
7921 public static final int TIMERANGE_FIELD_NUMBER = 7;
7922 private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange timeRange_;
7923 public boolean hasTimeRange() {
7924 return ((bitField0_ & 0x00000010) == 0x00000010);
7925 }
7926 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange getTimeRange() {
7927 return timeRange_;
7928 }
7929 public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRangeOrBuilder getTimeRangeOrBuilder() {
7930 return timeRange_;
7931 }
7932
7933
7934 public static final int ASSOCIATEDCELLCOUNT_FIELD_NUMBER = 8;
7935 private int associatedCellCount_;
7936 public boolean hasAssociatedCellCount() {
7937 return ((bitField0_ & 0x00000020) == 0x00000020);
7938 }
7939 public int getAssociatedCellCount() {
7940 return associatedCellCount_;
7941 }
7942
7943 private void initFields() {
7944 row_ = com.google.protobuf.ByteString.EMPTY;
7945 mutateType_ = org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto.MutationType.APPEND;
7946 columnValue_ = java.util.Collections.emptyList();
7947 timestamp_ = 0L;
7948 attribute_ = java.util.Collections.emptyList();
7949 writeToWAL_ = true;
7950 timeRange_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.getDefaultInstance();
7951 associatedCellCount_ = 0;
7952 }
7953 private byte memoizedIsInitialized = -1;
7954 public final boolean isInitialized() {
7955 byte isInitialized = memoizedIsInitialized;
7956 if (isInitialized != -1) return isInitialized == 1;
7957
7958 for (int i = 0; i < getColumnValueCount(); i++) {
7959 if (!getColumnValue(i).isInitialized()) {
7960 memoizedIsInitialized = 0;
7961 return false;
7962 }
7963 }
7964 for (int i = 0; i < getAttributeCount(); i++) {
7965 if (!getAttribute(i).isInitialized()) {
7966 memoizedIsInitialized = 0;
7967 return false;
7968 }
7969 }
7970 memoizedIsInitialized = 1;
7971 return true;
7972 }
7973
7974 public void writeTo(com.google.protobuf.CodedOutputStream output)
7975 throws java.io.IOException {
7976 getSerializedSize();
7977 if (((bitField0_ & 0x00000001) == 0x00000001)) {
7978 output.writeBytes(1, row_);
7979 }
7980 if (((bitField0_ & 0x00000002) == 0x00000002)) {
7981 output.writeEnum(2, mutateType_.getNumber());
7982 }
7983 for (int i = 0; i < columnValue_.size(); i++) {
7984 output.writeMessage(3, columnValue_.get(i));
7985 }
7986 if (((bitField0_ & 0x00000004) == 0x00000004)) {
7987 output.writeUInt64(4, timestamp_);
7988 }
7989 for (int i = 0; i < attribute_.size(); i++) {
7990 output.writeMessage(5, attribute_.get(i));
7991 }
7992 if (((bitField0_ & 0x00000008) == 0x00000008)) {
7993 output.writeBool(6, writeToWAL_);
7994 }
7995 if (((bitField0_ & 0x00000010) == 0x00000010)) {
7996 output.writeMessage(7, timeRange_);
7997 }
7998 if (((bitField0_ & 0x00000020) == 0x00000020)) {
7999 output.writeInt32(8, associatedCellCount_);
8000 }
8001 getUnknownFields().writeTo(output);
8002 }
8003
8004 private int memoizedSerializedSize = -1;
8005 public int getSerializedSize() {
8006 int size = memoizedSerializedSize;
8007 if (size != -1) return size;
8008
8009 size = 0;
8010 if (((bitField0_ & 0x00000001) == 0x00000001)) {
8011 size += com.google.protobuf.CodedOutputStream
8012 .computeBytesSize(1, row_);
8013 }
8014 if (((bitField0_ & 0x00000002) == 0x00000002)) {
8015 size += com.google.protobuf.CodedOutputStream
8016 .computeEnumSize(2, mutateType_.getNumber());
8017 }
8018 for (int i = 0; i < columnValue_.size(); i++) {
8019 size += com.google.protobuf.CodedOutputStream
8020 .computeMessageSize(3, columnValue_.get(i));
8021 }
8022 if (((bitField0_ & 0x00000004) == 0x00000004)) {
8023 size += com.google.protobuf.CodedOutputStream
8024 .computeUInt64Size(4, timestamp_);
8025 }
8026 for (int i = 0; i < attribute_.size(); i++) {
8027 size += com.google.protobuf.CodedOutputStream
8028 .computeMessageSize(5, attribute_.get(i));
8029 }
8030 if (((bitField0_ & 0x00000008) == 0x00000008)) {
8031 size += com.google.protobuf.CodedOutputStream
8032 .computeBoolSize(6, writeToWAL_);
8033 }
8034 if (((bitField0_ & 0x00000010) == 0x00000010)) {
8035 size += com.google.protobuf.CodedOutputStream
8036 .computeMessageSize(7, timeRange_);
8037 }
8038 if (((bitField0_ & 0x00000020) == 0x00000020)) {
8039 size += com.google.protobuf.CodedOutputStream
8040 .computeInt32Size(8, associatedCellCount_);
8041 }
8042 size += getUnknownFields().getSerializedSize();
8043 memoizedSerializedSize = size;
8044 return size;
8045 }
8046
8047 private static final long serialVersionUID = 0L;
8048 @java.lang.Override
8049 protected java.lang.Object writeReplace()
8050 throws java.io.ObjectStreamException {
8051 return super.writeReplace();
8052 }
8053
8054 @java.lang.Override
8055 public boolean equals(final java.lang.Object obj) {
8056 if (obj == this) {
8057 return true;
8058 }
8059 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto)) {
8060 return super.equals(obj);
8061 }
8062 org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto other = (org.apache.hadoop.hbase.protobuf.generated.ClientProtos.MutationProto) obj;
8063
8064 boolean result = true;
8065 result = result && (hasRow() == other.hasRow());
8066 if (hasRow()) {
8067 result = result && getRow()
8068 .equals(other.getRow());
8069 }
8070 result = result && (hasMutateType() == other.hasMutateType());
8071 if (hasMutateType()) {
8072 result = result &&
8073 (getMutateType() == other.getMutateType());
8074 }
8075 result = result && getColumnValueList()
8076 .equals(other.getColumnValueList());
8077 result = result && (hasTimestamp() == other.hasTimestamp());
8078 if (hasTimestamp()) {
8079 result = result && (getTimestamp()
8080 == other.getTimestamp());
8081 }
8082 result = result && getAttributeList()
8083 .equals(other.getAttributeList());
8084 result = result && (hasWriteToWAL() == other.hasWriteToWAL());
8085 if (hasWriteToWAL()) {
8086 result = result && (getWriteToWAL()
8087 == other.getWriteToWAL());
8088 }
8089 result = result && (hasTimeRange() == other.hasTimeRange());
8090 if (hasTimeRange()) {
8091 result = result && getTimeRange()
8092 .equals(other.getTimeRange());
8093 }
8094 result = result && (hasAssociatedCellCount() == other.hasAssociatedCellCount());
8095 if (hasAssociatedCellCount()) {
8096 result = result && (getAssociatedCellCount()
8097 == other.getAssociatedCellCount());
8098 }
8099 result = result &&
8100 getUnknownFields().equals(other.getUnknownFields());
8101 return result;
8102 }
8103
8104 @java.lang.Override
8105 public int hashCode() {
8106 int hash = 41;
8107 hash = (19 * hash) + getDescriptorForType().hashCode();
8108 if (hasRow()) {