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/08/08 08:08:31 UTC
svn commit: r1511591 [6/23] - in /hbase/branches/0.95:
hbase-client/src/main/java/org/apache/hadoop/hbase/
hbase-client/src/main/java/org/apache/hadoop/hbase/catalog/
hbase-client/src/main/java/org/apache/hadoop/hbase/client/
hbase-client/src/main/java...
Modified: hbase/branches/0.95/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.java?rev=1511591&r1=1511590&r2=1511591&view=diff
==============================================================================
--- hbase/branches/0.95/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.java (original)
+++ hbase/branches/0.95/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.java Thu Aug 8 06:08:23 2013
@@ -92,173 +92,82 @@ public final class HBaseProtos {
// @@protoc_insertion_point(enum_scope:CompareType)
}
- public interface TableSchemaOrBuilder
+ public interface TableNameOrBuilder
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 column_families = 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);
+ // required bytes namespace = 1;
+ boolean hasNamespace();
+ com.google.protobuf.ByteString getNamespace();
+
+ // required bytes qualifier = 2;
+ boolean hasQualifier();
+ com.google.protobuf.ByteString getQualifier();
}
- public static final class TableSchema extends
+ public static final class TableName extends
com.google.protobuf.GeneratedMessage
- implements TableSchemaOrBuilder {
- // Use TableSchema.newBuilder() to construct.
- private TableSchema(Builder builder) {
+ implements TableNameOrBuilder {
+ // Use TableName.newBuilder() to construct.
+ private TableName(Builder builder) {
super(builder);
}
- private TableSchema(boolean noInit) {}
+ private TableName(boolean noInit) {}
- private static final TableSchema defaultInstance;
- public static TableSchema getDefaultInstance() {
+ private static final TableName defaultInstance;
+ public static TableName getDefaultInstance() {
return defaultInstance;
}
- public TableSchema getDefaultInstanceForType() {
+ public TableName getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableSchema_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableName_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableSchema_fieldAccessorTable;
+ return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableName_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() {
+ // required bytes namespace = 1;
+ public static final int NAMESPACE_FIELD_NUMBER = 1;
+ private com.google.protobuf.ByteString namespace_;
+ public boolean hasNamespace() {
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 column_families = 3;
- public static final int COLUMN_FAMILIES_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);
+ public com.google.protobuf.ByteString getNamespace() {
+ return namespace_;
}
- // 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);
+ // required bytes qualifier = 2;
+ public static final int QUALIFIER_FIELD_NUMBER = 2;
+ private com.google.protobuf.ByteString qualifier_;
+ public boolean hasQualifier() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
}
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder(
- int index) {
- return configuration_.get(index);
+ public com.google.protobuf.ByteString getQualifier() {
+ return qualifier_;
}
private void initFields() {
- name_ = com.google.protobuf.ByteString.EMPTY;
- attributes_ = java.util.Collections.emptyList();
- columnFamilies_ = java.util.Collections.emptyList();
- configuration_ = java.util.Collections.emptyList();
+ namespace_ = com.google.protobuf.ByteString.EMPTY;
+ qualifier_ = com.google.protobuf.ByteString.EMPTY;
}
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;
- }
+ if (!hasNamespace()) {
+ memoizedIsInitialized = 0;
+ return false;
}
- for (int i = 0; i < getConfigurationCount(); i++) {
- if (!getConfiguration(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
+ if (!hasQualifier()) {
+ memoizedIsInitialized = 0;
+ return false;
}
memoizedIsInitialized = 1;
return true;
@@ -268,16 +177,10 @@ public final class HBaseProtos {
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));
+ output.writeBytes(1, namespace_);
}
- for (int i = 0; i < configuration_.size(); i++) {
- output.writeMessage(4, configuration_.get(i));
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBytes(2, qualifier_);
}
getUnknownFields().writeTo(output);
}
@@ -290,19 +193,11 @@ public final class HBaseProtos {
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));
+ .computeBytesSize(1, namespace_);
}
- for (int i = 0; i < configuration_.size(); i++) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, configuration_.get(i));
+ .computeBytesSize(2, qualifier_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
@@ -321,23 +216,22 @@ public final class HBaseProtos {
if (obj == this) {
return true;
}
- if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema)) {
+ if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName)) {
return super.equals(obj);
}
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema) obj;
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName) obj;
boolean result = true;
- result = result && (hasName() == other.hasName());
- if (hasName()) {
- result = result && getName()
- .equals(other.getName());
+ result = result && (hasNamespace() == other.hasNamespace());
+ if (hasNamespace()) {
+ result = result && getNamespace()
+ .equals(other.getNamespace());
+ }
+ result = result && (hasQualifier() == other.hasQualifier());
+ if (hasQualifier()) {
+ result = result && getQualifier()
+ .equals(other.getQualifier());
}
- 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;
@@ -347,61 +241,53 @@ public final class HBaseProtos {
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) + COLUMN_FAMILIES_FIELD_NUMBER;
- hash = (53 * hash) + getColumnFamiliesList().hashCode();
- }
- if (getConfigurationCount() > 0) {
- hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER;
- hash = (53 * hash) + getConfigurationList().hashCode();
+ if (hasNamespace()) {
+ hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
+ hash = (53 * hash) + getNamespace().hashCode();
+ }
+ if (hasQualifier()) {
+ hash = (37 * hash) + QUALIFIER_FIELD_NUMBER;
+ hash = (53 * hash) + getQualifier().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
return hash;
}
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName 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(
+ public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName 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)
+ public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName 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)
+ public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName 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(
+ public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName 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)
+ public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
@@ -410,7 +296,7 @@ public final class HBaseProtos {
return null;
}
}
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseDelimitedFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -421,12 +307,12 @@ public final class HBaseProtos {
return null;
}
}
- public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName 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(
+ public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -436,7 +322,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.TableSchema prototype) {
+ public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@@ -449,18 +335,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.TableSchemaOrBuilder {
+ implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableSchema_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableName_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableSchema_fieldAccessorTable;
+ return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableName_fieldAccessorTable;
}
- // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.newBuilder()
+ // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -471,9 +357,6 @@ public final class HBaseProtos {
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getAttributesFieldBuilder();
- getColumnFamiliesFieldBuilder();
- getConfigurationFieldBuilder();
}
}
private static Builder create() {
@@ -482,26 +365,10 @@ public final class HBaseProtos {
public Builder clear() {
super.clear();
- name_ = com.google.protobuf.ByteString.EMPTY;
+ namespace_ = 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();
- }
+ qualifier_ = com.google.protobuf.ByteString.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@@ -511,24 +378,24 @@ public final class HBaseProtos {
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
- return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.getDescriptor();
+ return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.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.TableName getDefaultInstanceForType() {
+ return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance();
}
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema build() {
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema result = buildPartial();
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName build() {
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema buildParsed()
+ private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema result = buildPartial();
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
@@ -536,160 +403,52 @@ public final class HBaseProtos {
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);
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName buildPartial() {
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName(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();
+ result.namespace_ = namespace_;
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
}
- if (columnFamiliesBuilder_ == null) {
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- columnFamilies_ = java.util.Collections.unmodifiableList(columnFamilies_);
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.columnFamilies_ = columnFamilies_;
+ result.qualifier_ = qualifier_;
+ 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.TableName) {
+ return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName)other);
} 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;
+ 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_);
- }
- }
+ public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName other) {
+ if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance()) return this;
+ if (other.hasNamespace()) {
+ setNamespace(other.getNamespace());
}
- 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_);
- }
- }
+ if (other.hasQualifier()) {
+ setQualifier(other.getQualifier());
}
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;
- }
+ if (!hasNamespace()) {
+
+ return false;
}
- for (int i = 0; i < getConfigurationCount(); i++) {
- if (!getConfiguration(i).isInitialized()) {
-
- return false;
- }
+ if (!hasQualifier()) {
+
+ return false;
}
return true;
}
@@ -719,25 +478,12 @@ public final class HBaseProtos {
}
case 10: {
bitField0_ |= 0x00000001;
- name_ = input.readBytes();
+ namespace_ = 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());
+ bitField0_ |= 0x00000002;
+ qualifier_ = input.readBytes();
break;
}
}
@@ -746,409 +492,2181 @@ public final class HBaseProtos {
private int bitField0_;
- // optional bytes name = 1;
- private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY;
- public boolean hasName() {
+ // required bytes namespace = 1;
+ private com.google.protobuf.ByteString namespace_ = com.google.protobuf.ByteString.EMPTY;
+ public boolean hasNamespace() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
- public com.google.protobuf.ByteString getName() {
- return name_;
+ public com.google.protobuf.ByteString getNamespace() {
+ return namespace_;
}
- public Builder setName(com.google.protobuf.ByteString value) {
+ public Builder setNamespace(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
- name_ = value;
+ namespace_ = value;
onChanged();
return this;
}
- public Builder clearName() {
+ public Builder clearNamespace() {
bitField0_ = (bitField0_ & ~0x00000001);
- name_ = getDefaultInstance().getName();
+ namespace_ = getDefaultInstance().getNamespace();
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() {
- if (attributesBuilder_ == null) {
- return attributes_.size();
- } else {
- return attributesBuilder_.getCount();
- }
- }
- 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;
- }
- 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 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;
+ // required bytes qualifier = 2;
+ private com.google.protobuf.ByteString qualifier_ = com.google.protobuf.ByteString.EMPTY;
+ public boolean hasQualifier() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
}
- 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 com.google.protobuf.ByteString getQualifier() {
+ return qualifier_;
}
- 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());
- }
+ public Builder setQualifier(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ qualifier_ = value;
+ onChanged();
return this;
}
- 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());
- }
+ public Builder clearQualifier() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ qualifier_ = getDefaultInstance().getQualifier();
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:TableName)
+ }
+
+ static {
+ defaultInstance = new TableName(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:TableName)
+ }
+
+ public interface TableSchemaOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // optional .TableName table_name = 1;
+ boolean hasTableName();
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableName();
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableNameOrBuilder();
+
+ // 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 column_families = 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 .TableName table_name = 1;
+ public static final int TABLE_NAME_FIELD_NUMBER = 1;
+ private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName tableName_;
+ public boolean hasTableName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableName() {
+ return tableName_;
+ }
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableNameOrBuilder() {
+ return tableName_;
+ }
+
+ // 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 column_families = 3;
+ public static final int COLUMN_FAMILIES_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() {
+ tableName_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance();
+ 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;
+
+ if (hasTableName()) {
+ if (!getTableName().isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ }
+ 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;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeMessage(1, tableName_);
+ }
+ 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
+ .computeMessageSize(1, tableName_);
+ }
+ 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;
+ }
+ 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 && (hasTableName() == other.hasTableName());
+ if (hasTableName()) {
+ result = result && getTableName()
+ .equals(other.getTableName());
+ }
+ 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 (hasTableName()) {
+ hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getTableName().hashCode();
+ }
+ if (getAttributesCount() > 0) {
+ hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER;
+ hash = (53 * hash) + getAttributesList().hashCode();
+ }
+ if (getColumnFamiliesCount() > 0) {
+ hash = (37 * hash) + COLUMN_FAMILIES_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) {
+ getTableNameFieldBuilder();
+ getAttributesFieldBuilder();
+ getColumnFamiliesFieldBuilder();
+ getConfigurationFieldBuilder();
+ }
+ }
+ private static Builder create() {
+ return new Builder();
+ }
+
+ public Builder clear() {
+ super.clear();
+ if (tableNameBuilder_ == null) {
+ tableName_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance();
+ } else {
+ tableNameBuilder_.clear();
+ }
+ 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;
+ }
+ if (tableNameBuilder_ == null) {
+ result.tableName_ = tableName_;
+ } else {
+ result.tableName_ = tableNameBuilder_.build();
+ }
+ 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.hasTableName()) {
+ mergeTableName(other.getTableName());
+ }
+ 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() {
+ if (hasTableName()) {
+ if (!getTableName().isInitialized()) {
+
+ return false;
+ }
+ }
+ 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: {
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.newBuilder();
+ if (hasTableName()) {
+ subBuilder.mergeFrom(getTableName());
+ }
+ input.readMessage(subBuilder, extensionRegistry);
+ setTableName(subBuilder.buildPartial());
+ 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 .TableName table_name = 1;
+ private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName tableName_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance();
+ private com.google.protobuf.SingleFieldBuilder<
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder> tableNameBuilder_;
+ public boolean hasTableName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableName() {
+ if (tableNameBuilder_ == null) {
+ return tableName_;
+ } else {
+ return tableNameBuilder_.getMessage();
+ }
+ }
+ public Builder setTableName(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) {
+ if (tableNameBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ tableName_ = value;
+ onChanged();
+ } else {
+ tableNameBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ public Builder setTableName(
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder builderForValue) {
+ if (tableNameBuilder_ == null) {
+ tableName_ = builderForValue.build();
+ onChanged();
+ } else {
+ tableNameBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ public Builder mergeTableName(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) {
+ if (tableNameBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ tableName_ != org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance()) {
+ tableName_ =
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.newBuilder(tableName_).mergeFrom(value).buildPartial();
+ } else {
+ tableName_ = value;
+ }
+ onChanged();
+ } else {
+ tableNameBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ public Builder clearTableName() {
+ if (tableNameBuilder_ == null) {
+ tableName_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance();
+ onChanged();
+ } else {
+ tableNameBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder getTableNameBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getTableNameFieldBuilder().getBuilder();
+ }
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableNameOrBuilder() {
+ if (tableNameBuilder_ != null) {
+ return tableNameBuilder_.getMessageOrBuilder();
+ } else {
+ return tableName_;
+ }
+ }
+ private com.google.protobuf.SingleFieldBuilder<
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>
+ getTableNameFieldBuilder() {
+ if (tableNameBuilder_ == null) {
+ tableNameBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>(
+ tableName_,
+ getParentForChildren(),
+ isClean());
+ tableName_ = null;
+ }
+ return tableNameBuilder_;
+ }
+
+ // 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() {
+ if (attributesBuilder_ == null) {
+ return attributes_.size();
+ } else {
+ return attributesBuilder_.getCount();
+ }
+ }
+ 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;
+ }
+ 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 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 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 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;
+ }
+ 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 Builder addAllAttributes(
java.lang.Iterable<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair> values) {
if (attributesBuilder_ == null) {
- ensureAttributesIsMutable();
- super.addAll(values, attributes_);
+ ensureAttributesIsMutable();
+ super.addAll(values, attributes_);
+ onChanged();
+ } else {
+ attributesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ public Builder clearAttributes() {
+ if (attributesBuilder_ == null) {
+ attributes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ attributesBuilder_.clear();
+ }
+ return this;
+ }
+ 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_;
+ }
+
+ // repeated .ColumnFamilySchema column_families = 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;
+ }
+ }
+
+ 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 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 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;
+ }
+ 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;
+ }
+ 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;
+ }
+ 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;
+ }
+ 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;
+ }
+ public Builder addAllColumnFamilies(
+ java.lang.Iterable<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema> values) {
+ if (columnFamiliesBuilder_ == null) {
+ ensureColumnFamiliesIsMutable();
+ super.addAll(values, columnFamilies_);
+ onChanged();
+ } else {
+ columnFamiliesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ public Builder clearColumnFamilies() {
+ if (columnFamiliesBuilder_ == null) {
+ columnFamilies_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ columnFamiliesBuilder_.clear();
+ }
+ return this;
+ }
+ public Builder removeColumnFamilies(int index) {
+ if (columnFamiliesBuilder_ == null) {
+ ensureColumnFamiliesIsMutable();
+ columnFamilies_.remove(index);
+ onChanged();
+ } else {
+ columnFamiliesBuilder_.remove(index);
+ }
+ return this;
+ }
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder getColumnFamiliesBuilder(
+ int index) {
+ return getColumnFamiliesFieldBuilder().getBuilder(index);
+ }
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchemaOrBuilder getColumnFamiliesOrBuilder(
+ int index) {
+ if (columnFamiliesBuilder_ == null) {
+ return columnFamilies_.get(index); } else {
+ return columnFamiliesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchemaOrBuilder>
+ getColumnFamiliesOrBuilderList() {
+ if (columnFamiliesBuilder_ != null) {
+ return columnFamiliesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(columnFamilies_);
+ }
+ }
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder addColumnFamiliesBuilder() {
+ return getColumnFamiliesFieldBuilder().addBuilder(
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.getDefaultInstance());
+ }
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder addColumnFamiliesBuilder(
+ int index) {
+ return getColumnFamiliesFieldBuilder().addBuilder(
+ index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.getDefaultInstance());
+ }
+ public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder>
+ getColumnFamiliesBuilderList() {
+ return getColumnFamiliesFieldBuilder().getBuilderList();
+ }
+ 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>
[... 11984 lines stripped ...]