HBASE-4233 Update protobuf dependency to 2.4.0a

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1160912 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Todd Lipcon 2011-08-23 22:34:23 +00:00
parent c2af155e35
commit 6c16f41064
11 changed files with 5392 additions and 1718 deletions

View File

@ -16,6 +16,7 @@ Release 0.91.0 - Unreleased
HBASE-3534 Action should not store or serialize regionName (Ted Yu)
HBASE-4197 RegionServer expects all scanner to be subclasses of
HRegion.RegionScanner (Lars Hofhansl)
HBASE-4233 Update protobuf dependency to 2.4.0a (todd)
BUG FIXES
HBASE-3280 YouAreDeadException being swallowed in HRS getMaster

View File

@ -649,7 +649,7 @@
<junit.version>4.8.2</junit.version>
<log4j.version>1.2.16</log4j.version>
<mockito-all.version>1.8.5</mockito-all.version>
<protobuf.version>2.3.0</protobuf.version>
<protobuf.version>2.4.0a</protobuf.version>
<slf4j.version>1.5.8</slf4j.version><!-- newer version available -->
<stax-api.version>1.0.1</stax-api.version>
<thrift.version>0.6.1</thrift.version>

View File

@ -8,11 +8,31 @@ public final class CellMessage {
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface CellOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bytes row = 1;
boolean hasRow();
com.google.protobuf.ByteString getRow();
// optional bytes column = 2;
boolean hasColumn();
com.google.protobuf.ByteString getColumn();
// optional int64 timestamp = 3;
boolean hasTimestamp();
long getTimestamp();
// optional bytes data = 4;
boolean hasData();
com.google.protobuf.ByteString getData();
}
public static final class Cell extends
com.google.protobuf.GeneratedMessage {
com.google.protobuf.GeneratedMessage
implements CellOrBuilder {
// Use Cell.newBuilder() to construct.
private Cell() {
initFields();
private Cell(Builder builder) {
super(builder);
}
private Cell(boolean noInit) {}
@ -35,54 +55,76 @@ public final class CellMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Cell_fieldAccessorTable;
}
private int bitField0_;
// optional bytes row = 1;
public static final int ROW_FIELD_NUMBER = 1;
private boolean hasRow;
private com.google.protobuf.ByteString row_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasRow() { return hasRow; }
public com.google.protobuf.ByteString getRow() { return row_; }
private com.google.protobuf.ByteString row_;
public boolean hasRow() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getRow() {
return row_;
}
// optional bytes column = 2;
public static final int COLUMN_FIELD_NUMBER = 2;
private boolean hasColumn;
private com.google.protobuf.ByteString column_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasColumn() { return hasColumn; }
public com.google.protobuf.ByteString getColumn() { return column_; }
private com.google.protobuf.ByteString column_;
public boolean hasColumn() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getColumn() {
return column_;
}
// optional int64 timestamp = 3;
public static final int TIMESTAMP_FIELD_NUMBER = 3;
private boolean hasTimestamp;
private long timestamp_ = 0L;
public boolean hasTimestamp() { return hasTimestamp; }
public long getTimestamp() { return timestamp_; }
private long timestamp_;
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public long getTimestamp() {
return timestamp_;
}
// optional bytes data = 4;
public static final int DATA_FIELD_NUMBER = 4;
private boolean hasData;
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasData() { return hasData; }
public com.google.protobuf.ByteString getData() { return data_; }
private com.google.protobuf.ByteString data_;
public boolean hasData() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
public com.google.protobuf.ByteString getData() {
return data_;
}
private void initFields() {
row_ = com.google.protobuf.ByteString.EMPTY;
column_ = com.google.protobuf.ByteString.EMPTY;
timestamp_ = 0L;
data_ = com.google.protobuf.ByteString.EMPTY;
}
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 (hasRow()) {
output.writeBytes(1, getRow());
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, row_);
}
if (hasColumn()) {
output.writeBytes(2, getColumn());
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, column_);
}
if (hasTimestamp()) {
output.writeInt64(3, getTimestamp());
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(3, timestamp_);
}
if (hasData()) {
output.writeBytes(4, getData());
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, data_);
}
getUnknownFields().writeTo(output);
}
@ -93,27 +135,34 @@ public final class CellMessage {
if (size != -1) return size;
size = 0;
if (hasRow()) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getRow());
.computeBytesSize(1, row_);
}
if (hasColumn()) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getColumn());
.computeBytesSize(2, column_);
}
if (hasTimestamp()) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, getTimestamp());
.computeInt64Size(3, timestamp_);
}
if (hasData()) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getData());
.computeBytesSize(4, data_);
}
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.CellMessage.Cell parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@ -188,34 +237,57 @@ public final class CellMessage {
}
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;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> {
private org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell result;
// Construct using org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.newBuilder()
private Builder() {}
private static Builder create() {
Builder builder = new Builder();
builder.result = new org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell();
return builder;
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.CellOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Cell_descriptor;
}
protected org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell internalGetResult() {
return result;
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Cell_fieldAccessorTable;
}
// Construct using org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell();
super.clear();
row_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
column_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
timestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
data_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(result);
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
@ -227,33 +299,47 @@ public final class CellMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell build() {
if (result != null && !isInitialized()) {
org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
return result;
}
private org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
return result;
}
public org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell result = new org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell returnMe = result;
result = null;
return returnMe;
result.row_ = row_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.column_ = column_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.timestamp_ = timestamp_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.data_ = data_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
@ -283,6 +369,10 @@ public final class CellMessage {
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@ -295,114 +385,133 @@ public final class CellMessage {
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
setRow(input.readBytes());
bitField0_ |= 0x00000001;
row_ = input.readBytes();
break;
}
case 18: {
setColumn(input.readBytes());
bitField0_ |= 0x00000002;
column_ = input.readBytes();
break;
}
case 24: {
setTimestamp(input.readInt64());
bitField0_ |= 0x00000004;
timestamp_ = input.readInt64();
break;
}
case 34: {
setData(input.readBytes());
bitField0_ |= 0x00000008;
data_ = input.readBytes();
break;
}
}
}
}
private int bitField0_;
// optional bytes row = 1;
private com.google.protobuf.ByteString row_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasRow() {
return result.hasRow();
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getRow() {
return result.getRow();
return row_;
}
public Builder setRow(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
result.hasRow = true;
result.row_ = value;
bitField0_ |= 0x00000001;
row_ = value;
onChanged();
return this;
}
public Builder clearRow() {
result.hasRow = false;
result.row_ = getDefaultInstance().getRow();
bitField0_ = (bitField0_ & ~0x00000001);
row_ = getDefaultInstance().getRow();
onChanged();
return this;
}
// optional bytes column = 2;
private com.google.protobuf.ByteString column_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasColumn() {
return result.hasColumn();
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getColumn() {
return result.getColumn();
return column_;
}
public Builder setColumn(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
result.hasColumn = true;
result.column_ = value;
bitField0_ |= 0x00000002;
column_ = value;
onChanged();
return this;
}
public Builder clearColumn() {
result.hasColumn = false;
result.column_ = getDefaultInstance().getColumn();
bitField0_ = (bitField0_ & ~0x00000002);
column_ = getDefaultInstance().getColumn();
onChanged();
return this;
}
// optional int64 timestamp = 3;
private long timestamp_ ;
public boolean hasTimestamp() {
return result.hasTimestamp();
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public long getTimestamp() {
return result.getTimestamp();
return timestamp_;
}
public Builder setTimestamp(long value) {
result.hasTimestamp = true;
result.timestamp_ = value;
bitField0_ |= 0x00000004;
timestamp_ = value;
onChanged();
return this;
}
public Builder clearTimestamp() {
result.hasTimestamp = false;
result.timestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
timestamp_ = 0L;
onChanged();
return this;
}
// optional bytes data = 4;
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasData() {
return result.hasData();
return ((bitField0_ & 0x00000008) == 0x00000008);
}
public com.google.protobuf.ByteString getData() {
return result.getData();
return data_;
}
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
result.hasData = true;
result.data_ = value;
bitField0_ |= 0x00000008;
data_ = value;
onChanged();
return this;
}
public Builder clearData() {
result.hasData = false;
result.data_ = getDefaultInstance().getData();
bitField0_ = (bitField0_ & ~0x00000008);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
@ -411,7 +520,6 @@ public final class CellMessage {
static {
defaultInstance = new Cell(true);
org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.internalForceInit();
defaultInstance.initFields();
}
@ -459,7 +567,5 @@ public final class CellMessage {
}, assigner);
}
public static void internalForceInit() {}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -8,11 +8,48 @@ public final class ScannerMessage {
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface ScannerOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bytes startRow = 1;
boolean hasStartRow();
com.google.protobuf.ByteString getStartRow();
// optional bytes endRow = 2;
boolean hasEndRow();
com.google.protobuf.ByteString getEndRow();
// repeated bytes columns = 3;
java.util.List<com.google.protobuf.ByteString> getColumnsList();
int getColumnsCount();
com.google.protobuf.ByteString getColumns(int index);
// optional int32 batch = 4;
boolean hasBatch();
int getBatch();
// optional int64 startTime = 5;
boolean hasStartTime();
long getStartTime();
// optional int64 endTime = 6;
boolean hasEndTime();
long getEndTime();
// optional int32 maxVersions = 7;
boolean hasMaxVersions();
int getMaxVersions();
// optional string filter = 8;
boolean hasFilter();
String getFilter();
}
public static final class Scanner extends
com.google.protobuf.GeneratedMessage {
com.google.protobuf.GeneratedMessage
implements ScannerOrBuilder {
// Use Scanner.newBuilder() to construct.
private Scanner() {
initFields();
private Scanner(Builder builder) {
super(builder);
}
private Scanner(boolean noInit) {}
@ -35,99 +72,158 @@ public final class ScannerMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Scanner_fieldAccessorTable;
}
private int bitField0_;
// optional bytes startRow = 1;
public static final int STARTROW_FIELD_NUMBER = 1;
private boolean hasStartRow;
private com.google.protobuf.ByteString startRow_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasStartRow() { return hasStartRow; }
public com.google.protobuf.ByteString getStartRow() { return startRow_; }
private com.google.protobuf.ByteString startRow_;
public boolean hasStartRow() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getStartRow() {
return startRow_;
}
// optional bytes endRow = 2;
public static final int ENDROW_FIELD_NUMBER = 2;
private boolean hasEndRow;
private com.google.protobuf.ByteString endRow_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasEndRow() { return hasEndRow; }
public com.google.protobuf.ByteString getEndRow() { return endRow_; }
private com.google.protobuf.ByteString endRow_;
public boolean hasEndRow() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
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_ =
java.util.Collections.emptyList();
public java.util.List<com.google.protobuf.ByteString> getColumnsList() {
private java.util.List<com.google.protobuf.ByteString> columns_;
public java.util.List<com.google.protobuf.ByteString>
getColumnsList() {
return columns_;
}
public int getColumnsCount() { return columns_.size(); }
public int getColumnsCount() {
return columns_.size();
}
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 boolean hasBatch;
private int batch_ = 0;
public boolean hasBatch() { return hasBatch; }
public int getBatch() { return batch_; }
private int batch_;
public boolean hasBatch() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public int getBatch() {
return batch_;
}
// optional int64 startTime = 5;
public static final int STARTTIME_FIELD_NUMBER = 5;
private boolean hasStartTime;
private long startTime_ = 0L;
public boolean hasStartTime() { return hasStartTime; }
public long getStartTime() { return startTime_; }
private long startTime_;
public boolean hasStartTime() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
public long getStartTime() {
return startTime_;
}
// optional int64 endTime = 6;
public static final int ENDTIME_FIELD_NUMBER = 6;
private boolean hasEndTime;
private long endTime_ = 0L;
public boolean hasEndTime() { return hasEndTime; }
public long getEndTime() { return endTime_; }
private long endTime_;
public boolean hasEndTime() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
public long getEndTime() {
return endTime_;
}
// optional int32 maxVersions = 7;
public static final int MAXVERSIONS_FIELD_NUMBER = 7;
private boolean hasMaxVersions;
private int maxVersions_ = 0;
public boolean hasMaxVersions() { return hasMaxVersions; }
public int getMaxVersions() { return maxVersions_; }
private int maxVersions_;
public boolean hasMaxVersions() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
public int getMaxVersions() {
return maxVersions_;
}
// optional string filter = 8;
public static final int FILTER_FIELD_NUMBER = 8;
private boolean hasFilter;
private java.lang.String filter_ = "";
public boolean hasFilter() { return hasFilter; }
public java.lang.String getFilter() { return filter_; }
private java.lang.Object filter_;
public boolean hasFilter() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
public String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (com.google.protobuf.Internal.isValidUtf8(bs)) {
filter_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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_ = "";
}
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 (hasStartRow()) {
output.writeBytes(1, getStartRow());
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, startRow_);
}
if (hasEndRow()) {
output.writeBytes(2, getEndRow());
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, endRow_);
}
for (com.google.protobuf.ByteString element : getColumnsList()) {
output.writeBytes(3, element);
for (int i = 0; i < columns_.size(); i++) {
output.writeBytes(3, columns_.get(i));
}
if (hasBatch()) {
output.writeInt32(4, getBatch());
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(4, batch_);
}
if (hasStartTime()) {
output.writeInt64(5, getStartTime());
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt64(5, startTime_);
}
if (hasEndTime()) {
output.writeInt64(6, getEndTime());
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt64(6, endTime_);
}
if (hasMaxVersions()) {
output.writeInt32(7, getMaxVersions());
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt32(7, maxVersions_);
}
if (hasFilter()) {
output.writeString(8, getFilter());
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBytes(8, getFilterBytes());
}
getUnknownFields().writeTo(output);
}
@ -138,48 +234,55 @@ public final class ScannerMessage {
if (size != -1) return size;
size = 0;
if (hasStartRow()) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getStartRow());
.computeBytesSize(1, startRow_);
}
if (hasEndRow()) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getEndRow());
.computeBytesSize(2, endRow_);
}
{
int dataSize = 0;
for (com.google.protobuf.ByteString element : getColumnsList()) {
for (int i = 0; i < columns_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(element);
.computeBytesSizeNoTag(columns_.get(i));
}
size += dataSize;
size += 1 * getColumnsList().size();
}
if (hasBatch()) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, getBatch());
.computeInt32Size(4, batch_);
}
if (hasStartTime()) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, getStartTime());
.computeInt64Size(5, startTime_);
}
if (hasEndTime()) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, getEndTime());
.computeInt64Size(6, endTime_);
}
if (hasMaxVersions()) {
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, getMaxVersions());
.computeInt32Size(7, maxVersions_);
}
if (hasFilter()) {
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(8, getFilter());
.computeBytesSize(8, getFilterBytes());
}
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 {
@ -254,34 +357,65 @@ public final class ScannerMessage {
}
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;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> {
private org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner result;
// Construct using org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner.newBuilder()
private Builder() {}
private static Builder create() {
Builder builder = new Builder();
builder.result = new org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner();
return builder;
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 org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner internalGetResult() {
return result;
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;
}
// Construct using org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner();
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);
return this;
}
public Builder clone() {
return create().mergeFrom(result);
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
@ -293,37 +427,64 @@ public final class ScannerMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner build() {
if (result != null && !isInitialized()) {
org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
return result;
}
private org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
return result;
}
public org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
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;
}
if (result.columns_ != java.util.Collections.EMPTY_LIST) {
result.columns_ =
java.util.Collections.unmodifiableList(result.columns_);
result.startRow_ = startRow_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.Scanner returnMe = result;
result = null;
return returnMe;
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_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
@ -344,10 +505,14 @@ public final class ScannerMessage {
setEndRow(other.getEndRow());
}
if (!other.columns_.isEmpty()) {
if (result.columns_.isEmpty()) {
result.columns_ = new java.util.ArrayList<com.google.protobuf.ByteString>();
if (columns_.isEmpty()) {
columns_ = other.columns_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureColumnsIsMutable();
columns_.addAll(other.columns_);
}
result.columns_.addAll(other.columns_);
onChanged();
}
if (other.hasBatch()) {
setBatch(other.getBatch());
@ -368,6 +533,10 @@ public final class ScannerMessage {
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@ -380,233 +549,287 @@ public final class ScannerMessage {
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
setStartRow(input.readBytes());
bitField0_ |= 0x00000001;
startRow_ = input.readBytes();
break;
}
case 18: {
setEndRow(input.readBytes());
bitField0_ |= 0x00000002;
endRow_ = input.readBytes();
break;
}
case 26: {
addColumns(input.readBytes());
ensureColumnsIsMutable();
columns_.add(input.readBytes());
break;
}
case 32: {
setBatch(input.readInt32());
bitField0_ |= 0x00000008;
batch_ = input.readInt32();
break;
}
case 40: {
setStartTime(input.readInt64());
bitField0_ |= 0x00000010;
startTime_ = input.readInt64();
break;
}
case 48: {
setEndTime(input.readInt64());
bitField0_ |= 0x00000020;
endTime_ = input.readInt64();
break;
}
case 56: {
setMaxVersions(input.readInt32());
bitField0_ |= 0x00000040;
maxVersions_ = input.readInt32();
break;
}
case 66: {
setFilter(input.readString());
bitField0_ |= 0x00000080;
filter_ = input.readBytes();
break;
}
}
}
}
private int bitField0_;
// optional bytes startRow = 1;
private com.google.protobuf.ByteString startRow_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasStartRow() {
return result.hasStartRow();
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getStartRow() {
return result.getStartRow();
return startRow_;
}
public Builder setStartRow(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
result.hasStartRow = true;
result.startRow_ = value;
bitField0_ |= 0x00000001;
startRow_ = value;
onChanged();
return this;
}
public Builder clearStartRow() {
result.hasStartRow = false;
result.startRow_ = getDefaultInstance().getStartRow();
bitField0_ = (bitField0_ & ~0x00000001);
startRow_ = getDefaultInstance().getStartRow();
onChanged();
return this;
}
// optional bytes endRow = 2;
private com.google.protobuf.ByteString endRow_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasEndRow() {
return result.hasEndRow();
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getEndRow() {
return result.getEndRow();
return endRow_;
}
public Builder setEndRow(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
result.hasEndRow = true;
result.endRow_ = value;
bitField0_ |= 0x00000002;
endRow_ = value;
onChanged();
return this;
}
public Builder clearEndRow() {
result.hasEndRow = false;
result.endRow_ = getDefaultInstance().getEndRow();
bitField0_ = (bitField0_ & ~0x00000002);
endRow_ = getDefaultInstance().getEndRow();
onChanged();
return this;
}
// repeated bytes columns = 3;
public java.util.List<com.google.protobuf.ByteString> getColumnsList() {
return java.util.Collections.unmodifiableList(result.columns_);
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;
}
}
public java.util.List<com.google.protobuf.ByteString>
getColumnsList() {
return java.util.Collections.unmodifiableList(columns_);
}
public int getColumnsCount() {
return result.getColumnsCount();
return columns_.size();
}
public com.google.protobuf.ByteString getColumns(int index) {
return result.getColumns(index);
return columns_.get(index);
}
public Builder setColumns(int index, com.google.protobuf.ByteString value) {
public Builder setColumns(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
result.columns_.set(index, value);
ensureColumnsIsMutable();
columns_.set(index, value);
onChanged();
return this;
}
public Builder addColumns(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
if (result.columns_.isEmpty()) {
result.columns_ = new java.util.ArrayList<com.google.protobuf.ByteString>();
}
result.columns_.add(value);
ensureColumnsIsMutable();
columns_.add(value);
onChanged();
return this;
}
public Builder addAllColumns(
java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {
if (result.columns_.isEmpty()) {
result.columns_ = new java.util.ArrayList<com.google.protobuf.ByteString>();
}
super.addAll(values, result.columns_);
ensureColumnsIsMutable();
super.addAll(values, columns_);
onChanged();
return this;
}
public Builder clearColumns() {
result.columns_ = java.util.Collections.emptyList();
columns_ = java.util.Collections.emptyList();;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
// optional int32 batch = 4;
private int batch_ ;
public boolean hasBatch() {
return result.hasBatch();
return ((bitField0_ & 0x00000008) == 0x00000008);
}
public int getBatch() {
return result.getBatch();
return batch_;
}
public Builder setBatch(int value) {
result.hasBatch = true;
result.batch_ = value;
bitField0_ |= 0x00000008;
batch_ = value;
onChanged();
return this;
}
public Builder clearBatch() {
result.hasBatch = false;
result.batch_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
batch_ = 0;
onChanged();
return this;
}
// optional int64 startTime = 5;
private long startTime_ ;
public boolean hasStartTime() {
return result.hasStartTime();
return ((bitField0_ & 0x00000010) == 0x00000010);
}
public long getStartTime() {
return result.getStartTime();
return startTime_;
}
public Builder setStartTime(long value) {
result.hasStartTime = true;
result.startTime_ = value;
bitField0_ |= 0x00000010;
startTime_ = value;
onChanged();
return this;
}
public Builder clearStartTime() {
result.hasStartTime = false;
result.startTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
startTime_ = 0L;
onChanged();
return this;
}
// optional int64 endTime = 6;
private long endTime_ ;
public boolean hasEndTime() {
return result.hasEndTime();
return ((bitField0_ & 0x00000020) == 0x00000020);
}
public long getEndTime() {
return result.getEndTime();
return endTime_;
}
public Builder setEndTime(long value) {
result.hasEndTime = true;
result.endTime_ = value;
bitField0_ |= 0x00000020;
endTime_ = value;
onChanged();
return this;
}
public Builder clearEndTime() {
result.hasEndTime = false;
result.endTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
endTime_ = 0L;
onChanged();
return this;
}
// optional int32 maxVersions = 7;
private int maxVersions_ ;
public boolean hasMaxVersions() {
return result.hasMaxVersions();
return ((bitField0_ & 0x00000040) == 0x00000040);
}
public int getMaxVersions() {
return result.getMaxVersions();
return maxVersions_;
}
public Builder setMaxVersions(int value) {
result.hasMaxVersions = true;
result.maxVersions_ = value;
bitField0_ |= 0x00000040;
maxVersions_ = value;
onChanged();
return this;
}
public Builder clearMaxVersions() {
result.hasMaxVersions = false;
result.maxVersions_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
maxVersions_ = 0;
onChanged();
return this;
}
// optional string filter = 8;
private java.lang.Object filter_ = "";
public boolean hasFilter() {
return result.hasFilter();
return ((bitField0_ & 0x00000080) == 0x00000080);
}
public java.lang.String getFilter() {
return result.getFilter();
public String getFilter() {
java.lang.Object ref = filter_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
filter_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setFilter(java.lang.String value) {
public Builder setFilter(String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasFilter = true;
result.filter_ = value;
bitField0_ |= 0x00000080;
filter_ = value;
onChanged();
return this;
}
public Builder clearFilter() {
result.hasFilter = false;
result.filter_ = getDefaultInstance().getFilter();
bitField0_ = (bitField0_ & ~0x00000080);
filter_ = getDefaultInstance().getFilter();
onChanged();
return this;
}
void setFilter(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000080;
filter_ = value;
onChanged();
}
// @@protoc_insertion_point(builder_scope:org.apache.hadoop.hbase.rest.protobuf.generated.Scanner)
}
static {
defaultInstance = new Scanner(true);
org.apache.hadoop.hbase.rest.protobuf.generated.ScannerMessage.internalForceInit();
defaultInstance.initFields();
}
@ -656,7 +879,5 @@ public final class ScannerMessage {
}, assigner);
}
public static void internalForceInit() {}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -8,11 +8,20 @@ public final class TableListMessage {
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface TableListOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated string name = 1;
java.util.List<String> getNameList();
int getNameCount();
String getName(int index);
}
public static final class TableList extends
com.google.protobuf.GeneratedMessage {
com.google.protobuf.GeneratedMessage
implements TableListOrBuilder {
// Use TableList.newBuilder() to construct.
private TableList() {
initFields();
private TableList(Builder builder) {
super(builder);
}
private TableList(boolean noInit) {}
@ -37,27 +46,35 @@ public final class TableListMessage {
// repeated string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
private java.util.List<java.lang.String> name_ =
java.util.Collections.emptyList();
public java.util.List<java.lang.String> getNameList() {
private com.google.protobuf.LazyStringList name_;
public java.util.List<String>
getNameList() {
return name_;
}
public int getNameCount() { return name_.size(); }
public java.lang.String getName(int index) {
public int getNameCount() {
return name_.size();
}
public String getName(int index) {
return name_.get(index);
}
private void initFields() {
name_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
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();
for (java.lang.String element : getNameList()) {
output.writeString(1, element);
for (int i = 0; i < name_.size(); i++) {
output.writeBytes(1, name_.getByteString(i));
}
getUnknownFields().writeTo(output);
}
@ -70,9 +87,9 @@ public final class TableListMessage {
size = 0;
{
int dataSize = 0;
for (java.lang.String element : getNameList()) {
for (int i = 0; i < name_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeStringSizeNoTag(element);
.computeBytesSizeNoTag(name_.getByteString(i));
}
size += dataSize;
size += 1 * getNameList().size();
@ -82,6 +99,13 @@ public final class TableListMessage {
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.TableListMessage.TableList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@ -156,34 +180,51 @@ public final class TableListMessage {
}
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;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> {
private org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList result;
// Construct using org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList.newBuilder()
private Builder() {}
private static Builder create() {
Builder builder = new Builder();
builder.result = new org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList();
return builder;
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableList_descriptor;
}
protected org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList internalGetResult() {
return result;
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableList_fieldAccessorTable;
}
// Construct using org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList();
super.clear();
name_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(result);
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
@ -195,37 +236,35 @@ public final class TableListMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList build() {
if (result != null && !isInitialized()) {
org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
return result;
}
private org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
return result;
}
public org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList result = new org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
name_ = new com.google.protobuf.UnmodifiableLazyStringList(
name_);
bitField0_ = (bitField0_ & ~0x00000001);
}
if (result.name_ != java.util.Collections.EMPTY_LIST) {
result.name_ =
java.util.Collections.unmodifiableList(result.name_);
}
org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList returnMe = result;
result = null;
return returnMe;
result.name_ = name_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
@ -240,15 +279,23 @@ public final class TableListMessage {
public Builder mergeFrom(org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList other) {
if (other == org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList.getDefaultInstance()) return this;
if (!other.name_.isEmpty()) {
if (result.name_.isEmpty()) {
result.name_ = new java.util.ArrayList<java.lang.String>();
if (name_.isEmpty()) {
name_ = other.name_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNameIsMutable();
name_.addAll(other.name_);
}
result.name_.addAll(other.name_);
onChanged();
}
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)
@ -261,70 +308,89 @@ public final class TableListMessage {
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
addName(input.readString());
ensureNameIsMutable();
name_.add(input.readBytes());
break;
}
}
}
}
private int bitField0_;
// repeated string name = 1;
public java.util.List<java.lang.String> getNameList() {
return java.util.Collections.unmodifiableList(result.name_);
private com.google.protobuf.LazyStringList name_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureNameIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
name_ = new com.google.protobuf.LazyStringArrayList(name_);
bitField0_ |= 0x00000001;
}
}
public java.util.List<String>
getNameList() {
return java.util.Collections.unmodifiableList(name_);
}
public int getNameCount() {
return result.getNameCount();
return name_.size();
}
public java.lang.String getName(int index) {
return result.getName(index);
public String getName(int index) {
return name_.get(index);
}
public Builder setName(int index, java.lang.String value) {
public Builder setName(
int index, String value) {
if (value == null) {
throw new NullPointerException();
}
result.name_.set(index, value);
ensureNameIsMutable();
name_.set(index, value);
onChanged();
return this;
}
public Builder addName(java.lang.String value) {
public Builder addName(String value) {
if (value == null) {
throw new NullPointerException();
}
if (result.name_.isEmpty()) {
result.name_ = new java.util.ArrayList<java.lang.String>();
}
result.name_.add(value);
ensureNameIsMutable();
name_.add(value);
onChanged();
return this;
}
public Builder addAllName(
java.lang.Iterable<? extends java.lang.String> values) {
if (result.name_.isEmpty()) {
result.name_ = new java.util.ArrayList<java.lang.String>();
}
super.addAll(values, result.name_);
java.lang.Iterable<String> values) {
ensureNameIsMutable();
super.addAll(values, name_);
onChanged();
return this;
}
public Builder clearName() {
result.name_ = java.util.Collections.emptyList();
name_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
void addName(com.google.protobuf.ByteString value) {
ensureNameIsMutable();
name_.add(value);
onChanged();
}
// @@protoc_insertion_point(builder_scope:org.apache.hadoop.hbase.rest.protobuf.generated.TableList)
}
static {
defaultInstance = new TableList(true);
org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.internalForceInit();
defaultInstance.initFields();
}
@ -371,7 +437,5 @@ public final class TableListMessage {
}, assigner);
}
public static void internalForceInit() {}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -8,11 +8,35 @@ public final class VersionMessage {
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface VersionOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string restVersion = 1;
boolean hasRestVersion();
String getRestVersion();
// optional string jvmVersion = 2;
boolean hasJvmVersion();
String getJvmVersion();
// optional string osVersion = 3;
boolean hasOsVersion();
String getOsVersion();
// optional string serverVersion = 4;
boolean hasServerVersion();
String getServerVersion();
// optional string jerseyVersion = 5;
boolean hasJerseyVersion();
String getJerseyVersion();
}
public static final class Version extends
com.google.protobuf.GeneratedMessage {
com.google.protobuf.GeneratedMessage
implements VersionOrBuilder {
// Use Version.newBuilder() to construct.
private Version() {
initFields();
private Version(Builder builder) {
super(builder);
}
private Version(boolean noInit) {}
@ -35,64 +59,200 @@ public final class VersionMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Version_fieldAccessorTable;
}
private int bitField0_;
// optional string restVersion = 1;
public static final int RESTVERSION_FIELD_NUMBER = 1;
private boolean hasRestVersion;
private java.lang.String restVersion_ = "";
public boolean hasRestVersion() { return hasRestVersion; }
public java.lang.String getRestVersion() { return restVersion_; }
private java.lang.Object restVersion_;
public boolean hasRestVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public String getRestVersion() {
java.lang.Object ref = restVersion_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (com.google.protobuf.Internal.isValidUtf8(bs)) {
restVersion_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getRestVersionBytes() {
java.lang.Object ref = restVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
restVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string jvmVersion = 2;
public static final int JVMVERSION_FIELD_NUMBER = 2;
private boolean hasJvmVersion;
private java.lang.String jvmVersion_ = "";
public boolean hasJvmVersion() { return hasJvmVersion; }
public java.lang.String getJvmVersion() { return jvmVersion_; }
private java.lang.Object jvmVersion_;
public boolean hasJvmVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public String getJvmVersion() {
java.lang.Object ref = jvmVersion_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (com.google.protobuf.Internal.isValidUtf8(bs)) {
jvmVersion_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getJvmVersionBytes() {
java.lang.Object ref = jvmVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
jvmVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string osVersion = 3;
public static final int OSVERSION_FIELD_NUMBER = 3;
private boolean hasOsVersion;
private java.lang.String osVersion_ = "";
public boolean hasOsVersion() { return hasOsVersion; }
public java.lang.String getOsVersion() { return osVersion_; }
private java.lang.Object osVersion_;
public boolean hasOsVersion() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public String getOsVersion() {
java.lang.Object ref = osVersion_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (com.google.protobuf.Internal.isValidUtf8(bs)) {
osVersion_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getOsVersionBytes() {
java.lang.Object ref = osVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
osVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string serverVersion = 4;
public static final int SERVERVERSION_FIELD_NUMBER = 4;
private boolean hasServerVersion;
private java.lang.String serverVersion_ = "";
public boolean hasServerVersion() { return hasServerVersion; }
public java.lang.String getServerVersion() { return serverVersion_; }
private java.lang.Object serverVersion_;
public boolean hasServerVersion() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
public String getServerVersion() {
java.lang.Object ref = serverVersion_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (com.google.protobuf.Internal.isValidUtf8(bs)) {
serverVersion_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getServerVersionBytes() {
java.lang.Object ref = serverVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
serverVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string jerseyVersion = 5;
public static final int JERSEYVERSION_FIELD_NUMBER = 5;
private boolean hasJerseyVersion;
private java.lang.String jerseyVersion_ = "";
public boolean hasJerseyVersion() { return hasJerseyVersion; }
public java.lang.String getJerseyVersion() { return jerseyVersion_; }
private java.lang.Object jerseyVersion_;
public boolean hasJerseyVersion() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
public String getJerseyVersion() {
java.lang.Object ref = jerseyVersion_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
if (com.google.protobuf.Internal.isValidUtf8(bs)) {
jerseyVersion_ = s;
}
return s;
}
}
private com.google.protobuf.ByteString getJerseyVersionBytes() {
java.lang.Object ref = jerseyVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((String) ref);
jerseyVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
restVersion_ = "";
jvmVersion_ = "";
osVersion_ = "";
serverVersion_ = "";
jerseyVersion_ = "";
}
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 (hasRestVersion()) {
output.writeString(1, getRestVersion());
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getRestVersionBytes());
}
if (hasJvmVersion()) {
output.writeString(2, getJvmVersion());
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getJvmVersionBytes());
}
if (hasOsVersion()) {
output.writeString(3, getOsVersion());
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getOsVersionBytes());
}
if (hasServerVersion()) {
output.writeString(4, getServerVersion());
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getServerVersionBytes());
}
if (hasJerseyVersion()) {
output.writeString(5, getJerseyVersion());
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(5, getJerseyVersionBytes());
}
getUnknownFields().writeTo(output);
}
@ -103,31 +263,38 @@ public final class VersionMessage {
if (size != -1) return size;
size = 0;
if (hasRestVersion()) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(1, getRestVersion());
.computeBytesSize(1, getRestVersionBytes());
}
if (hasJvmVersion()) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(2, getJvmVersion());
.computeBytesSize(2, getJvmVersionBytes());
}
if (hasOsVersion()) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(3, getOsVersion());
.computeBytesSize(3, getOsVersionBytes());
}
if (hasServerVersion()) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(4, getServerVersion());
.computeBytesSize(4, getServerVersionBytes());
}
if (hasJerseyVersion()) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(5, getJerseyVersion());
.computeBytesSize(5, getJerseyVersionBytes());
}
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.VersionMessage.Version parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@ -202,34 +369,59 @@ public final class VersionMessage {
}
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;
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> {
private org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.Version result;
// Construct using org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.Version.newBuilder()
private Builder() {}
private static Builder create() {
Builder builder = new Builder();
builder.result = new org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.Version();
return builder;
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.VersionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Version_descriptor;
}
protected org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.Version internalGetResult() {
return result;
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Version_fieldAccessorTable;
}
// Construct using org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.Version.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.Version();
super.clear();
restVersion_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
jvmVersion_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
osVersion_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
serverVersion_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
jerseyVersion_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(result);
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
@ -241,33 +433,51 @@ public final class VersionMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.Version.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.Version build() {
if (result != null && !isInitialized()) {
org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.Version result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
return result;
}
private org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.Version buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.Version result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
return result;
}
public org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.Version buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.Version result = new org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.Version(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.Version returnMe = result;
result = null;
return returnMe;
result.restVersion_ = restVersion_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.jvmVersion_ = jvmVersion_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.osVersion_ = osVersion_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.serverVersion_ = serverVersion_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.jerseyVersion_ = jerseyVersion_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
@ -300,6 +510,10 @@ public final class VersionMessage {
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@ -312,151 +526,233 @@ public final class VersionMessage {
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
onChanged();
return this;
}
break;
}
case 10: {
setRestVersion(input.readString());
bitField0_ |= 0x00000001;
restVersion_ = input.readBytes();
break;
}
case 18: {
setJvmVersion(input.readString());
bitField0_ |= 0x00000002;
jvmVersion_ = input.readBytes();
break;
}
case 26: {
setOsVersion(input.readString());
bitField0_ |= 0x00000004;
osVersion_ = input.readBytes();
break;
}
case 34: {
setServerVersion(input.readString());
bitField0_ |= 0x00000008;
serverVersion_ = input.readBytes();
break;
}
case 42: {
setJerseyVersion(input.readString());
bitField0_ |= 0x00000010;
jerseyVersion_ = input.readBytes();
break;
}
}
}
}
private int bitField0_;
// optional string restVersion = 1;
private java.lang.Object restVersion_ = "";
public boolean hasRestVersion() {
return result.hasRestVersion();
return ((bitField0_ & 0x00000001) == 0x00000001);
}
public java.lang.String getRestVersion() {
return result.getRestVersion();
public String getRestVersion() {
java.lang.Object ref = restVersion_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
restVersion_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setRestVersion(java.lang.String value) {
public Builder setRestVersion(String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasRestVersion = true;
result.restVersion_ = value;
bitField0_ |= 0x00000001;
restVersion_ = value;
onChanged();
return this;
}
public Builder clearRestVersion() {
result.hasRestVersion = false;
result.restVersion_ = getDefaultInstance().getRestVersion();
bitField0_ = (bitField0_ & ~0x00000001);
restVersion_ = getDefaultInstance().getRestVersion();
onChanged();
return this;
}
void setRestVersion(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000001;
restVersion_ = value;
onChanged();
}
// optional string jvmVersion = 2;
private java.lang.Object jvmVersion_ = "";
public boolean hasJvmVersion() {
return result.hasJvmVersion();
return ((bitField0_ & 0x00000002) == 0x00000002);
}
public java.lang.String getJvmVersion() {
return result.getJvmVersion();
public String getJvmVersion() {
java.lang.Object ref = jvmVersion_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
jvmVersion_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setJvmVersion(java.lang.String value) {
public Builder setJvmVersion(String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasJvmVersion = true;
result.jvmVersion_ = value;
bitField0_ |= 0x00000002;
jvmVersion_ = value;
onChanged();
return this;
}
public Builder clearJvmVersion() {
result.hasJvmVersion = false;
result.jvmVersion_ = getDefaultInstance().getJvmVersion();
bitField0_ = (bitField0_ & ~0x00000002);
jvmVersion_ = getDefaultInstance().getJvmVersion();
onChanged();
return this;
}
void setJvmVersion(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000002;
jvmVersion_ = value;
onChanged();
}
// optional string osVersion = 3;
private java.lang.Object osVersion_ = "";
public boolean hasOsVersion() {
return result.hasOsVersion();
return ((bitField0_ & 0x00000004) == 0x00000004);
}
public java.lang.String getOsVersion() {
return result.getOsVersion();
public String getOsVersion() {
java.lang.Object ref = osVersion_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
osVersion_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setOsVersion(java.lang.String value) {
public Builder setOsVersion(String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasOsVersion = true;
result.osVersion_ = value;
bitField0_ |= 0x00000004;
osVersion_ = value;
onChanged();
return this;
}
public Builder clearOsVersion() {
result.hasOsVersion = false;
result.osVersion_ = getDefaultInstance().getOsVersion();
bitField0_ = (bitField0_ & ~0x00000004);
osVersion_ = getDefaultInstance().getOsVersion();
onChanged();
return this;
}
void setOsVersion(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000004;
osVersion_ = value;
onChanged();
}
// optional string serverVersion = 4;
private java.lang.Object serverVersion_ = "";
public boolean hasServerVersion() {
return result.hasServerVersion();
return ((bitField0_ & 0x00000008) == 0x00000008);
}
public java.lang.String getServerVersion() {
return result.getServerVersion();
public String getServerVersion() {
java.lang.Object ref = serverVersion_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
serverVersion_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setServerVersion(java.lang.String value) {
public Builder setServerVersion(String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasServerVersion = true;
result.serverVersion_ = value;
bitField0_ |= 0x00000008;
serverVersion_ = value;
onChanged();
return this;
}
public Builder clearServerVersion() {
result.hasServerVersion = false;
result.serverVersion_ = getDefaultInstance().getServerVersion();
bitField0_ = (bitField0_ & ~0x00000008);
serverVersion_ = getDefaultInstance().getServerVersion();
onChanged();
return this;
}
void setServerVersion(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000008;
serverVersion_ = value;
onChanged();
}
// optional string jerseyVersion = 5;
private java.lang.Object jerseyVersion_ = "";
public boolean hasJerseyVersion() {
return result.hasJerseyVersion();
return ((bitField0_ & 0x00000010) == 0x00000010);
}
public java.lang.String getJerseyVersion() {
return result.getJerseyVersion();
public String getJerseyVersion() {
java.lang.Object ref = jerseyVersion_;
if (!(ref instanceof String)) {
String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
jerseyVersion_ = s;
return s;
} else {
return (String) ref;
}
}
public Builder setJerseyVersion(java.lang.String value) {
public Builder setJerseyVersion(String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasJerseyVersion = true;
result.jerseyVersion_ = value;
bitField0_ |= 0x00000010;
jerseyVersion_ = value;
onChanged();
return this;
}
public Builder clearJerseyVersion() {
result.hasJerseyVersion = false;
result.jerseyVersion_ = getDefaultInstance().getJerseyVersion();
bitField0_ = (bitField0_ & ~0x00000010);
jerseyVersion_ = getDefaultInstance().getJerseyVersion();
onChanged();
return this;
}
void setJerseyVersion(com.google.protobuf.ByteString value) {
bitField0_ |= 0x00000010;
jerseyVersion_ = value;
onChanged();
}
// @@protoc_insertion_point(builder_scope:org.apache.hadoop.hbase.rest.protobuf.generated.Version)
}
static {
defaultInstance = new Version(true);
org.apache.hadoop.hbase.rest.protobuf.generated.VersionMessage.internalForceInit();
defaultInstance.initFields();
}
@ -505,7 +801,5 @@ public final class VersionMessage {
}, assigner);
}
public static void internalForceInit() {}
// @@protoc_insertion_point(outer_class_scope)
}