// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ScannerMessage.proto
package org.apache.hadoop.hbase.rest.protobuf.generated;
public final class ScannerMessage {
private ScannerMessage() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface ScannerOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bytes startRow = 1;
/**
* <code>optional bytes startRow = 1;</code>
*/
boolean hasStartRow();
/**
* <code>optional bytes startRow = 1;</code>
*/
com.google.protobuf.ByteString getStartRow();
// optional bytes endRow = 2;
/**
* <code>optional bytes endRow = 2;</code>
*/
boolean hasEndRow();
/**
* <code>optional bytes endRow = 2;</code>
*/
com.google.protobuf.ByteString getEndRow();
// repeated bytes columns = 3;
/**
* <code>repeated bytes columns = 3;</code>
*/
java.util.List<com.google.protobuf.ByteString> getColumnsList();
/**
* <code>repeated bytes columns = 3;</code>
*/
int getColumnsCount();
/**
* <code>repeated bytes columns = 3;</code>
*/
com.google.protobuf.ByteString getColumns(int index);
// optional int32 batch = 4;
/**
* <code>optional int32 batch = 4;</code>
*/
boolean hasBatch();
/**
* <code>optional int32 batch = 4;</code>
*/
int getBatch();
// optional int64 startTime = 5;
/**
* <code>optional int64 startTime = 5;</code>
*/
boolean hasStartTime();
/**
* <code>optional int64 startTime = 5;</code>
*/
long getStartTime();
// optional int64 endTime = 6;
/**
* <code>optional int64 endTime = 6;</code>
*/
boolean hasEndTime();
/**
* <code>optional int64 endTime = 6;</code>
*/
long getEndTime();
// optional int32 maxVersions = 7;
/**
* <code>optional int32 maxVersions = 7;</code>
*/
boolean hasMaxVersions();
/**
* <code>optional int32 maxVersions = 7;</code>
*/
int getMaxVersions();
// optional string filter = 8;
/**
* <code>optional string filter = 8;</code>
*/
boolean hasFilter();
/**
* <code>optional string filter = 8;</code>
*/
java.lang.String getFilter();
/**
* <code>optional string filter = 8;</code>
*/
com.google.protobuf.ByteString
getFilterBytes();
// optional int32 caching = 9;
/**
* <code>optional int32 caching = 9;</code>
*
* <pre>
* specifies REST scanner caching
* </pre>
*/
boolean hasCaching();
/**
* <code>optional int32 caching = 9;</code>
*
* <pre>
* specifies REST scanner caching
* </pre>
*/
int getCaching();
// repeated string labels = 10;
/**
* <code>repeated string labels = 10;</code>
*/
java.util.List<java.lang.String>
getLabelsList();
/**
* <code>repeated string labels = 10;</code>
*/
int getLabelsCount();
/**
* <code>repeated string labels = 10;</code>
*/
java.lang.String getLabels(int index);
/**
* <code>repeated string labels = 10;</code>
*/
com.google.protobuf.ByteString
getLabelsBytes(int index);
// optional bool cacheBlocks = 11;
/**
* <code>optional bool cacheBlocks = 11;</code>
*
* <pre>
* server side block caching hint
* </pre>
*/
boolean hasCacheBlocks();
/**
* <code>optional bool cacheBlocks = 11;</code>
*
* <pre>
* server side block caching hint
* </pre>
*/
boolean getCacheBlocks();
}
/**
* Protobuf type {@code org.apache.hadoop.hbase.rest.protobuf.generated.Scanner}
*/
public static final class Scanner extends
com.google.protobuf.GeneratedMessage
implements ScannerOrBuilder {
// Use Scanner.newBuilder() to construct.
private Scanner(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Scanner(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Scanner defaultInstance;
public static Scanner getDefaultInstance() {
return defaultInstance;
}
public Scanner getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Scanner(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
startRow_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
endRow_ = input.readBytes();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
columns_ = new java.util.ArrayList<com.google.protobuf.ByteString>();
mutable_bitField0_ |= 0x00000004;
}
columns_.add(input.readBytes());
break;
}
case 32: {
bitField0_ |= 0x00000004;
batch_ = input.readInt32();
break;
}
case 40: {
bitField0_ |= 0x00000008;
startTime_ = input.readInt64();
break;
}
case 48: {
bitField0_ |= 0x00000010;
endTime_ = input.readInt64();
break;
}
case 56: {
bitField0_ |= 0x00000020;
maxVersions_ = input.readInt32();
break;
}
case 66: {
bitField0_ |= 0x00000040;
filter_ = input.readBytes();
break;
}
case 72: {
bitField0_ |= 0x00000080;
caching_ = input.readInt32();
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
labels_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000200;
}
labels_.add(input.readBytes());
break;
}
case 88: {
bitField0_ |= 0x00000100;
cacheBlocks_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
columns_ = java.util.Collections.unmodifiableList(columns_);
}
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
labels_ = new com.google.protobuf.UnmodifiableLazyStringList(labels_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner.class, org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner.Builder.class);
}
public static com.google.protobuf.Parser<Scanner> PARSER =
new com.google.protobuf.AbstractParser<Scanner>() {
public Scanner parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Scanner(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Scanner> getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bytes startRow = 1;
public static final int STARTROW_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString startRow_;
/**
* <code>optional bytes startRow = 1;</code>
*/
public boolean hasStartRow() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bytes startRow = 1;</code>
*/
public com.google.protobuf.ByteString getStartRow() {
return startRow_;
}
// optional bytes endRow = 2;
public static final int ENDROW_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString endRow_;
/**
* <code>optional bytes endRow = 2;</code>
*/
public boolean hasEndRow() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bytes endRow = 2;</code>
*/
public com.google.protobuf.ByteString getEndRow() {
return endRow_;
}
// repeated bytes columns = 3;
public static final int COLUMNS_FIELD_NUMBER = 3;
private java.util.List<com.google.protobuf.ByteString> columns_;
/**
* <code>repeated bytes columns = 3;</code>
*/
public java.util.List<com.google.protobuf.ByteString>
getColumnsList() {
return columns_;
}
/**
* <code>repeated bytes columns = 3;</code>
*/
public int getColumnsCount() {
return columns_.size();
}
/**
* <code>repeated bytes columns = 3;</code>
*/
public com.google.protobuf.ByteString getColumns(int index) {
return columns_.get(index);
}
// optional int32 batch = 4;
public static final int BATCH_FIELD_NUMBER = 4;
private int batch_;
/**
* <code>optional int32 batch = 4;</code>
*/
public boolean hasBatch() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional int32 batch = 4;</code>
*/
public int getBatch() {
return batch_;
}
// optional int64 startTime = 5;
public static final int STARTTIME_FIELD_NUMBER = 5;
private long startTime_;
/**
* <code>optional int64 startTime = 5;</code>
*/
public boolean hasStartTime() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional int64 startTime = 5;</code>
*/
public long getStartTime() {
return startTime_;
}
// optional int64 endTime = 6;
public static final int ENDTIME_FIELD_NUMBER = 6;
private long endTime_;
/**
* <code>optional int64 endTime = 6;</code>
*/
public boolean hasEndTime() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional int64 endTime = 6;</code>
*/
public long getEndTime() {
return endTime_;
}
// optional int32 maxVersions = 7;
public static final int MAXVERSIONS_FIELD_NUMBER = 7;
private int maxVersions_;
/**
* <code>optional int32 maxVersions = 7;</code>
*/
public boolean hasMaxVersions() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional int32 maxVersions = 7;</code>
*/
public int getMaxVersions() {
return maxVersions_;
}
// optional string filter = 8;
public static final int FILTER_FIELD_NUMBER = 8;
private java.lang.Object filter_;
/**
* <code>optional string filter = 8;</code>
*/
public boolean hasFilter() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional string filter = 8;</code>
*/
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
filter_ = s;
}
return s;
}
}
/**
* <code>optional string filter = 8;</code>
*/
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional int32 caching = 9;
public static final int CACHING_FIELD_NUMBER = 9;
private int caching_;
/**
* <code>optional int32 caching = 9;</code>
*
* <pre>
* specifies REST scanner caching
* </pre>
*/
public boolean hasCaching() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional int32 caching = 9;</code>
*
* <pre>
* specifies REST scanner caching
* </pre>
*/
public int getCaching() {
return caching_;
}
// repeated string labels = 10;
public static final int LABELS_FIELD_NUMBER = 10;
private com.google.protobuf.LazyStringList labels_;
/**
* <code>repeated string labels = 10;</code>
*/
public java.util.List<java.lang.String>
getLabelsList() {
return labels_;
}
/**
* <code>repeated string labels = 10;</code>
*/
public int getLabelsCount() {
return labels_.size();
}
/**
* <code>repeated string labels = 10;</code>
*/
public java.lang.String getLabels(int index) {
return labels_.get(index);
}
/**
* <code>repeated string labels = 10;</code>
*/
public com.google.protobuf.ByteString
getLabelsBytes(int index) {
return labels_.getByteString(index);
}
// optional bool cacheBlocks = 11;
public static final int CACHEBLOCKS_FIELD_NUMBER = 11;
private boolean cacheBlocks_;
/**
* <code>optional bool cacheBlocks = 11;</code>
*
* <pre>
* server side block caching hint
* </pre>
*/
public boolean hasCacheBlocks() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional bool cacheBlocks = 11;</code>
*
* <pre>
* server side block caching hint
* </pre>
*/
public boolean getCacheBlocks() {
return cacheBlocks_;
}
private void initFields() {
startRow_ = com.google.protobuf.ByteString.EMPTY;
endRow_ = com.google.protobuf.ByteString.EMPTY;
columns_ = java.util.Collections.emptyList();
batch_ = 0;
startTime_ = 0L;
endTime_ = 0L;
maxVersions_ = 0;
filter_ = "";
caching_ = 0;
labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
cacheBlocks_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, startRow_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, endRow_);
}
for (int i = 0; i < columns_.size(); i++) {
output.writeBytes(3, columns_.get(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(4, batch_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt64(5, startTime_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt64(6, endTime_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt32(7, maxVersions_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBytes(8, getFilterBytes());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeInt32(9, caching_);
}
for (int i = 0; i < labels_.size(); i++) {
output.writeBytes(10, labels_.getByteString(i));
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeBool(11, cacheBlocks_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, startRow_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, endRow_);
}
{
int dataSize = 0;
for (int i = 0; i < columns_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(columns_.get(i));
}
size += dataSize;
size += 1 * getColumnsList().size();
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, batch_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, startTime_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, endTime_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, maxVersions_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(8, getFilterBytes());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, caching_);
}
{
int dataSize = 0;
for (int i = 0; i < labels_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(labels_.getByteString(i));
}
size += dataSize;
size += 1 * getLabelsList().size();
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(11, cacheBlocks_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code org.apache.hadoop.hbase.rest.protobuf.generated.Scanner}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.ScannerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner.class, org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner.Builder.class);
}
// Construct using org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
startRow_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
endRow_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
columns_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
batch_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
startTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
endTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
maxVersions_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
filter_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
caching_ = 0;
bitField0_ = (bitField0_ & ~0x00000100);
labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000200);
cacheBlocks_ = false;
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_descriptor;
}
public org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner getDefaultInstanceForType() {
return org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner.getDefaultInstance();
}
public org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner build() {
org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner buildPartial() {
org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner result = new org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.startRow_ = startRow_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.endRow_ = endRow_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
columns_ = java.util.Collections.unmodifiableList(columns_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.columns_ = columns_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
result.batch_ = batch_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000008;
}
result.startTime_ = startTime_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000010;
}
result.endTime_ = endTime_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000020;
}
result.maxVersions_ = maxVersions_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000040;
}
result.filter_ = filter_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000080;
}
result.caching_ = caching_;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
labels_ = new com.google.protobuf.UnmodifiableLazyStringList(
labels_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.labels_ = labels_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000100;
}
result.cacheBlocks_ = cacheBlocks_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner) {
return mergeFrom((org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner other) {
if (other == org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner.getDefaultInstance()) return this;
if (other.hasStartRow()) {
setStartRow(other.getStartRow());
}
if (other.hasEndRow()) {
setEndRow(other.getEndRow());
}
if (!other.columns_.isEmpty()) {
if (columns_.isEmpty()) {
columns_ = other.columns_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureColumnsIsMutable();
columns_.addAll(other.columns_);
}
onChanged();
}
if (other.hasBatch()) {
setBatch(other.getBatch());
}
if (other.hasStartTime()) {
setStartTime(other.getStartTime());
}
if (other.hasEndTime()) {
setEndTime(other.getEndTime());
}
if (other.hasMaxVersions()) {
setMaxVersions(other.getMaxVersions());
}
if (other.hasFilter()) {
bitField0_ |= 0x00000080;
filter_ = other.filter_;
onChanged();
}
if (other.hasCaching()) {
setCaching(other.getCaching());
}
if (!other.labels_.isEmpty()) {
if (labels_.isEmpty()) {
labels_ = other.labels_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureLabelsIsMutable();
labels_.addAll(other.labels_);
}
onChanged();
}
if (other.hasCacheBlocks()) {
setCacheBlocks(other.getCacheBlocks());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bytes startRow = 1;
private com.google.protobuf.ByteString startRow_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>optional bytes startRow = 1;</code>
*/
public boolean hasStartRow() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bytes startRow = 1;</code>
*/
public com.google.protobuf.ByteString getStartRow() {
return startRow_;
}
/**
* <code>optional bytes startRow = 1;</code>
*/
public Builder setStartRow(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
startRow_ = value;
onChanged();
return this;
}
/**
* <code>optional bytes startRow = 1;</code>
*/
public Builder clearStartRow() {
bitField0_ = (bitField0_ & ~0x00000001);
startRow_ = getDefaultInstance().getStartRow();
onChanged();
return this;
}
// optional bytes endRow = 2;
private com.google.protobuf.ByteString endRow_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>optional bytes endRow = 2;</code>
*/
public boolean hasEndRow() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bytes endRow = 2;</code>
*/
public com.google.protobuf.ByteString getEndRow() {
return endRow_;
}
/**
* <code>optional bytes endRow = 2;</code>
*/
public Builder setEndRow(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
endRow_ = value;
onChanged();
return this;
}
/**
* <code>optional bytes endRow = 2;</code>
*/
public Builder clearEndRow() {
bitField0_ = (bitField0_ & ~0x00000002);
endRow_ = getDefaultInstance().getEndRow();
onChanged();
return this;
}
// repeated bytes columns = 3;
private java.util.List<com.google.protobuf.ByteString> columns_ = java.util.Collections.emptyList();
private void ensureColumnsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
columns_ = new java.util.ArrayList<com.google.protobuf.ByteString>(columns_);
bitField0_ |= 0x00000004;
}
}
/**
* <code>repeated bytes columns = 3;</code>
*/
public java.util.List<com.google.protobuf.ByteString>
getColumnsList() {
return java.util.Collections.unmodifiableList(columns_);
}
/**
* <code>repeated bytes columns = 3;</code>
*/
public int getColumnsCount() {
return columns_.size();
}
/**
* <code>repeated bytes columns = 3;</code>
*/
public com.google.protobuf.ByteString getColumns(int index) {
return columns_.get(index);
}
/**
* <code>repeated bytes columns = 3;</code>
*/
public Builder setColumns(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnsIsMutable();
columns_.set(index, value);
onChanged();
return this;
}
/**
* <code>repeated bytes columns = 3;</code>
*/
public Builder addColumns(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnsIsMutable();
columns_.add(value);
onChanged();
return this;
}
/**
* <code>repeated bytes columns = 3;</code>
*/
public Builder addAllColumns(
java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {
ensureColumnsIsMutable();
super.addAll(values, columns_);
onChanged();
return this;
}
/**
* <code>repeated bytes columns = 3;</code>
*/
public Builder clearColumns() {
columns_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
// optional int32 batch = 4;
private int batch_ ;
/**
* <code>optional int32 batch = 4;</code>
*/
public boolean hasBatch() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional int32 batch = 4;</code>
*/
public int getBatch() {
return batch_;
}
/**
* <code>optional int32 batch = 4;</code>
*/
public Builder setBatch(int value) {
bitField0_ |= 0x00000008;
batch_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 batch = 4;</code>
*/
public Builder clearBatch() {
bitField0_ = (bitField0_ & ~0x00000008);
batch_ = 0;
onChanged();
return this;
}
// optional int64 startTime = 5;
private long startTime_ ;
/**
* <code>optional int64 startTime = 5;</code>
*/
public boolean hasStartTime() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional int64 startTime = 5;</code>
*/
public long getStartTime() {
return startTime_;
}
/**
* <code>optional int64 startTime = 5;</code>
*/
public Builder setStartTime(long value) {
bitField0_ |= 0x00000010;
startTime_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 startTime = 5;</code>
*/
public Builder clearStartTime() {
bitField0_ = (bitField0_ & ~0x00000010);
startTime_ = 0L;
onChanged();
return this;
}
// optional int64 endTime = 6;
private long endTime_ ;
/**
* <code>optional int64 endTime = 6;</code>
*/
public boolean hasEndTime() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional int64 endTime = 6;</code>
*/
public long getEndTime() {
return endTime_;
}
/**
* <code>optional int64 endTime = 6;</code>
*/
public Builder setEndTime(long value) {
bitField0_ |= 0x00000020;
endTime_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 endTime = 6;</code>
*/
public Builder clearEndTime() {
bitField0_ = (bitField0_ & ~0x00000020);
endTime_ = 0L;
onChanged();
return this;
}
// optional int32 maxVersions = 7;
private int maxVersions_ ;
/**
* <code>optional int32 maxVersions = 7;</code>
*/
public boolean hasMaxVersions() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional int32 maxVersions = 7;</code>
*/
public int getMaxVersions() {
return maxVersions_;
}
/**
* <code>optional int32 maxVersions = 7;</code>
*/
public Builder setMaxVersions(int value) {
bitField0_ |= 0x00000040;
maxVersions_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 maxVersions = 7;</code>
*/
public Builder clearMaxVersions() {
bitField0_ = (bitField0_ & ~0x00000040);
maxVersions_ = 0;
onChanged();
return this;
}
// optional string filter = 8;
private java.lang.Object filter_ = "";
/**
* <code>optional string filter = 8;</code>
*/
public boolean hasFilter() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional string filter = 8;</code>
*/
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
filter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string filter = 8;</code>
*/
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string filter = 8;</code>
*/
public Builder setFilter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
filter_ = value;
onChanged();
return this;
}
/**
* <code>optional string filter = 8;</code>
*/
public Builder clearFilter() {
bitField0_ = (bitField0_ & ~0x00000080);
filter_ = getDefaultInstance().getFilter();
onChanged();
return this;
}
/**
* <code>optional string filter = 8;</code>
*/
public Builder setFilterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
filter_ = value;
onChanged();
return this;
}
// optional int32 caching = 9;
private int caching_ ;
/**
* <code>optional int32 caching = 9;</code>
*
* <pre>
* specifies REST scanner caching
* </pre>
*/
public boolean hasCaching() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional int32 caching = 9;</code>
*
* <pre>
* specifies REST scanner caching
* </pre>
*/
public int getCaching() {
return caching_;
}
/**
* <code>optional int32 caching = 9;</code>
*
* <pre>
* specifies REST scanner caching
* </pre>
*/
public Builder setCaching(int value) {
bitField0_ |= 0x00000100;
caching_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 caching = 9;</code>
*
* <pre>
* specifies REST scanner caching
* </pre>
*/
public Builder clearCaching() {
bitField0_ = (bitField0_ & ~0x00000100);
caching_ = 0;
onChanged();
return this;
}
// repeated string labels = 10;
private com.google.protobuf.LazyStringList labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureLabelsIsMutable() {
if (!((bitField0_ & 0x00000200) == 0x00000200)) {
labels_ = new com.google.protobuf.LazyStringArrayList(labels_);
bitField0_ |= 0x00000200;
}
}
/**
* <code>repeated string labels = 10;</code>
*/
public java.util.List<java.lang.String>
getLabelsList() {
return java.util.Collections.unmodifiableList(labels_);
}
/**
* <code>repeated string labels = 10;</code>
*/
public int getLabelsCount() {
return labels_.size();
}
/**
* <code>repeated string labels = 10;</code>
*/
public java.lang.String getLabels(int index) {
return labels_.get(index);
}
/**
* <code>repeated string labels = 10;</code>
*/
public com.google.protobuf.ByteString
getLabelsBytes(int index) {
return labels_.getByteString(index);
}
/**
* <code>repeated string labels = 10;</code>
*/
public Builder setLabels(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureLabelsIsMutable();
labels_.set(index, value);
onChanged();
return this;
}
/**
* <code>repeated string labels = 10;</code>
*/
public Builder addLabels(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureLabelsIsMutable();
labels_.add(value);
onChanged();
return this;
}
/**
* <code>repeated string labels = 10;</code>
*/
public Builder addAllLabels(
java.lang.Iterable<java.lang.String> values) {
ensureLabelsIsMutable();
super.addAll(values, labels_);
onChanged();
return this;
}
/**
* <code>repeated string labels = 10;</code>
*/
public Builder clearLabels() {
labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
* <code>repeated string labels = 10;</code>
*/
public Builder addLabelsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureLabelsIsMutable();
labels_.add(value);
onChanged();
return this;
}
// optional bool cacheBlocks = 11;
private boolean cacheBlocks_ ;
/**
* <code>optional bool cacheBlocks = 11;</code>
*
* <pre>
* server side block caching hint
* </pre>
*/
public boolean hasCacheBlocks() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* <code>optional bool cacheBlocks = 11;</code>
*
* <pre>
* server side block caching hint
* </pre>
*/
public boolean getCacheBlocks() {
return cacheBlocks_;
}
/**
* <code>optional bool cacheBlocks = 11;</code>
*
* <pre>
* server side block caching hint
* </pre>
*/
public Builder setCacheBlocks(boolean value) {
bitField0_ |= 0x00000400;
cacheBlocks_ = value;
onChanged();
return this;
}
/**
* <code>optional bool cacheBlocks = 11;</code>
*
* <pre>
* server side block caching hint
* </pre>
*/
public Builder clearCacheBlocks() {
bitField0_ = (bitField0_ & ~0x00000400);
cacheBlocks_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:org.apache.hadoop.hbase.rest.protobuf.generated.Scanner)
}
static {
defaultInstance = new Scanner(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.apache.hadoop.hbase.rest.protobuf.generated.Scanner)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\024ScannerMessage.proto\022/org.apache.hadoo" +
"p.hbase.rest.protobuf.generated\"\312\001\n\007Scan" +
"ner\022\020\n\010startRow\030\001 \001(\014\022\016\n\006endRow\030\002 \001(\014\022\017\n" +
"\007columns\030\003 \003(\014\022\r\n\005batch\030\004 \001(\005\022\021\n\tstartTi" +
"me\030\005 \001(\003\022\017\n\007endTime\030\006 \001(\003\022\023\n\013maxVersions" +
"\030\007 \001(\005\022\016\n\006filter\030\010 \001(\t\022\017\n\007caching\030\t \001(\005\022" +
"\016\n\006labels\030\n \003(\t\022\023\n\013cacheBlocks\030\013 \001(\010"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_descriptor,
new java.lang.String[] { "StartRow", "EndRow", "Columns", "Batch", "StartTime", "EndTime", "MaxVersions", "Filter", "Caching", "Labels", "CacheBlocks", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}