diff --git a/CHANGES.txt b/CHANGES.txt
index 8cf352706de..8dcc53fbd66 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -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
diff --git a/pom.xml b/pom.xml
index 6780b462f85..941da539971 100644
--- a/pom.xml
+++ b/pom.xml
@@ -649,7 +649,7 @@
4.8.2
1.2.16
1.8.5
- 2.3.0
+ 2.4.0a
1.5.8
1.0.1
0.6.1
diff --git a/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/CellMessage.java b/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/CellMessage.java
index 36065dc4838..8d2e69f1694 100644
--- a/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/CellMessage.java
+++ b/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/CellMessage.java
@@ -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 {
- 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
+ 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)
}
diff --git a/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/CellSetMessage.java b/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/CellSetMessage.java
index 735bf56f086..fb5bc2c8aa6 100644
--- a/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/CellSetMessage.java
+++ b/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/CellSetMessage.java
@@ -8,11 +8,25 @@ public final class CellSetMessage {
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
+ public interface CellSetOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // repeated .org.apache.hadoop.hbase.rest.protobuf.generated.CellSet.Row rows = 1;
+ java.util.List
+ getRowsList();
+ org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row getRows(int index);
+ int getRowsCount();
+ java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.RowOrBuilder>
+ getRowsOrBuilderList();
+ org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.RowOrBuilder getRowsOrBuilder(
+ int index);
+ }
public static final class CellSet extends
- com.google.protobuf.GeneratedMessage {
+ com.google.protobuf.GeneratedMessage
+ implements CellSetOrBuilder {
// Use CellSet.newBuilder() to construct.
- private CellSet() {
- initFields();
+ private CellSet(Builder builder) {
+ super(builder);
}
private CellSet(boolean noInit) {}
@@ -35,11 +49,29 @@ public final class CellSetMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_CellSet_fieldAccessorTable;
}
+ public interface RowOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required bytes key = 1;
+ boolean hasKey();
+ com.google.protobuf.ByteString getKey();
+
+ // repeated .org.apache.hadoop.hbase.rest.protobuf.generated.Cell values = 2;
+ java.util.List
+ getValuesList();
+ org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell getValues(int index);
+ int getValuesCount();
+ java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.CellOrBuilder>
+ getValuesOrBuilderList();
+ org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.CellOrBuilder getValuesOrBuilder(
+ int index);
+ }
public static final class Row extends
- com.google.protobuf.GeneratedMessage {
+ com.google.protobuf.GeneratedMessage
+ implements RowOrBuilder {
// Use Row.newBuilder() to construct.
- private Row() {
- initFields();
+ private Row(Builder builder) {
+ super(builder);
}
private Row(boolean noInit) {}
@@ -62,40 +94,63 @@ public final class CellSetMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_CellSet_Row_fieldAccessorTable;
}
+ private int bitField0_;
// required bytes key = 1;
public static final int KEY_FIELD_NUMBER = 1;
- private boolean hasKey;
- private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
- public boolean hasKey() { return hasKey; }
- public com.google.protobuf.ByteString getKey() { return key_; }
+ private com.google.protobuf.ByteString key_;
+ public boolean hasKey() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public com.google.protobuf.ByteString getKey() {
+ return key_;
+ }
// repeated .org.apache.hadoop.hbase.rest.protobuf.generated.Cell values = 2;
public static final int VALUES_FIELD_NUMBER = 2;
- private java.util.List values_ =
- java.util.Collections.emptyList();
+ private java.util.List values_;
public java.util.List getValuesList() {
return values_;
}
- public int getValuesCount() { return values_.size(); }
+ public java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.CellOrBuilder>
+ getValuesOrBuilderList() {
+ return values_;
+ }
+ public int getValuesCount() {
+ return values_.size();
+ }
public org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell getValues(int index) {
return values_.get(index);
}
+ public org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.CellOrBuilder getValuesOrBuilder(
+ int index) {
+ return values_.get(index);
+ }
private void initFields() {
+ key_ = com.google.protobuf.ByteString.EMPTY;
+ values_ = java.util.Collections.emptyList();
}
+ private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
- if (!hasKey) return false;
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasKey()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
- if (hasKey()) {
- output.writeBytes(1, getKey());
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, key_);
}
- for (org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell element : getValuesList()) {
- output.writeMessage(2, element);
+ for (int i = 0; i < values_.size(); i++) {
+ output.writeMessage(2, values_.get(i));
}
getUnknownFields().writeTo(output);
}
@@ -106,19 +161,26 @@ public final class CellSetMessage {
if (size != -1) return size;
size = 0;
- if (hasKey()) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getKey());
+ .computeBytesSize(1, key_);
}
- for (org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell element : getValuesList()) {
+ for (int i = 0; i < values_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, element);
+ .computeMessageSize(2, values_.get(i));
}
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.CellSetMessage.CellSet.Row parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -193,34 +255,58 @@ public final class CellSetMessage {
}
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 {
- private org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row result;
-
- // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row();
- return builder;
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.RowOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_CellSet_Row_descriptor;
}
- protected org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row internalGetResult() {
- return result;
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_CellSet_Row_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getValuesFieldBuilder();
+ }
+ }
+ private static Builder create() {
+ return new Builder();
}
public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
+ super.clear();
+ key_ = com.google.protobuf.ByteString.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ if (valuesBuilder_ == null) {
+ values_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ valuesBuilder_.clear();
}
- result = new org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row();
return this;
}
public Builder clone() {
- return create().mergeFrom(result);
+ return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
@@ -232,37 +318,44 @@ public final class CellSetMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row.getDefaultInstance();
}
- public boolean isInitialized() {
- return result.isInitialized();
- }
public org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row build() {
- if (result != null && !isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
- return buildPartial();
+ return result;
}
private org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
- return buildPartial();
+ return result;
}
public org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
+ org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row result = new org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
}
- if (result.values_ != java.util.Collections.EMPTY_LIST) {
- result.values_ =
- java.util.Collections.unmodifiableList(result.values_);
+ result.key_ = key_;
+ if (valuesBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ values_ = java.util.Collections.unmodifiableList(values_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.values_ = values_;
+ } else {
+ result.values_ = valuesBuilder_.build();
}
- org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row returnMe = result;
- result = null;
- return returnMe;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
@@ -279,16 +372,44 @@ public final class CellSetMessage {
if (other.hasKey()) {
setKey(other.getKey());
}
- if (!other.values_.isEmpty()) {
- if (result.values_.isEmpty()) {
- result.values_ = new java.util.ArrayList();
+ if (valuesBuilder_ == null) {
+ if (!other.values_.isEmpty()) {
+ if (values_.isEmpty()) {
+ values_ = other.values_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureValuesIsMutable();
+ values_.addAll(other.values_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.values_.isEmpty()) {
+ if (valuesBuilder_.isEmpty()) {
+ valuesBuilder_.dispose();
+ valuesBuilder_ = null;
+ values_ = other.values_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ valuesBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValuesFieldBuilder() : null;
+ } else {
+ valuesBuilder_.addAllMessages(other.values_);
+ }
}
- result.values_.addAll(other.values_);
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
+ public final boolean isInitialized() {
+ if (!hasKey()) {
+
+ return false;
+ }
+ return true;
+ }
+
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -301,17 +422,20 @@ public final class CellSetMessage {
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: {
- setKey(input.readBytes());
+ bitField0_ |= 0x00000001;
+ key_ = input.readBytes();
break;
}
case 18: {
@@ -324,85 +448,223 @@ public final class CellSetMessage {
}
}
+ private int bitField0_;
// required bytes key = 1;
+ private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasKey() {
- return result.hasKey();
+ return ((bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getKey() {
- return result.getKey();
+ return key_;
}
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- result.hasKey = true;
- result.key_ = value;
+ bitField0_ |= 0x00000001;
+ key_ = value;
+ onChanged();
return this;
}
public Builder clearKey() {
- result.hasKey = false;
- result.key_ = getDefaultInstance().getKey();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ key_ = getDefaultInstance().getKey();
+ onChanged();
return this;
}
// repeated .org.apache.hadoop.hbase.rest.protobuf.generated.Cell values = 2;
+ private java.util.List values_ =
+ java.util.Collections.emptyList();
+ private void ensureValuesIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ values_ = new java.util.ArrayList(values_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell, org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.CellOrBuilder> valuesBuilder_;
+
public java.util.List getValuesList() {
- return java.util.Collections.unmodifiableList(result.values_);
+ if (valuesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(values_);
+ } else {
+ return valuesBuilder_.getMessageList();
+ }
}
public int getValuesCount() {
- return result.getValuesCount();
+ if (valuesBuilder_ == null) {
+ return values_.size();
+ } else {
+ return valuesBuilder_.getCount();
+ }
}
public org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell getValues(int index) {
- return result.getValues(index);
- }
- public Builder setValues(int index, org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell value) {
- if (value == null) {
- throw new NullPointerException();
+ if (valuesBuilder_ == null) {
+ return values_.get(index);
+ } else {
+ return valuesBuilder_.getMessage(index);
+ }
+ }
+ public Builder setValues(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell value) {
+ if (valuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.set(index, value);
+ onChanged();
+ } else {
+ valuesBuilder_.setMessage(index, value);
}
- result.values_.set(index, value);
return this;
}
- public Builder setValues(int index, org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.Builder builderForValue) {
- result.values_.set(index, builderForValue.build());
+ public Builder setValues(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.Builder builderForValue) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valuesBuilder_.setMessage(index, builderForValue.build());
+ }
return this;
}
public Builder addValues(org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell value) {
- if (value == null) {
- throw new NullPointerException();
+ if (valuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.add(value);
+ onChanged();
+ } else {
+ valuesBuilder_.addMessage(value);
}
- if (result.values_.isEmpty()) {
- result.values_ = new java.util.ArrayList();
- }
- result.values_.add(value);
return this;
}
- public Builder addValues(org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.Builder builderForValue) {
- if (result.values_.isEmpty()) {
- result.values_ = new java.util.ArrayList();
+ public Builder addValues(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell value) {
+ if (valuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.add(index, value);
+ onChanged();
+ } else {
+ valuesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ public Builder addValues(
+ org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.Builder builderForValue) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valuesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ public Builder addValues(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.Builder builderForValue) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valuesBuilder_.addMessage(index, builderForValue.build());
}
- result.values_.add(builderForValue.build());
return this;
}
public Builder addAllValues(
java.lang.Iterable extends org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell> values) {
- if (result.values_.isEmpty()) {
- result.values_ = new java.util.ArrayList();
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ super.addAll(values, values_);
+ onChanged();
+ } else {
+ valuesBuilder_.addAllMessages(values);
}
- super.addAll(values, result.values_);
return this;
}
public Builder clearValues() {
- result.values_ = java.util.Collections.emptyList();
+ if (valuesBuilder_ == null) {
+ values_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ valuesBuilder_.clear();
+ }
return this;
}
+ public Builder removeValues(int index) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.remove(index);
+ onChanged();
+ } else {
+ valuesBuilder_.remove(index);
+ }
+ return this;
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.Builder getValuesBuilder(
+ int index) {
+ return getValuesFieldBuilder().getBuilder(index);
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.CellOrBuilder getValuesOrBuilder(
+ int index) {
+ if (valuesBuilder_ == null) {
+ return values_.get(index); } else {
+ return valuesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ public java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.CellOrBuilder>
+ getValuesOrBuilderList() {
+ if (valuesBuilder_ != null) {
+ return valuesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(values_);
+ }
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.Builder addValuesBuilder() {
+ return getValuesFieldBuilder().addBuilder(
+ org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.getDefaultInstance());
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.Builder addValuesBuilder(
+ int index) {
+ return getValuesFieldBuilder().addBuilder(
+ index, org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.getDefaultInstance());
+ }
+ public java.util.List
+ getValuesBuilderList() {
+ return getValuesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell, org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.CellOrBuilder>
+ getValuesFieldBuilder() {
+ if (valuesBuilder_ == null) {
+ valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell, org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.CellOrBuilder>(
+ values_,
+ ((bitField0_ & 0x00000002) == 0x00000002),
+ getParentForChildren(),
+ isClean());
+ values_ = null;
+ }
+ return valuesBuilder_;
+ }
// @@protoc_insertion_point(builder_scope:org.apache.hadoop.hbase.rest.protobuf.generated.CellSet.Row)
}
static {
defaultInstance = new Row(true);
- org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.internalForceInit();
defaultInstance.initFields();
}
@@ -411,30 +673,48 @@ public final class CellSetMessage {
// repeated .org.apache.hadoop.hbase.rest.protobuf.generated.CellSet.Row rows = 1;
public static final int ROWS_FIELD_NUMBER = 1;
- private java.util.List rows_ =
- java.util.Collections.emptyList();
+ private java.util.List rows_;
public java.util.List getRowsList() {
return rows_;
}
- public int getRowsCount() { return rows_.size(); }
+ public java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.RowOrBuilder>
+ getRowsOrBuilderList() {
+ return rows_;
+ }
+ public int getRowsCount() {
+ return rows_.size();
+ }
public org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row getRows(int index) {
return rows_.get(index);
}
+ public org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.RowOrBuilder getRowsOrBuilder(
+ int index) {
+ return rows_.get(index);
+ }
private void initFields() {
+ rows_ = java.util.Collections.emptyList();
}
+ private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
- for (org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row element : getRowsList()) {
- if (!element.isInitialized()) return false;
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ for (int i = 0; i < getRowsCount(); i++) {
+ if (!getRows(i).isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
}
+ memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
- for (org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row element : getRowsList()) {
- output.writeMessage(1, element);
+ for (int i = 0; i < rows_.size(); i++) {
+ output.writeMessage(1, rows_.get(i));
}
getUnknownFields().writeTo(output);
}
@@ -445,15 +725,22 @@ public final class CellSetMessage {
if (size != -1) return size;
size = 0;
- for (org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row element : getRowsList()) {
+ for (int i = 0; i < rows_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, element);
+ .computeMessageSize(1, rows_.get(i));
}
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.CellSetMessage.CellSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -528,34 +815,56 @@ public final class CellSetMessage {
}
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 {
- private org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet result;
-
- // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet();
- return builder;
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSetOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_CellSet_descriptor;
}
- protected org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet internalGetResult() {
- return result;
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_CellSet_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getRowsFieldBuilder();
+ }
+ }
+ private static Builder create() {
+ return new Builder();
}
public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
+ super.clear();
+ if (rowsBuilder_ == null) {
+ rows_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ rowsBuilder_.clear();
}
- result = new org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet();
return this;
}
public Builder clone() {
- return create().mergeFrom(result);
+ return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
@@ -567,37 +876,38 @@ public final class CellSetMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.getDefaultInstance();
}
- public boolean isInitialized() {
- return result.isInitialized();
- }
public org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet build() {
- if (result != null && !isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
- return buildPartial();
+ return result;
}
private org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
- return buildPartial();
+ return result;
}
public org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
+ org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet result = new org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet(this);
+ int from_bitField0_ = bitField0_;
+ if (rowsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ rows_ = java.util.Collections.unmodifiableList(rows_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.rows_ = rows_;
+ } else {
+ result.rows_ = rowsBuilder_.build();
}
- if (result.rows_ != java.util.Collections.EMPTY_LIST) {
- result.rows_ =
- java.util.Collections.unmodifiableList(result.rows_);
- }
- org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet returnMe = result;
- result = null;
- return returnMe;
+ onBuilt();
+ return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
@@ -611,16 +921,46 @@ public final class CellSetMessage {
public Builder mergeFrom(org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet other) {
if (other == org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.getDefaultInstance()) return this;
- if (!other.rows_.isEmpty()) {
- if (result.rows_.isEmpty()) {
- result.rows_ = new java.util.ArrayList();
+ if (rowsBuilder_ == null) {
+ if (!other.rows_.isEmpty()) {
+ if (rows_.isEmpty()) {
+ rows_ = other.rows_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureRowsIsMutable();
+ rows_.addAll(other.rows_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.rows_.isEmpty()) {
+ if (rowsBuilder_.isEmpty()) {
+ rowsBuilder_.dispose();
+ rowsBuilder_ = null;
+ rows_ = other.rows_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ rowsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getRowsFieldBuilder() : null;
+ } else {
+ rowsBuilder_.addAllMessages(other.rows_);
+ }
}
- result.rows_.addAll(other.rows_);
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
+ public final boolean isInitialized() {
+ for (int i = 0; i < getRowsCount(); i++) {
+ if (!getRows(i).isInitialized()) {
+
+ return false;
+ }
+ }
+ return true;
+ }
+
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -633,11 +973,13 @@ public final class CellSetMessage {
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;
@@ -652,64 +994,199 @@ public final class CellSetMessage {
}
}
+ private int bitField0_;
// repeated .org.apache.hadoop.hbase.rest.protobuf.generated.CellSet.Row rows = 1;
+ private java.util.List rows_ =
+ java.util.Collections.emptyList();
+ private void ensureRowsIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ rows_ = new java.util.ArrayList(rows_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row, org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.RowOrBuilder> rowsBuilder_;
+
public java.util.List getRowsList() {
- return java.util.Collections.unmodifiableList(result.rows_);
+ if (rowsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(rows_);
+ } else {
+ return rowsBuilder_.getMessageList();
+ }
}
public int getRowsCount() {
- return result.getRowsCount();
+ if (rowsBuilder_ == null) {
+ return rows_.size();
+ } else {
+ return rowsBuilder_.getCount();
+ }
}
public org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row getRows(int index) {
- return result.getRows(index);
- }
- public Builder setRows(int index, org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row value) {
- if (value == null) {
- throw new NullPointerException();
+ if (rowsBuilder_ == null) {
+ return rows_.get(index);
+ } else {
+ return rowsBuilder_.getMessage(index);
+ }
+ }
+ public Builder setRows(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row value) {
+ if (rowsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRowsIsMutable();
+ rows_.set(index, value);
+ onChanged();
+ } else {
+ rowsBuilder_.setMessage(index, value);
}
- result.rows_.set(index, value);
return this;
}
- public Builder setRows(int index, org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row.Builder builderForValue) {
- result.rows_.set(index, builderForValue.build());
+ public Builder setRows(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row.Builder builderForValue) {
+ if (rowsBuilder_ == null) {
+ ensureRowsIsMutable();
+ rows_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ rowsBuilder_.setMessage(index, builderForValue.build());
+ }
return this;
}
public Builder addRows(org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row value) {
- if (value == null) {
- throw new NullPointerException();
+ if (rowsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRowsIsMutable();
+ rows_.add(value);
+ onChanged();
+ } else {
+ rowsBuilder_.addMessage(value);
}
- if (result.rows_.isEmpty()) {
- result.rows_ = new java.util.ArrayList();
- }
- result.rows_.add(value);
return this;
}
- public Builder addRows(org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row.Builder builderForValue) {
- if (result.rows_.isEmpty()) {
- result.rows_ = new java.util.ArrayList();
+ public Builder addRows(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row value) {
+ if (rowsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRowsIsMutable();
+ rows_.add(index, value);
+ onChanged();
+ } else {
+ rowsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ public Builder addRows(
+ org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row.Builder builderForValue) {
+ if (rowsBuilder_ == null) {
+ ensureRowsIsMutable();
+ rows_.add(builderForValue.build());
+ onChanged();
+ } else {
+ rowsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ public Builder addRows(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row.Builder builderForValue) {
+ if (rowsBuilder_ == null) {
+ ensureRowsIsMutable();
+ rows_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ rowsBuilder_.addMessage(index, builderForValue.build());
}
- result.rows_.add(builderForValue.build());
return this;
}
public Builder addAllRows(
java.lang.Iterable extends org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row> values) {
- if (result.rows_.isEmpty()) {
- result.rows_ = new java.util.ArrayList();
+ if (rowsBuilder_ == null) {
+ ensureRowsIsMutable();
+ super.addAll(values, rows_);
+ onChanged();
+ } else {
+ rowsBuilder_.addAllMessages(values);
}
- super.addAll(values, result.rows_);
return this;
}
public Builder clearRows() {
- result.rows_ = java.util.Collections.emptyList();
+ if (rowsBuilder_ == null) {
+ rows_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ rowsBuilder_.clear();
+ }
return this;
}
+ public Builder removeRows(int index) {
+ if (rowsBuilder_ == null) {
+ ensureRowsIsMutable();
+ rows_.remove(index);
+ onChanged();
+ } else {
+ rowsBuilder_.remove(index);
+ }
+ return this;
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row.Builder getRowsBuilder(
+ int index) {
+ return getRowsFieldBuilder().getBuilder(index);
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.RowOrBuilder getRowsOrBuilder(
+ int index) {
+ if (rowsBuilder_ == null) {
+ return rows_.get(index); } else {
+ return rowsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ public java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.RowOrBuilder>
+ getRowsOrBuilderList() {
+ if (rowsBuilder_ != null) {
+ return rowsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(rows_);
+ }
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row.Builder addRowsBuilder() {
+ return getRowsFieldBuilder().addBuilder(
+ org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row.getDefaultInstance());
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row.Builder addRowsBuilder(
+ int index) {
+ return getRowsFieldBuilder().addBuilder(
+ index, org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row.getDefaultInstance());
+ }
+ public java.util.List
+ getRowsBuilderList() {
+ return getRowsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row, org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.RowOrBuilder>
+ getRowsFieldBuilder() {
+ if (rowsBuilder_ == null) {
+ rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row, org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.Row.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.CellSet.RowOrBuilder>(
+ rows_,
+ ((bitField0_ & 0x00000001) == 0x00000001),
+ getParentForChildren(),
+ isClean());
+ rows_ = null;
+ }
+ return rowsBuilder_;
+ }
// @@protoc_insertion_point(builder_scope:org.apache.hadoop.hbase.rest.protobuf.generated.CellSet)
}
static {
defaultInstance = new CellSet(true);
- org.apache.hadoop.hbase.rest.protobuf.generated.CellSetMessage.internalForceInit();
defaultInstance.initFields();
}
@@ -774,7 +1251,5 @@ public final class CellSetMessage {
}, assigner);
}
- public static void internalForceInit() {}
-
// @@protoc_insertion_point(outer_class_scope)
}
diff --git a/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/ColumnSchemaMessage.java b/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/ColumnSchemaMessage.java
index d8db71cf4de..07561c2313f 100644
--- a/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/ColumnSchemaMessage.java
+++ b/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/ColumnSchemaMessage.java
@@ -8,11 +8,41 @@ public final class ColumnSchemaMessage {
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
+ public interface ColumnSchemaOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // optional string name = 1;
+ boolean hasName();
+ String getName();
+
+ // repeated .org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchema.Attribute attrs = 2;
+ java.util.List
+ getAttrsList();
+ org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute getAttrs(int index);
+ int getAttrsCount();
+ java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.AttributeOrBuilder>
+ getAttrsOrBuilderList();
+ org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.AttributeOrBuilder getAttrsOrBuilder(
+ int index);
+
+ // optional int32 ttl = 3;
+ boolean hasTtl();
+ int getTtl();
+
+ // optional int32 maxVersions = 4;
+ boolean hasMaxVersions();
+ int getMaxVersions();
+
+ // optional string compression = 5;
+ boolean hasCompression();
+ String getCompression();
+ }
public static final class ColumnSchema extends
- com.google.protobuf.GeneratedMessage {
+ com.google.protobuf.GeneratedMessage
+ implements ColumnSchemaOrBuilder {
// Use ColumnSchema.newBuilder() to construct.
- private ColumnSchema() {
- initFields();
+ private ColumnSchema(Builder builder) {
+ super(builder);
}
private ColumnSchema(boolean noInit) {}
@@ -35,11 +65,23 @@ public final class ColumnSchemaMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_ColumnSchema_fieldAccessorTable;
}
+ public interface AttributeOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required string name = 1;
+ boolean hasName();
+ String getName();
+
+ // required string value = 2;
+ boolean hasValue();
+ String getValue();
+ }
public static final class Attribute extends
- com.google.protobuf.GeneratedMessage {
+ com.google.protobuf.GeneratedMessage
+ implements AttributeOrBuilder {
// Use Attribute.newBuilder() to construct.
- private Attribute() {
- initFields();
+ private Attribute(Builder builder) {
+ super(builder);
}
private Attribute(boolean noInit) {}
@@ -62,36 +104,100 @@ public final class ColumnSchemaMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_ColumnSchema_Attribute_fieldAccessorTable;
}
+ private int bitField0_;
// required string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
- private boolean hasName;
- private java.lang.String name_ = "";
- public boolean hasName() { return hasName; }
- public java.lang.String getName() { return name_; }
+ private java.lang.Object name_;
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getName() {
+ java.lang.Object ref = name_;
+ 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)) {
+ name_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
// required string value = 2;
public static final int VALUE_FIELD_NUMBER = 2;
- private boolean hasValue;
- private java.lang.String value_ = "";
- public boolean hasValue() { return hasValue; }
- public java.lang.String getValue() { return value_; }
+ private java.lang.Object value_;
+ public boolean hasValue() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public String getValue() {
+ java.lang.Object ref = value_;
+ 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)) {
+ value_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
private void initFields() {
+ name_ = "";
+ value_ = "";
}
+ private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
- if (!hasName) return false;
- if (!hasValue) return false;
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasName()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasValue()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
- if (hasName()) {
- output.writeString(1, getName());
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getNameBytes());
}
- if (hasValue()) {
- output.writeString(2, getValue());
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBytes(2, getValueBytes());
}
getUnknownFields().writeTo(output);
}
@@ -102,19 +208,26 @@ public final class ColumnSchemaMessage {
if (size != -1) return size;
size = 0;
- if (hasName()) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeStringSize(1, getName());
+ .computeBytesSize(1, getNameBytes());
}
- if (hasValue()) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeStringSize(2, getValue());
+ .computeBytesSize(2, getValueBytes());
}
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.ColumnSchemaMessage.ColumnSchema.Attribute parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -189,34 +302,53 @@ public final class ColumnSchemaMessage {
}
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 {
- private org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute result;
-
- // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute();
- return builder;
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.AttributeOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_ColumnSchema_Attribute_descriptor;
}
- protected org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute internalGetResult() {
- return result;
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_ColumnSchema_Attribute_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute.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.ColumnSchemaMessage.ColumnSchema.Attribute();
+ super.clear();
+ name_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ value_ = "";
+ bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
- return create().mergeFrom(result);
+ return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
@@ -228,33 +360,39 @@ public final class ColumnSchemaMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute.getDefaultInstance();
}
- public boolean isInitialized() {
- return result.isInitialized();
- }
public org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute build() {
- if (result != null && !isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
- return buildPartial();
+ return result;
}
private org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
- return buildPartial();
+ return result;
}
public org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
+ org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute result = new org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
}
- org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute returnMe = result;
- result = null;
- return returnMe;
+ result.name_ = name_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.value_ = value_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
@@ -278,6 +416,18 @@ public final class ColumnSchemaMessage {
return this;
}
+ public final boolean isInitialized() {
+ if (!hasName()) {
+
+ return false;
+ }
+ if (!hasValue()) {
+
+ return false;
+ }
+ return true;
+ }
+
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -290,148 +440,261 @@ public final class ColumnSchemaMessage {
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: {
- setName(input.readString());
+ bitField0_ |= 0x00000001;
+ name_ = input.readBytes();
break;
}
case 18: {
- setValue(input.readString());
+ bitField0_ |= 0x00000002;
+ value_ = input.readBytes();
break;
}
}
}
}
+ private int bitField0_;
// required string name = 1;
+ private java.lang.Object name_ = "";
public boolean hasName() {
- return result.hasName();
+ return ((bitField0_ & 0x00000001) == 0x00000001);
}
- public java.lang.String getName() {
- return result.getName();
+ public String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
}
- public Builder setName(java.lang.String value) {
+ public Builder setName(String value) {
if (value == null) {
throw new NullPointerException();
}
- result.hasName = true;
- result.name_ = value;
+ bitField0_ |= 0x00000001;
+ name_ = value;
+ onChanged();
return this;
}
public Builder clearName() {
- result.hasName = false;
- result.name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ name_ = getDefaultInstance().getName();
+ onChanged();
return this;
}
+ void setName(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000001;
+ name_ = value;
+ onChanged();
+ }
// required string value = 2;
+ private java.lang.Object value_ = "";
public boolean hasValue() {
- return result.hasValue();
+ return ((bitField0_ & 0x00000002) == 0x00000002);
}
- public java.lang.String getValue() {
- return result.getValue();
+ public String getValue() {
+ java.lang.Object ref = value_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ value_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
}
- public Builder setValue(java.lang.String value) {
+ public Builder setValue(String value) {
if (value == null) {
throw new NullPointerException();
}
- result.hasValue = true;
- result.value_ = value;
+ bitField0_ |= 0x00000002;
+ value_ = value;
+ onChanged();
return this;
}
public Builder clearValue() {
- result.hasValue = false;
- result.value_ = getDefaultInstance().getValue();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ value_ = getDefaultInstance().getValue();
+ onChanged();
return this;
}
+ void setValue(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000002;
+ value_ = value;
+ onChanged();
+ }
// @@protoc_insertion_point(builder_scope:org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchema.Attribute)
}
static {
defaultInstance = new Attribute(true);
- org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.internalForceInit();
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchema.Attribute)
}
+ private int bitField0_;
// optional string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
- private boolean hasName;
- private java.lang.String name_ = "";
- public boolean hasName() { return hasName; }
- public java.lang.String getName() { return name_; }
+ private java.lang.Object name_;
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getName() {
+ java.lang.Object ref = name_;
+ 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)) {
+ name_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
// repeated .org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchema.Attribute attrs = 2;
public static final int ATTRS_FIELD_NUMBER = 2;
- private java.util.List attrs_ =
- java.util.Collections.emptyList();
+ private java.util.List attrs_;
public java.util.List getAttrsList() {
return attrs_;
}
- public int getAttrsCount() { return attrs_.size(); }
+ public java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.AttributeOrBuilder>
+ getAttrsOrBuilderList() {
+ return attrs_;
+ }
+ public int getAttrsCount() {
+ return attrs_.size();
+ }
public org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute getAttrs(int index) {
return attrs_.get(index);
}
+ public org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.AttributeOrBuilder getAttrsOrBuilder(
+ int index) {
+ return attrs_.get(index);
+ }
// optional int32 ttl = 3;
public static final int TTL_FIELD_NUMBER = 3;
- private boolean hasTtl;
- private int ttl_ = 0;
- public boolean hasTtl() { return hasTtl; }
- public int getTtl() { return ttl_; }
+ private int ttl_;
+ public boolean hasTtl() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public int getTtl() {
+ return ttl_;
+ }
// optional int32 maxVersions = 4;
public static final int MAXVERSIONS_FIELD_NUMBER = 4;
- 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_ & 0x00000004) == 0x00000004);
+ }
+ public int getMaxVersions() {
+ return maxVersions_;
+ }
// optional string compression = 5;
public static final int COMPRESSION_FIELD_NUMBER = 5;
- private boolean hasCompression;
- private java.lang.String compression_ = "";
- public boolean hasCompression() { return hasCompression; }
- public java.lang.String getCompression() { return compression_; }
+ private java.lang.Object compression_;
+ public boolean hasCompression() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ public String getCompression() {
+ java.lang.Object ref = compression_;
+ 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)) {
+ compression_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getCompressionBytes() {
+ java.lang.Object ref = compression_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ compression_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
private void initFields() {
+ name_ = "";
+ attrs_ = java.util.Collections.emptyList();
+ ttl_ = 0;
+ maxVersions_ = 0;
+ compression_ = "";
}
+ private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
- for (org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute element : getAttrsList()) {
- if (!element.isInitialized()) return false;
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ for (int i = 0; i < getAttrsCount(); i++) {
+ if (!getAttrs(i).isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
}
+ memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
- if (hasName()) {
- output.writeString(1, getName());
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getNameBytes());
}
- for (org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute element : getAttrsList()) {
- output.writeMessage(2, element);
+ for (int i = 0; i < attrs_.size(); i++) {
+ output.writeMessage(2, attrs_.get(i));
}
- if (hasTtl()) {
- output.writeInt32(3, getTtl());
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeInt32(3, ttl_);
}
- if (hasMaxVersions()) {
- output.writeInt32(4, getMaxVersions());
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeInt32(4, maxVersions_);
}
- if (hasCompression()) {
- output.writeString(5, getCompression());
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeBytes(5, getCompressionBytes());
}
getUnknownFields().writeTo(output);
}
@@ -442,31 +705,38 @@ public final class ColumnSchemaMessage {
if (size != -1) return size;
size = 0;
- if (hasName()) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeStringSize(1, getName());
+ .computeBytesSize(1, getNameBytes());
}
- for (org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute element : getAttrsList()) {
+ for (int i = 0; i < attrs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, element);
+ .computeMessageSize(2, attrs_.get(i));
}
- if (hasTtl()) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(3, getTtl());
+ .computeInt32Size(3, ttl_);
}
- if (hasMaxVersions()) {
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(4, getMaxVersions());
+ .computeInt32Size(4, maxVersions_);
}
- if (hasCompression()) {
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
- .computeStringSize(5, getCompression());
+ .computeBytesSize(5, getCompressionBytes());
}
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.ColumnSchemaMessage.ColumnSchema parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -541,34 +811,64 @@ public final class ColumnSchemaMessage {
}
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 {
- private org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema result;
-
- // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema();
- return builder;
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchemaOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_ColumnSchema_descriptor;
}
- protected org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema internalGetResult() {
- return result;
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_ColumnSchema_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getAttrsFieldBuilder();
+ }
+ }
+ private static Builder create() {
+ return new Builder();
}
public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
+ super.clear();
+ name_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ if (attrsBuilder_ == null) {
+ attrs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ attrsBuilder_.clear();
}
- result = new org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema();
+ ttl_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ maxVersions_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ compression_ = "";
+ bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
- return create().mergeFrom(result);
+ return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
@@ -580,37 +880,56 @@ public final class ColumnSchemaMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.getDefaultInstance();
}
- public boolean isInitialized() {
- return result.isInitialized();
- }
public org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema build() {
- if (result != null && !isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
- return buildPartial();
+ return result;
}
private org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
- return buildPartial();
+ return result;
}
public org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
+ org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema result = new org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
}
- if (result.attrs_ != java.util.Collections.EMPTY_LIST) {
- result.attrs_ =
- java.util.Collections.unmodifiableList(result.attrs_);
+ result.name_ = name_;
+ if (attrsBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ attrs_ = java.util.Collections.unmodifiableList(attrs_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.attrs_ = attrs_;
+ } else {
+ result.attrs_ = attrsBuilder_.build();
}
- org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema returnMe = result;
- result = null;
- return returnMe;
+ if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.ttl_ = ttl_;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.maxVersions_ = maxVersions_;
+ if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
+ to_bitField0_ |= 0x00000008;
+ }
+ result.compression_ = compression_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
@@ -627,11 +946,31 @@ public final class ColumnSchemaMessage {
if (other.hasName()) {
setName(other.getName());
}
- if (!other.attrs_.isEmpty()) {
- if (result.attrs_.isEmpty()) {
- result.attrs_ = new java.util.ArrayList();
+ if (attrsBuilder_ == null) {
+ if (!other.attrs_.isEmpty()) {
+ if (attrs_.isEmpty()) {
+ attrs_ = other.attrs_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureAttrsIsMutable();
+ attrs_.addAll(other.attrs_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.attrs_.isEmpty()) {
+ if (attrsBuilder_.isEmpty()) {
+ attrsBuilder_.dispose();
+ attrsBuilder_ = null;
+ attrs_ = other.attrs_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ attrsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getAttrsFieldBuilder() : null;
+ } else {
+ attrsBuilder_.addAllMessages(other.attrs_);
+ }
}
- result.attrs_.addAll(other.attrs_);
}
if (other.hasTtl()) {
setTtl(other.getTtl());
@@ -646,6 +985,16 @@ public final class ColumnSchemaMessage {
return this;
}
+ public final boolean isInitialized() {
+ for (int i = 0; i < getAttrsCount(); i++) {
+ if (!getAttrs(i).isInitialized()) {
+
+ return false;
+ }
+ }
+ return true;
+ }
+
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -658,17 +1007,20 @@ public final class ColumnSchemaMessage {
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: {
- setName(input.readString());
+ bitField0_ |= 0x00000001;
+ name_ = input.readBytes();
break;
}
case 18: {
@@ -678,157 +1030,331 @@ public final class ColumnSchemaMessage {
break;
}
case 24: {
- setTtl(input.readInt32());
+ bitField0_ |= 0x00000004;
+ ttl_ = input.readInt32();
break;
}
case 32: {
- setMaxVersions(input.readInt32());
+ bitField0_ |= 0x00000008;
+ maxVersions_ = input.readInt32();
break;
}
case 42: {
- setCompression(input.readString());
+ bitField0_ |= 0x00000010;
+ compression_ = input.readBytes();
break;
}
}
}
}
+ private int bitField0_;
// optional string name = 1;
+ private java.lang.Object name_ = "";
public boolean hasName() {
- return result.hasName();
+ return ((bitField0_ & 0x00000001) == 0x00000001);
}
- public java.lang.String getName() {
- return result.getName();
+ public String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
}
- public Builder setName(java.lang.String value) {
+ public Builder setName(String value) {
if (value == null) {
throw new NullPointerException();
}
- result.hasName = true;
- result.name_ = value;
+ bitField0_ |= 0x00000001;
+ name_ = value;
+ onChanged();
return this;
}
public Builder clearName() {
- result.hasName = false;
- result.name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ name_ = getDefaultInstance().getName();
+ onChanged();
return this;
}
+ void setName(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000001;
+ name_ = value;
+ onChanged();
+ }
// repeated .org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchema.Attribute attrs = 2;
+ private java.util.List attrs_ =
+ java.util.Collections.emptyList();
+ private void ensureAttrsIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ attrs_ = new java.util.ArrayList(attrs_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.AttributeOrBuilder> attrsBuilder_;
+
public java.util.List getAttrsList() {
- return java.util.Collections.unmodifiableList(result.attrs_);
+ if (attrsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(attrs_);
+ } else {
+ return attrsBuilder_.getMessageList();
+ }
}
public int getAttrsCount() {
- return result.getAttrsCount();
+ if (attrsBuilder_ == null) {
+ return attrs_.size();
+ } else {
+ return attrsBuilder_.getCount();
+ }
}
public org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute getAttrs(int index) {
- return result.getAttrs(index);
- }
- public Builder setAttrs(int index, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute value) {
- if (value == null) {
- throw new NullPointerException();
+ if (attrsBuilder_ == null) {
+ return attrs_.get(index);
+ } else {
+ return attrsBuilder_.getMessage(index);
+ }
+ }
+ public Builder setAttrs(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute value) {
+ if (attrsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAttrsIsMutable();
+ attrs_.set(index, value);
+ onChanged();
+ } else {
+ attrsBuilder_.setMessage(index, value);
}
- result.attrs_.set(index, value);
return this;
}
- public Builder setAttrs(int index, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute.Builder builderForValue) {
- result.attrs_.set(index, builderForValue.build());
+ public Builder setAttrs(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute.Builder builderForValue) {
+ if (attrsBuilder_ == null) {
+ ensureAttrsIsMutable();
+ attrs_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ attrsBuilder_.setMessage(index, builderForValue.build());
+ }
return this;
}
public Builder addAttrs(org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute value) {
- if (value == null) {
- throw new NullPointerException();
+ if (attrsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAttrsIsMutable();
+ attrs_.add(value);
+ onChanged();
+ } else {
+ attrsBuilder_.addMessage(value);
}
- if (result.attrs_.isEmpty()) {
- result.attrs_ = new java.util.ArrayList();
- }
- result.attrs_.add(value);
return this;
}
- public Builder addAttrs(org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute.Builder builderForValue) {
- if (result.attrs_.isEmpty()) {
- result.attrs_ = new java.util.ArrayList();
+ public Builder addAttrs(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute value) {
+ if (attrsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAttrsIsMutable();
+ attrs_.add(index, value);
+ onChanged();
+ } else {
+ attrsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ public Builder addAttrs(
+ org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute.Builder builderForValue) {
+ if (attrsBuilder_ == null) {
+ ensureAttrsIsMutable();
+ attrs_.add(builderForValue.build());
+ onChanged();
+ } else {
+ attrsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ public Builder addAttrs(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute.Builder builderForValue) {
+ if (attrsBuilder_ == null) {
+ ensureAttrsIsMutable();
+ attrs_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ attrsBuilder_.addMessage(index, builderForValue.build());
}
- result.attrs_.add(builderForValue.build());
return this;
}
public Builder addAllAttrs(
java.lang.Iterable extends org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute> values) {
- if (result.attrs_.isEmpty()) {
- result.attrs_ = new java.util.ArrayList();
+ if (attrsBuilder_ == null) {
+ ensureAttrsIsMutable();
+ super.addAll(values, attrs_);
+ onChanged();
+ } else {
+ attrsBuilder_.addAllMessages(values);
}
- super.addAll(values, result.attrs_);
return this;
}
public Builder clearAttrs() {
- result.attrs_ = java.util.Collections.emptyList();
+ if (attrsBuilder_ == null) {
+ attrs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ attrsBuilder_.clear();
+ }
return this;
}
+ public Builder removeAttrs(int index) {
+ if (attrsBuilder_ == null) {
+ ensureAttrsIsMutable();
+ attrs_.remove(index);
+ onChanged();
+ } else {
+ attrsBuilder_.remove(index);
+ }
+ return this;
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute.Builder getAttrsBuilder(
+ int index) {
+ return getAttrsFieldBuilder().getBuilder(index);
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.AttributeOrBuilder getAttrsOrBuilder(
+ int index) {
+ if (attrsBuilder_ == null) {
+ return attrs_.get(index); } else {
+ return attrsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ public java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.AttributeOrBuilder>
+ getAttrsOrBuilderList() {
+ if (attrsBuilder_ != null) {
+ return attrsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(attrs_);
+ }
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute.Builder addAttrsBuilder() {
+ return getAttrsFieldBuilder().addBuilder(
+ org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute.getDefaultInstance());
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute.Builder addAttrsBuilder(
+ int index) {
+ return getAttrsFieldBuilder().addBuilder(
+ index, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute.getDefaultInstance());
+ }
+ public java.util.List
+ getAttrsBuilderList() {
+ return getAttrsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.AttributeOrBuilder>
+ getAttrsFieldBuilder() {
+ if (attrsBuilder_ == null) {
+ attrsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Attribute.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.AttributeOrBuilder>(
+ attrs_,
+ ((bitField0_ & 0x00000002) == 0x00000002),
+ getParentForChildren(),
+ isClean());
+ attrs_ = null;
+ }
+ return attrsBuilder_;
+ }
// optional int32 ttl = 3;
+ private int ttl_ ;
public boolean hasTtl() {
- return result.hasTtl();
+ return ((bitField0_ & 0x00000004) == 0x00000004);
}
public int getTtl() {
- return result.getTtl();
+ return ttl_;
}
public Builder setTtl(int value) {
- result.hasTtl = true;
- result.ttl_ = value;
+ bitField0_ |= 0x00000004;
+ ttl_ = value;
+ onChanged();
return this;
}
public Builder clearTtl() {
- result.hasTtl = false;
- result.ttl_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ ttl_ = 0;
+ onChanged();
return this;
}
// optional int32 maxVersions = 4;
+ private int maxVersions_ ;
public boolean hasMaxVersions() {
- return result.hasMaxVersions();
+ return ((bitField0_ & 0x00000008) == 0x00000008);
}
public int getMaxVersions() {
- return result.getMaxVersions();
+ return maxVersions_;
}
public Builder setMaxVersions(int value) {
- result.hasMaxVersions = true;
- result.maxVersions_ = value;
+ bitField0_ |= 0x00000008;
+ maxVersions_ = value;
+ onChanged();
return this;
}
public Builder clearMaxVersions() {
- result.hasMaxVersions = false;
- result.maxVersions_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ maxVersions_ = 0;
+ onChanged();
return this;
}
// optional string compression = 5;
+ private java.lang.Object compression_ = "";
public boolean hasCompression() {
- return result.hasCompression();
+ return ((bitField0_ & 0x00000010) == 0x00000010);
}
- public java.lang.String getCompression() {
- return result.getCompression();
+ public String getCompression() {
+ java.lang.Object ref = compression_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ compression_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
}
- public Builder setCompression(java.lang.String value) {
+ public Builder setCompression(String value) {
if (value == null) {
throw new NullPointerException();
}
- result.hasCompression = true;
- result.compression_ = value;
+ bitField0_ |= 0x00000010;
+ compression_ = value;
+ onChanged();
return this;
}
public Builder clearCompression() {
- result.hasCompression = false;
- result.compression_ = getDefaultInstance().getCompression();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ compression_ = getDefaultInstance().getCompression();
+ onChanged();
return this;
}
+ void setCompression(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000010;
+ compression_ = value;
+ onChanged();
+ }
// @@protoc_insertion_point(builder_scope:org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchema)
}
static {
defaultInstance = new ColumnSchema(true);
- org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.internalForceInit();
defaultInstance.initFields();
}
@@ -893,7 +1419,5 @@ public final class ColumnSchemaMessage {
}, assigner);
}
- public static void internalForceInit() {}
-
// @@protoc_insertion_point(outer_class_scope)
}
diff --git a/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/ScannerMessage.java b/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/ScannerMessage.java
index f3e6b88be2f..65d614c9f3f 100644
--- a/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/ScannerMessage.java
+++ b/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/ScannerMessage.java
@@ -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 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 columns_ =
- java.util.Collections.emptyList();
- public java.util.List getColumnsList() {
+ private java.util.List columns_;
+ public java.util.List
+ 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 {
- 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
+ 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();
+ 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 getColumnsList() {
- return java.util.Collections.unmodifiableList(result.columns_);
+ private java.util.List columns_ = java.util.Collections.emptyList();;
+ private void ensureColumnsIsMutable() {
+ if (!((bitField0_ & 0x00000004) == 0x00000004)) {
+ columns_ = new java.util.ArrayList(columns_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+ public java.util.List
+ 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();
- }
- 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();
- }
- 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)
}
diff --git a/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/StorageClusterStatusMessage.java b/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/StorageClusterStatusMessage.java
index ed3e07f24e4..b20d6d4d2fe 100644
--- a/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/StorageClusterStatusMessage.java
+++ b/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/StorageClusterStatusMessage.java
@@ -8,11 +8,42 @@ public final class StorageClusterStatusMessage {
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
+ public interface StorageClusterStatusOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // repeated .org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatus.Node liveNodes = 1;
+ java.util.List
+ getLiveNodesList();
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node getLiveNodes(int index);
+ int getLiveNodesCount();
+ java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.NodeOrBuilder>
+ getLiveNodesOrBuilderList();
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.NodeOrBuilder getLiveNodesOrBuilder(
+ int index);
+
+ // repeated string deadNodes = 2;
+ java.util.List getDeadNodesList();
+ int getDeadNodesCount();
+ String getDeadNodes(int index);
+
+ // optional int32 regions = 3;
+ boolean hasRegions();
+ int getRegions();
+
+ // optional int32 requests = 4;
+ boolean hasRequests();
+ int getRequests();
+
+ // optional double averageLoad = 5;
+ boolean hasAverageLoad();
+ double getAverageLoad();
+ }
public static final class StorageClusterStatus extends
- com.google.protobuf.GeneratedMessage {
+ com.google.protobuf.GeneratedMessage
+ implements StorageClusterStatusOrBuilder {
// Use StorageClusterStatus.newBuilder() to construct.
- private StorageClusterStatus() {
- initFields();
+ private StorageClusterStatus(Builder builder) {
+ super(builder);
}
private StorageClusterStatus(boolean noInit) {}
@@ -35,11 +66,39 @@ public final class StorageClusterStatusMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_StorageClusterStatus_fieldAccessorTable;
}
+ public interface RegionOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required bytes name = 1;
+ boolean hasName();
+ com.google.protobuf.ByteString getName();
+
+ // optional int32 stores = 2;
+ boolean hasStores();
+ int getStores();
+
+ // optional int32 storefiles = 3;
+ boolean hasStorefiles();
+ int getStorefiles();
+
+ // optional int32 storefileSizeMB = 4;
+ boolean hasStorefileSizeMB();
+ int getStorefileSizeMB();
+
+ // optional int32 memstoreSizeMB = 5;
+ boolean hasMemstoreSizeMB();
+ int getMemstoreSizeMB();
+
+ // optional int32 storefileIndexSizeMB = 6;
+ boolean hasStorefileIndexSizeMB();
+ int getStorefileIndexSizeMB();
+ }
public static final class Region extends
- com.google.protobuf.GeneratedMessage {
+ com.google.protobuf.GeneratedMessage
+ implements RegionOrBuilder {
// Use Region.newBuilder() to construct.
- private Region() {
- initFields();
+ private Region(Builder builder) {
+ super(builder);
}
private Region(boolean noInit) {}
@@ -62,75 +121,108 @@ public final class StorageClusterStatusMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_StorageClusterStatus_Region_fieldAccessorTable;
}
+ private int bitField0_;
// required bytes name = 1;
public static final int NAME_FIELD_NUMBER = 1;
- private boolean hasName;
- private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY;
- public boolean hasName() { return hasName; }
- public com.google.protobuf.ByteString getName() { return name_; }
+ private com.google.protobuf.ByteString name_;
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public com.google.protobuf.ByteString getName() {
+ return name_;
+ }
// optional int32 stores = 2;
public static final int STORES_FIELD_NUMBER = 2;
- private boolean hasStores;
- private int stores_ = 0;
- public boolean hasStores() { return hasStores; }
- public int getStores() { return stores_; }
+ private int stores_;
+ public boolean hasStores() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public int getStores() {
+ return stores_;
+ }
// optional int32 storefiles = 3;
public static final int STOREFILES_FIELD_NUMBER = 3;
- private boolean hasStorefiles;
- private int storefiles_ = 0;
- public boolean hasStorefiles() { return hasStorefiles; }
- public int getStorefiles() { return storefiles_; }
+ private int storefiles_;
+ public boolean hasStorefiles() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ public int getStorefiles() {
+ return storefiles_;
+ }
// optional int32 storefileSizeMB = 4;
public static final int STOREFILESIZEMB_FIELD_NUMBER = 4;
- private boolean hasStorefileSizeMB;
- private int storefileSizeMB_ = 0;
- public boolean hasStorefileSizeMB() { return hasStorefileSizeMB; }
- public int getStorefileSizeMB() { return storefileSizeMB_; }
+ private int storefileSizeMB_;
+ public boolean hasStorefileSizeMB() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ public int getStorefileSizeMB() {
+ return storefileSizeMB_;
+ }
// optional int32 memstoreSizeMB = 5;
public static final int MEMSTORESIZEMB_FIELD_NUMBER = 5;
- private boolean hasMemstoreSizeMB;
- private int memstoreSizeMB_ = 0;
- public boolean hasMemstoreSizeMB() { return hasMemstoreSizeMB; }
- public int getMemstoreSizeMB() { return memstoreSizeMB_; }
+ private int memstoreSizeMB_;
+ public boolean hasMemstoreSizeMB() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ public int getMemstoreSizeMB() {
+ return memstoreSizeMB_;
+ }
// optional int32 storefileIndexSizeMB = 6;
public static final int STOREFILEINDEXSIZEMB_FIELD_NUMBER = 6;
- private boolean hasStorefileIndexSizeMB;
- private int storefileIndexSizeMB_ = 0;
- public boolean hasStorefileIndexSizeMB() { return hasStorefileIndexSizeMB; }
- public int getStorefileIndexSizeMB() { return storefileIndexSizeMB_; }
+ private int storefileIndexSizeMB_;
+ public boolean hasStorefileIndexSizeMB() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ public int getStorefileIndexSizeMB() {
+ return storefileIndexSizeMB_;
+ }
private void initFields() {
+ name_ = com.google.protobuf.ByteString.EMPTY;
+ stores_ = 0;
+ storefiles_ = 0;
+ storefileSizeMB_ = 0;
+ memstoreSizeMB_ = 0;
+ storefileIndexSizeMB_ = 0;
}
+ private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
- if (!hasName) return false;
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasName()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
- if (hasName()) {
- output.writeBytes(1, getName());
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, name_);
}
- if (hasStores()) {
- output.writeInt32(2, getStores());
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeInt32(2, stores_);
}
- if (hasStorefiles()) {
- output.writeInt32(3, getStorefiles());
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeInt32(3, storefiles_);
}
- if (hasStorefileSizeMB()) {
- output.writeInt32(4, getStorefileSizeMB());
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeInt32(4, storefileSizeMB_);
}
- if (hasMemstoreSizeMB()) {
- output.writeInt32(5, getMemstoreSizeMB());
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ output.writeInt32(5, memstoreSizeMB_);
}
- if (hasStorefileIndexSizeMB()) {
- output.writeInt32(6, getStorefileIndexSizeMB());
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ output.writeInt32(6, storefileIndexSizeMB_);
}
getUnknownFields().writeTo(output);
}
@@ -141,35 +233,42 @@ public final class StorageClusterStatusMessage {
if (size != -1) return size;
size = 0;
- if (hasName()) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getName());
+ .computeBytesSize(1, name_);
}
- if (hasStores()) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(2, getStores());
+ .computeInt32Size(2, stores_);
}
- if (hasStorefiles()) {
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(3, getStorefiles());
+ .computeInt32Size(3, storefiles_);
}
- if (hasStorefileSizeMB()) {
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(4, getStorefileSizeMB());
+ .computeInt32Size(4, storefileSizeMB_);
}
- if (hasMemstoreSizeMB()) {
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(5, getMemstoreSizeMB());
+ .computeInt32Size(5, memstoreSizeMB_);
}
- if (hasStorefileIndexSizeMB()) {
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(6, getStorefileIndexSizeMB());
+ .computeInt32Size(6, storefileIndexSizeMB_);
}
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.StorageClusterStatusMessage.StorageClusterStatus.Region parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -244,34 +343,61 @@ public final class StorageClusterStatusMessage {
}
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 {
- private org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region result;
-
- // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region();
- return builder;
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.RegionOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_StorageClusterStatus_Region_descriptor;
}
- protected org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region internalGetResult() {
- return result;
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_StorageClusterStatus_Region_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region.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.StorageClusterStatusMessage.StorageClusterStatus.Region();
+ super.clear();
+ name_ = com.google.protobuf.ByteString.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ stores_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ storefiles_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ storefileSizeMB_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ memstoreSizeMB_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ storefileIndexSizeMB_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public Builder clone() {
- return create().mergeFrom(result);
+ return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
@@ -283,33 +409,55 @@ public final class StorageClusterStatusMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region.getDefaultInstance();
}
- public boolean isInitialized() {
- return result.isInitialized();
- }
public org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region build() {
- if (result != null && !isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
- return buildPartial();
+ return result;
}
private org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
- return buildPartial();
+ return result;
}
public org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region result = new org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
}
- org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region returnMe = result;
- result = null;
- return returnMe;
+ result.name_ = name_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.stores_ = stores_;
+ if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.storefiles_ = storefiles_;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000008;
+ }
+ result.storefileSizeMB_ = storefileSizeMB_;
+ if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
+ to_bitField0_ |= 0x00000010;
+ }
+ result.memstoreSizeMB_ = memstoreSizeMB_;
+ if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
+ to_bitField0_ |= 0x00000020;
+ }
+ result.storefileIndexSizeMB_ = storefileIndexSizeMB_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
@@ -345,6 +493,14 @@ public final class StorageClusterStatusMessage {
return this;
}
+ public final boolean isInitialized() {
+ if (!hasName()) {
+
+ return false;
+ }
+ return true;
+ }
+
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -357,152 +513,179 @@ public final class StorageClusterStatusMessage {
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: {
- setName(input.readBytes());
+ bitField0_ |= 0x00000001;
+ name_ = input.readBytes();
break;
}
case 16: {
- setStores(input.readInt32());
+ bitField0_ |= 0x00000002;
+ stores_ = input.readInt32();
break;
}
case 24: {
- setStorefiles(input.readInt32());
+ bitField0_ |= 0x00000004;
+ storefiles_ = input.readInt32();
break;
}
case 32: {
- setStorefileSizeMB(input.readInt32());
+ bitField0_ |= 0x00000008;
+ storefileSizeMB_ = input.readInt32();
break;
}
case 40: {
- setMemstoreSizeMB(input.readInt32());
+ bitField0_ |= 0x00000010;
+ memstoreSizeMB_ = input.readInt32();
break;
}
case 48: {
- setStorefileIndexSizeMB(input.readInt32());
+ bitField0_ |= 0x00000020;
+ storefileIndexSizeMB_ = input.readInt32();
break;
}
}
}
}
+ private int bitField0_;
// required bytes name = 1;
+ private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasName() {
- return result.hasName();
+ return ((bitField0_ & 0x00000001) == 0x00000001);
}
public com.google.protobuf.ByteString getName() {
- return result.getName();
+ return name_;
}
public Builder setName(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- result.hasName = true;
- result.name_ = value;
+ bitField0_ |= 0x00000001;
+ name_ = value;
+ onChanged();
return this;
}
public Builder clearName() {
- result.hasName = false;
- result.name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ name_ = getDefaultInstance().getName();
+ onChanged();
return this;
}
// optional int32 stores = 2;
+ private int stores_ ;
public boolean hasStores() {
- return result.hasStores();
+ return ((bitField0_ & 0x00000002) == 0x00000002);
}
public int getStores() {
- return result.getStores();
+ return stores_;
}
public Builder setStores(int value) {
- result.hasStores = true;
- result.stores_ = value;
+ bitField0_ |= 0x00000002;
+ stores_ = value;
+ onChanged();
return this;
}
public Builder clearStores() {
- result.hasStores = false;
- result.stores_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ stores_ = 0;
+ onChanged();
return this;
}
// optional int32 storefiles = 3;
+ private int storefiles_ ;
public boolean hasStorefiles() {
- return result.hasStorefiles();
+ return ((bitField0_ & 0x00000004) == 0x00000004);
}
public int getStorefiles() {
- return result.getStorefiles();
+ return storefiles_;
}
public Builder setStorefiles(int value) {
- result.hasStorefiles = true;
- result.storefiles_ = value;
+ bitField0_ |= 0x00000004;
+ storefiles_ = value;
+ onChanged();
return this;
}
public Builder clearStorefiles() {
- result.hasStorefiles = false;
- result.storefiles_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ storefiles_ = 0;
+ onChanged();
return this;
}
// optional int32 storefileSizeMB = 4;
+ private int storefileSizeMB_ ;
public boolean hasStorefileSizeMB() {
- return result.hasStorefileSizeMB();
+ return ((bitField0_ & 0x00000008) == 0x00000008);
}
public int getStorefileSizeMB() {
- return result.getStorefileSizeMB();
+ return storefileSizeMB_;
}
public Builder setStorefileSizeMB(int value) {
- result.hasStorefileSizeMB = true;
- result.storefileSizeMB_ = value;
+ bitField0_ |= 0x00000008;
+ storefileSizeMB_ = value;
+ onChanged();
return this;
}
public Builder clearStorefileSizeMB() {
- result.hasStorefileSizeMB = false;
- result.storefileSizeMB_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ storefileSizeMB_ = 0;
+ onChanged();
return this;
}
// optional int32 memstoreSizeMB = 5;
+ private int memstoreSizeMB_ ;
public boolean hasMemstoreSizeMB() {
- return result.hasMemstoreSizeMB();
+ return ((bitField0_ & 0x00000010) == 0x00000010);
}
public int getMemstoreSizeMB() {
- return result.getMemstoreSizeMB();
+ return memstoreSizeMB_;
}
public Builder setMemstoreSizeMB(int value) {
- result.hasMemstoreSizeMB = true;
- result.memstoreSizeMB_ = value;
+ bitField0_ |= 0x00000010;
+ memstoreSizeMB_ = value;
+ onChanged();
return this;
}
public Builder clearMemstoreSizeMB() {
- result.hasMemstoreSizeMB = false;
- result.memstoreSizeMB_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ memstoreSizeMB_ = 0;
+ onChanged();
return this;
}
// optional int32 storefileIndexSizeMB = 6;
+ private int storefileIndexSizeMB_ ;
public boolean hasStorefileIndexSizeMB() {
- return result.hasStorefileIndexSizeMB();
+ return ((bitField0_ & 0x00000020) == 0x00000020);
}
public int getStorefileIndexSizeMB() {
- return result.getStorefileIndexSizeMB();
+ return storefileIndexSizeMB_;
}
public Builder setStorefileIndexSizeMB(int value) {
- result.hasStorefileIndexSizeMB = true;
- result.storefileIndexSizeMB_ = value;
+ bitField0_ |= 0x00000020;
+ storefileIndexSizeMB_ = value;
+ onChanged();
return this;
}
public Builder clearStorefileIndexSizeMB() {
- result.hasStorefileIndexSizeMB = false;
- result.storefileIndexSizeMB_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ storefileIndexSizeMB_ = 0;
+ onChanged();
return this;
}
@@ -511,18 +694,51 @@ public final class StorageClusterStatusMessage {
static {
defaultInstance = new Region(true);
- org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.internalForceInit();
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatus.Region)
}
+ public interface NodeOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required string name = 1;
+ boolean hasName();
+ String getName();
+
+ // optional int64 startCode = 2;
+ boolean hasStartCode();
+ long getStartCode();
+
+ // optional int32 requests = 3;
+ boolean hasRequests();
+ int getRequests();
+
+ // optional int32 heapSizeMB = 4;
+ boolean hasHeapSizeMB();
+ int getHeapSizeMB();
+
+ // optional int32 maxHeapSizeMB = 5;
+ boolean hasMaxHeapSizeMB();
+ int getMaxHeapSizeMB();
+
+ // repeated .org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatus.Region regions = 6;
+ java.util.List
+ getRegionsList();
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region getRegions(int index);
+ int getRegionsCount();
+ java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.RegionOrBuilder>
+ getRegionsOrBuilderList();
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.RegionOrBuilder getRegionsOrBuilder(
+ int index);
+ }
public static final class Node extends
- com.google.protobuf.GeneratedMessage {
+ com.google.protobuf.GeneratedMessage
+ implements NodeOrBuilder {
// Use Node.newBuilder() to construct.
- private Node() {
- initFields();
+ private Node(Builder builder) {
+ super(builder);
}
private Node(boolean noInit) {}
@@ -545,83 +761,147 @@ public final class StorageClusterStatusMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_StorageClusterStatus_Node_fieldAccessorTable;
}
+ private int bitField0_;
// required string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
- private boolean hasName;
- private java.lang.String name_ = "";
- public boolean hasName() { return hasName; }
- public java.lang.String getName() { return name_; }
+ private java.lang.Object name_;
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getName() {
+ java.lang.Object ref = name_;
+ 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)) {
+ name_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
// optional int64 startCode = 2;
public static final int STARTCODE_FIELD_NUMBER = 2;
- private boolean hasStartCode;
- private long startCode_ = 0L;
- public boolean hasStartCode() { return hasStartCode; }
- public long getStartCode() { return startCode_; }
+ private long startCode_;
+ public boolean hasStartCode() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public long getStartCode() {
+ return startCode_;
+ }
// optional int32 requests = 3;
public static final int REQUESTS_FIELD_NUMBER = 3;
- private boolean hasRequests;
- private int requests_ = 0;
- public boolean hasRequests() { return hasRequests; }
- public int getRequests() { return requests_; }
+ private int requests_;
+ public boolean hasRequests() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ public int getRequests() {
+ return requests_;
+ }
// optional int32 heapSizeMB = 4;
public static final int HEAPSIZEMB_FIELD_NUMBER = 4;
- private boolean hasHeapSizeMB;
- private int heapSizeMB_ = 0;
- public boolean hasHeapSizeMB() { return hasHeapSizeMB; }
- public int getHeapSizeMB() { return heapSizeMB_; }
+ private int heapSizeMB_;
+ public boolean hasHeapSizeMB() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ public int getHeapSizeMB() {
+ return heapSizeMB_;
+ }
// optional int32 maxHeapSizeMB = 5;
public static final int MAXHEAPSIZEMB_FIELD_NUMBER = 5;
- private boolean hasMaxHeapSizeMB;
- private int maxHeapSizeMB_ = 0;
- public boolean hasMaxHeapSizeMB() { return hasMaxHeapSizeMB; }
- public int getMaxHeapSizeMB() { return maxHeapSizeMB_; }
+ private int maxHeapSizeMB_;
+ public boolean hasMaxHeapSizeMB() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ public int getMaxHeapSizeMB() {
+ return maxHeapSizeMB_;
+ }
// repeated .org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatus.Region regions = 6;
public static final int REGIONS_FIELD_NUMBER = 6;
- private java.util.List regions_ =
- java.util.Collections.emptyList();
+ private java.util.List regions_;
public java.util.List getRegionsList() {
return regions_;
}
- public int getRegionsCount() { return regions_.size(); }
+ public java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.RegionOrBuilder>
+ getRegionsOrBuilderList() {
+ return regions_;
+ }
+ public int getRegionsCount() {
+ return regions_.size();
+ }
public org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region getRegions(int index) {
return regions_.get(index);
}
+ public org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.RegionOrBuilder getRegionsOrBuilder(
+ int index) {
+ return regions_.get(index);
+ }
private void initFields() {
+ name_ = "";
+ startCode_ = 0L;
+ requests_ = 0;
+ heapSizeMB_ = 0;
+ maxHeapSizeMB_ = 0;
+ regions_ = java.util.Collections.emptyList();
}
+ private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
- if (!hasName) return false;
- for (org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region element : getRegionsList()) {
- if (!element.isInitialized()) return false;
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasName()) {
+ memoizedIsInitialized = 0;
+ return false;
}
+ for (int i = 0; i < getRegionsCount(); i++) {
+ if (!getRegions(i).isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ }
+ memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
- if (hasName()) {
- output.writeString(1, getName());
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getNameBytes());
}
- if (hasStartCode()) {
- output.writeInt64(2, getStartCode());
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeInt64(2, startCode_);
}
- if (hasRequests()) {
- output.writeInt32(3, getRequests());
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeInt32(3, requests_);
}
- if (hasHeapSizeMB()) {
- output.writeInt32(4, getHeapSizeMB());
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeInt32(4, heapSizeMB_);
}
- if (hasMaxHeapSizeMB()) {
- output.writeInt32(5, getMaxHeapSizeMB());
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ output.writeInt32(5, maxHeapSizeMB_);
}
- for (org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region element : getRegionsList()) {
- output.writeMessage(6, element);
+ for (int i = 0; i < regions_.size(); i++) {
+ output.writeMessage(6, regions_.get(i));
}
getUnknownFields().writeTo(output);
}
@@ -632,35 +912,42 @@ public final class StorageClusterStatusMessage {
if (size != -1) return size;
size = 0;
- if (hasName()) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeStringSize(1, getName());
+ .computeBytesSize(1, getNameBytes());
}
- if (hasStartCode()) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(2, getStartCode());
+ .computeInt64Size(2, startCode_);
}
- if (hasRequests()) {
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(3, getRequests());
+ .computeInt32Size(3, requests_);
}
- if (hasHeapSizeMB()) {
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(4, getHeapSizeMB());
+ .computeInt32Size(4, heapSizeMB_);
}
- if (hasMaxHeapSizeMB()) {
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(5, getMaxHeapSizeMB());
+ .computeInt32Size(5, maxHeapSizeMB_);
}
- for (org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region element : getRegionsList()) {
+ for (int i = 0; i < regions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(6, element);
+ .computeMessageSize(6, regions_.get(i));
}
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.StorageClusterStatusMessage.StorageClusterStatus.Node parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -735,34 +1022,66 @@ public final class StorageClusterStatusMessage {
}
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 {
- private org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node result;
-
- // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node();
- return builder;
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.NodeOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_StorageClusterStatus_Node_descriptor;
}
- protected org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node internalGetResult() {
- return result;
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_StorageClusterStatus_Node_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getRegionsFieldBuilder();
+ }
+ }
+ private static Builder create() {
+ return new Builder();
}
public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
+ super.clear();
+ name_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ startCode_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ requests_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ heapSizeMB_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ maxHeapSizeMB_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ if (regionsBuilder_ == null) {
+ regions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ } else {
+ regionsBuilder_.clear();
}
- result = new org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node();
return this;
}
public Builder clone() {
- return create().mergeFrom(result);
+ return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
@@ -774,37 +1093,60 @@ public final class StorageClusterStatusMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node.getDefaultInstance();
}
- public boolean isInitialized() {
- return result.isInitialized();
- }
public org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node build() {
- if (result != null && !isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
- return buildPartial();
+ return result;
}
private org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
- return buildPartial();
+ return result;
}
public org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node result = new org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
}
- if (result.regions_ != java.util.Collections.EMPTY_LIST) {
- result.regions_ =
- java.util.Collections.unmodifiableList(result.regions_);
+ result.name_ = name_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
}
- org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node returnMe = result;
- result = null;
- return returnMe;
+ result.startCode_ = startCode_;
+ if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.requests_ = requests_;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000008;
+ }
+ result.heapSizeMB_ = heapSizeMB_;
+ if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
+ to_bitField0_ |= 0x00000010;
+ }
+ result.maxHeapSizeMB_ = maxHeapSizeMB_;
+ if (regionsBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ regions_ = java.util.Collections.unmodifiableList(regions_);
+ bitField0_ = (bitField0_ & ~0x00000020);
+ }
+ result.regions_ = regions_;
+ } else {
+ result.regions_ = regionsBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
@@ -833,16 +1175,50 @@ public final class StorageClusterStatusMessage {
if (other.hasMaxHeapSizeMB()) {
setMaxHeapSizeMB(other.getMaxHeapSizeMB());
}
- if (!other.regions_.isEmpty()) {
- if (result.regions_.isEmpty()) {
- result.regions_ = new java.util.ArrayList();
+ if (regionsBuilder_ == null) {
+ if (!other.regions_.isEmpty()) {
+ if (regions_.isEmpty()) {
+ regions_ = other.regions_;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ } else {
+ ensureRegionsIsMutable();
+ regions_.addAll(other.regions_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.regions_.isEmpty()) {
+ if (regionsBuilder_.isEmpty()) {
+ regionsBuilder_.dispose();
+ regionsBuilder_ = null;
+ regions_ = other.regions_;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ regionsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getRegionsFieldBuilder() : null;
+ } else {
+ regionsBuilder_.addAllMessages(other.regions_);
+ }
}
- result.regions_.addAll(other.regions_);
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
+ public final boolean isInitialized() {
+ if (!hasName()) {
+
+ return false;
+ }
+ for (int i = 0; i < getRegionsCount(); i++) {
+ if (!getRegions(i).isInitialized()) {
+
+ return false;
+ }
+ }
+ return true;
+ }
+
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -855,33 +1231,40 @@ public final class StorageClusterStatusMessage {
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: {
- setName(input.readString());
+ bitField0_ |= 0x00000001;
+ name_ = input.readBytes();
break;
}
case 16: {
- setStartCode(input.readInt64());
+ bitField0_ |= 0x00000002;
+ startCode_ = input.readInt64();
break;
}
case 24: {
- setRequests(input.readInt32());
+ bitField0_ |= 0x00000004;
+ requests_ = input.readInt32();
break;
}
case 32: {
- setHeapSizeMB(input.readInt32());
+ bitField0_ |= 0x00000008;
+ heapSizeMB_ = input.readInt32();
break;
}
case 40: {
- setMaxHeapSizeMB(input.readInt32());
+ bitField0_ |= 0x00000010;
+ maxHeapSizeMB_ = input.readInt32();
break;
}
case 50: {
@@ -894,234 +1277,430 @@ public final class StorageClusterStatusMessage {
}
}
+ private int bitField0_;
// required string name = 1;
+ private java.lang.Object name_ = "";
public boolean hasName() {
- return result.hasName();
+ return ((bitField0_ & 0x00000001) == 0x00000001);
}
- public java.lang.String getName() {
- return result.getName();
+ public String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
}
- public Builder setName(java.lang.String value) {
+ public Builder setName(String value) {
if (value == null) {
throw new NullPointerException();
}
- result.hasName = true;
- result.name_ = value;
+ bitField0_ |= 0x00000001;
+ name_ = value;
+ onChanged();
return this;
}
public Builder clearName() {
- result.hasName = false;
- result.name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ name_ = getDefaultInstance().getName();
+ onChanged();
return this;
}
+ void setName(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000001;
+ name_ = value;
+ onChanged();
+ }
// optional int64 startCode = 2;
+ private long startCode_ ;
public boolean hasStartCode() {
- return result.hasStartCode();
+ return ((bitField0_ & 0x00000002) == 0x00000002);
}
public long getStartCode() {
- return result.getStartCode();
+ return startCode_;
}
public Builder setStartCode(long value) {
- result.hasStartCode = true;
- result.startCode_ = value;
+ bitField0_ |= 0x00000002;
+ startCode_ = value;
+ onChanged();
return this;
}
public Builder clearStartCode() {
- result.hasStartCode = false;
- result.startCode_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ startCode_ = 0L;
+ onChanged();
return this;
}
// optional int32 requests = 3;
+ private int requests_ ;
public boolean hasRequests() {
- return result.hasRequests();
+ return ((bitField0_ & 0x00000004) == 0x00000004);
}
public int getRequests() {
- return result.getRequests();
+ return requests_;
}
public Builder setRequests(int value) {
- result.hasRequests = true;
- result.requests_ = value;
+ bitField0_ |= 0x00000004;
+ requests_ = value;
+ onChanged();
return this;
}
public Builder clearRequests() {
- result.hasRequests = false;
- result.requests_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ requests_ = 0;
+ onChanged();
return this;
}
// optional int32 heapSizeMB = 4;
+ private int heapSizeMB_ ;
public boolean hasHeapSizeMB() {
- return result.hasHeapSizeMB();
+ return ((bitField0_ & 0x00000008) == 0x00000008);
}
public int getHeapSizeMB() {
- return result.getHeapSizeMB();
+ return heapSizeMB_;
}
public Builder setHeapSizeMB(int value) {
- result.hasHeapSizeMB = true;
- result.heapSizeMB_ = value;
+ bitField0_ |= 0x00000008;
+ heapSizeMB_ = value;
+ onChanged();
return this;
}
public Builder clearHeapSizeMB() {
- result.hasHeapSizeMB = false;
- result.heapSizeMB_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ heapSizeMB_ = 0;
+ onChanged();
return this;
}
// optional int32 maxHeapSizeMB = 5;
+ private int maxHeapSizeMB_ ;
public boolean hasMaxHeapSizeMB() {
- return result.hasMaxHeapSizeMB();
+ return ((bitField0_ & 0x00000010) == 0x00000010);
}
public int getMaxHeapSizeMB() {
- return result.getMaxHeapSizeMB();
+ return maxHeapSizeMB_;
}
public Builder setMaxHeapSizeMB(int value) {
- result.hasMaxHeapSizeMB = true;
- result.maxHeapSizeMB_ = value;
+ bitField0_ |= 0x00000010;
+ maxHeapSizeMB_ = value;
+ onChanged();
return this;
}
public Builder clearMaxHeapSizeMB() {
- result.hasMaxHeapSizeMB = false;
- result.maxHeapSizeMB_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ maxHeapSizeMB_ = 0;
+ onChanged();
return this;
}
// repeated .org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatus.Region regions = 6;
+ private java.util.List regions_ =
+ java.util.Collections.emptyList();
+ private void ensureRegionsIsMutable() {
+ if (!((bitField0_ & 0x00000020) == 0x00000020)) {
+ regions_ = new java.util.ArrayList(regions_);
+ bitField0_ |= 0x00000020;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.RegionOrBuilder> regionsBuilder_;
+
public java.util.List getRegionsList() {
- return java.util.Collections.unmodifiableList(result.regions_);
+ if (regionsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(regions_);
+ } else {
+ return regionsBuilder_.getMessageList();
+ }
}
public int getRegionsCount() {
- return result.getRegionsCount();
+ if (regionsBuilder_ == null) {
+ return regions_.size();
+ } else {
+ return regionsBuilder_.getCount();
+ }
}
public org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region getRegions(int index) {
- return result.getRegions(index);
- }
- public Builder setRegions(int index, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region value) {
- if (value == null) {
- throw new NullPointerException();
+ if (regionsBuilder_ == null) {
+ return regions_.get(index);
+ } else {
+ return regionsBuilder_.getMessage(index);
+ }
+ }
+ public Builder setRegions(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region value) {
+ if (regionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRegionsIsMutable();
+ regions_.set(index, value);
+ onChanged();
+ } else {
+ regionsBuilder_.setMessage(index, value);
}
- result.regions_.set(index, value);
return this;
}
- public Builder setRegions(int index, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region.Builder builderForValue) {
- result.regions_.set(index, builderForValue.build());
+ public Builder setRegions(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region.Builder builderForValue) {
+ if (regionsBuilder_ == null) {
+ ensureRegionsIsMutable();
+ regions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ regionsBuilder_.setMessage(index, builderForValue.build());
+ }
return this;
}
public Builder addRegions(org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region value) {
- if (value == null) {
- throw new NullPointerException();
+ if (regionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRegionsIsMutable();
+ regions_.add(value);
+ onChanged();
+ } else {
+ regionsBuilder_.addMessage(value);
}
- if (result.regions_.isEmpty()) {
- result.regions_ = new java.util.ArrayList();
- }
- result.regions_.add(value);
return this;
}
- public Builder addRegions(org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region.Builder builderForValue) {
- if (result.regions_.isEmpty()) {
- result.regions_ = new java.util.ArrayList();
+ public Builder addRegions(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region value) {
+ if (regionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRegionsIsMutable();
+ regions_.add(index, value);
+ onChanged();
+ } else {
+ regionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ public Builder addRegions(
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region.Builder builderForValue) {
+ if (regionsBuilder_ == null) {
+ ensureRegionsIsMutable();
+ regions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ regionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ public Builder addRegions(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region.Builder builderForValue) {
+ if (regionsBuilder_ == null) {
+ ensureRegionsIsMutable();
+ regions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ regionsBuilder_.addMessage(index, builderForValue.build());
}
- result.regions_.add(builderForValue.build());
return this;
}
public Builder addAllRegions(
java.lang.Iterable extends org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region> values) {
- if (result.regions_.isEmpty()) {
- result.regions_ = new java.util.ArrayList();
+ if (regionsBuilder_ == null) {
+ ensureRegionsIsMutable();
+ super.addAll(values, regions_);
+ onChanged();
+ } else {
+ regionsBuilder_.addAllMessages(values);
}
- super.addAll(values, result.regions_);
return this;
}
public Builder clearRegions() {
- result.regions_ = java.util.Collections.emptyList();
+ if (regionsBuilder_ == null) {
+ regions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ } else {
+ regionsBuilder_.clear();
+ }
return this;
}
+ public Builder removeRegions(int index) {
+ if (regionsBuilder_ == null) {
+ ensureRegionsIsMutable();
+ regions_.remove(index);
+ onChanged();
+ } else {
+ regionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region.Builder getRegionsBuilder(
+ int index) {
+ return getRegionsFieldBuilder().getBuilder(index);
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.RegionOrBuilder getRegionsOrBuilder(
+ int index) {
+ if (regionsBuilder_ == null) {
+ return regions_.get(index); } else {
+ return regionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ public java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.RegionOrBuilder>
+ getRegionsOrBuilderList() {
+ if (regionsBuilder_ != null) {
+ return regionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(regions_);
+ }
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region.Builder addRegionsBuilder() {
+ return getRegionsFieldBuilder().addBuilder(
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region.getDefaultInstance());
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region.Builder addRegionsBuilder(
+ int index) {
+ return getRegionsFieldBuilder().addBuilder(
+ index, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region.getDefaultInstance());
+ }
+ public java.util.List
+ getRegionsBuilderList() {
+ return getRegionsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.RegionOrBuilder>
+ getRegionsFieldBuilder() {
+ if (regionsBuilder_ == null) {
+ regionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Region.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.RegionOrBuilder>(
+ regions_,
+ ((bitField0_ & 0x00000020) == 0x00000020),
+ getParentForChildren(),
+ isClean());
+ regions_ = null;
+ }
+ return regionsBuilder_;
+ }
// @@protoc_insertion_point(builder_scope:org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatus.Node)
}
static {
defaultInstance = new Node(true);
- org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.internalForceInit();
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatus.Node)
}
+ private int bitField0_;
// repeated .org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatus.Node liveNodes = 1;
public static final int LIVENODES_FIELD_NUMBER = 1;
- private java.util.List liveNodes_ =
- java.util.Collections.emptyList();
+ private java.util.List liveNodes_;
public java.util.List getLiveNodesList() {
return liveNodes_;
}
- public int getLiveNodesCount() { return liveNodes_.size(); }
+ public java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.NodeOrBuilder>
+ getLiveNodesOrBuilderList() {
+ return liveNodes_;
+ }
+ public int getLiveNodesCount() {
+ return liveNodes_.size();
+ }
public org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node getLiveNodes(int index) {
return liveNodes_.get(index);
}
+ public org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.NodeOrBuilder getLiveNodesOrBuilder(
+ int index) {
+ return liveNodes_.get(index);
+ }
// repeated string deadNodes = 2;
public static final int DEADNODES_FIELD_NUMBER = 2;
- private java.util.List deadNodes_ =
- java.util.Collections.emptyList();
- public java.util.List getDeadNodesList() {
+ private com.google.protobuf.LazyStringList deadNodes_;
+ public java.util.List
+ getDeadNodesList() {
return deadNodes_;
}
- public int getDeadNodesCount() { return deadNodes_.size(); }
- public java.lang.String getDeadNodes(int index) {
+ public int getDeadNodesCount() {
+ return deadNodes_.size();
+ }
+ public String getDeadNodes(int index) {
return deadNodes_.get(index);
}
// optional int32 regions = 3;
public static final int REGIONS_FIELD_NUMBER = 3;
- private boolean hasRegions;
- private int regions_ = 0;
- public boolean hasRegions() { return hasRegions; }
- public int getRegions() { return regions_; }
+ private int regions_;
+ public boolean hasRegions() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public int getRegions() {
+ return regions_;
+ }
// optional int32 requests = 4;
public static final int REQUESTS_FIELD_NUMBER = 4;
- private boolean hasRequests;
- private int requests_ = 0;
- public boolean hasRequests() { return hasRequests; }
- public int getRequests() { return requests_; }
+ private int requests_;
+ public boolean hasRequests() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public int getRequests() {
+ return requests_;
+ }
// optional double averageLoad = 5;
public static final int AVERAGELOAD_FIELD_NUMBER = 5;
- private boolean hasAverageLoad;
- private double averageLoad_ = 0D;
- public boolean hasAverageLoad() { return hasAverageLoad; }
- public double getAverageLoad() { return averageLoad_; }
+ private double averageLoad_;
+ public boolean hasAverageLoad() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ public double getAverageLoad() {
+ return averageLoad_;
+ }
private void initFields() {
+ liveNodes_ = java.util.Collections.emptyList();
+ deadNodes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ regions_ = 0;
+ requests_ = 0;
+ averageLoad_ = 0D;
}
+ private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
- for (org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node element : getLiveNodesList()) {
- if (!element.isInitialized()) return false;
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ for (int i = 0; i < getLiveNodesCount(); i++) {
+ if (!getLiveNodes(i).isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
}
+ memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
- for (org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node element : getLiveNodesList()) {
- output.writeMessage(1, element);
+ for (int i = 0; i < liveNodes_.size(); i++) {
+ output.writeMessage(1, liveNodes_.get(i));
}
- for (java.lang.String element : getDeadNodesList()) {
- output.writeString(2, element);
+ for (int i = 0; i < deadNodes_.size(); i++) {
+ output.writeBytes(2, deadNodes_.getByteString(i));
}
- if (hasRegions()) {
- output.writeInt32(3, getRegions());
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeInt32(3, regions_);
}
- if (hasRequests()) {
- output.writeInt32(4, getRequests());
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeInt32(4, requests_);
}
- if (hasAverageLoad()) {
- output.writeDouble(5, getAverageLoad());
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeDouble(5, averageLoad_);
}
getUnknownFields().writeTo(output);
}
@@ -1132,36 +1711,43 @@ public final class StorageClusterStatusMessage {
if (size != -1) return size;
size = 0;
- for (org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node element : getLiveNodesList()) {
+ for (int i = 0; i < liveNodes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, element);
+ .computeMessageSize(1, liveNodes_.get(i));
}
{
int dataSize = 0;
- for (java.lang.String element : getDeadNodesList()) {
+ for (int i = 0; i < deadNodes_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
- .computeStringSizeNoTag(element);
+ .computeBytesSizeNoTag(deadNodes_.getByteString(i));
}
size += dataSize;
size += 1 * getDeadNodesList().size();
}
- if (hasRegions()) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(3, getRegions());
+ .computeInt32Size(3, regions_);
}
- if (hasRequests()) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(4, getRequests());
+ .computeInt32Size(4, requests_);
}
- if (hasAverageLoad()) {
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(5, getAverageLoad());
+ .computeDoubleSize(5, averageLoad_);
}
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.StorageClusterStatusMessage.StorageClusterStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1236,34 +1822,64 @@ public final class StorageClusterStatusMessage {
}
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 {
- private org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus result;
-
- // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus();
- return builder;
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatusOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_StorageClusterStatus_descriptor;
}
- protected org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus internalGetResult() {
- return result;
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_StorageClusterStatus_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getLiveNodesFieldBuilder();
+ }
+ }
+ private static Builder create() {
+ return new Builder();
}
public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
+ super.clear();
+ if (liveNodesBuilder_ == null) {
+ liveNodes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ liveNodesBuilder_.clear();
}
- result = new org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus();
+ deadNodes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ regions_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ requests_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ averageLoad_ = 0D;
+ bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
- return create().mergeFrom(result);
+ return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
@@ -1275,41 +1891,58 @@ public final class StorageClusterStatusMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.getDefaultInstance();
}
- public boolean isInitialized() {
- return result.isInitialized();
- }
public org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus build() {
- if (result != null && !isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
- return buildPartial();
+ return result;
}
private org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
- return buildPartial();
+ return result;
}
public org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus result = new org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (liveNodesBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ liveNodes_ = java.util.Collections.unmodifiableList(liveNodes_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.liveNodes_ = liveNodes_;
+ } else {
+ result.liveNodes_ = liveNodesBuilder_.build();
}
- if (result.liveNodes_ != java.util.Collections.EMPTY_LIST) {
- result.liveNodes_ =
- java.util.Collections.unmodifiableList(result.liveNodes_);
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ deadNodes_ = new com.google.protobuf.UnmodifiableLazyStringList(
+ deadNodes_);
+ bitField0_ = (bitField0_ & ~0x00000002);
}
- if (result.deadNodes_ != java.util.Collections.EMPTY_LIST) {
- result.deadNodes_ =
- java.util.Collections.unmodifiableList(result.deadNodes_);
+ result.deadNodes_ = deadNodes_;
+ if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ to_bitField0_ |= 0x00000001;
}
- org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus returnMe = result;
- result = null;
- return returnMe;
+ result.regions_ = regions_;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.requests_ = requests_;
+ if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.averageLoad_ = averageLoad_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
@@ -1323,17 +1956,41 @@ public final class StorageClusterStatusMessage {
public Builder mergeFrom(org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus other) {
if (other == org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.getDefaultInstance()) return this;
- if (!other.liveNodes_.isEmpty()) {
- if (result.liveNodes_.isEmpty()) {
- result.liveNodes_ = new java.util.ArrayList();
+ if (liveNodesBuilder_ == null) {
+ if (!other.liveNodes_.isEmpty()) {
+ if (liveNodes_.isEmpty()) {
+ liveNodes_ = other.liveNodes_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureLiveNodesIsMutable();
+ liveNodes_.addAll(other.liveNodes_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.liveNodes_.isEmpty()) {
+ if (liveNodesBuilder_.isEmpty()) {
+ liveNodesBuilder_.dispose();
+ liveNodesBuilder_ = null;
+ liveNodes_ = other.liveNodes_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ liveNodesBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getLiveNodesFieldBuilder() : null;
+ } else {
+ liveNodesBuilder_.addAllMessages(other.liveNodes_);
+ }
}
- result.liveNodes_.addAll(other.liveNodes_);
}
if (!other.deadNodes_.isEmpty()) {
- if (result.deadNodes_.isEmpty()) {
- result.deadNodes_ = new java.util.ArrayList();
+ if (deadNodes_.isEmpty()) {
+ deadNodes_ = other.deadNodes_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureDeadNodesIsMutable();
+ deadNodes_.addAll(other.deadNodes_);
}
- result.deadNodes_.addAll(other.deadNodes_);
+ onChanged();
}
if (other.hasRegions()) {
setRegions(other.getRegions());
@@ -1348,6 +2005,16 @@ public final class StorageClusterStatusMessage {
return this;
}
+ public final boolean isInitialized() {
+ for (int i = 0; i < getLiveNodesCount(); i++) {
+ if (!getLiveNodes(i).isInitialized()) {
+
+ return false;
+ }
+ }
+ return true;
+ }
+
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -1360,11 +2027,13 @@ public final class StorageClusterStatusMessage {
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;
@@ -1376,168 +2045,333 @@ public final class StorageClusterStatusMessage {
break;
}
case 18: {
- addDeadNodes(input.readString());
+ ensureDeadNodesIsMutable();
+ deadNodes_.add(input.readBytes());
break;
}
case 24: {
- setRegions(input.readInt32());
+ bitField0_ |= 0x00000004;
+ regions_ = input.readInt32();
break;
}
case 32: {
- setRequests(input.readInt32());
+ bitField0_ |= 0x00000008;
+ requests_ = input.readInt32();
break;
}
case 41: {
- setAverageLoad(input.readDouble());
+ bitField0_ |= 0x00000010;
+ averageLoad_ = input.readDouble();
break;
}
}
}
}
+ private int bitField0_;
// repeated .org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatus.Node liveNodes = 1;
+ private java.util.List liveNodes_ =
+ java.util.Collections.emptyList();
+ private void ensureLiveNodesIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ liveNodes_ = new java.util.ArrayList(liveNodes_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.NodeOrBuilder> liveNodesBuilder_;
+
public java.util.List getLiveNodesList() {
- return java.util.Collections.unmodifiableList(result.liveNodes_);
+ if (liveNodesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(liveNodes_);
+ } else {
+ return liveNodesBuilder_.getMessageList();
+ }
}
public int getLiveNodesCount() {
- return result.getLiveNodesCount();
+ if (liveNodesBuilder_ == null) {
+ return liveNodes_.size();
+ } else {
+ return liveNodesBuilder_.getCount();
+ }
}
public org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node getLiveNodes(int index) {
- return result.getLiveNodes(index);
- }
- public Builder setLiveNodes(int index, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node value) {
- if (value == null) {
- throw new NullPointerException();
+ if (liveNodesBuilder_ == null) {
+ return liveNodes_.get(index);
+ } else {
+ return liveNodesBuilder_.getMessage(index);
+ }
+ }
+ public Builder setLiveNodes(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node value) {
+ if (liveNodesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLiveNodesIsMutable();
+ liveNodes_.set(index, value);
+ onChanged();
+ } else {
+ liveNodesBuilder_.setMessage(index, value);
}
- result.liveNodes_.set(index, value);
return this;
}
- public Builder setLiveNodes(int index, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node.Builder builderForValue) {
- result.liveNodes_.set(index, builderForValue.build());
+ public Builder setLiveNodes(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node.Builder builderForValue) {
+ if (liveNodesBuilder_ == null) {
+ ensureLiveNodesIsMutable();
+ liveNodes_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ liveNodesBuilder_.setMessage(index, builderForValue.build());
+ }
return this;
}
public Builder addLiveNodes(org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node value) {
- if (value == null) {
- throw new NullPointerException();
+ if (liveNodesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLiveNodesIsMutable();
+ liveNodes_.add(value);
+ onChanged();
+ } else {
+ liveNodesBuilder_.addMessage(value);
}
- if (result.liveNodes_.isEmpty()) {
- result.liveNodes_ = new java.util.ArrayList();
- }
- result.liveNodes_.add(value);
return this;
}
- public Builder addLiveNodes(org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node.Builder builderForValue) {
- if (result.liveNodes_.isEmpty()) {
- result.liveNodes_ = new java.util.ArrayList();
+ public Builder addLiveNodes(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node value) {
+ if (liveNodesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLiveNodesIsMutable();
+ liveNodes_.add(index, value);
+ onChanged();
+ } else {
+ liveNodesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ public Builder addLiveNodes(
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node.Builder builderForValue) {
+ if (liveNodesBuilder_ == null) {
+ ensureLiveNodesIsMutable();
+ liveNodes_.add(builderForValue.build());
+ onChanged();
+ } else {
+ liveNodesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ public Builder addLiveNodes(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node.Builder builderForValue) {
+ if (liveNodesBuilder_ == null) {
+ ensureLiveNodesIsMutable();
+ liveNodes_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ liveNodesBuilder_.addMessage(index, builderForValue.build());
}
- result.liveNodes_.add(builderForValue.build());
return this;
}
public Builder addAllLiveNodes(
java.lang.Iterable extends org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node> values) {
- if (result.liveNodes_.isEmpty()) {
- result.liveNodes_ = new java.util.ArrayList();
+ if (liveNodesBuilder_ == null) {
+ ensureLiveNodesIsMutable();
+ super.addAll(values, liveNodes_);
+ onChanged();
+ } else {
+ liveNodesBuilder_.addAllMessages(values);
}
- super.addAll(values, result.liveNodes_);
return this;
}
public Builder clearLiveNodes() {
- result.liveNodes_ = java.util.Collections.emptyList();
+ if (liveNodesBuilder_ == null) {
+ liveNodes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ liveNodesBuilder_.clear();
+ }
return this;
}
+ public Builder removeLiveNodes(int index) {
+ if (liveNodesBuilder_ == null) {
+ ensureLiveNodesIsMutable();
+ liveNodes_.remove(index);
+ onChanged();
+ } else {
+ liveNodesBuilder_.remove(index);
+ }
+ return this;
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node.Builder getLiveNodesBuilder(
+ int index) {
+ return getLiveNodesFieldBuilder().getBuilder(index);
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.NodeOrBuilder getLiveNodesOrBuilder(
+ int index) {
+ if (liveNodesBuilder_ == null) {
+ return liveNodes_.get(index); } else {
+ return liveNodesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ public java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.NodeOrBuilder>
+ getLiveNodesOrBuilderList() {
+ if (liveNodesBuilder_ != null) {
+ return liveNodesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(liveNodes_);
+ }
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node.Builder addLiveNodesBuilder() {
+ return getLiveNodesFieldBuilder().addBuilder(
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node.getDefaultInstance());
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node.Builder addLiveNodesBuilder(
+ int index) {
+ return getLiveNodesFieldBuilder().addBuilder(
+ index, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node.getDefaultInstance());
+ }
+ public java.util.List
+ getLiveNodesBuilderList() {
+ return getLiveNodesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.NodeOrBuilder>
+ getLiveNodesFieldBuilder() {
+ if (liveNodesBuilder_ == null) {
+ liveNodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.Node.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.StorageClusterStatus.NodeOrBuilder>(
+ liveNodes_,
+ ((bitField0_ & 0x00000001) == 0x00000001),
+ getParentForChildren(),
+ isClean());
+ liveNodes_ = null;
+ }
+ return liveNodesBuilder_;
+ }
// repeated string deadNodes = 2;
- public java.util.List getDeadNodesList() {
- return java.util.Collections.unmodifiableList(result.deadNodes_);
+ private com.google.protobuf.LazyStringList deadNodes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureDeadNodesIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ deadNodes_ = new com.google.protobuf.LazyStringArrayList(deadNodes_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+ public java.util.List
+ getDeadNodesList() {
+ return java.util.Collections.unmodifiableList(deadNodes_);
}
public int getDeadNodesCount() {
- return result.getDeadNodesCount();
+ return deadNodes_.size();
}
- public java.lang.String getDeadNodes(int index) {
- return result.getDeadNodes(index);
+ public String getDeadNodes(int index) {
+ return deadNodes_.get(index);
}
- public Builder setDeadNodes(int index, java.lang.String value) {
+ public Builder setDeadNodes(
+ int index, String value) {
if (value == null) {
throw new NullPointerException();
}
- result.deadNodes_.set(index, value);
+ ensureDeadNodesIsMutable();
+ deadNodes_.set(index, value);
+ onChanged();
return this;
}
- public Builder addDeadNodes(java.lang.String value) {
+ public Builder addDeadNodes(String value) {
if (value == null) {
throw new NullPointerException();
}
- if (result.deadNodes_.isEmpty()) {
- result.deadNodes_ = new java.util.ArrayList();
- }
- result.deadNodes_.add(value);
+ ensureDeadNodesIsMutable();
+ deadNodes_.add(value);
+ onChanged();
return this;
}
public Builder addAllDeadNodes(
- java.lang.Iterable extends java.lang.String> values) {
- if (result.deadNodes_.isEmpty()) {
- result.deadNodes_ = new java.util.ArrayList();
- }
- super.addAll(values, result.deadNodes_);
+ java.lang.Iterable values) {
+ ensureDeadNodesIsMutable();
+ super.addAll(values, deadNodes_);
+ onChanged();
return this;
}
public Builder clearDeadNodes() {
- result.deadNodes_ = java.util.Collections.emptyList();
+ deadNodes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
return this;
}
+ void addDeadNodes(com.google.protobuf.ByteString value) {
+ ensureDeadNodesIsMutable();
+ deadNodes_.add(value);
+ onChanged();
+ }
// optional int32 regions = 3;
+ private int regions_ ;
public boolean hasRegions() {
- return result.hasRegions();
+ return ((bitField0_ & 0x00000004) == 0x00000004);
}
public int getRegions() {
- return result.getRegions();
+ return regions_;
}
public Builder setRegions(int value) {
- result.hasRegions = true;
- result.regions_ = value;
+ bitField0_ |= 0x00000004;
+ regions_ = value;
+ onChanged();
return this;
}
public Builder clearRegions() {
- result.hasRegions = false;
- result.regions_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ regions_ = 0;
+ onChanged();
return this;
}
// optional int32 requests = 4;
+ private int requests_ ;
public boolean hasRequests() {
- return result.hasRequests();
+ return ((bitField0_ & 0x00000008) == 0x00000008);
}
public int getRequests() {
- return result.getRequests();
+ return requests_;
}
public Builder setRequests(int value) {
- result.hasRequests = true;
- result.requests_ = value;
+ bitField0_ |= 0x00000008;
+ requests_ = value;
+ onChanged();
return this;
}
public Builder clearRequests() {
- result.hasRequests = false;
- result.requests_ = 0;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ requests_ = 0;
+ onChanged();
return this;
}
// optional double averageLoad = 5;
+ private double averageLoad_ ;
public boolean hasAverageLoad() {
- return result.hasAverageLoad();
+ return ((bitField0_ & 0x00000010) == 0x00000010);
}
public double getAverageLoad() {
- return result.getAverageLoad();
+ return averageLoad_;
}
public Builder setAverageLoad(double value) {
- result.hasAverageLoad = true;
- result.averageLoad_ = value;
+ bitField0_ |= 0x00000010;
+ averageLoad_ = value;
+ onChanged();
return this;
}
public Builder clearAverageLoad() {
- result.hasAverageLoad = false;
- result.averageLoad_ = 0D;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ averageLoad_ = 0D;
+ onChanged();
return this;
}
@@ -1546,7 +2380,6 @@ public final class StorageClusterStatusMessage {
static {
defaultInstance = new StorageClusterStatus(true);
- org.apache.hadoop.hbase.rest.protobuf.generated.StorageClusterStatusMessage.internalForceInit();
defaultInstance.initFields();
}
@@ -1632,7 +2465,5 @@ public final class StorageClusterStatusMessage {
}, assigner);
}
- public static void internalForceInit() {}
-
// @@protoc_insertion_point(outer_class_scope)
}
diff --git a/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/TableInfoMessage.java b/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/TableInfoMessage.java
index c4bb3a9abc2..7c11a89d8b5 100644
--- a/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/TableInfoMessage.java
+++ b/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/TableInfoMessage.java
@@ -8,11 +8,29 @@ public final class TableInfoMessage {
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
+ public interface TableInfoOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required string name = 1;
+ boolean hasName();
+ String getName();
+
+ // repeated .org.apache.hadoop.hbase.rest.protobuf.generated.TableInfo.Region regions = 2;
+ java.util.List
+ getRegionsList();
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region getRegions(int index);
+ int getRegionsCount();
+ java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.RegionOrBuilder>
+ getRegionsOrBuilderList();
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.RegionOrBuilder getRegionsOrBuilder(
+ int index);
+ }
public static final class TableInfo extends
- com.google.protobuf.GeneratedMessage {
+ com.google.protobuf.GeneratedMessage
+ implements TableInfoOrBuilder {
// Use TableInfo.newBuilder() to construct.
- private TableInfo() {
- initFields();
+ private TableInfo(Builder builder) {
+ super(builder);
}
private TableInfo(boolean noInit) {}
@@ -35,11 +53,35 @@ public final class TableInfoMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableInfo_fieldAccessorTable;
}
+ public interface RegionOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required string name = 1;
+ boolean hasName();
+ String getName();
+
+ // optional bytes startKey = 2;
+ boolean hasStartKey();
+ com.google.protobuf.ByteString getStartKey();
+
+ // optional bytes endKey = 3;
+ boolean hasEndKey();
+ com.google.protobuf.ByteString getEndKey();
+
+ // optional int64 id = 4;
+ boolean hasId();
+ long getId();
+
+ // optional string location = 5;
+ boolean hasLocation();
+ String getLocation();
+ }
public static final class Region extends
- com.google.protobuf.GeneratedMessage {
+ com.google.protobuf.GeneratedMessage
+ implements RegionOrBuilder {
// Use Region.newBuilder() to construct.
- private Region() {
- initFields();
+ private Region(Builder builder) {
+ super(builder);
}
private Region(boolean noInit) {}
@@ -62,65 +104,138 @@ public final class TableInfoMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableInfo_Region_fieldAccessorTable;
}
+ private int bitField0_;
// required string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
- private boolean hasName;
- private java.lang.String name_ = "";
- public boolean hasName() { return hasName; }
- public java.lang.String getName() { return name_; }
+ private java.lang.Object name_;
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getName() {
+ java.lang.Object ref = name_;
+ 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)) {
+ name_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
// optional bytes startKey = 2;
public static final int STARTKEY_FIELD_NUMBER = 2;
- private boolean hasStartKey;
- private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY;
- public boolean hasStartKey() { return hasStartKey; }
- public com.google.protobuf.ByteString getStartKey() { return startKey_; }
+ private com.google.protobuf.ByteString startKey_;
+ public boolean hasStartKey() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public com.google.protobuf.ByteString getStartKey() {
+ return startKey_;
+ }
// optional bytes endKey = 3;
public static final int ENDKEY_FIELD_NUMBER = 3;
- private boolean hasEndKey;
- private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY;
- public boolean hasEndKey() { return hasEndKey; }
- public com.google.protobuf.ByteString getEndKey() { return endKey_; }
+ private com.google.protobuf.ByteString endKey_;
+ public boolean hasEndKey() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ public com.google.protobuf.ByteString getEndKey() {
+ return endKey_;
+ }
// optional int64 id = 4;
public static final int ID_FIELD_NUMBER = 4;
- private boolean hasId;
- private long id_ = 0L;
- public boolean hasId() { return hasId; }
- public long getId() { return id_; }
+ private long id_;
+ public boolean hasId() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ public long getId() {
+ return id_;
+ }
// optional string location = 5;
public static final int LOCATION_FIELD_NUMBER = 5;
- private boolean hasLocation;
- private java.lang.String location_ = "";
- public boolean hasLocation() { return hasLocation; }
- public java.lang.String getLocation() { return location_; }
+ private java.lang.Object location_;
+ public boolean hasLocation() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ public String getLocation() {
+ java.lang.Object ref = location_;
+ 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)) {
+ location_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getLocationBytes() {
+ java.lang.Object ref = location_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ location_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
private void initFields() {
+ name_ = "";
+ startKey_ = com.google.protobuf.ByteString.EMPTY;
+ endKey_ = com.google.protobuf.ByteString.EMPTY;
+ id_ = 0L;
+ location_ = "";
}
+ private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
- if (!hasName) return false;
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasName()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
- if (hasName()) {
- output.writeString(1, getName());
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getNameBytes());
}
- if (hasStartKey()) {
- output.writeBytes(2, getStartKey());
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBytes(2, startKey_);
}
- if (hasEndKey()) {
- output.writeBytes(3, getEndKey());
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeBytes(3, endKey_);
}
- if (hasId()) {
- output.writeInt64(4, getId());
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeInt64(4, id_);
}
- if (hasLocation()) {
- output.writeString(5, getLocation());
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ output.writeBytes(5, getLocationBytes());
}
getUnknownFields().writeTo(output);
}
@@ -131,31 +246,38 @@ public final class TableInfoMessage {
if (size != -1) return size;
size = 0;
- if (hasName()) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeStringSize(1, getName());
+ .computeBytesSize(1, getNameBytes());
}
- if (hasStartKey()) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getStartKey());
+ .computeBytesSize(2, startKey_);
}
- if (hasEndKey()) {
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getEndKey());
+ .computeBytesSize(3, endKey_);
}
- if (hasId()) {
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(4, getId());
+ .computeInt64Size(4, id_);
}
- if (hasLocation()) {
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
- .computeStringSize(5, getLocation());
+ .computeBytesSize(5, getLocationBytes());
}
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.TableInfoMessage.TableInfo.Region parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -230,34 +352,59 @@ public final class TableInfoMessage {
}
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 {
- private org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region result;
-
- // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region();
- return builder;
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.RegionOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableInfo_Region_descriptor;
}
- protected org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region internalGetResult() {
- return result;
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableInfo_Region_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region.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.TableInfoMessage.TableInfo.Region();
+ super.clear();
+ name_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ startKey_ = com.google.protobuf.ByteString.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ endKey_ = com.google.protobuf.ByteString.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ id_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ location_ = "";
+ bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
- return create().mergeFrom(result);
+ return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
@@ -269,33 +416,51 @@ public final class TableInfoMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region.getDefaultInstance();
}
- public boolean isInitialized() {
- return result.isInitialized();
- }
public org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region build() {
- if (result != null && !isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
- return buildPartial();
+ return result;
}
private org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
- return buildPartial();
+ return result;
}
public org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region result = new org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
}
- org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region returnMe = result;
- result = null;
- return returnMe;
+ result.name_ = name_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.startKey_ = startKey_;
+ if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.endKey_ = endKey_;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000008;
+ }
+ result.id_ = id_;
+ if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
+ to_bitField0_ |= 0x00000010;
+ }
+ result.location_ = location_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
@@ -328,6 +493,14 @@ public final class TableInfoMessage {
return this;
}
+ public final boolean isInitialized() {
+ if (!hasName()) {
+
+ return false;
+ }
+ return true;
+ }
+
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -340,191 +513,285 @@ public final class TableInfoMessage {
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: {
- setName(input.readString());
+ bitField0_ |= 0x00000001;
+ name_ = input.readBytes();
break;
}
case 18: {
- setStartKey(input.readBytes());
+ bitField0_ |= 0x00000002;
+ startKey_ = input.readBytes();
break;
}
case 26: {
- setEndKey(input.readBytes());
+ bitField0_ |= 0x00000004;
+ endKey_ = input.readBytes();
break;
}
case 32: {
- setId(input.readInt64());
+ bitField0_ |= 0x00000008;
+ id_ = input.readInt64();
break;
}
case 42: {
- setLocation(input.readString());
+ bitField0_ |= 0x00000010;
+ location_ = input.readBytes();
break;
}
}
}
}
+ private int bitField0_;
// required string name = 1;
+ private java.lang.Object name_ = "";
public boolean hasName() {
- return result.hasName();
+ return ((bitField0_ & 0x00000001) == 0x00000001);
}
- public java.lang.String getName() {
- return result.getName();
+ public String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
}
- public Builder setName(java.lang.String value) {
+ public Builder setName(String value) {
if (value == null) {
throw new NullPointerException();
}
- result.hasName = true;
- result.name_ = value;
+ bitField0_ |= 0x00000001;
+ name_ = value;
+ onChanged();
return this;
}
public Builder clearName() {
- result.hasName = false;
- result.name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ name_ = getDefaultInstance().getName();
+ onChanged();
return this;
}
+ void setName(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000001;
+ name_ = value;
+ onChanged();
+ }
// optional bytes startKey = 2;
+ private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasStartKey() {
- return result.hasStartKey();
+ return ((bitField0_ & 0x00000002) == 0x00000002);
}
public com.google.protobuf.ByteString getStartKey() {
- return result.getStartKey();
+ return startKey_;
}
public Builder setStartKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- result.hasStartKey = true;
- result.startKey_ = value;
+ bitField0_ |= 0x00000002;
+ startKey_ = value;
+ onChanged();
return this;
}
public Builder clearStartKey() {
- result.hasStartKey = false;
- result.startKey_ = getDefaultInstance().getStartKey();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ startKey_ = getDefaultInstance().getStartKey();
+ onChanged();
return this;
}
// optional bytes endKey = 3;
+ private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY;
public boolean hasEndKey() {
- return result.hasEndKey();
+ return ((bitField0_ & 0x00000004) == 0x00000004);
}
public com.google.protobuf.ByteString getEndKey() {
- return result.getEndKey();
+ return endKey_;
}
public Builder setEndKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- result.hasEndKey = true;
- result.endKey_ = value;
+ bitField0_ |= 0x00000004;
+ endKey_ = value;
+ onChanged();
return this;
}
public Builder clearEndKey() {
- result.hasEndKey = false;
- result.endKey_ = getDefaultInstance().getEndKey();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ endKey_ = getDefaultInstance().getEndKey();
+ onChanged();
return this;
}
// optional int64 id = 4;
+ private long id_ ;
public boolean hasId() {
- return result.hasId();
+ return ((bitField0_ & 0x00000008) == 0x00000008);
}
public long getId() {
- return result.getId();
+ return id_;
}
public Builder setId(long value) {
- result.hasId = true;
- result.id_ = value;
+ bitField0_ |= 0x00000008;
+ id_ = value;
+ onChanged();
return this;
}
public Builder clearId() {
- result.hasId = false;
- result.id_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ id_ = 0L;
+ onChanged();
return this;
}
// optional string location = 5;
+ private java.lang.Object location_ = "";
public boolean hasLocation() {
- return result.hasLocation();
+ return ((bitField0_ & 0x00000010) == 0x00000010);
}
- public java.lang.String getLocation() {
- return result.getLocation();
+ public String getLocation() {
+ java.lang.Object ref = location_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ location_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
}
- public Builder setLocation(java.lang.String value) {
+ public Builder setLocation(String value) {
if (value == null) {
throw new NullPointerException();
}
- result.hasLocation = true;
- result.location_ = value;
+ bitField0_ |= 0x00000010;
+ location_ = value;
+ onChanged();
return this;
}
public Builder clearLocation() {
- result.hasLocation = false;
- result.location_ = getDefaultInstance().getLocation();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ location_ = getDefaultInstance().getLocation();
+ onChanged();
return this;
}
+ void setLocation(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000010;
+ location_ = value;
+ onChanged();
+ }
// @@protoc_insertion_point(builder_scope:org.apache.hadoop.hbase.rest.protobuf.generated.TableInfo.Region)
}
static {
defaultInstance = new Region(true);
- org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.internalForceInit();
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.apache.hadoop.hbase.rest.protobuf.generated.TableInfo.Region)
}
+ private int bitField0_;
// required string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
- private boolean hasName;
- private java.lang.String name_ = "";
- public boolean hasName() { return hasName; }
- public java.lang.String getName() { return name_; }
+ private java.lang.Object name_;
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getName() {
+ java.lang.Object ref = name_;
+ 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)) {
+ name_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
// repeated .org.apache.hadoop.hbase.rest.protobuf.generated.TableInfo.Region regions = 2;
public static final int REGIONS_FIELD_NUMBER = 2;
- private java.util.List regions_ =
- java.util.Collections.emptyList();
+ private java.util.List regions_;
public java.util.List getRegionsList() {
return regions_;
}
- public int getRegionsCount() { return regions_.size(); }
+ public java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.RegionOrBuilder>
+ getRegionsOrBuilderList() {
+ return regions_;
+ }
+ public int getRegionsCount() {
+ return regions_.size();
+ }
public org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region getRegions(int index) {
return regions_.get(index);
}
+ public org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.RegionOrBuilder getRegionsOrBuilder(
+ int index) {
+ return regions_.get(index);
+ }
private void initFields() {
+ name_ = "";
+ regions_ = java.util.Collections.emptyList();
}
+ private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
- if (!hasName) return false;
- for (org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region element : getRegionsList()) {
- if (!element.isInitialized()) return false;
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasName()) {
+ memoizedIsInitialized = 0;
+ return false;
}
+ for (int i = 0; i < getRegionsCount(); i++) {
+ if (!getRegions(i).isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ }
+ memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
- if (hasName()) {
- output.writeString(1, getName());
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getNameBytes());
}
- for (org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region element : getRegionsList()) {
- output.writeMessage(2, element);
+ for (int i = 0; i < regions_.size(); i++) {
+ output.writeMessage(2, regions_.get(i));
}
getUnknownFields().writeTo(output);
}
@@ -535,19 +802,26 @@ public final class TableInfoMessage {
if (size != -1) return size;
size = 0;
- if (hasName()) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeStringSize(1, getName());
+ .computeBytesSize(1, getNameBytes());
}
- for (org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region element : getRegionsList()) {
+ for (int i = 0; i < regions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, element);
+ .computeMessageSize(2, regions_.get(i));
}
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.TableInfoMessage.TableInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -622,34 +896,58 @@ public final class TableInfoMessage {
}
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 {
- private org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo result;
-
- // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo();
- return builder;
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfoOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableInfo_descriptor;
}
- protected org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo internalGetResult() {
- return result;
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableInfo_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getRegionsFieldBuilder();
+ }
+ }
+ private static Builder create() {
+ return new Builder();
}
public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
+ super.clear();
+ name_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ if (regionsBuilder_ == null) {
+ regions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ regionsBuilder_.clear();
}
- result = new org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo();
return this;
}
public Builder clone() {
- return create().mergeFrom(result);
+ return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
@@ -661,37 +959,44 @@ public final class TableInfoMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.getDefaultInstance();
}
- public boolean isInitialized() {
- return result.isInitialized();
- }
public org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo build() {
- if (result != null && !isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
- return buildPartial();
+ return result;
}
private org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
- return buildPartial();
+ return result;
}
public org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo result = new org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
}
- if (result.regions_ != java.util.Collections.EMPTY_LIST) {
- result.regions_ =
- java.util.Collections.unmodifiableList(result.regions_);
+ result.name_ = name_;
+ if (regionsBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ regions_ = java.util.Collections.unmodifiableList(regions_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.regions_ = regions_;
+ } else {
+ result.regions_ = regionsBuilder_.build();
}
- org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo returnMe = result;
- result = null;
- return returnMe;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
@@ -708,16 +1013,50 @@ public final class TableInfoMessage {
if (other.hasName()) {
setName(other.getName());
}
- if (!other.regions_.isEmpty()) {
- if (result.regions_.isEmpty()) {
- result.regions_ = new java.util.ArrayList();
+ if (regionsBuilder_ == null) {
+ if (!other.regions_.isEmpty()) {
+ if (regions_.isEmpty()) {
+ regions_ = other.regions_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureRegionsIsMutable();
+ regions_.addAll(other.regions_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.regions_.isEmpty()) {
+ if (regionsBuilder_.isEmpty()) {
+ regionsBuilder_.dispose();
+ regionsBuilder_ = null;
+ regions_ = other.regions_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ regionsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getRegionsFieldBuilder() : null;
+ } else {
+ regionsBuilder_.addAllMessages(other.regions_);
+ }
}
- result.regions_.addAll(other.regions_);
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
+ public final boolean isInitialized() {
+ if (!hasName()) {
+
+ return false;
+ }
+ for (int i = 0; i < getRegionsCount(); i++) {
+ if (!getRegions(i).isInitialized()) {
+
+ return false;
+ }
+ }
+ return true;
+ }
+
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -730,17 +1069,20 @@ public final class TableInfoMessage {
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: {
- setName(input.readString());
+ bitField0_ |= 0x00000001;
+ name_ = input.readBytes();
break;
}
case 18: {
@@ -753,85 +1095,235 @@ public final class TableInfoMessage {
}
}
+ private int bitField0_;
// required string name = 1;
+ private java.lang.Object name_ = "";
public boolean hasName() {
- return result.hasName();
+ return ((bitField0_ & 0x00000001) == 0x00000001);
}
- public java.lang.String getName() {
- return result.getName();
+ public String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
}
- public Builder setName(java.lang.String value) {
+ public Builder setName(String value) {
if (value == null) {
throw new NullPointerException();
}
- result.hasName = true;
- result.name_ = value;
+ bitField0_ |= 0x00000001;
+ name_ = value;
+ onChanged();
return this;
}
public Builder clearName() {
- result.hasName = false;
- result.name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ name_ = getDefaultInstance().getName();
+ onChanged();
return this;
}
+ void setName(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000001;
+ name_ = value;
+ onChanged();
+ }
// repeated .org.apache.hadoop.hbase.rest.protobuf.generated.TableInfo.Region regions = 2;
+ private java.util.List regions_ =
+ java.util.Collections.emptyList();
+ private void ensureRegionsIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ regions_ = new java.util.ArrayList(regions_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region, org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.RegionOrBuilder> regionsBuilder_;
+
public java.util.List getRegionsList() {
- return java.util.Collections.unmodifiableList(result.regions_);
+ if (regionsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(regions_);
+ } else {
+ return regionsBuilder_.getMessageList();
+ }
}
public int getRegionsCount() {
- return result.getRegionsCount();
+ if (regionsBuilder_ == null) {
+ return regions_.size();
+ } else {
+ return regionsBuilder_.getCount();
+ }
}
public org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region getRegions(int index) {
- return result.getRegions(index);
- }
- public Builder setRegions(int index, org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region value) {
- if (value == null) {
- throw new NullPointerException();
+ if (regionsBuilder_ == null) {
+ return regions_.get(index);
+ } else {
+ return regionsBuilder_.getMessage(index);
+ }
+ }
+ public Builder setRegions(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region value) {
+ if (regionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRegionsIsMutable();
+ regions_.set(index, value);
+ onChanged();
+ } else {
+ regionsBuilder_.setMessage(index, value);
}
- result.regions_.set(index, value);
return this;
}
- public Builder setRegions(int index, org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region.Builder builderForValue) {
- result.regions_.set(index, builderForValue.build());
+ public Builder setRegions(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region.Builder builderForValue) {
+ if (regionsBuilder_ == null) {
+ ensureRegionsIsMutable();
+ regions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ regionsBuilder_.setMessage(index, builderForValue.build());
+ }
return this;
}
public Builder addRegions(org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region value) {
- if (value == null) {
- throw new NullPointerException();
+ if (regionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRegionsIsMutable();
+ regions_.add(value);
+ onChanged();
+ } else {
+ regionsBuilder_.addMessage(value);
}
- if (result.regions_.isEmpty()) {
- result.regions_ = new java.util.ArrayList();
- }
- result.regions_.add(value);
return this;
}
- public Builder addRegions(org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region.Builder builderForValue) {
- if (result.regions_.isEmpty()) {
- result.regions_ = new java.util.ArrayList();
+ public Builder addRegions(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region value) {
+ if (regionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRegionsIsMutable();
+ regions_.add(index, value);
+ onChanged();
+ } else {
+ regionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ public Builder addRegions(
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region.Builder builderForValue) {
+ if (regionsBuilder_ == null) {
+ ensureRegionsIsMutable();
+ regions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ regionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ public Builder addRegions(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region.Builder builderForValue) {
+ if (regionsBuilder_ == null) {
+ ensureRegionsIsMutable();
+ regions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ regionsBuilder_.addMessage(index, builderForValue.build());
}
- result.regions_.add(builderForValue.build());
return this;
}
public Builder addAllRegions(
java.lang.Iterable extends org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region> values) {
- if (result.regions_.isEmpty()) {
- result.regions_ = new java.util.ArrayList();
+ if (regionsBuilder_ == null) {
+ ensureRegionsIsMutable();
+ super.addAll(values, regions_);
+ onChanged();
+ } else {
+ regionsBuilder_.addAllMessages(values);
}
- super.addAll(values, result.regions_);
return this;
}
public Builder clearRegions() {
- result.regions_ = java.util.Collections.emptyList();
+ if (regionsBuilder_ == null) {
+ regions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ regionsBuilder_.clear();
+ }
return this;
}
+ public Builder removeRegions(int index) {
+ if (regionsBuilder_ == null) {
+ ensureRegionsIsMutable();
+ regions_.remove(index);
+ onChanged();
+ } else {
+ regionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region.Builder getRegionsBuilder(
+ int index) {
+ return getRegionsFieldBuilder().getBuilder(index);
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.RegionOrBuilder getRegionsOrBuilder(
+ int index) {
+ if (regionsBuilder_ == null) {
+ return regions_.get(index); } else {
+ return regionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ public java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.RegionOrBuilder>
+ getRegionsOrBuilderList() {
+ if (regionsBuilder_ != null) {
+ return regionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(regions_);
+ }
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region.Builder addRegionsBuilder() {
+ return getRegionsFieldBuilder().addBuilder(
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region.getDefaultInstance());
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region.Builder addRegionsBuilder(
+ int index) {
+ return getRegionsFieldBuilder().addBuilder(
+ index, org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region.getDefaultInstance());
+ }
+ public java.util.List
+ getRegionsBuilderList() {
+ return getRegionsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region, org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.RegionOrBuilder>
+ getRegionsFieldBuilder() {
+ if (regionsBuilder_ == null) {
+ regionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region, org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.Region.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.TableInfo.RegionOrBuilder>(
+ regions_,
+ ((bitField0_ & 0x00000002) == 0x00000002),
+ getParentForChildren(),
+ isClean());
+ regions_ = null;
+ }
+ return regionsBuilder_;
+ }
// @@protoc_insertion_point(builder_scope:org.apache.hadoop.hbase.rest.protobuf.generated.TableInfo)
}
static {
defaultInstance = new TableInfo(true);
- org.apache.hadoop.hbase.rest.protobuf.generated.TableInfoMessage.internalForceInit();
defaultInstance.initFields();
}
@@ -895,7 +1387,5 @@ public final class TableInfoMessage {
}, assigner);
}
- public static void internalForceInit() {}
-
// @@protoc_insertion_point(outer_class_scope)
}
diff --git a/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/TableListMessage.java b/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/TableListMessage.java
index f3d6d06650e..dcc60a1a433 100644
--- a/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/TableListMessage.java
+++ b/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/TableListMessage.java
@@ -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 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 name_ =
- java.util.Collections.emptyList();
- public java.util.List getNameList() {
+ private com.google.protobuf.LazyStringList name_;
+ public java.util.List
+ 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 {
- 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
+ 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();
+ 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 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
+ 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();
- }
- 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();
- }
- super.addAll(values, result.name_);
+ java.lang.Iterable 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)
}
diff --git a/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/TableSchemaMessage.java b/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/TableSchemaMessage.java
index a649f006b33..b4aa3491e86 100644
--- a/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/TableSchemaMessage.java
+++ b/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/TableSchemaMessage.java
@@ -8,11 +8,47 @@ public final class TableSchemaMessage {
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
+ public interface TableSchemaOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // optional string name = 1;
+ boolean hasName();
+ String getName();
+
+ // repeated .org.apache.hadoop.hbase.rest.protobuf.generated.TableSchema.Attribute attrs = 2;
+ java.util.List
+ getAttrsList();
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute getAttrs(int index);
+ int getAttrsCount();
+ java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.AttributeOrBuilder>
+ getAttrsOrBuilderList();
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.AttributeOrBuilder getAttrsOrBuilder(
+ int index);
+
+ // repeated .org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchema columns = 3;
+ java.util.List
+ getColumnsList();
+ org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema getColumns(int index);
+ int getColumnsCount();
+ java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchemaOrBuilder>
+ getColumnsOrBuilderList();
+ org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchemaOrBuilder getColumnsOrBuilder(
+ int index);
+
+ // optional bool inMemory = 4;
+ boolean hasInMemory();
+ boolean getInMemory();
+
+ // optional bool readOnly = 5;
+ boolean hasReadOnly();
+ boolean getReadOnly();
+ }
public static final class TableSchema extends
- com.google.protobuf.GeneratedMessage {
+ com.google.protobuf.GeneratedMessage
+ implements TableSchemaOrBuilder {
// Use TableSchema.newBuilder() to construct.
- private TableSchema() {
- initFields();
+ private TableSchema(Builder builder) {
+ super(builder);
}
private TableSchema(boolean noInit) {}
@@ -35,11 +71,23 @@ public final class TableSchemaMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableSchema_fieldAccessorTable;
}
+ public interface AttributeOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required string name = 1;
+ boolean hasName();
+ String getName();
+
+ // required string value = 2;
+ boolean hasValue();
+ String getValue();
+ }
public static final class Attribute extends
- com.google.protobuf.GeneratedMessage {
+ com.google.protobuf.GeneratedMessage
+ implements AttributeOrBuilder {
// Use Attribute.newBuilder() to construct.
- private Attribute() {
- initFields();
+ private Attribute(Builder builder) {
+ super(builder);
}
private Attribute(boolean noInit) {}
@@ -62,36 +110,100 @@ public final class TableSchemaMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableSchema_Attribute_fieldAccessorTable;
}
+ private int bitField0_;
// required string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
- private boolean hasName;
- private java.lang.String name_ = "";
- public boolean hasName() { return hasName; }
- public java.lang.String getName() { return name_; }
+ private java.lang.Object name_;
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getName() {
+ java.lang.Object ref = name_;
+ 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)) {
+ name_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
// required string value = 2;
public static final int VALUE_FIELD_NUMBER = 2;
- private boolean hasValue;
- private java.lang.String value_ = "";
- public boolean hasValue() { return hasValue; }
- public java.lang.String getValue() { return value_; }
+ private java.lang.Object value_;
+ public boolean hasValue() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public String getValue() {
+ java.lang.Object ref = value_;
+ 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)) {
+ value_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
private void initFields() {
+ name_ = "";
+ value_ = "";
}
+ private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
- if (!hasName) return false;
- if (!hasValue) return false;
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ if (!hasName()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ if (!hasValue()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
- if (hasName()) {
- output.writeString(1, getName());
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getNameBytes());
}
- if (hasValue()) {
- output.writeString(2, getValue());
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBytes(2, getValueBytes());
}
getUnknownFields().writeTo(output);
}
@@ -102,19 +214,26 @@ public final class TableSchemaMessage {
if (size != -1) return size;
size = 0;
- if (hasName()) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeStringSize(1, getName());
+ .computeBytesSize(1, getNameBytes());
}
- if (hasValue()) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeStringSize(2, getValue());
+ .computeBytesSize(2, getValueBytes());
}
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.TableSchemaMessage.TableSchema.Attribute parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -189,34 +308,53 @@ public final class TableSchemaMessage {
}
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 {
- private org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute result;
-
- // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute();
- return builder;
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.AttributeOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableSchema_Attribute_descriptor;
}
- protected org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute internalGetResult() {
- return result;
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableSchema_Attribute_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute.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.TableSchemaMessage.TableSchema.Attribute();
+ super.clear();
+ name_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ value_ = "";
+ bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
- return create().mergeFrom(result);
+ return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
@@ -228,33 +366,39 @@ public final class TableSchemaMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute.getDefaultInstance();
}
- public boolean isInitialized() {
- return result.isInitialized();
- }
public org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute build() {
- if (result != null && !isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
- return buildPartial();
+ return result;
}
private org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
- return buildPartial();
+ return result;
}
public org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute result = new org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
}
- org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute returnMe = result;
- result = null;
- return returnMe;
+ result.name_ = name_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.value_ = value_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
@@ -278,6 +422,18 @@ public final class TableSchemaMessage {
return this;
}
+ public final boolean isInitialized() {
+ if (!hasName()) {
+
+ return false;
+ }
+ if (!hasValue()) {
+
+ return false;
+ }
+ return true;
+ }
+
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -290,156 +446,256 @@ public final class TableSchemaMessage {
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: {
- setName(input.readString());
+ bitField0_ |= 0x00000001;
+ name_ = input.readBytes();
break;
}
case 18: {
- setValue(input.readString());
+ bitField0_ |= 0x00000002;
+ value_ = input.readBytes();
break;
}
}
}
}
+ private int bitField0_;
// required string name = 1;
+ private java.lang.Object name_ = "";
public boolean hasName() {
- return result.hasName();
+ return ((bitField0_ & 0x00000001) == 0x00000001);
}
- public java.lang.String getName() {
- return result.getName();
+ public String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
}
- public Builder setName(java.lang.String value) {
+ public Builder setName(String value) {
if (value == null) {
throw new NullPointerException();
}
- result.hasName = true;
- result.name_ = value;
+ bitField0_ |= 0x00000001;
+ name_ = value;
+ onChanged();
return this;
}
public Builder clearName() {
- result.hasName = false;
- result.name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ name_ = getDefaultInstance().getName();
+ onChanged();
return this;
}
+ void setName(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000001;
+ name_ = value;
+ onChanged();
+ }
// required string value = 2;
+ private java.lang.Object value_ = "";
public boolean hasValue() {
- return result.hasValue();
+ return ((bitField0_ & 0x00000002) == 0x00000002);
}
- public java.lang.String getValue() {
- return result.getValue();
+ public String getValue() {
+ java.lang.Object ref = value_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ value_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
}
- public Builder setValue(java.lang.String value) {
+ public Builder setValue(String value) {
if (value == null) {
throw new NullPointerException();
}
- result.hasValue = true;
- result.value_ = value;
+ bitField0_ |= 0x00000002;
+ value_ = value;
+ onChanged();
return this;
}
public Builder clearValue() {
- result.hasValue = false;
- result.value_ = getDefaultInstance().getValue();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ value_ = getDefaultInstance().getValue();
+ onChanged();
return this;
}
+ void setValue(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000002;
+ value_ = value;
+ onChanged();
+ }
// @@protoc_insertion_point(builder_scope:org.apache.hadoop.hbase.rest.protobuf.generated.TableSchema.Attribute)
}
static {
defaultInstance = new Attribute(true);
- org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.internalForceInit();
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.apache.hadoop.hbase.rest.protobuf.generated.TableSchema.Attribute)
}
+ private int bitField0_;
// optional string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
- private boolean hasName;
- private java.lang.String name_ = "";
- public boolean hasName() { return hasName; }
- public java.lang.String getName() { return name_; }
+ private java.lang.Object name_;
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public String getName() {
+ java.lang.Object ref = name_;
+ 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)) {
+ name_ = s;
+ }
+ return s;
+ }
+ }
+ private com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
// repeated .org.apache.hadoop.hbase.rest.protobuf.generated.TableSchema.Attribute attrs = 2;
public static final int ATTRS_FIELD_NUMBER = 2;
- private java.util.List attrs_ =
- java.util.Collections.emptyList();
+ private java.util.List attrs_;
public java.util.List getAttrsList() {
return attrs_;
}
- public int getAttrsCount() { return attrs_.size(); }
+ public java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.AttributeOrBuilder>
+ getAttrsOrBuilderList() {
+ return attrs_;
+ }
+ public int getAttrsCount() {
+ return attrs_.size();
+ }
public org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute getAttrs(int index) {
return attrs_.get(index);
}
+ public org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.AttributeOrBuilder getAttrsOrBuilder(
+ int index) {
+ return attrs_.get(index);
+ }
// repeated .org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchema columns = 3;
public static final int COLUMNS_FIELD_NUMBER = 3;
- private java.util.List columns_ =
- java.util.Collections.emptyList();
+ private java.util.List columns_;
public java.util.List getColumnsList() {
return columns_;
}
- public int getColumnsCount() { return columns_.size(); }
+ public java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchemaOrBuilder>
+ getColumnsOrBuilderList() {
+ return columns_;
+ }
+ public int getColumnsCount() {
+ return columns_.size();
+ }
public org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema getColumns(int index) {
return columns_.get(index);
}
+ public org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchemaOrBuilder getColumnsOrBuilder(
+ int index) {
+ return columns_.get(index);
+ }
// optional bool inMemory = 4;
public static final int INMEMORY_FIELD_NUMBER = 4;
- private boolean hasInMemory;
- private boolean inMemory_ = false;
- public boolean hasInMemory() { return hasInMemory; }
- public boolean getInMemory() { return inMemory_; }
+ private boolean inMemory_;
+ public boolean hasInMemory() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ public boolean getInMemory() {
+ return inMemory_;
+ }
// optional bool readOnly = 5;
public static final int READONLY_FIELD_NUMBER = 5;
- private boolean hasReadOnly;
- private boolean readOnly_ = false;
- public boolean hasReadOnly() { return hasReadOnly; }
- public boolean getReadOnly() { return readOnly_; }
+ private boolean readOnly_;
+ public boolean hasReadOnly() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ public boolean getReadOnly() {
+ return readOnly_;
+ }
private void initFields() {
+ name_ = "";
+ attrs_ = java.util.Collections.emptyList();
+ columns_ = java.util.Collections.emptyList();
+ inMemory_ = false;
+ readOnly_ = false;
}
+ private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
- for (org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute element : getAttrsList()) {
- if (!element.isInitialized()) return false;
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized != -1) return isInitialized == 1;
+
+ for (int i = 0; i < getAttrsCount(); i++) {
+ if (!getAttrs(i).isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
}
- for (org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema element : getColumnsList()) {
- if (!element.isInitialized()) return false;
+ for (int i = 0; i < getColumnsCount(); i++) {
+ if (!getColumns(i).isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
}
+ memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
- if (hasName()) {
- output.writeString(1, getName());
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getNameBytes());
}
- for (org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute element : getAttrsList()) {
- output.writeMessage(2, element);
+ for (int i = 0; i < attrs_.size(); i++) {
+ output.writeMessage(2, attrs_.get(i));
}
- for (org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema element : getColumnsList()) {
- output.writeMessage(3, element);
+ for (int i = 0; i < columns_.size(); i++) {
+ output.writeMessage(3, columns_.get(i));
}
- if (hasInMemory()) {
- output.writeBool(4, getInMemory());
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBool(4, inMemory_);
}
- if (hasReadOnly()) {
- output.writeBool(5, getReadOnly());
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeBool(5, readOnly_);
}
getUnknownFields().writeTo(output);
}
@@ -450,31 +706,38 @@ public final class TableSchemaMessage {
if (size != -1) return size;
size = 0;
- if (hasName()) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeStringSize(1, getName());
+ .computeBytesSize(1, getNameBytes());
}
- for (org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute element : getAttrsList()) {
+ for (int i = 0; i < attrs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, element);
+ .computeMessageSize(2, attrs_.get(i));
}
- for (org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema element : getColumnsList()) {
+ for (int i = 0; i < columns_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, element);
+ .computeMessageSize(3, columns_.get(i));
}
- if (hasInMemory()) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(4, getInMemory());
+ .computeBoolSize(4, inMemory_);
}
- if (hasReadOnly()) {
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(5, getReadOnly());
+ .computeBoolSize(5, readOnly_);
}
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.TableSchemaMessage.TableSchema parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -549,34 +812,69 @@ public final class TableSchemaMessage {
}
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 {
- private org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema result;
-
- // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.newBuilder()
- private Builder() {}
-
- private static Builder create() {
- Builder builder = new Builder();
- builder.result = new org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema();
- return builder;
+ com.google.protobuf.GeneratedMessage.Builder
+ implements org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchemaOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableSchema_descriptor;
}
- protected org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema internalGetResult() {
- return result;
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableSchema_fieldAccessorTable;
+ }
+
+ // Construct using org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getAttrsFieldBuilder();
+ getColumnsFieldBuilder();
+ }
+ }
+ private static Builder create() {
+ return new Builder();
}
public Builder clear() {
- if (result == null) {
- throw new IllegalStateException(
- "Cannot call clear() after build().");
+ super.clear();
+ name_ = "";
+ bitField0_ = (bitField0_ & ~0x00000001);
+ if (attrsBuilder_ == null) {
+ attrs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ attrsBuilder_.clear();
}
- result = new org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema();
+ if (columnsBuilder_ == null) {
+ columns_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ columnsBuilder_.clear();
+ }
+ inMemory_ = false;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ readOnly_ = false;
+ bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
- return create().mergeFrom(result);
+ return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
@@ -588,41 +886,61 @@ public final class TableSchemaMessage {
return org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.getDefaultInstance();
}
- public boolean isInitialized() {
- return result.isInitialized();
- }
public org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema build() {
- if (result != null && !isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
- return buildPartial();
+ return result;
}
private org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
- if (!isInitialized()) {
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema result = buildPartial();
+ if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
- return buildPartial();
+ return result;
}
public org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema buildPartial() {
- if (result == null) {
- throw new IllegalStateException(
- "build() has already been called on this Builder.");
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema result = new org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ to_bitField0_ |= 0x00000001;
}
- if (result.attrs_ != java.util.Collections.EMPTY_LIST) {
- result.attrs_ =
- java.util.Collections.unmodifiableList(result.attrs_);
+ result.name_ = name_;
+ if (attrsBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ attrs_ = java.util.Collections.unmodifiableList(attrs_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.attrs_ = attrs_;
+ } else {
+ result.attrs_ = attrsBuilder_.build();
}
- if (result.columns_ != java.util.Collections.EMPTY_LIST) {
- result.columns_ =
- java.util.Collections.unmodifiableList(result.columns_);
+ if (columnsBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ columns_ = java.util.Collections.unmodifiableList(columns_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.columns_ = columns_;
+ } else {
+ result.columns_ = columnsBuilder_.build();
}
- org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema returnMe = result;
- result = null;
- return returnMe;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000002;
+ }
+ result.inMemory_ = inMemory_;
+ if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.readOnly_ = readOnly_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
@@ -639,17 +957,57 @@ public final class TableSchemaMessage {
if (other.hasName()) {
setName(other.getName());
}
- if (!other.attrs_.isEmpty()) {
- if (result.attrs_.isEmpty()) {
- result.attrs_ = new java.util.ArrayList();
+ if (attrsBuilder_ == null) {
+ if (!other.attrs_.isEmpty()) {
+ if (attrs_.isEmpty()) {
+ attrs_ = other.attrs_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureAttrsIsMutable();
+ attrs_.addAll(other.attrs_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.attrs_.isEmpty()) {
+ if (attrsBuilder_.isEmpty()) {
+ attrsBuilder_.dispose();
+ attrsBuilder_ = null;
+ attrs_ = other.attrs_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ attrsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getAttrsFieldBuilder() : null;
+ } else {
+ attrsBuilder_.addAllMessages(other.attrs_);
+ }
}
- result.attrs_.addAll(other.attrs_);
}
- if (!other.columns_.isEmpty()) {
- if (result.columns_.isEmpty()) {
- result.columns_ = new java.util.ArrayList();
+ if (columnsBuilder_ == null) {
+ if (!other.columns_.isEmpty()) {
+ if (columns_.isEmpty()) {
+ columns_ = other.columns_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureColumnsIsMutable();
+ columns_.addAll(other.columns_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.columns_.isEmpty()) {
+ if (columnsBuilder_.isEmpty()) {
+ columnsBuilder_.dispose();
+ columnsBuilder_ = null;
+ columns_ = other.columns_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ columnsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getColumnsFieldBuilder() : null;
+ } else {
+ columnsBuilder_.addAllMessages(other.columns_);
+ }
}
- result.columns_.addAll(other.columns_);
}
if (other.hasInMemory()) {
setInMemory(other.getInMemory());
@@ -661,6 +1019,22 @@ public final class TableSchemaMessage {
return this;
}
+ public final boolean isInitialized() {
+ for (int i = 0; i < getAttrsCount(); i++) {
+ if (!getAttrs(i).isInitialized()) {
+
+ return false;
+ }
+ }
+ for (int i = 0; i < getColumnsCount(); i++) {
+ if (!getColumns(i).isInitialized()) {
+
+ return false;
+ }
+ }
+ return true;
+ }
+
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -673,17 +1047,20 @@ public final class TableSchemaMessage {
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: {
- setName(input.readString());
+ bitField0_ |= 0x00000001;
+ name_ = input.readBytes();
break;
}
case 18: {
@@ -699,174 +1076,468 @@ public final class TableSchemaMessage {
break;
}
case 32: {
- setInMemory(input.readBool());
+ bitField0_ |= 0x00000008;
+ inMemory_ = input.readBool();
break;
}
case 40: {
- setReadOnly(input.readBool());
+ bitField0_ |= 0x00000010;
+ readOnly_ = input.readBool();
break;
}
}
}
}
+ private int bitField0_;
// optional string name = 1;
+ private java.lang.Object name_ = "";
public boolean hasName() {
- return result.hasName();
+ return ((bitField0_ & 0x00000001) == 0x00000001);
}
- public java.lang.String getName() {
- return result.getName();
+ public String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof String)) {
+ String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (String) ref;
+ }
}
- public Builder setName(java.lang.String value) {
+ public Builder setName(String value) {
if (value == null) {
throw new NullPointerException();
}
- result.hasName = true;
- result.name_ = value;
+ bitField0_ |= 0x00000001;
+ name_ = value;
+ onChanged();
return this;
}
public Builder clearName() {
- result.hasName = false;
- result.name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ name_ = getDefaultInstance().getName();
+ onChanged();
return this;
}
+ void setName(com.google.protobuf.ByteString value) {
+ bitField0_ |= 0x00000001;
+ name_ = value;
+ onChanged();
+ }
// repeated .org.apache.hadoop.hbase.rest.protobuf.generated.TableSchema.Attribute attrs = 2;
+ private java.util.List attrs_ =
+ java.util.Collections.emptyList();
+ private void ensureAttrsIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ attrs_ = new java.util.ArrayList(attrs_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute, org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.AttributeOrBuilder> attrsBuilder_;
+
public java.util.List getAttrsList() {
- return java.util.Collections.unmodifiableList(result.attrs_);
+ if (attrsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(attrs_);
+ } else {
+ return attrsBuilder_.getMessageList();
+ }
}
public int getAttrsCount() {
- return result.getAttrsCount();
+ if (attrsBuilder_ == null) {
+ return attrs_.size();
+ } else {
+ return attrsBuilder_.getCount();
+ }
}
public org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute getAttrs(int index) {
- return result.getAttrs(index);
- }
- public Builder setAttrs(int index, org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute value) {
- if (value == null) {
- throw new NullPointerException();
+ if (attrsBuilder_ == null) {
+ return attrs_.get(index);
+ } else {
+ return attrsBuilder_.getMessage(index);
+ }
+ }
+ public Builder setAttrs(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute value) {
+ if (attrsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAttrsIsMutable();
+ attrs_.set(index, value);
+ onChanged();
+ } else {
+ attrsBuilder_.setMessage(index, value);
}
- result.attrs_.set(index, value);
return this;
}
- public Builder setAttrs(int index, org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute.Builder builderForValue) {
- result.attrs_.set(index, builderForValue.build());
+ public Builder setAttrs(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute.Builder builderForValue) {
+ if (attrsBuilder_ == null) {
+ ensureAttrsIsMutable();
+ attrs_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ attrsBuilder_.setMessage(index, builderForValue.build());
+ }
return this;
}
public Builder addAttrs(org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute value) {
- if (value == null) {
- throw new NullPointerException();
+ if (attrsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAttrsIsMutable();
+ attrs_.add(value);
+ onChanged();
+ } else {
+ attrsBuilder_.addMessage(value);
}
- if (result.attrs_.isEmpty()) {
- result.attrs_ = new java.util.ArrayList();
- }
- result.attrs_.add(value);
return this;
}
- public Builder addAttrs(org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute.Builder builderForValue) {
- if (result.attrs_.isEmpty()) {
- result.attrs_ = new java.util.ArrayList();
+ public Builder addAttrs(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute value) {
+ if (attrsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAttrsIsMutable();
+ attrs_.add(index, value);
+ onChanged();
+ } else {
+ attrsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ public Builder addAttrs(
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute.Builder builderForValue) {
+ if (attrsBuilder_ == null) {
+ ensureAttrsIsMutable();
+ attrs_.add(builderForValue.build());
+ onChanged();
+ } else {
+ attrsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ public Builder addAttrs(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute.Builder builderForValue) {
+ if (attrsBuilder_ == null) {
+ ensureAttrsIsMutable();
+ attrs_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ attrsBuilder_.addMessage(index, builderForValue.build());
}
- result.attrs_.add(builderForValue.build());
return this;
}
public Builder addAllAttrs(
java.lang.Iterable extends org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute> values) {
- if (result.attrs_.isEmpty()) {
- result.attrs_ = new java.util.ArrayList();
+ if (attrsBuilder_ == null) {
+ ensureAttrsIsMutable();
+ super.addAll(values, attrs_);
+ onChanged();
+ } else {
+ attrsBuilder_.addAllMessages(values);
}
- super.addAll(values, result.attrs_);
return this;
}
public Builder clearAttrs() {
- result.attrs_ = java.util.Collections.emptyList();
+ if (attrsBuilder_ == null) {
+ attrs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ attrsBuilder_.clear();
+ }
return this;
}
+ public Builder removeAttrs(int index) {
+ if (attrsBuilder_ == null) {
+ ensureAttrsIsMutable();
+ attrs_.remove(index);
+ onChanged();
+ } else {
+ attrsBuilder_.remove(index);
+ }
+ return this;
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute.Builder getAttrsBuilder(
+ int index) {
+ return getAttrsFieldBuilder().getBuilder(index);
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.AttributeOrBuilder getAttrsOrBuilder(
+ int index) {
+ if (attrsBuilder_ == null) {
+ return attrs_.get(index); } else {
+ return attrsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ public java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.AttributeOrBuilder>
+ getAttrsOrBuilderList() {
+ if (attrsBuilder_ != null) {
+ return attrsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(attrs_);
+ }
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute.Builder addAttrsBuilder() {
+ return getAttrsFieldBuilder().addBuilder(
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute.getDefaultInstance());
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute.Builder addAttrsBuilder(
+ int index) {
+ return getAttrsFieldBuilder().addBuilder(
+ index, org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute.getDefaultInstance());
+ }
+ public java.util.List
+ getAttrsBuilderList() {
+ return getAttrsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute, org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.AttributeOrBuilder>
+ getAttrsFieldBuilder() {
+ if (attrsBuilder_ == null) {
+ attrsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute, org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.Attribute.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.TableSchema.AttributeOrBuilder>(
+ attrs_,
+ ((bitField0_ & 0x00000002) == 0x00000002),
+ getParentForChildren(),
+ isClean());
+ attrs_ = null;
+ }
+ return attrsBuilder_;
+ }
// repeated .org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchema columns = 3;
+ private java.util.List columns_ =
+ java.util.Collections.emptyList();
+ private void ensureColumnsIsMutable() {
+ if (!((bitField0_ & 0x00000004) == 0x00000004)) {
+ columns_ = new java.util.ArrayList(columns_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchemaOrBuilder> columnsBuilder_;
+
public java.util.List getColumnsList() {
- return java.util.Collections.unmodifiableList(result.columns_);
+ if (columnsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(columns_);
+ } else {
+ return columnsBuilder_.getMessageList();
+ }
}
public int getColumnsCount() {
- return result.getColumnsCount();
+ if (columnsBuilder_ == null) {
+ return columns_.size();
+ } else {
+ return columnsBuilder_.getCount();
+ }
}
public org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema getColumns(int index) {
- return result.getColumns(index);
- }
- public Builder setColumns(int index, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema value) {
- if (value == null) {
- throw new NullPointerException();
+ if (columnsBuilder_ == null) {
+ return columns_.get(index);
+ } else {
+ return columnsBuilder_.getMessage(index);
+ }
+ }
+ public Builder setColumns(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema value) {
+ if (columnsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnsIsMutable();
+ columns_.set(index, value);
+ onChanged();
+ } else {
+ columnsBuilder_.setMessage(index, value);
}
- result.columns_.set(index, value);
return this;
}
- public Builder setColumns(int index, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Builder builderForValue) {
- result.columns_.set(index, builderForValue.build());
+ public Builder setColumns(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Builder builderForValue) {
+ if (columnsBuilder_ == null) {
+ ensureColumnsIsMutable();
+ columns_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ columnsBuilder_.setMessage(index, builderForValue.build());
+ }
return this;
}
public Builder addColumns(org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema value) {
- if (value == null) {
- throw new NullPointerException();
+ if (columnsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnsIsMutable();
+ columns_.add(value);
+ onChanged();
+ } else {
+ columnsBuilder_.addMessage(value);
}
- if (result.columns_.isEmpty()) {
- result.columns_ = new java.util.ArrayList();
- }
- result.columns_.add(value);
return this;
}
- public Builder addColumns(org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Builder builderForValue) {
- if (result.columns_.isEmpty()) {
- result.columns_ = new java.util.ArrayList();
+ public Builder addColumns(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema value) {
+ if (columnsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnsIsMutable();
+ columns_.add(index, value);
+ onChanged();
+ } else {
+ columnsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ public Builder addColumns(
+ org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Builder builderForValue) {
+ if (columnsBuilder_ == null) {
+ ensureColumnsIsMutable();
+ columns_.add(builderForValue.build());
+ onChanged();
+ } else {
+ columnsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ public Builder addColumns(
+ int index, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Builder builderForValue) {
+ if (columnsBuilder_ == null) {
+ ensureColumnsIsMutable();
+ columns_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ columnsBuilder_.addMessage(index, builderForValue.build());
}
- result.columns_.add(builderForValue.build());
return this;
}
public Builder addAllColumns(
java.lang.Iterable extends org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema> values) {
- if (result.columns_.isEmpty()) {
- result.columns_ = new java.util.ArrayList();
+ if (columnsBuilder_ == null) {
+ ensureColumnsIsMutable();
+ super.addAll(values, columns_);
+ onChanged();
+ } else {
+ columnsBuilder_.addAllMessages(values);
}
- super.addAll(values, result.columns_);
return this;
}
public Builder clearColumns() {
- result.columns_ = java.util.Collections.emptyList();
+ if (columnsBuilder_ == null) {
+ columns_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ columnsBuilder_.clear();
+ }
return this;
}
+ public Builder removeColumns(int index) {
+ if (columnsBuilder_ == null) {
+ ensureColumnsIsMutable();
+ columns_.remove(index);
+ onChanged();
+ } else {
+ columnsBuilder_.remove(index);
+ }
+ return this;
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Builder getColumnsBuilder(
+ int index) {
+ return getColumnsFieldBuilder().getBuilder(index);
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchemaOrBuilder getColumnsOrBuilder(
+ int index) {
+ if (columnsBuilder_ == null) {
+ return columns_.get(index); } else {
+ return columnsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ public java.util.List extends org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchemaOrBuilder>
+ getColumnsOrBuilderList() {
+ if (columnsBuilder_ != null) {
+ return columnsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(columns_);
+ }
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Builder addColumnsBuilder() {
+ return getColumnsFieldBuilder().addBuilder(
+ org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.getDefaultInstance());
+ }
+ public org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Builder addColumnsBuilder(
+ int index) {
+ return getColumnsFieldBuilder().addBuilder(
+ index, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.getDefaultInstance());
+ }
+ public java.util.List
+ getColumnsBuilderList() {
+ return getColumnsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchemaOrBuilder>
+ getColumnsFieldBuilder() {
+ if (columnsBuilder_ == null) {
+ columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchema.Builder, org.apache.hadoop.hbase.rest.protobuf.generated.ColumnSchemaMessage.ColumnSchemaOrBuilder>(
+ columns_,
+ ((bitField0_ & 0x00000004) == 0x00000004),
+ getParentForChildren(),
+ isClean());
+ columns_ = null;
+ }
+ return columnsBuilder_;
+ }
// optional bool inMemory = 4;
+ private boolean inMemory_ ;
public boolean hasInMemory() {
- return result.hasInMemory();
+ return ((bitField0_ & 0x00000008) == 0x00000008);
}
public boolean getInMemory() {
- return result.getInMemory();
+ return inMemory_;
}
public Builder setInMemory(boolean value) {
- result.hasInMemory = true;
- result.inMemory_ = value;
+ bitField0_ |= 0x00000008;
+ inMemory_ = value;
+ onChanged();
return this;
}
public Builder clearInMemory() {
- result.hasInMemory = false;
- result.inMemory_ = false;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ inMemory_ = false;
+ onChanged();
return this;
}
// optional bool readOnly = 5;
+ private boolean readOnly_ ;
public boolean hasReadOnly() {
- return result.hasReadOnly();
+ return ((bitField0_ & 0x00000010) == 0x00000010);
}
public boolean getReadOnly() {
- return result.getReadOnly();
+ return readOnly_;
}
public Builder setReadOnly(boolean value) {
- result.hasReadOnly = true;
- result.readOnly_ = value;
+ bitField0_ |= 0x00000010;
+ readOnly_ = value;
+ onChanged();
return this;
}
public Builder clearReadOnly() {
- result.hasReadOnly = false;
- result.readOnly_ = false;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ readOnly_ = false;
+ onChanged();
return this;
}
@@ -875,7 +1546,6 @@ public final class TableSchemaMessage {
static {
defaultInstance = new TableSchema(true);
- org.apache.hadoop.hbase.rest.protobuf.generated.TableSchemaMessage.internalForceInit();
defaultInstance.initFields();
}
@@ -943,7 +1613,5 @@ public final class TableSchemaMessage {
}, assigner);
}
- public static void internalForceInit() {}
-
// @@protoc_insertion_point(outer_class_scope)
}
diff --git a/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/VersionMessage.java b/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/VersionMessage.java
index 43e06bf6d7d..175792223f5 100644
--- a/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/VersionMessage.java
+++ b/src/main/java/org/apache/hadoop/hbase/rest/protobuf/generated/VersionMessage.java
@@ -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 {
- 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
+ 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)
}