1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: ScannerMessage.proto 3 4 package org.apache.hadoop.hbase.rest.protobuf.generated; 5 6 public final class ScannerMessage { ScannerMessage()7 private ScannerMessage() {} registerAllExtensions( com.google.protobuf.ExtensionRegistry registry)8 public static void registerAllExtensions( 9 com.google.protobuf.ExtensionRegistry registry) { 10 } 11 public interface ScannerOrBuilder 12 extends com.google.protobuf.MessageOrBuilder { 13 14 // optional bytes startRow = 1; 15 /** 16 * <code>optional bytes startRow = 1;</code> 17 */ hasStartRow()18 boolean hasStartRow(); 19 /** 20 * <code>optional bytes startRow = 1;</code> 21 */ getStartRow()22 com.google.protobuf.ByteString getStartRow(); 23 24 // optional bytes endRow = 2; 25 /** 26 * <code>optional bytes endRow = 2;</code> 27 */ hasEndRow()28 boolean hasEndRow(); 29 /** 30 * <code>optional bytes endRow = 2;</code> 31 */ getEndRow()32 com.google.protobuf.ByteString getEndRow(); 33 34 // repeated bytes columns = 3; 35 /** 36 * <code>repeated bytes columns = 3;</code> 37 */ getColumnsList()38 java.util.List<com.google.protobuf.ByteString> getColumnsList(); 39 /** 40 * <code>repeated bytes columns = 3;</code> 41 */ getColumnsCount()42 int getColumnsCount(); 43 /** 44 * <code>repeated bytes columns = 3;</code> 45 */ getColumns(int index)46 com.google.protobuf.ByteString getColumns(int index); 47 48 // optional int32 batch = 4; 49 /** 50 * <code>optional int32 batch = 4;</code> 51 */ hasBatch()52 boolean hasBatch(); 53 /** 54 * <code>optional int32 batch = 4;</code> 55 */ getBatch()56 int getBatch(); 57 58 // optional int64 startTime = 5; 59 /** 60 * <code>optional int64 startTime = 5;</code> 61 */ hasStartTime()62 boolean hasStartTime(); 63 /** 64 * <code>optional int64 startTime = 5;</code> 65 */ getStartTime()66 long getStartTime(); 67 68 // optional int64 endTime = 6; 69 /** 70 * <code>optional int64 endTime = 6;</code> 71 */ hasEndTime()72 boolean hasEndTime(); 73 /** 74 * <code>optional int64 endTime = 6;</code> 75 */ getEndTime()76 long getEndTime(); 77 78 // optional int32 maxVersions = 7; 79 /** 80 * <code>optional int32 maxVersions = 7;</code> 81 */ hasMaxVersions()82 boolean hasMaxVersions(); 83 /** 84 * <code>optional int32 maxVersions = 7;</code> 85 */ getMaxVersions()86 int getMaxVersions(); 87 88 // optional string filter = 8; 89 /** 90 * <code>optional string filter = 8;</code> 91 */ hasFilter()92 boolean hasFilter(); 93 /** 94 * <code>optional string filter = 8;</code> 95 */ getFilter()96 java.lang.String getFilter(); 97 /** 98 * <code>optional string filter = 8;</code> 99 */ 100 com.google.protobuf.ByteString getFilterBytes()101 getFilterBytes(); 102 103 // optional int32 caching = 9; 104 /** 105 * <code>optional int32 caching = 9;</code> 106 * 107 * <pre> 108 * specifies REST scanner caching 109 * </pre> 110 */ hasCaching()111 boolean hasCaching(); 112 /** 113 * <code>optional int32 caching = 9;</code> 114 * 115 * <pre> 116 * specifies REST scanner caching 117 * </pre> 118 */ getCaching()119 int getCaching(); 120 121 // repeated string labels = 10; 122 /** 123 * <code>repeated string labels = 10;</code> 124 */ 125 java.util.List<java.lang.String> getLabelsList()126 getLabelsList(); 127 /** 128 * <code>repeated string labels = 10;</code> 129 */ getLabelsCount()130 int getLabelsCount(); 131 /** 132 * <code>repeated string labels = 10;</code> 133 */ getLabels(int index)134 java.lang.String getLabels(int index); 135 /** 136 * <code>repeated string labels = 10;</code> 137 */ 138 com.google.protobuf.ByteString getLabelsBytes(int index)139 getLabelsBytes(int index); 140 141 // optional bool cacheBlocks = 11; 142 /** 143 * <code>optional bool cacheBlocks = 11;</code> 144 * 145 * <pre> 146 * server side block caching hint 147 * </pre> 148 */ hasCacheBlocks()149 boolean hasCacheBlocks(); 150 /** 151 * <code>optional bool cacheBlocks = 11;</code> 152 * 153 * <pre> 154 * server side block caching hint 155 * </pre> 156 */ getCacheBlocks()157 boolean getCacheBlocks(); 158 } 159 /** 160 * Protobuf type {@code org.apache.hadoop.hbase.rest.protobuf.generated.Scanner} 161 */ 162 public static final class Scanner extends 163 com.google.protobuf.GeneratedMessage 164 implements ScannerOrBuilder { 165 // Use Scanner.newBuilder() to construct. Scanner(com.google.protobuf.GeneratedMessage.Builder<?> builder)166 private Scanner(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 167 super(builder); 168 this.unknownFields = builder.getUnknownFields(); 169 } Scanner(boolean noInit)170 private Scanner(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } 171 172 private static final Scanner defaultInstance; getDefaultInstance()173 public static Scanner getDefaultInstance() { 174 return defaultInstance; 175 } 176 getDefaultInstanceForType()177 public Scanner getDefaultInstanceForType() { 178 return defaultInstance; 179 } 180 181 private final com.google.protobuf.UnknownFieldSet unknownFields; 182 @java.lang.Override 183 public final com.google.protobuf.UnknownFieldSet getUnknownFields()184 getUnknownFields() { 185 return this.unknownFields; 186 } Scanner( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)187 private Scanner( 188 com.google.protobuf.CodedInputStream input, 189 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 190 throws com.google.protobuf.InvalidProtocolBufferException { 191 initFields(); 192 int mutable_bitField0_ = 0; 193 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 194 com.google.protobuf.UnknownFieldSet.newBuilder(); 195 try { 196 boolean done = false; 197 while (!done) { 198 int tag = input.readTag(); 199 switch (tag) { 200 case 0: 201 done = true; 202 break; 203 default: { 204 if (!parseUnknownField(input, unknownFields, 205 extensionRegistry, tag)) { 206 done = true; 207 } 208 break; 209 } 210 case 10: { 211 bitField0_ |= 0x00000001; 212 startRow_ = input.readBytes(); 213 break; 214 } 215 case 18: { 216 bitField0_ |= 0x00000002; 217 endRow_ = input.readBytes(); 218 break; 219 } 220 case 26: { 221 if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 222 columns_ = new java.util.ArrayList<com.google.protobuf.ByteString>(); 223 mutable_bitField0_ |= 0x00000004; 224 } 225 columns_.add(input.readBytes()); 226 break; 227 } 228 case 32: { 229 bitField0_ |= 0x00000004; 230 batch_ = input.readInt32(); 231 break; 232 } 233 case 40: { 234 bitField0_ |= 0x00000008; 235 startTime_ = input.readInt64(); 236 break; 237 } 238 case 48: { 239 bitField0_ |= 0x00000010; 240 endTime_ = input.readInt64(); 241 break; 242 } 243 case 56: { 244 bitField0_ |= 0x00000020; 245 maxVersions_ = input.readInt32(); 246 break; 247 } 248 case 66: { 249 bitField0_ |= 0x00000040; 250 filter_ = input.readBytes(); 251 break; 252 } 253 case 72: { 254 bitField0_ |= 0x00000080; 255 caching_ = input.readInt32(); 256 break; 257 } 258 case 82: { 259 if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { 260 labels_ = new com.google.protobuf.LazyStringArrayList(); 261 mutable_bitField0_ |= 0x00000200; 262 } 263 labels_.add(input.readBytes()); 264 break; 265 } 266 case 88: { 267 bitField0_ |= 0x00000100; 268 cacheBlocks_ = input.readBool(); 269 break; 270 } 271 } 272 } 273 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 274 throw e.setUnfinishedMessage(this); 275 } catch (java.io.IOException e) { 276 throw new com.google.protobuf.InvalidProtocolBufferException( 277 e.getMessage()).setUnfinishedMessage(this); 278 } finally { 279 if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { 280 columns_ = java.util.Collections.unmodifiableList(columns_); 281 } 282 if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { 283 labels_ = new com.google.protobuf.UnmodifiableLazyStringList(labels_); 284 } 285 this.unknownFields = unknownFields.build(); 286 makeExtensionsImmutable(); 287 } 288 } 289 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()290 getDescriptor() { 291 return org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_descriptor; 292 } 293 294 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()295 internalGetFieldAccessorTable() { 296 return org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_fieldAccessorTable 297 .ensureFieldAccessorsInitialized( 298 org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner.class, org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner.Builder.class); 299 } 300 301 public static com.google.protobuf.Parser<Scanner> PARSER = 302 new com.google.protobuf.AbstractParser<Scanner>() { 303 public Scanner parsePartialFrom( 304 com.google.protobuf.CodedInputStream input, 305 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 306 throws com.google.protobuf.InvalidProtocolBufferException { 307 return new Scanner(input, extensionRegistry); 308 } 309 }; 310 311 @java.lang.Override getParserForType()312 public com.google.protobuf.Parser<Scanner> getParserForType() { 313 return PARSER; 314 } 315 316 private int bitField0_; 317 // optional bytes startRow = 1; 318 public static final int STARTROW_FIELD_NUMBER = 1; 319 private com.google.protobuf.ByteString startRow_; 320 /** 321 * <code>optional bytes startRow = 1;</code> 322 */ hasStartRow()323 public boolean hasStartRow() { 324 return ((bitField0_ & 0x00000001) == 0x00000001); 325 } 326 /** 327 * <code>optional bytes startRow = 1;</code> 328 */ getStartRow()329 public com.google.protobuf.ByteString getStartRow() { 330 return startRow_; 331 } 332 333 // optional bytes endRow = 2; 334 public static final int ENDROW_FIELD_NUMBER = 2; 335 private com.google.protobuf.ByteString endRow_; 336 /** 337 * <code>optional bytes endRow = 2;</code> 338 */ hasEndRow()339 public boolean hasEndRow() { 340 return ((bitField0_ & 0x00000002) == 0x00000002); 341 } 342 /** 343 * <code>optional bytes endRow = 2;</code> 344 */ getEndRow()345 public com.google.protobuf.ByteString getEndRow() { 346 return endRow_; 347 } 348 349 // repeated bytes columns = 3; 350 public static final int COLUMNS_FIELD_NUMBER = 3; 351 private java.util.List<com.google.protobuf.ByteString> columns_; 352 /** 353 * <code>repeated bytes columns = 3;</code> 354 */ 355 public java.util.List<com.google.protobuf.ByteString> getColumnsList()356 getColumnsList() { 357 return columns_; 358 } 359 /** 360 * <code>repeated bytes columns = 3;</code> 361 */ getColumnsCount()362 public int getColumnsCount() { 363 return columns_.size(); 364 } 365 /** 366 * <code>repeated bytes columns = 3;</code> 367 */ getColumns(int index)368 public com.google.protobuf.ByteString getColumns(int index) { 369 return columns_.get(index); 370 } 371 372 // optional int32 batch = 4; 373 public static final int BATCH_FIELD_NUMBER = 4; 374 private int batch_; 375 /** 376 * <code>optional int32 batch = 4;</code> 377 */ hasBatch()378 public boolean hasBatch() { 379 return ((bitField0_ & 0x00000004) == 0x00000004); 380 } 381 /** 382 * <code>optional int32 batch = 4;</code> 383 */ getBatch()384 public int getBatch() { 385 return batch_; 386 } 387 388 // optional int64 startTime = 5; 389 public static final int STARTTIME_FIELD_NUMBER = 5; 390 private long startTime_; 391 /** 392 * <code>optional int64 startTime = 5;</code> 393 */ hasStartTime()394 public boolean hasStartTime() { 395 return ((bitField0_ & 0x00000008) == 0x00000008); 396 } 397 /** 398 * <code>optional int64 startTime = 5;</code> 399 */ getStartTime()400 public long getStartTime() { 401 return startTime_; 402 } 403 404 // optional int64 endTime = 6; 405 public static final int ENDTIME_FIELD_NUMBER = 6; 406 private long endTime_; 407 /** 408 * <code>optional int64 endTime = 6;</code> 409 */ hasEndTime()410 public boolean hasEndTime() { 411 return ((bitField0_ & 0x00000010) == 0x00000010); 412 } 413 /** 414 * <code>optional int64 endTime = 6;</code> 415 */ getEndTime()416 public long getEndTime() { 417 return endTime_; 418 } 419 420 // optional int32 maxVersions = 7; 421 public static final int MAXVERSIONS_FIELD_NUMBER = 7; 422 private int maxVersions_; 423 /** 424 * <code>optional int32 maxVersions = 7;</code> 425 */ hasMaxVersions()426 public boolean hasMaxVersions() { 427 return ((bitField0_ & 0x00000020) == 0x00000020); 428 } 429 /** 430 * <code>optional int32 maxVersions = 7;</code> 431 */ getMaxVersions()432 public int getMaxVersions() { 433 return maxVersions_; 434 } 435 436 // optional string filter = 8; 437 public static final int FILTER_FIELD_NUMBER = 8; 438 private java.lang.Object filter_; 439 /** 440 * <code>optional string filter = 8;</code> 441 */ hasFilter()442 public boolean hasFilter() { 443 return ((bitField0_ & 0x00000040) == 0x00000040); 444 } 445 /** 446 * <code>optional string filter = 8;</code> 447 */ getFilter()448 public java.lang.String getFilter() { 449 java.lang.Object ref = filter_; 450 if (ref instanceof java.lang.String) { 451 return (java.lang.String) ref; 452 } else { 453 com.google.protobuf.ByteString bs = 454 (com.google.protobuf.ByteString) ref; 455 java.lang.String s = bs.toStringUtf8(); 456 if (bs.isValidUtf8()) { 457 filter_ = s; 458 } 459 return s; 460 } 461 } 462 /** 463 * <code>optional string filter = 8;</code> 464 */ 465 public com.google.protobuf.ByteString getFilterBytes()466 getFilterBytes() { 467 java.lang.Object ref = filter_; 468 if (ref instanceof java.lang.String) { 469 com.google.protobuf.ByteString b = 470 com.google.protobuf.ByteString.copyFromUtf8( 471 (java.lang.String) ref); 472 filter_ = b; 473 return b; 474 } else { 475 return (com.google.protobuf.ByteString) ref; 476 } 477 } 478 479 // optional int32 caching = 9; 480 public static final int CACHING_FIELD_NUMBER = 9; 481 private int caching_; 482 /** 483 * <code>optional int32 caching = 9;</code> 484 * 485 * <pre> 486 * specifies REST scanner caching 487 * </pre> 488 */ hasCaching()489 public boolean hasCaching() { 490 return ((bitField0_ & 0x00000080) == 0x00000080); 491 } 492 /** 493 * <code>optional int32 caching = 9;</code> 494 * 495 * <pre> 496 * specifies REST scanner caching 497 * </pre> 498 */ getCaching()499 public int getCaching() { 500 return caching_; 501 } 502 503 // repeated string labels = 10; 504 public static final int LABELS_FIELD_NUMBER = 10; 505 private com.google.protobuf.LazyStringList labels_; 506 /** 507 * <code>repeated string labels = 10;</code> 508 */ 509 public java.util.List<java.lang.String> getLabelsList()510 getLabelsList() { 511 return labels_; 512 } 513 /** 514 * <code>repeated string labels = 10;</code> 515 */ getLabelsCount()516 public int getLabelsCount() { 517 return labels_.size(); 518 } 519 /** 520 * <code>repeated string labels = 10;</code> 521 */ getLabels(int index)522 public java.lang.String getLabels(int index) { 523 return labels_.get(index); 524 } 525 /** 526 * <code>repeated string labels = 10;</code> 527 */ 528 public com.google.protobuf.ByteString getLabelsBytes(int index)529 getLabelsBytes(int index) { 530 return labels_.getByteString(index); 531 } 532 533 // optional bool cacheBlocks = 11; 534 public static final int CACHEBLOCKS_FIELD_NUMBER = 11; 535 private boolean cacheBlocks_; 536 /** 537 * <code>optional bool cacheBlocks = 11;</code> 538 * 539 * <pre> 540 * server side block caching hint 541 * </pre> 542 */ hasCacheBlocks()543 public boolean hasCacheBlocks() { 544 return ((bitField0_ & 0x00000100) == 0x00000100); 545 } 546 /** 547 * <code>optional bool cacheBlocks = 11;</code> 548 * 549 * <pre> 550 * server side block caching hint 551 * </pre> 552 */ getCacheBlocks()553 public boolean getCacheBlocks() { 554 return cacheBlocks_; 555 } 556 initFields()557 private void initFields() { 558 startRow_ = com.google.protobuf.ByteString.EMPTY; 559 endRow_ = com.google.protobuf.ByteString.EMPTY; 560 columns_ = java.util.Collections.emptyList(); 561 batch_ = 0; 562 startTime_ = 0L; 563 endTime_ = 0L; 564 maxVersions_ = 0; 565 filter_ = ""; 566 caching_ = 0; 567 labels_ = com.google.protobuf.LazyStringArrayList.EMPTY; 568 cacheBlocks_ = false; 569 } 570 private byte memoizedIsInitialized = -1; isInitialized()571 public final boolean isInitialized() { 572 byte isInitialized = memoizedIsInitialized; 573 if (isInitialized != -1) return isInitialized == 1; 574 575 memoizedIsInitialized = 1; 576 return true; 577 } 578 writeTo(com.google.protobuf.CodedOutputStream output)579 public void writeTo(com.google.protobuf.CodedOutputStream output) 580 throws java.io.IOException { 581 getSerializedSize(); 582 if (((bitField0_ & 0x00000001) == 0x00000001)) { 583 output.writeBytes(1, startRow_); 584 } 585 if (((bitField0_ & 0x00000002) == 0x00000002)) { 586 output.writeBytes(2, endRow_); 587 } 588 for (int i = 0; i < columns_.size(); i++) { 589 output.writeBytes(3, columns_.get(i)); 590 } 591 if (((bitField0_ & 0x00000004) == 0x00000004)) { 592 output.writeInt32(4, batch_); 593 } 594 if (((bitField0_ & 0x00000008) == 0x00000008)) { 595 output.writeInt64(5, startTime_); 596 } 597 if (((bitField0_ & 0x00000010) == 0x00000010)) { 598 output.writeInt64(6, endTime_); 599 } 600 if (((bitField0_ & 0x00000020) == 0x00000020)) { 601 output.writeInt32(7, maxVersions_); 602 } 603 if (((bitField0_ & 0x00000040) == 0x00000040)) { 604 output.writeBytes(8, getFilterBytes()); 605 } 606 if (((bitField0_ & 0x00000080) == 0x00000080)) { 607 output.writeInt32(9, caching_); 608 } 609 for (int i = 0; i < labels_.size(); i++) { 610 output.writeBytes(10, labels_.getByteString(i)); 611 } 612 if (((bitField0_ & 0x00000100) == 0x00000100)) { 613 output.writeBool(11, cacheBlocks_); 614 } 615 getUnknownFields().writeTo(output); 616 } 617 618 private int memoizedSerializedSize = -1; getSerializedSize()619 public int getSerializedSize() { 620 int size = memoizedSerializedSize; 621 if (size != -1) return size; 622 623 size = 0; 624 if (((bitField0_ & 0x00000001) == 0x00000001)) { 625 size += com.google.protobuf.CodedOutputStream 626 .computeBytesSize(1, startRow_); 627 } 628 if (((bitField0_ & 0x00000002) == 0x00000002)) { 629 size += com.google.protobuf.CodedOutputStream 630 .computeBytesSize(2, endRow_); 631 } 632 { 633 int dataSize = 0; 634 for (int i = 0; i < columns_.size(); i++) { 635 dataSize += com.google.protobuf.CodedOutputStream 636 .computeBytesSizeNoTag(columns_.get(i)); 637 } 638 size += dataSize; 639 size += 1 * getColumnsList().size(); 640 } 641 if (((bitField0_ & 0x00000004) == 0x00000004)) { 642 size += com.google.protobuf.CodedOutputStream 643 .computeInt32Size(4, batch_); 644 } 645 if (((bitField0_ & 0x00000008) == 0x00000008)) { 646 size += com.google.protobuf.CodedOutputStream 647 .computeInt64Size(5, startTime_); 648 } 649 if (((bitField0_ & 0x00000010) == 0x00000010)) { 650 size += com.google.protobuf.CodedOutputStream 651 .computeInt64Size(6, endTime_); 652 } 653 if (((bitField0_ & 0x00000020) == 0x00000020)) { 654 size += com.google.protobuf.CodedOutputStream 655 .computeInt32Size(7, maxVersions_); 656 } 657 if (((bitField0_ & 0x00000040) == 0x00000040)) { 658 size += com.google.protobuf.CodedOutputStream 659 .computeBytesSize(8, getFilterBytes()); 660 } 661 if (((bitField0_ & 0x00000080) == 0x00000080)) { 662 size += com.google.protobuf.CodedOutputStream 663 .computeInt32Size(9, caching_); 664 } 665 { 666 int dataSize = 0; 667 for (int i = 0; i < labels_.size(); i++) { 668 dataSize += com.google.protobuf.CodedOutputStream 669 .computeBytesSizeNoTag(labels_.getByteString(i)); 670 } 671 size += dataSize; 672 size += 1 * getLabelsList().size(); 673 } 674 if (((bitField0_ & 0x00000100) == 0x00000100)) { 675 size += com.google.protobuf.CodedOutputStream 676 .computeBoolSize(11, cacheBlocks_); 677 } 678 size += getUnknownFields().getSerializedSize(); 679 memoizedSerializedSize = size; 680 return size; 681 } 682 683 private static final long serialVersionUID = 0L; 684 @java.lang.Override writeReplace()685 protected java.lang.Object writeReplace() 686 throws java.io.ObjectStreamException { 687 return super.writeReplace(); 688 } 689 parseFrom( com.google.protobuf.ByteString data)690 public static org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parseFrom( 691 com.google.protobuf.ByteString data) 692 throws com.google.protobuf.InvalidProtocolBufferException { 693 return PARSER.parseFrom(data); 694 } parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)695 public static org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parseFrom( 696 com.google.protobuf.ByteString data, 697 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 698 throws com.google.protobuf.InvalidProtocolBufferException { 699 return PARSER.parseFrom(data, extensionRegistry); 700 } parseFrom(byte[] data)701 public static org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parseFrom(byte[] data) 702 throws com.google.protobuf.InvalidProtocolBufferException { 703 return PARSER.parseFrom(data); 704 } parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)705 public static org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parseFrom( 706 byte[] data, 707 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 708 throws com.google.protobuf.InvalidProtocolBufferException { 709 return PARSER.parseFrom(data, extensionRegistry); 710 } parseFrom(java.io.InputStream input)711 public static org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parseFrom(java.io.InputStream input) 712 throws java.io.IOException { 713 return PARSER.parseFrom(input); 714 } parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)715 public static org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parseFrom( 716 java.io.InputStream input, 717 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 718 throws java.io.IOException { 719 return PARSER.parseFrom(input, extensionRegistry); 720 } parseDelimitedFrom(java.io.InputStream input)721 public static org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parseDelimitedFrom(java.io.InputStream input) 722 throws java.io.IOException { 723 return PARSER.parseDelimitedFrom(input); 724 } parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)725 public static org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parseDelimitedFrom( 726 java.io.InputStream input, 727 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 728 throws java.io.IOException { 729 return PARSER.parseDelimitedFrom(input, extensionRegistry); 730 } parseFrom( com.google.protobuf.CodedInputStream input)731 public static org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parseFrom( 732 com.google.protobuf.CodedInputStream input) 733 throws java.io.IOException { 734 return PARSER.parseFrom(input); 735 } parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)736 public static org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parseFrom( 737 com.google.protobuf.CodedInputStream input, 738 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 739 throws java.io.IOException { 740 return PARSER.parseFrom(input, extensionRegistry); 741 } 742 newBuilder()743 public static Builder newBuilder() { return Builder.create(); } newBuilderForType()744 public Builder newBuilderForType() { return newBuilder(); } newBuilder(org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner prototype)745 public static Builder newBuilder(org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner prototype) { 746 return newBuilder().mergeFrom(prototype); 747 } toBuilder()748 public Builder toBuilder() { return newBuilder(this); } 749 750 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent)751 protected Builder newBuilderForType( 752 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 753 Builder builder = new Builder(parent); 754 return builder; 755 } 756 /** 757 * Protobuf type {@code org.apache.hadoop.hbase.rest.protobuf.generated.Scanner} 758 */ 759 public static final class Builder extends 760 com.google.protobuf.GeneratedMessage.Builder<Builder> 761 implements org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.ScannerOrBuilder { 762 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()763 getDescriptor() { 764 return org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_descriptor; 765 } 766 767 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()768 internalGetFieldAccessorTable() { 769 return org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_fieldAccessorTable 770 .ensureFieldAccessorsInitialized( 771 org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner.class, org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner.Builder.class); 772 } 773 774 // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner.newBuilder() Builder()775 private Builder() { 776 maybeForceBuilderInitialization(); 777 } 778 Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent)779 private Builder( 780 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 781 super(parent); 782 maybeForceBuilderInitialization(); 783 } maybeForceBuilderInitialization()784 private void maybeForceBuilderInitialization() { 785 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 786 } 787 } create()788 private static Builder create() { 789 return new Builder(); 790 } 791 clear()792 public Builder clear() { 793 super.clear(); 794 startRow_ = com.google.protobuf.ByteString.EMPTY; 795 bitField0_ = (bitField0_ & ~0x00000001); 796 endRow_ = com.google.protobuf.ByteString.EMPTY; 797 bitField0_ = (bitField0_ & ~0x00000002); 798 columns_ = java.util.Collections.emptyList(); 799 bitField0_ = (bitField0_ & ~0x00000004); 800 batch_ = 0; 801 bitField0_ = (bitField0_ & ~0x00000008); 802 startTime_ = 0L; 803 bitField0_ = (bitField0_ & ~0x00000010); 804 endTime_ = 0L; 805 bitField0_ = (bitField0_ & ~0x00000020); 806 maxVersions_ = 0; 807 bitField0_ = (bitField0_ & ~0x00000040); 808 filter_ = ""; 809 bitField0_ = (bitField0_ & ~0x00000080); 810 caching_ = 0; 811 bitField0_ = (bitField0_ & ~0x00000100); 812 labels_ = com.google.protobuf.LazyStringArrayList.EMPTY; 813 bitField0_ = (bitField0_ & ~0x00000200); 814 cacheBlocks_ = false; 815 bitField0_ = (bitField0_ & ~0x00000400); 816 return this; 817 } 818 clone()819 public Builder clone() { 820 return create().mergeFrom(buildPartial()); 821 } 822 823 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()824 getDescriptorForType() { 825 return org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_descriptor; 826 } 827 getDefaultInstanceForType()828 public org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner getDefaultInstanceForType() { 829 return org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner.getDefaultInstance(); 830 } 831 build()832 public org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner build() { 833 org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner result = buildPartial(); 834 if (!result.isInitialized()) { 835 throw newUninitializedMessageException(result); 836 } 837 return result; 838 } 839 buildPartial()840 public org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner buildPartial() { 841 org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner result = new org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner(this); 842 int from_bitField0_ = bitField0_; 843 int to_bitField0_ = 0; 844 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 845 to_bitField0_ |= 0x00000001; 846 } 847 result.startRow_ = startRow_; 848 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 849 to_bitField0_ |= 0x00000002; 850 } 851 result.endRow_ = endRow_; 852 if (((bitField0_ & 0x00000004) == 0x00000004)) { 853 columns_ = java.util.Collections.unmodifiableList(columns_); 854 bitField0_ = (bitField0_ & ~0x00000004); 855 } 856 result.columns_ = columns_; 857 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 858 to_bitField0_ |= 0x00000004; 859 } 860 result.batch_ = batch_; 861 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 862 to_bitField0_ |= 0x00000008; 863 } 864 result.startTime_ = startTime_; 865 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 866 to_bitField0_ |= 0x00000010; 867 } 868 result.endTime_ = endTime_; 869 if (((from_bitField0_ & 0x00000040) == 0x00000040)) { 870 to_bitField0_ |= 0x00000020; 871 } 872 result.maxVersions_ = maxVersions_; 873 if (((from_bitField0_ & 0x00000080) == 0x00000080)) { 874 to_bitField0_ |= 0x00000040; 875 } 876 result.filter_ = filter_; 877 if (((from_bitField0_ & 0x00000100) == 0x00000100)) { 878 to_bitField0_ |= 0x00000080; 879 } 880 result.caching_ = caching_; 881 if (((bitField0_ & 0x00000200) == 0x00000200)) { 882 labels_ = new com.google.protobuf.UnmodifiableLazyStringList( 883 labels_); 884 bitField0_ = (bitField0_ & ~0x00000200); 885 } 886 result.labels_ = labels_; 887 if (((from_bitField0_ & 0x00000400) == 0x00000400)) { 888 to_bitField0_ |= 0x00000100; 889 } 890 result.cacheBlocks_ = cacheBlocks_; 891 result.bitField0_ = to_bitField0_; 892 onBuilt(); 893 return result; 894 } 895 mergeFrom(com.google.protobuf.Message other)896 public Builder mergeFrom(com.google.protobuf.Message other) { 897 if (other instanceof org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner) { 898 return mergeFrom((org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner)other); 899 } else { 900 super.mergeFrom(other); 901 return this; 902 } 903 } 904 mergeFrom(org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner other)905 public Builder mergeFrom(org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner other) { 906 if (other == org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner.getDefaultInstance()) return this; 907 if (other.hasStartRow()) { 908 setStartRow(other.getStartRow()); 909 } 910 if (other.hasEndRow()) { 911 setEndRow(other.getEndRow()); 912 } 913 if (!other.columns_.isEmpty()) { 914 if (columns_.isEmpty()) { 915 columns_ = other.columns_; 916 bitField0_ = (bitField0_ & ~0x00000004); 917 } else { 918 ensureColumnsIsMutable(); 919 columns_.addAll(other.columns_); 920 } 921 onChanged(); 922 } 923 if (other.hasBatch()) { 924 setBatch(other.getBatch()); 925 } 926 if (other.hasStartTime()) { 927 setStartTime(other.getStartTime()); 928 } 929 if (other.hasEndTime()) { 930 setEndTime(other.getEndTime()); 931 } 932 if (other.hasMaxVersions()) { 933 setMaxVersions(other.getMaxVersions()); 934 } 935 if (other.hasFilter()) { 936 bitField0_ |= 0x00000080; 937 filter_ = other.filter_; 938 onChanged(); 939 } 940 if (other.hasCaching()) { 941 setCaching(other.getCaching()); 942 } 943 if (!other.labels_.isEmpty()) { 944 if (labels_.isEmpty()) { 945 labels_ = other.labels_; 946 bitField0_ = (bitField0_ & ~0x00000200); 947 } else { 948 ensureLabelsIsMutable(); 949 labels_.addAll(other.labels_); 950 } 951 onChanged(); 952 } 953 if (other.hasCacheBlocks()) { 954 setCacheBlocks(other.getCacheBlocks()); 955 } 956 this.mergeUnknownFields(other.getUnknownFields()); 957 return this; 958 } 959 isInitialized()960 public final boolean isInitialized() { 961 return true; 962 } 963 mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)964 public Builder mergeFrom( 965 com.google.protobuf.CodedInputStream input, 966 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 967 throws java.io.IOException { 968 org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parsedMessage = null; 969 try { 970 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 971 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 972 parsedMessage = (org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner) e.getUnfinishedMessage(); 973 throw e; 974 } finally { 975 if (parsedMessage != null) { 976 mergeFrom(parsedMessage); 977 } 978 } 979 return this; 980 } 981 private int bitField0_; 982 983 // optional bytes startRow = 1; 984 private com.google.protobuf.ByteString startRow_ = com.google.protobuf.ByteString.EMPTY; 985 /** 986 * <code>optional bytes startRow = 1;</code> 987 */ hasStartRow()988 public boolean hasStartRow() { 989 return ((bitField0_ & 0x00000001) == 0x00000001); 990 } 991 /** 992 * <code>optional bytes startRow = 1;</code> 993 */ getStartRow()994 public com.google.protobuf.ByteString getStartRow() { 995 return startRow_; 996 } 997 /** 998 * <code>optional bytes startRow = 1;</code> 999 */ setStartRow(com.google.protobuf.ByteString value)1000 public Builder setStartRow(com.google.protobuf.ByteString value) { 1001 if (value == null) { 1002 throw new NullPointerException(); 1003 } 1004 bitField0_ |= 0x00000001; 1005 startRow_ = value; 1006 onChanged(); 1007 return this; 1008 } 1009 /** 1010 * <code>optional bytes startRow = 1;</code> 1011 */ clearStartRow()1012 public Builder clearStartRow() { 1013 bitField0_ = (bitField0_ & ~0x00000001); 1014 startRow_ = getDefaultInstance().getStartRow(); 1015 onChanged(); 1016 return this; 1017 } 1018 1019 // optional bytes endRow = 2; 1020 private com.google.protobuf.ByteString endRow_ = com.google.protobuf.ByteString.EMPTY; 1021 /** 1022 * <code>optional bytes endRow = 2;</code> 1023 */ hasEndRow()1024 public boolean hasEndRow() { 1025 return ((bitField0_ & 0x00000002) == 0x00000002); 1026 } 1027 /** 1028 * <code>optional bytes endRow = 2;</code> 1029 */ getEndRow()1030 public com.google.protobuf.ByteString getEndRow() { 1031 return endRow_; 1032 } 1033 /** 1034 * <code>optional bytes endRow = 2;</code> 1035 */ setEndRow(com.google.protobuf.ByteString value)1036 public Builder setEndRow(com.google.protobuf.ByteString value) { 1037 if (value == null) { 1038 throw new NullPointerException(); 1039 } 1040 bitField0_ |= 0x00000002; 1041 endRow_ = value; 1042 onChanged(); 1043 return this; 1044 } 1045 /** 1046 * <code>optional bytes endRow = 2;</code> 1047 */ clearEndRow()1048 public Builder clearEndRow() { 1049 bitField0_ = (bitField0_ & ~0x00000002); 1050 endRow_ = getDefaultInstance().getEndRow(); 1051 onChanged(); 1052 return this; 1053 } 1054 1055 // repeated bytes columns = 3; 1056 private java.util.List<com.google.protobuf.ByteString> columns_ = java.util.Collections.emptyList(); ensureColumnsIsMutable()1057 private void ensureColumnsIsMutable() { 1058 if (!((bitField0_ & 0x00000004) == 0x00000004)) { 1059 columns_ = new java.util.ArrayList<com.google.protobuf.ByteString>(columns_); 1060 bitField0_ |= 0x00000004; 1061 } 1062 } 1063 /** 1064 * <code>repeated bytes columns = 3;</code> 1065 */ 1066 public java.util.List<com.google.protobuf.ByteString> getColumnsList()1067 getColumnsList() { 1068 return java.util.Collections.unmodifiableList(columns_); 1069 } 1070 /** 1071 * <code>repeated bytes columns = 3;</code> 1072 */ getColumnsCount()1073 public int getColumnsCount() { 1074 return columns_.size(); 1075 } 1076 /** 1077 * <code>repeated bytes columns = 3;</code> 1078 */ getColumns(int index)1079 public com.google.protobuf.ByteString getColumns(int index) { 1080 return columns_.get(index); 1081 } 1082 /** 1083 * <code>repeated bytes columns = 3;</code> 1084 */ setColumns( int index, com.google.protobuf.ByteString value)1085 public Builder setColumns( 1086 int index, com.google.protobuf.ByteString value) { 1087 if (value == null) { 1088 throw new NullPointerException(); 1089 } 1090 ensureColumnsIsMutable(); 1091 columns_.set(index, value); 1092 onChanged(); 1093 return this; 1094 } 1095 /** 1096 * <code>repeated bytes columns = 3;</code> 1097 */ addColumns(com.google.protobuf.ByteString value)1098 public Builder addColumns(com.google.protobuf.ByteString value) { 1099 if (value == null) { 1100 throw new NullPointerException(); 1101 } 1102 ensureColumnsIsMutable(); 1103 columns_.add(value); 1104 onChanged(); 1105 return this; 1106 } 1107 /** 1108 * <code>repeated bytes columns = 3;</code> 1109 */ addAllColumns( java.lang.Iterable<? extends com.google.protobuf.ByteString> values)1110 public Builder addAllColumns( 1111 java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { 1112 ensureColumnsIsMutable(); 1113 super.addAll(values, columns_); 1114 onChanged(); 1115 return this; 1116 } 1117 /** 1118 * <code>repeated bytes columns = 3;</code> 1119 */ clearColumns()1120 public Builder clearColumns() { 1121 columns_ = java.util.Collections.emptyList(); 1122 bitField0_ = (bitField0_ & ~0x00000004); 1123 onChanged(); 1124 return this; 1125 } 1126 1127 // optional int32 batch = 4; 1128 private int batch_ ; 1129 /** 1130 * <code>optional int32 batch = 4;</code> 1131 */ hasBatch()1132 public boolean hasBatch() { 1133 return ((bitField0_ & 0x00000008) == 0x00000008); 1134 } 1135 /** 1136 * <code>optional int32 batch = 4;</code> 1137 */ getBatch()1138 public int getBatch() { 1139 return batch_; 1140 } 1141 /** 1142 * <code>optional int32 batch = 4;</code> 1143 */ setBatch(int value)1144 public Builder setBatch(int value) { 1145 bitField0_ |= 0x00000008; 1146 batch_ = value; 1147 onChanged(); 1148 return this; 1149 } 1150 /** 1151 * <code>optional int32 batch = 4;</code> 1152 */ clearBatch()1153 public Builder clearBatch() { 1154 bitField0_ = (bitField0_ & ~0x00000008); 1155 batch_ = 0; 1156 onChanged(); 1157 return this; 1158 } 1159 1160 // optional int64 startTime = 5; 1161 private long startTime_ ; 1162 /** 1163 * <code>optional int64 startTime = 5;</code> 1164 */ hasStartTime()1165 public boolean hasStartTime() { 1166 return ((bitField0_ & 0x00000010) == 0x00000010); 1167 } 1168 /** 1169 * <code>optional int64 startTime = 5;</code> 1170 */ getStartTime()1171 public long getStartTime() { 1172 return startTime_; 1173 } 1174 /** 1175 * <code>optional int64 startTime = 5;</code> 1176 */ setStartTime(long value)1177 public Builder setStartTime(long value) { 1178 bitField0_ |= 0x00000010; 1179 startTime_ = value; 1180 onChanged(); 1181 return this; 1182 } 1183 /** 1184 * <code>optional int64 startTime = 5;</code> 1185 */ clearStartTime()1186 public Builder clearStartTime() { 1187 bitField0_ = (bitField0_ & ~0x00000010); 1188 startTime_ = 0L; 1189 onChanged(); 1190 return this; 1191 } 1192 1193 // optional int64 endTime = 6; 1194 private long endTime_ ; 1195 /** 1196 * <code>optional int64 endTime = 6;</code> 1197 */ hasEndTime()1198 public boolean hasEndTime() { 1199 return ((bitField0_ & 0x00000020) == 0x00000020); 1200 } 1201 /** 1202 * <code>optional int64 endTime = 6;</code> 1203 */ getEndTime()1204 public long getEndTime() { 1205 return endTime_; 1206 } 1207 /** 1208 * <code>optional int64 endTime = 6;</code> 1209 */ setEndTime(long value)1210 public Builder setEndTime(long value) { 1211 bitField0_ |= 0x00000020; 1212 endTime_ = value; 1213 onChanged(); 1214 return this; 1215 } 1216 /** 1217 * <code>optional int64 endTime = 6;</code> 1218 */ clearEndTime()1219 public Builder clearEndTime() { 1220 bitField0_ = (bitField0_ & ~0x00000020); 1221 endTime_ = 0L; 1222 onChanged(); 1223 return this; 1224 } 1225 1226 // optional int32 maxVersions = 7; 1227 private int maxVersions_ ; 1228 /** 1229 * <code>optional int32 maxVersions = 7;</code> 1230 */ hasMaxVersions()1231 public boolean hasMaxVersions() { 1232 return ((bitField0_ & 0x00000040) == 0x00000040); 1233 } 1234 /** 1235 * <code>optional int32 maxVersions = 7;</code> 1236 */ getMaxVersions()1237 public int getMaxVersions() { 1238 return maxVersions_; 1239 } 1240 /** 1241 * <code>optional int32 maxVersions = 7;</code> 1242 */ setMaxVersions(int value)1243 public Builder setMaxVersions(int value) { 1244 bitField0_ |= 0x00000040; 1245 maxVersions_ = value; 1246 onChanged(); 1247 return this; 1248 } 1249 /** 1250 * <code>optional int32 maxVersions = 7;</code> 1251 */ clearMaxVersions()1252 public Builder clearMaxVersions() { 1253 bitField0_ = (bitField0_ & ~0x00000040); 1254 maxVersions_ = 0; 1255 onChanged(); 1256 return this; 1257 } 1258 1259 // optional string filter = 8; 1260 private java.lang.Object filter_ = ""; 1261 /** 1262 * <code>optional string filter = 8;</code> 1263 */ hasFilter()1264 public boolean hasFilter() { 1265 return ((bitField0_ & 0x00000080) == 0x00000080); 1266 } 1267 /** 1268 * <code>optional string filter = 8;</code> 1269 */ getFilter()1270 public java.lang.String getFilter() { 1271 java.lang.Object ref = filter_; 1272 if (!(ref instanceof java.lang.String)) { 1273 java.lang.String s = ((com.google.protobuf.ByteString) ref) 1274 .toStringUtf8(); 1275 filter_ = s; 1276 return s; 1277 } else { 1278 return (java.lang.String) ref; 1279 } 1280 } 1281 /** 1282 * <code>optional string filter = 8;</code> 1283 */ 1284 public com.google.protobuf.ByteString getFilterBytes()1285 getFilterBytes() { 1286 java.lang.Object ref = filter_; 1287 if (ref instanceof String) { 1288 com.google.protobuf.ByteString b = 1289 com.google.protobuf.ByteString.copyFromUtf8( 1290 (java.lang.String) ref); 1291 filter_ = b; 1292 return b; 1293 } else { 1294 return (com.google.protobuf.ByteString) ref; 1295 } 1296 } 1297 /** 1298 * <code>optional string filter = 8;</code> 1299 */ setFilter( java.lang.String value)1300 public Builder setFilter( 1301 java.lang.String value) { 1302 if (value == null) { 1303 throw new NullPointerException(); 1304 } 1305 bitField0_ |= 0x00000080; 1306 filter_ = value; 1307 onChanged(); 1308 return this; 1309 } 1310 /** 1311 * <code>optional string filter = 8;</code> 1312 */ clearFilter()1313 public Builder clearFilter() { 1314 bitField0_ = (bitField0_ & ~0x00000080); 1315 filter_ = getDefaultInstance().getFilter(); 1316 onChanged(); 1317 return this; 1318 } 1319 /** 1320 * <code>optional string filter = 8;</code> 1321 */ setFilterBytes( com.google.protobuf.ByteString value)1322 public Builder setFilterBytes( 1323 com.google.protobuf.ByteString value) { 1324 if (value == null) { 1325 throw new NullPointerException(); 1326 } 1327 bitField0_ |= 0x00000080; 1328 filter_ = value; 1329 onChanged(); 1330 return this; 1331 } 1332 1333 // optional int32 caching = 9; 1334 private int caching_ ; 1335 /** 1336 * <code>optional int32 caching = 9;</code> 1337 * 1338 * <pre> 1339 * specifies REST scanner caching 1340 * </pre> 1341 */ hasCaching()1342 public boolean hasCaching() { 1343 return ((bitField0_ & 0x00000100) == 0x00000100); 1344 } 1345 /** 1346 * <code>optional int32 caching = 9;</code> 1347 * 1348 * <pre> 1349 * specifies REST scanner caching 1350 * </pre> 1351 */ getCaching()1352 public int getCaching() { 1353 return caching_; 1354 } 1355 /** 1356 * <code>optional int32 caching = 9;</code> 1357 * 1358 * <pre> 1359 * specifies REST scanner caching 1360 * </pre> 1361 */ setCaching(int value)1362 public Builder setCaching(int value) { 1363 bitField0_ |= 0x00000100; 1364 caching_ = value; 1365 onChanged(); 1366 return this; 1367 } 1368 /** 1369 * <code>optional int32 caching = 9;</code> 1370 * 1371 * <pre> 1372 * specifies REST scanner caching 1373 * </pre> 1374 */ clearCaching()1375 public Builder clearCaching() { 1376 bitField0_ = (bitField0_ & ~0x00000100); 1377 caching_ = 0; 1378 onChanged(); 1379 return this; 1380 } 1381 1382 // repeated string labels = 10; 1383 private com.google.protobuf.LazyStringList labels_ = com.google.protobuf.LazyStringArrayList.EMPTY; ensureLabelsIsMutable()1384 private void ensureLabelsIsMutable() { 1385 if (!((bitField0_ & 0x00000200) == 0x00000200)) { 1386 labels_ = new com.google.protobuf.LazyStringArrayList(labels_); 1387 bitField0_ |= 0x00000200; 1388 } 1389 } 1390 /** 1391 * <code>repeated string labels = 10;</code> 1392 */ 1393 public java.util.List<java.lang.String> getLabelsList()1394 getLabelsList() { 1395 return java.util.Collections.unmodifiableList(labels_); 1396 } 1397 /** 1398 * <code>repeated string labels = 10;</code> 1399 */ getLabelsCount()1400 public int getLabelsCount() { 1401 return labels_.size(); 1402 } 1403 /** 1404 * <code>repeated string labels = 10;</code> 1405 */ getLabels(int index)1406 public java.lang.String getLabels(int index) { 1407 return labels_.get(index); 1408 } 1409 /** 1410 * <code>repeated string labels = 10;</code> 1411 */ 1412 public com.google.protobuf.ByteString getLabelsBytes(int index)1413 getLabelsBytes(int index) { 1414 return labels_.getByteString(index); 1415 } 1416 /** 1417 * <code>repeated string labels = 10;</code> 1418 */ setLabels( int index, java.lang.String value)1419 public Builder setLabels( 1420 int index, java.lang.String value) { 1421 if (value == null) { 1422 throw new NullPointerException(); 1423 } 1424 ensureLabelsIsMutable(); 1425 labels_.set(index, value); 1426 onChanged(); 1427 return this; 1428 } 1429 /** 1430 * <code>repeated string labels = 10;</code> 1431 */ addLabels( java.lang.String value)1432 public Builder addLabels( 1433 java.lang.String value) { 1434 if (value == null) { 1435 throw new NullPointerException(); 1436 } 1437 ensureLabelsIsMutable(); 1438 labels_.add(value); 1439 onChanged(); 1440 return this; 1441 } 1442 /** 1443 * <code>repeated string labels = 10;</code> 1444 */ addAllLabels( java.lang.Iterable<java.lang.String> values)1445 public Builder addAllLabels( 1446 java.lang.Iterable<java.lang.String> values) { 1447 ensureLabelsIsMutable(); 1448 super.addAll(values, labels_); 1449 onChanged(); 1450 return this; 1451 } 1452 /** 1453 * <code>repeated string labels = 10;</code> 1454 */ clearLabels()1455 public Builder clearLabels() { 1456 labels_ = com.google.protobuf.LazyStringArrayList.EMPTY; 1457 bitField0_ = (bitField0_ & ~0x00000200); 1458 onChanged(); 1459 return this; 1460 } 1461 /** 1462 * <code>repeated string labels = 10;</code> 1463 */ addLabelsBytes( com.google.protobuf.ByteString value)1464 public Builder addLabelsBytes( 1465 com.google.protobuf.ByteString value) { 1466 if (value == null) { 1467 throw new NullPointerException(); 1468 } 1469 ensureLabelsIsMutable(); 1470 labels_.add(value); 1471 onChanged(); 1472 return this; 1473 } 1474 1475 // optional bool cacheBlocks = 11; 1476 private boolean cacheBlocks_ ; 1477 /** 1478 * <code>optional bool cacheBlocks = 11;</code> 1479 * 1480 * <pre> 1481 * server side block caching hint 1482 * </pre> 1483 */ hasCacheBlocks()1484 public boolean hasCacheBlocks() { 1485 return ((bitField0_ & 0x00000400) == 0x00000400); 1486 } 1487 /** 1488 * <code>optional bool cacheBlocks = 11;</code> 1489 * 1490 * <pre> 1491 * server side block caching hint 1492 * </pre> 1493 */ getCacheBlocks()1494 public boolean getCacheBlocks() { 1495 return cacheBlocks_; 1496 } 1497 /** 1498 * <code>optional bool cacheBlocks = 11;</code> 1499 * 1500 * <pre> 1501 * server side block caching hint 1502 * </pre> 1503 */ setCacheBlocks(boolean value)1504 public Builder setCacheBlocks(boolean value) { 1505 bitField0_ |= 0x00000400; 1506 cacheBlocks_ = value; 1507 onChanged(); 1508 return this; 1509 } 1510 /** 1511 * <code>optional bool cacheBlocks = 11;</code> 1512 * 1513 * <pre> 1514 * server side block caching hint 1515 * </pre> 1516 */ clearCacheBlocks()1517 public Builder clearCacheBlocks() { 1518 bitField0_ = (bitField0_ & ~0x00000400); 1519 cacheBlocks_ = false; 1520 onChanged(); 1521 return this; 1522 } 1523 1524 // @@protoc_insertion_point(builder_scope:org.apache.hadoop.hbase.rest.protobuf.generated.Scanner) 1525 } 1526 1527 static { 1528 defaultInstance = new Scanner(true); defaultInstance.initFields()1529 defaultInstance.initFields(); 1530 } 1531 1532 // @@protoc_insertion_point(class_scope:org.apache.hadoop.hbase.rest.protobuf.generated.Scanner) 1533 } 1534 1535 private static com.google.protobuf.Descriptors.Descriptor 1536 internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_descriptor; 1537 private static 1538 com.google.protobuf.GeneratedMessage.FieldAccessorTable 1539 internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_fieldAccessorTable; 1540 1541 public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor()1542 getDescriptor() { 1543 return descriptor; 1544 } 1545 private static com.google.protobuf.Descriptors.FileDescriptor 1546 descriptor; 1547 static { 1548 java.lang.String[] descriptorData = { 1549 "\n\024ScannerMessage.proto\022/org.apache.hadoo" + 1550 "p.hbase.rest.protobuf.generated\"\312\001\n\007Scan" + 1551 "ner\022\020\n\010startRow\030\001 \001(\014\022\016\n\006endRow\030\002 \001(\014\022\017\n" + 1552 "\007columns\030\003 \003(\014\022\r\n\005batch\030\004 \001(\005\022\021\n\tstartTi" + 1553 "me\030\005 \001(\003\022\017\n\007endTime\030\006 \001(\003\022\023\n\013maxVersions" + 1554 "\030\007 \001(\005\022\016\n\006filter\030\010 \001(\t\022\017\n\007caching\030\t \001(\005\022" + 1555 "\016\n\006labels\030\n \003(\t\022\023\n\013cacheBlocks\030\013 \001(\010" 1556 }; 1557 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = 1558 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { 1559 public com.google.protobuf.ExtensionRegistry assignDescriptors( 1560 com.google.protobuf.Descriptors.FileDescriptor root) { 1561 descriptor = root; 1562 internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_descriptor = 1563 getDescriptor().getMessageTypes().get(0); 1564 internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_fieldAccessorTable = new 1565 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 1566 internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_descriptor, 1567 new java.lang.String[] { "StartRow", "EndRow", "Columns", "Batch", "StartTime", "EndTime", "MaxVersions", "Filter", "Caching", "Labels", "CacheBlocks", }); 1568 return null; 1569 } 1570 }; 1571 com.google.protobuf.Descriptors.FileDescriptor internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner)1572 .internalBuildGeneratedFileFrom(descriptorData, 1573 new com.google.protobuf.Descriptors.FileDescriptor[] { 1574 }, assigner); 1575 } 1576 1577 // @@protoc_insertion_point(outer_class_scope) 1578 } 1579