You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2013/06/22 02:15:12 UTC
svn commit: r1495642 [5/6] - in /hbase/trunk:
hbase-client/src/main/java/org/apache/hadoop/hbase/
hbase-client/src/main/java/org/apache/hadoop/hbase/filter/
hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/
hbase-client/src/main/java/org/apa...
Modified: hbase/trunk/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.java?rev=1495642&r1=1495641&r2=1495642&view=diff
==============================================================================
--- hbase/trunk/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.java (original)
+++ hbase/trunk/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.java Sat Jun 22 00:15:11 2013
@@ -8,87 +8,6 @@ public final class HBaseProtos {
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
- public enum CellType
- implements com.google.protobuf.ProtocolMessageEnum {
- MINIMUM(0, 0),
- PUT(1, 4),
- DELETE(2, 8),
- DELETE_COLUMN(3, 12),
- DELETE_FAMILY(4, 14),
- MAXIMUM(5, 255),
- ;
-
- public static final int MINIMUM_VALUE = 0;
- public static final int PUT_VALUE = 4;
- public static final int DELETE_VALUE = 8;
- public static final int DELETE_COLUMN_VALUE = 12;
- public static final int DELETE_FAMILY_VALUE = 14;
- public static final int MAXIMUM_VALUE = 255;
-
-
- public final int getNumber() { return value; }
-
- public static CellType valueOf(int value) {
- switch (value) {
- case 0: return MINIMUM;
- case 4: return PUT;
- case 8: return DELETE;
- case 12: return DELETE_COLUMN;
- case 14: return DELETE_FAMILY;
- case 255: return MAXIMUM;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap<CellType>
- internalGetValueMap() {
- return internalValueMap;
- }
- private static com.google.protobuf.Internal.EnumLiteMap<CellType>
- internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<CellType>() {
- public CellType findValueByNumber(int number) {
- return CellType.valueOf(number);
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
- getValueDescriptor() {
- return getDescriptor().getValues().get(index);
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.getDescriptor().getEnumTypes().get(0);
- }
-
- private static final CellType[] VALUES = {
- MINIMUM, PUT, DELETE, DELETE_COLUMN, DELETE_FAMILY, MAXIMUM,
- };
-
- public static CellType valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
-
- private final int index;
- private final int value;
-
- private CellType(int index, int value) {
- this.index = index;
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:CellType)
- }
-
public enum CompareType
implements com.google.protobuf.ProtocolMessageEnum {
LESS(0, 0),
@@ -146,7 +65,7 @@ public final class HBaseProtos {
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.getDescriptor().getEnumTypes().get(1);
+ return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.getDescriptor().getEnumTypes().get(0);
}
private static final CompareType[] VALUES = {
@@ -173,135 +92,174 @@ public final class HBaseProtos {
// @@protoc_insertion_point(enum_scope:CompareType)
}
- public interface CellOrBuilder
+ public interface TableSchemaOrBuilder
extends com.google.protobuf.MessageOrBuilder {
- // optional bytes row = 1;
- boolean hasRow();
- com.google.protobuf.ByteString getRow();
-
- // optional bytes family = 2;
- boolean hasFamily();
- com.google.protobuf.ByteString getFamily();
-
- // optional bytes qualifier = 3;
- boolean hasQualifier();
- com.google.protobuf.ByteString getQualifier();
-
- // optional uint64 timestamp = 4;
- boolean hasTimestamp();
- long getTimestamp();
-
- // optional .CellType cellType = 5;
- boolean hasCellType();
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellType getCellType();
+ // optional bytes name = 1;
+ boolean hasName();
+ com.google.protobuf.ByteString getName();
- // optional bytes value = 6;
- boolean hasValue();
- com.google.protobuf.ByteString getValue();
+ // repeated .BytesBytesPair attributes = 2;
+ java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair>
+ getAttributesList();
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair getAttributes(int index);
+ int getAttributesCount();
+ java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder>
+ getAttributesOrBuilderList();
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder getAttributesOrBuilder(
+ int index);
+
+ // repeated .ColumnFamilySchema columnFamilies = 3;
+ java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema>
+ getColumnFamiliesList();
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema getColumnFamilies(int index);
+ int getColumnFamiliesCount();
+ java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchemaOrBuilder>
+ getColumnFamiliesOrBuilderList();
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchemaOrBuilder getColumnFamiliesOrBuilder(
+ int index);
+
+ // repeated .NameStringPair configuration = 4;
+ java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair>
+ getConfigurationList();
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index);
+ int getConfigurationCount();
+ java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder>
+ getConfigurationOrBuilderList();
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder(
+ int index);
}
- public static final class Cell extends
+ public static final class TableSchema extends
com.google.protobuf.GeneratedMessage
- implements CellOrBuilder {
- // Use Cell.newBuilder() to construct.
- private Cell(Builder builder) {
+ implements TableSchemaOrBuilder {
+ // Use TableSchema.newBuilder() to construct.
+ private TableSchema(Builder builder) {
super(builder);
}
- private Cell(boolean noInit) {}
+ private TableSchema(boolean noInit) {}
- private static final Cell defaultInstance;
- public static Cell getDefaultInstance() {
+ private static final TableSchema defaultInstance;
+ public static TableSchema getDefaultInstance() {
return defaultInstance;
}
- public Cell getDefaultInstanceForType() {
+ public TableSchema getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_Cell_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableSchema_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_Cell_fieldAccessorTable;
+ return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableSchema_fieldAccessorTable;
}
private int bitField0_;
- // optional bytes row = 1;
- public static final int ROW_FIELD_NUMBER = 1;
- private com.google.protobuf.ByteString row_;
- public boolean hasRow() {
+ // optional bytes name = 1;
+ public static final int NAME_FIELD_NUMBER = 1;
+ private com.google.protobuf.ByteString name_;
+ public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
- public com.google.protobuf.ByteString getRow() {
- return row_;
+ public com.google.protobuf.ByteString getName() {
+ return name_;
}
- // optional bytes family = 2;
- public static final int FAMILY_FIELD_NUMBER = 2;
- private com.google.protobuf.ByteString family_;
- public boolean hasFamily() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ // repeated .BytesBytesPair attributes = 2;
+ public static final int ATTRIBUTES_FIELD_NUMBER = 2;
+ private java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair> attributes_;
+ public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair> getAttributesList() {
+ return attributes_;
+ }
+ public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder>
+ getAttributesOrBuilderList() {
+ return attributes_;
}
- public com.google.protobuf.ByteString getFamily() {
- return family_;
+ public int getAttributesCount() {
+ return attributes_.size();
}
-
- // optional bytes qualifier = 3;
- public static final int QUALIFIER_FIELD_NUMBER = 3;
- private com.google.protobuf.ByteString qualifier_;
- public boolean hasQualifier() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair getAttributes(int index) {
+ return attributes_.get(index);
}
- public com.google.protobuf.ByteString getQualifier() {
- return qualifier_;
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder getAttributesOrBuilder(
+ int index) {
+ return attributes_.get(index);
}
- // optional uint64 timestamp = 4;
- public static final int TIMESTAMP_FIELD_NUMBER = 4;
- private long timestamp_;
- public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ // repeated .ColumnFamilySchema columnFamilies = 3;
+ public static final int COLUMNFAMILIES_FIELD_NUMBER = 3;
+ private java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema> columnFamilies_;
+ public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema> getColumnFamiliesList() {
+ return columnFamilies_;
}
- public long getTimestamp() {
- return timestamp_;
+ public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchemaOrBuilder>
+ getColumnFamiliesOrBuilderList() {
+ return columnFamilies_;
}
-
- // optional .CellType cellType = 5;
- public static final int CELLTYPE_FIELD_NUMBER = 5;
- private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellType cellType_;
- public boolean hasCellType() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
+ public int getColumnFamiliesCount() {
+ return columnFamilies_.size();
+ }
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema getColumnFamilies(int index) {
+ return columnFamilies_.get(index);
}
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellType getCellType() {
- return cellType_;
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchemaOrBuilder getColumnFamiliesOrBuilder(
+ int index) {
+ return columnFamilies_.get(index);
}
- // optional bytes value = 6;
- public static final int VALUE_FIELD_NUMBER = 6;
- private com.google.protobuf.ByteString value_;
- public boolean hasValue() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
+ // repeated .NameStringPair configuration = 4;
+ public static final int CONFIGURATION_FIELD_NUMBER = 4;
+ private java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair> configuration_;
+ public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair> getConfigurationList() {
+ return configuration_;
}
- public com.google.protobuf.ByteString getValue() {
- return value_;
+ public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder>
+ getConfigurationOrBuilderList() {
+ return configuration_;
+ }
+ public int getConfigurationCount() {
+ return configuration_.size();
+ }
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index) {
+ return configuration_.get(index);
+ }
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder(
+ int index) {
+ return configuration_.get(index);
}
private void initFields() {
- row_ = com.google.protobuf.ByteString.EMPTY;
- family_ = com.google.protobuf.ByteString.EMPTY;
- qualifier_ = com.google.protobuf.ByteString.EMPTY;
- timestamp_ = 0L;
- cellType_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellType.MINIMUM;
- value_ = com.google.protobuf.ByteString.EMPTY;
+ name_ = com.google.protobuf.ByteString.EMPTY;
+ attributes_ = java.util.Collections.emptyList();
+ columnFamilies_ = java.util.Collections.emptyList();
+ configuration_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
+ for (int i = 0; i < getAttributesCount(); i++) {
+ if (!getAttributes(i).isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ }
+ for (int i = 0; i < getColumnFamiliesCount(); i++) {
+ if (!getColumnFamilies(i).isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ }
+ for (int i = 0; i < getConfigurationCount(); i++) {
+ if (!getConfiguration(i).isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ }
memoizedIsInitialized = 1;
return true;
}
@@ -310,22 +268,16 @@ public final class HBaseProtos {
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, row_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, family_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, qualifier_);
+ output.writeBytes(1, name_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeUInt64(4, timestamp_);
+ for (int i = 0; i < attributes_.size(); i++) {
+ output.writeMessage(2, attributes_.get(i));
}
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeEnum(5, cellType_.getNumber());
+ for (int i = 0; i < columnFamilies_.size(); i++) {
+ output.writeMessage(3, columnFamilies_.get(i));
}
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- output.writeBytes(6, value_);
+ for (int i = 0; i < configuration_.size(); i++) {
+ output.writeMessage(4, configuration_.get(i));
}
getUnknownFields().writeTo(output);
}
@@ -338,27 +290,19 @@ public final class HBaseProtos {
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, row_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, family_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, qualifier_);
+ .computeBytesSize(1, name_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ for (int i = 0; i < attributes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(4, timestamp_);
+ .computeMessageSize(2, attributes_.get(i));
}
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ for (int i = 0; i < columnFamilies_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(5, cellType_.getNumber());
+ .computeMessageSize(3, columnFamilies_.get(i));
}
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ for (int i = 0; i < configuration_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(6, value_);
+ .computeMessageSize(4, configuration_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
@@ -377,42 +321,23 @@ public final class HBaseProtos {
if (obj == this) {
return true;
}
- if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell)) {
+ if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema)) {
return super.equals(obj);
}
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell) obj;
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema) obj;
boolean result = true;
- result = result && (hasRow() == other.hasRow());
- if (hasRow()) {
- result = result && getRow()
- .equals(other.getRow());
- }
- result = result && (hasFamily() == other.hasFamily());
- if (hasFamily()) {
- result = result && getFamily()
- .equals(other.getFamily());
- }
- result = result && (hasQualifier() == other.hasQualifier());
- if (hasQualifier()) {
- result = result && getQualifier()
- .equals(other.getQualifier());
- }
- result = result && (hasTimestamp() == other.hasTimestamp());
- if (hasTimestamp()) {
- result = result && (getTimestamp()
- == other.getTimestamp());
- }
- result = result && (hasCellType() == other.hasCellType());
- if (hasCellType()) {
- result = result &&
- (getCellType() == other.getCellType());
- }
- result = result && (hasValue() == other.hasValue());
- if (hasValue()) {
- result = result && getValue()
- .equals(other.getValue());
+ result = result && (hasName() == other.hasName());
+ if (hasName()) {
+ result = result && getName()
+ .equals(other.getName());
}
+ result = result && getAttributesList()
+ .equals(other.getAttributesList());
+ result = result && getColumnFamiliesList()
+ .equals(other.getColumnFamiliesList());
+ result = result && getConfigurationList()
+ .equals(other.getConfigurationList());
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
@@ -422,69 +347,61 @@ public final class HBaseProtos {
public int hashCode() {
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
- if (hasRow()) {
- hash = (37 * hash) + ROW_FIELD_NUMBER;
- hash = (53 * hash) + getRow().hashCode();
- }
- if (hasFamily()) {
- hash = (37 * hash) + FAMILY_FIELD_NUMBER;
- hash = (53 * hash) + getFamily().hashCode();
- }
- if (hasQualifier()) {
- hash = (37 * hash) + QUALIFIER_FIELD_NUMBER;
- hash = (53 * hash) + getQualifier().hashCode();
- }
- if (hasTimestamp()) {
- hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
- hash = (53 * hash) + hashLong(getTimestamp());
- }
- if (hasCellType()) {
- hash = (37 * hash) + CELLTYPE_FIELD_NUMBER;
- hash = (53 * hash) + hashEnum(getCellType());
+ if (hasName()) {
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
}
- if (hasValue()) {
- hash = (37 * hash) + VALUE_FIELD_NUMBER;
- hash = (53 * hash) + getValue().hashCode();
+ if (getAttributesCount() > 0) {
+ hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER;
+ hash = (53 * hash) + getAttributesList().hashCode();
+ }
+ if (getColumnFamiliesCount() > 0) {
+ hash = (37 * hash) + COLUMNFAMILIES_FIELD_NUMBER;
+ hash = (53 * hash) + getColumnFamiliesList().hashCode();
+ }
+ if (getConfigurationCount() > 0) {
+ hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER;
+ hash = (53 * hash) + getConfigurationList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
return hash;
}
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell parseFrom(byte[] data)
+ public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell parseFrom(java.io.InputStream input)
+ public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell parseDelimitedFrom(java.io.InputStream input)
+ public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
@@ -493,7 +410,7 @@ public final class HBaseProtos {
return null;
}
}
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell parseDelimitedFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -504,12 +421,12 @@ public final class HBaseProtos {
return null;
}
}
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -519,7 +436,7 @@ public final class HBaseProtos {
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell prototype) {
+ public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@@ -532,18 +449,18 @@ public final class HBaseProtos {
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellOrBuilder {
+ implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchemaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_Cell_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableSchema_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_Cell_fieldAccessorTable;
+ return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableSchema_fieldAccessorTable;
}
- // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell.newBuilder()
+ // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -554,6 +471,9 @@ public final class HBaseProtos {
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getAttributesFieldBuilder();
+ getColumnFamiliesFieldBuilder();
+ getConfigurationFieldBuilder();
}
}
private static Builder create() {
@@ -562,18 +482,26 @@ public final class HBaseProtos {
public Builder clear() {
super.clear();
- row_ = com.google.protobuf.ByteString.EMPTY;
+ name_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
- family_ = com.google.protobuf.ByteString.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
- qualifier_ = com.google.protobuf.ByteString.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000004);
- timestamp_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000008);
- cellType_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellType.MINIMUM;
- bitField0_ = (bitField0_ & ~0x00000010);
- value_ = com.google.protobuf.ByteString.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000020);
+ if (attributesBuilder_ == null) {
+ attributes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ attributesBuilder_.clear();
+ }
+ if (columnFamiliesBuilder_ == null) {
+ columnFamilies_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ columnFamiliesBuilder_.clear();
+ }
+ if (configurationBuilder_ == null) {
+ configuration_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ configurationBuilder_.clear();
+ }
return this;
}
@@ -583,24 +511,24 @@ public final class HBaseProtos {
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
- return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell.getDescriptor();
+ return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.getDescriptor();
}
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell getDefaultInstanceForType() {
- return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell.getDefaultInstance();
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema getDefaultInstanceForType() {
+ return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.getDefaultInstance();
}
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell build() {
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell result = buildPartial();
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema build() {
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell buildParsed()
+ private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell result = buildPartial();
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
@@ -608,73 +536,161 @@ public final class HBaseProtos {
return result;
}
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell buildPartial() {
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell(this);
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema buildPartial() {
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
- result.row_ = row_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.family_ = family_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.qualifier_ = qualifier_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000008;
+ result.name_ = name_;
+ if (attributesBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ attributes_ = java.util.Collections.unmodifiableList(attributes_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.attributes_ = attributes_;
+ } else {
+ result.attributes_ = attributesBuilder_.build();
}
- result.timestamp_ = timestamp_;
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
- to_bitField0_ |= 0x00000010;
+ if (columnFamiliesBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ columnFamilies_ = java.util.Collections.unmodifiableList(columnFamilies_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.columnFamilies_ = columnFamilies_;
+ } else {
+ result.columnFamilies_ = columnFamiliesBuilder_.build();
}
- result.cellType_ = cellType_;
- if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
- to_bitField0_ |= 0x00000020;
+ if (configurationBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ configuration_ = java.util.Collections.unmodifiableList(configuration_);
+ bitField0_ = (bitField0_ & ~0x00000008);
+ }
+ result.configuration_ = configuration_;
+ } else {
+ result.configuration_ = configurationBuilder_.build();
}
- result.value_ = value_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell) {
- return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell)other);
+ if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema) {
+ return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema)other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell other) {
- if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Cell.getDefaultInstance()) return this;
- if (other.hasRow()) {
- setRow(other.getRow());
- }
- if (other.hasFamily()) {
- setFamily(other.getFamily());
- }
- if (other.hasQualifier()) {
- setQualifier(other.getQualifier());
+ public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema other) {
+ if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.getDefaultInstance()) return this;
+ if (other.hasName()) {
+ setName(other.getName());
}
- if (other.hasTimestamp()) {
- setTimestamp(other.getTimestamp());
+ if (attributesBuilder_ == null) {
+ if (!other.attributes_.isEmpty()) {
+ if (attributes_.isEmpty()) {
+ attributes_ = other.attributes_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureAttributesIsMutable();
+ attributes_.addAll(other.attributes_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.attributes_.isEmpty()) {
+ if (attributesBuilder_.isEmpty()) {
+ attributesBuilder_.dispose();
+ attributesBuilder_ = null;
+ attributes_ = other.attributes_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ attributesBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getAttributesFieldBuilder() : null;
+ } else {
+ attributesBuilder_.addAllMessages(other.attributes_);
+ }
+ }
}
- if (other.hasCellType()) {
- setCellType(other.getCellType());
+ if (columnFamiliesBuilder_ == null) {
+ if (!other.columnFamilies_.isEmpty()) {
+ if (columnFamilies_.isEmpty()) {
+ columnFamilies_ = other.columnFamilies_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.addAll(other.columnFamilies_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.columnFamilies_.isEmpty()) {
+ if (columnFamiliesBuilder_.isEmpty()) {
+ columnFamiliesBuilder_.dispose();
+ columnFamiliesBuilder_ = null;
+ columnFamilies_ = other.columnFamilies_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ columnFamiliesBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getColumnFamiliesFieldBuilder() : null;
+ } else {
+ columnFamiliesBuilder_.addAllMessages(other.columnFamilies_);
+ }
+ }
}
- if (other.hasValue()) {
- setValue(other.getValue());
+ if (configurationBuilder_ == null) {
+ if (!other.configuration_.isEmpty()) {
+ if (configuration_.isEmpty()) {
+ configuration_ = other.configuration_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ ensureConfigurationIsMutable();
+ configuration_.addAll(other.configuration_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.configuration_.isEmpty()) {
+ if (configurationBuilder_.isEmpty()) {
+ configurationBuilder_.dispose();
+ configurationBuilder_ = null;
+ configuration_ = other.configuration_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ configurationBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getConfigurationFieldBuilder() : null;
+ } else {
+ configurationBuilder_.addAllMessages(other.configuration_);
+ }
+ }
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
+ for (int i = 0; i < getAttributesCount(); i++) {
+ if (!getAttributes(i).isInitialized()) {
+
+ return false;
+ }
+ }
+ for (int i = 0; i < getColumnFamiliesCount(); i++) {
+ if (!getColumnFamilies(i).isInitialized()) {
+
+ return false;
+ }
+ }
+ for (int i = 0; i < getConfigurationCount(); i++) {
+ if (!getConfiguration(i).isInitialized()) {
+
+ return false;
+ }
+ }
return true;
}
@@ -703,38 +719,25 @@ public final class HBaseProtos {
}
case 10: {
bitField0_ |= 0x00000001;
- row_ = input.readBytes();
+ name_ = input.readBytes();
break;
}
case 18: {
- bitField0_ |= 0x00000002;
- family_ = input.readBytes();
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.newBuilder();
+ input.readMessage(subBuilder, extensionRegistry);
+ addAttributes(subBuilder.buildPartial());
break;
}
case 26: {
- bitField0_ |= 0x00000004;
- qualifier_ = input.readBytes();
- break;
- }
- case 32: {
- bitField0_ |= 0x00000008;
- timestamp_ = input.readUInt64();
- break;
- }
- case 40: {
- int rawValue = input.readEnum();
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellType value = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellType.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(5, rawValue);
- } else {
- bitField0_ |= 0x00000010;
- cellType_ = value;
- }
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.newBuilder();
+ input.readMessage(subBuilder, extensionRegistry);
+ addColumnFamilies(subBuilder.buildPartial());
break;
}
- case 50: {
- bitField0_ |= 0x00000020;
- value_ = input.readBytes();
+ case 34: {
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.newBuilder();
+ input.readMessage(subBuilder, extensionRegistry);
+ addConfiguration(subBuilder.buildPartial());
break;
}
}
@@ -743,4563 +746,732 @@ public final class HBaseProtos {
private int bitField0_;
- // optional bytes row = 1;
- private com.google.protobuf.ByteString row_ = com.google.protobuf.ByteString.EMPTY;
- public boolean hasRow() {
+ // optional bytes name = 1;
+ private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY;
+ public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
- public com.google.protobuf.ByteString getRow() {
- return row_;
+ public com.google.protobuf.ByteString getName() {
+ return name_;
}
- public Builder setRow(com.google.protobuf.ByteString value) {
+ public Builder setName(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
- row_ = value;
+ name_ = value;
onChanged();
return this;
}
- public Builder clearRow() {
+ public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
- row_ = getDefaultInstance().getRow();
+ name_ = getDefaultInstance().getName();
onChanged();
return this;
}
- // optional bytes family = 2;
- private com.google.protobuf.ByteString family_ = com.google.protobuf.ByteString.EMPTY;
- public boolean hasFamily() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- public com.google.protobuf.ByteString getFamily() {
- return family_;
- }
- public Builder setFamily(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- family_ = value;
- onChanged();
- return this;
- }
- public Builder clearFamily() {
- bitField0_ = (bitField0_ & ~0x00000002);
- family_ = getDefaultInstance().getFamily();
- onChanged();
- return this;
+ // repeated .BytesBytesPair attributes = 2;
+ private java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair> attributes_ =
+ java.util.Collections.emptyList();
+ private void ensureAttributesIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ attributes_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair>(attributes_);
+ bitField0_ |= 0x00000002;
+ }
}
- // optional bytes qualifier = 3;
- private com.google.protobuf.ByteString qualifier_ = com.google.protobuf.ByteString.EMPTY;
- public boolean hasQualifier() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- public com.google.protobuf.ByteString getQualifier() {
- return qualifier_;
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder> attributesBuilder_;
+
+ public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair> getAttributesList() {
+ if (attributesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(attributes_);
+ } else {
+ return attributesBuilder_.getMessageList();
+ }
}
- public Builder setQualifier(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- qualifier_ = value;
- onChanged();
- return this;
+ public int getAttributesCount() {
+ if (attributesBuilder_ == null) {
+ return attributes_.size();
+ } else {
+ return attributesBuilder_.getCount();
+ }
}
- public Builder clearQualifier() {
- bitField0_ = (bitField0_ & ~0x00000004);
- qualifier_ = getDefaultInstance().getQualifier();
- onChanged();
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair getAttributes(int index) {
+ if (attributesBuilder_ == null) {
+ return attributes_.get(index);
+ } else {
+ return attributesBuilder_.getMessage(index);
+ }
+ }
+ public Builder setAttributes(
+ int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair value) {
+ if (attributesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAttributesIsMutable();
+ attributes_.set(index, value);
+ onChanged();
+ } else {
+ attributesBuilder_.setMessage(index, value);
+ }
return this;
}
-
- // optional uint64 timestamp = 4;
- private long timestamp_ ;
- public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ public Builder setAttributes(
+ int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder builderForValue) {
+ if (attributesBuilder_ == null) {
+ ensureAttributesIsMutable();
+ attributes_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ attributesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
}
- public long getTimestamp() {
- return timestamp_;
+ public Builder addAttributes(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair value) {
+ if (attributesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAttributesIsMutable();
+ attributes_.add(value);
+ onChanged();
+ } else {
+ attributesBuilder_.addMessage(value);
+ }
+ return this;
}
- public Builder setTimestamp(long value) {
- bitField0_ |= 0x00000008;
- timestamp_ = value;
- onChanged();
+ public Builder addAttributes(
+ int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair value) {
+ if (attributesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAttributesIsMutable();
+ attributes_.add(index, value);
+ onChanged();
+ } else {
+ attributesBuilder_.addMessage(index, value);
+ }
return this;
}
- public Builder clearTimestamp() {
- bitField0_ = (bitField0_ & ~0x00000008);
- timestamp_ = 0L;
- onChanged();
+ public Builder addAttributes(
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder builderForValue) {
+ if (attributesBuilder_ == null) {
+ ensureAttributesIsMutable();
+ attributes_.add(builderForValue.build());
+ onChanged();
+ } else {
+ attributesBuilder_.addMessage(builderForValue.build());
+ }
return this;
}
-
- // optional .CellType cellType = 5;
- private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellType cellType_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellType.MINIMUM;
- public boolean hasCellType() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
+ public Builder addAttributes(
+ int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder builderForValue) {
+ if (attributesBuilder_ == null) {
+ ensureAttributesIsMutable();
+ attributes_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ attributesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
}
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellType getCellType() {
- return cellType_;
+ public Builder addAllAttributes(
+ java.lang.Iterable<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair> values) {
+ if (attributesBuilder_ == null) {
+ ensureAttributesIsMutable();
+ super.addAll(values, attributes_);
+ onChanged();
+ } else {
+ attributesBuilder_.addAllMessages(values);
+ }
+ return this;
}
- public Builder setCellType(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellType value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder clearAttributes() {
+ if (attributesBuilder_ == null) {
+ attributes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ attributesBuilder_.clear();
}
- bitField0_ |= 0x00000010;
- cellType_ = value;
- onChanged();
return this;
}
- public Builder clearCellType() {
- bitField0_ = (bitField0_ & ~0x00000010);
- cellType_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CellType.MINIMUM;
- onChanged();
+ public Builder removeAttributes(int index) {
+ if (attributesBuilder_ == null) {
+ ensureAttributesIsMutable();
+ attributes_.remove(index);
+ onChanged();
+ } else {
+ attributesBuilder_.remove(index);
+ }
return this;
}
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder getAttributesBuilder(
+ int index) {
+ return getAttributesFieldBuilder().getBuilder(index);
+ }
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder getAttributesOrBuilder(
+ int index) {
+ if (attributesBuilder_ == null) {
+ return attributes_.get(index); } else {
+ return attributesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder>
+ getAttributesOrBuilderList() {
+ if (attributesBuilder_ != null) {
+ return attributesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(attributes_);
+ }
+ }
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder addAttributesBuilder() {
+ return getAttributesFieldBuilder().addBuilder(
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.getDefaultInstance());
+ }
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder addAttributesBuilder(
+ int index) {
+ return getAttributesFieldBuilder().addBuilder(
+ index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.getDefaultInstance());
+ }
+ public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder>
+ getAttributesBuilderList() {
+ return getAttributesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder>
+ getAttributesFieldBuilder() {
+ if (attributesBuilder_ == null) {
+ attributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder>(
+ attributes_,
+ ((bitField0_ & 0x00000002) == 0x00000002),
+ getParentForChildren(),
+ isClean());
+ attributes_ = null;
+ }
+ return attributesBuilder_;
+ }
- // optional bytes value = 6;
- private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
- public boolean hasValue() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
+ // repeated .ColumnFamilySchema columnFamilies = 3;
+ private java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema> columnFamilies_ =
+ java.util.Collections.emptyList();
+ private void ensureColumnFamiliesIsMutable() {
+ if (!((bitField0_ & 0x00000004) == 0x00000004)) {
+ columnFamilies_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema>(columnFamilies_);
+ bitField0_ |= 0x00000004;
+ }
}
- public com.google.protobuf.ByteString getValue() {
- return value_;
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchemaOrBuilder> columnFamiliesBuilder_;
+
+ public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema> getColumnFamiliesList() {
+ if (columnFamiliesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(columnFamilies_);
+ } else {
+ return columnFamiliesBuilder_.getMessageList();
+ }
}
- public Builder setValue(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000020;
- value_ = value;
- onChanged();
+ public int getColumnFamiliesCount() {
+ if (columnFamiliesBuilder_ == null) {
+ return columnFamilies_.size();
+ } else {
+ return columnFamiliesBuilder_.getCount();
+ }
+ }
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema getColumnFamilies(int index) {
+ if (columnFamiliesBuilder_ == null) {
+ return columnFamilies_.get(index);
+ } else {
+ return columnFamiliesBuilder_.getMessage(index);
+ }
+ }
+ public Builder setColumnFamilies(
+ int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema value) {
+ if (columnFamiliesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.set(index, value);
+ onChanged();
+ } else {
+ columnFamiliesBuilder_.setMessage(index, value);
+ }
return this;
}
- public Builder clearValue() {
- bitField0_ = (bitField0_ & ~0x00000020);
- value_ = getDefaultInstance().getValue();
- onChanged();
+ public Builder setColumnFamilies(
+ int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder builderForValue) {
+ if (columnFamiliesBuilder_ == null) {
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ columnFamiliesBuilder_.setMessage(index, builderForValue.build());
+ }
return this;
}
-
- // @@protoc_insertion_point(builder_scope:Cell)
- }
-
- static {
- defaultInstance = new Cell(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:Cell)
- }
-
- public interface TableSchemaOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // optional bytes name = 1;
- boolean hasName();
- com.google.protobuf.ByteString getName();
-
- // repeated .BytesBytesPair attributes = 2;
- java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair>
- getAttributesList();
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair getAttributes(int index);
- int getAttributesCount();
- java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder>
- getAttributesOrBuilderList();
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder getAttributesOrBuilder(
- int index);
-
- // repeated .ColumnFamilySchema columnFamilies = 3;
- java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema>
- getColumnFamiliesList();
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema getColumnFamilies(int index);
- int getColumnFamiliesCount();
- java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchemaOrBuilder>
- getColumnFamiliesOrBuilderList();
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchemaOrBuilder getColumnFamiliesOrBuilder(
- int index);
-
- // repeated .NameStringPair configuration = 4;
- java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair>
- getConfigurationList();
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index);
- int getConfigurationCount();
- java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder>
- getConfigurationOrBuilderList();
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder(
- int index);
- }
- public static final class TableSchema extends
- com.google.protobuf.GeneratedMessage
- implements TableSchemaOrBuilder {
- // Use TableSchema.newBuilder() to construct.
- private TableSchema(Builder builder) {
- super(builder);
- }
- private TableSchema(boolean noInit) {}
-
- private static final TableSchema defaultInstance;
- public static TableSchema getDefaultInstance() {
- return defaultInstance;
- }
-
- public TableSchema getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableSchema_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableSchema_fieldAccessorTable;
- }
-
- private int bitField0_;
- // optional bytes name = 1;
- public static final int NAME_FIELD_NUMBER = 1;
- private com.google.protobuf.ByteString name_;
- public boolean hasName() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public com.google.protobuf.ByteString getName() {
- return name_;
- }
-
- // repeated .BytesBytesPair attributes = 2;
- public static final int ATTRIBUTES_FIELD_NUMBER = 2;
- private java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair> attributes_;
- public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair> getAttributesList() {
- return attributes_;
- }
- public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder>
- getAttributesOrBuilderList() {
- return attributes_;
- }
- public int getAttributesCount() {
- return attributes_.size();
- }
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair getAttributes(int index) {
- return attributes_.get(index);
- }
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder getAttributesOrBuilder(
- int index) {
- return attributes_.get(index);
- }
-
- // repeated .ColumnFamilySchema columnFamilies = 3;
- public static final int COLUMNFAMILIES_FIELD_NUMBER = 3;
- private java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema> columnFamilies_;
- public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema> getColumnFamiliesList() {
- return columnFamilies_;
- }
- public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchemaOrBuilder>
- getColumnFamiliesOrBuilderList() {
- return columnFamilies_;
- }
- public int getColumnFamiliesCount() {
- return columnFamilies_.size();
- }
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema getColumnFamilies(int index) {
- return columnFamilies_.get(index);
- }
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchemaOrBuilder getColumnFamiliesOrBuilder(
- int index) {
- return columnFamilies_.get(index);
- }
-
- // repeated .NameStringPair configuration = 4;
- public static final int CONFIGURATION_FIELD_NUMBER = 4;
- private java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair> configuration_;
- public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair> getConfigurationList() {
- return configuration_;
- }
- public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder>
- getConfigurationOrBuilderList() {
- return configuration_;
- }
- public int getConfigurationCount() {
- return configuration_.size();
- }
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index) {
- return configuration_.get(index);
- }
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder(
- int index) {
- return configuration_.get(index);
- }
-
- private void initFields() {
- name_ = com.google.protobuf.ByteString.EMPTY;
- attributes_ = java.util.Collections.emptyList();
- columnFamilies_ = java.util.Collections.emptyList();
- configuration_ = java.util.Collections.emptyList();
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- for (int i = 0; i < getAttributesCount(); i++) {
- if (!getAttributes(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
+ public Builder addColumnFamilies(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema value) {
+ if (columnFamiliesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.add(value);
+ onChanged();
+ } else {
+ columnFamiliesBuilder_.addMessage(value);
}
+ return this;
}
- for (int i = 0; i < getColumnFamiliesCount(); i++) {
- if (!getColumnFamilies(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
+ public Builder addColumnFamilies(
+ int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema value) {
+ if (columnFamiliesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.add(index, value);
+ onChanged();
+ } else {
+ columnFamiliesBuilder_.addMessage(index, value);
}
+ return this;
}
- for (int i = 0; i < getConfigurationCount(); i++) {
- if (!getConfiguration(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
+ public Builder addColumnFamilies(
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder builderForValue) {
+ if (columnFamiliesBuilder_ == null) {
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.add(builderForValue.build());
+ onChanged();
+ } else {
+ columnFamiliesBuilder_.addMessage(builderForValue.build());
}
+ return this;
}
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, name_);
- }
- for (int i = 0; i < attributes_.size(); i++) {
- output.writeMessage(2, attributes_.get(i));
- }
- for (int i = 0; i < columnFamilies_.size(); i++) {
- output.writeMessage(3, columnFamilies_.get(i));
- }
- for (int i = 0; i < configuration_.size(); i++) {
- output.writeMessage(4, configuration_.get(i));
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, name_);
- }
- for (int i = 0; i < attributes_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, attributes_.get(i));
- }
- for (int i = 0; i < columnFamilies_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, columnFamilies_.get(i));
- }
- for (int i = 0; i < configuration_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, configuration_.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();
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
+ public Builder addColumnFamilies(
+ int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder builderForValue) {
+ if (columnFamiliesBuilder_ == null) {
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ columnFamiliesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
}
- if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema)) {
- return super.equals(obj);
- }
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema) obj;
-
- boolean result = true;
- result = result && (hasName() == other.hasName());
- if (hasName()) {
- result = result && getName()
- .equals(other.getName());
- }
- result = result && getAttributesList()
- .equals(other.getAttributesList());
- result = result && getColumnFamiliesList()
- .equals(other.getColumnFamiliesList());
- result = result && getConfigurationList()
- .equals(other.getConfigurationList());
- result = result &&
- getUnknownFields().equals(other.getUnknownFields());
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- int hash = 41;
- hash = (19 * hash) + getDescriptorForType().hashCode();
- if (hasName()) {
- hash = (37 * hash) + NAME_FIELD_NUMBER;
- hash = (53 * hash) + getName().hashCode();
- }
- if (getAttributesCount() > 0) {
- hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER;
- hash = (53 * hash) + getAttributesList().hashCode();
- }
- if (getColumnFamiliesCount() > 0) {
- hash = (37 * hash) + COLUMNFAMILIES_FIELD_NUMBER;
- hash = (53 * hash) + getColumnFamiliesList().hashCode();
- }
- if (getConfigurationCount() > 0) {
- hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER;
- hash = (53 * hash) + getConfigurationList().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- return hash;
- }
-
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data).buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return newBuilder().mergeFrom(data, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- Builder builder = newBuilder();
- if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
- return builder.buildParsed();
- } else {
- return null;
- }
- }
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input).buildParsed();
- }
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return newBuilder().mergeFrom(input, extensionRegistry)
- .buildParsed();
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchemaOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableSchema_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableSchema_fieldAccessorTable;
- }
-
- // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getAttributesFieldBuilder();
- getColumnFamiliesFieldBuilder();
- getConfigurationFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- name_ = com.google.protobuf.ByteString.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
- if (attributesBuilder_ == null) {
- attributes_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- attributesBuilder_.clear();
- }
- if (columnFamiliesBuilder_ == null) {
- columnFamilies_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- columnFamiliesBuilder_.clear();
- }
- if (configurationBuilder_ == null) {
- configuration_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
- } else {
- configurationBuilder_.clear();
- }
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.getDescriptor();
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema getDefaultInstanceForType() {
- return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.getDefaultInstance();
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema build() {
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema buildParsed()
- throws com.google.protobuf.InvalidProtocolBufferException {
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(
- result).asInvalidProtocolBufferException();
- }
- return result;
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema buildPartial() {
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.name_ = name_;
- if (attributesBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- attributes_ = java.util.Collections.unmodifiableList(attributes_);
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.attributes_ = attributes_;
- } else {
- result.attributes_ = attributesBuilder_.build();
- }
- if (columnFamiliesBuilder_ == null) {
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- columnFamilies_ = java.util.Collections.unmodifiableList(columnFamilies_);
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.columnFamilies_ = columnFamilies_;
- } else {
- result.columnFamilies_ = columnFamiliesBuilder_.build();
- }
- if (configurationBuilder_ == null) {
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- configuration_ = java.util.Collections.unmodifiableList(configuration_);
- bitField0_ = (bitField0_ & ~0x00000008);
- }
- result.configuration_ = configuration_;
- } else {
- result.configuration_ = configurationBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema) {
- return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema other) {
- if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.getDefaultInstance()) return this;
- if (other.hasName()) {
- setName(other.getName());
- }
- if (attributesBuilder_ == null) {
- if (!other.attributes_.isEmpty()) {
- if (attributes_.isEmpty()) {
- attributes_ = other.attributes_;
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- ensureAttributesIsMutable();
- attributes_.addAll(other.attributes_);
- }
- onChanged();
- }
- } else {
- if (!other.attributes_.isEmpty()) {
- if (attributesBuilder_.isEmpty()) {
- attributesBuilder_.dispose();
- attributesBuilder_ = null;
- attributes_ = other.attributes_;
- bitField0_ = (bitField0_ & ~0x00000002);
- attributesBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getAttributesFieldBuilder() : null;
- } else {
- attributesBuilder_.addAllMessages(other.attributes_);
- }
- }
- }
- if (columnFamiliesBuilder_ == null) {
- if (!other.columnFamilies_.isEmpty()) {
- if (columnFamilies_.isEmpty()) {
- columnFamilies_ = other.columnFamilies_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensureColumnFamiliesIsMutable();
- columnFamilies_.addAll(other.columnFamilies_);
- }
- onChanged();
- }
- } else {
- if (!other.columnFamilies_.isEmpty()) {
- if (columnFamiliesBuilder_.isEmpty()) {
- columnFamiliesBuilder_.dispose();
- columnFamiliesBuilder_ = null;
- columnFamilies_ = other.columnFamilies_;
- bitField0_ = (bitField0_ & ~0x00000004);
- columnFamiliesBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getColumnFamiliesFieldBuilder() : null;
- } else {
- columnFamiliesBuilder_.addAllMessages(other.columnFamilies_);
- }
- }
- }
- if (configurationBuilder_ == null) {
- if (!other.configuration_.isEmpty()) {
- if (configuration_.isEmpty()) {
- configuration_ = other.configuration_;
- bitField0_ = (bitField0_ & ~0x00000008);
- } else {
- ensureConfigurationIsMutable();
- configuration_.addAll(other.configuration_);
- }
- onChanged();
- }
- } else {
- if (!other.configuration_.isEmpty()) {
- if (configurationBuilder_.isEmpty()) {
- configurationBuilder_.dispose();
- configurationBuilder_ = null;
- configuration_ = other.configuration_;
- bitField0_ = (bitField0_ & ~0x00000008);
- configurationBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getConfigurationFieldBuilder() : null;
- } else {
- configurationBuilder_.addAllMessages(other.configuration_);
- }
- }
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public final boolean isInitialized() {
- for (int i = 0; i < getAttributesCount(); i++) {
- if (!getAttributes(i).isInitialized()) {
-
- return false;
- }
- }
- for (int i = 0; i < getColumnFamiliesCount(); i++) {
- if (!getColumnFamilies(i).isInitialized()) {
-
- return false;
- }
- }
- for (int i = 0; i < getConfigurationCount(); i++) {
- if (!getConfiguration(i).isInitialized()) {
-
- return false;
- }
- }
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder(
- this.getUnknownFields());
- while (true) {
- int tag = input.readTag();
- 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: {
- bitField0_ |= 0x00000001;
- name_ = input.readBytes();
- break;
- }
- case 18: {
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.newBuilder();
- input.readMessage(subBuilder, extensionRegistry);
- addAttributes(subBuilder.buildPartial());
- break;
- }
- case 26: {
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.newBuilder();
- input.readMessage(subBuilder, extensionRegistry);
- addColumnFamilies(subBuilder.buildPartial());
- break;
- }
- case 34: {
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.newBuilder();
- input.readMessage(subBuilder, extensionRegistry);
- addConfiguration(subBuilder.buildPartial());
- break;
- }
- }
- }
- }
-
- private int bitField0_;
-
- // optional bytes name = 1;
- private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY;
- public boolean hasName() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- public com.google.protobuf.ByteString getName() {
- return name_;
- }
- public Builder setName(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- name_ = value;
- onChanged();
- return this;
- }
- public Builder clearName() {
- bitField0_ = (bitField0_ & ~0x00000001);
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
-
- // repeated .BytesBytesPair attributes = 2;
- private java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair> attributes_ =
- java.util.Collections.emptyList();
- private void ensureAttributesIsMutable() {
- if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- attributes_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair>(attributes_);
- bitField0_ |= 0x00000002;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder> attributesBuilder_;
-
- public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair> getAttributesList() {
- if (attributesBuilder_ == null) {
- return java.util.Collections.unmodifiableList(attributes_);
- } else {
- return attributesBuilder_.getMessageList();
- }
- }
- public int getAttributesCount() {
[... 9711 lines stripped ...]