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