From 001cba175548183da0da8f395ef1796eb9a8033f Mon Sep 17 00:00:00 2001 From: Julian Wissmann Date: Fri, 14 Mar 2014 16:42:07 +0100 Subject: [PATCH 1/2] Create doubleCI Branch on DoubleCI implementation --- .../coprocessor/DoubleColumnInterpreter.java | 136 + .../hbase/protobuf/generated/HBaseProtos.java | 8655 ++++++-------------- hbase-protocol/src/main/protobuf/HBase.proto | 3 + .../coprocessor/TestDoubleColumnInterpreter.java | 714 ++ 4 files changed, 3562 insertions(+), 5946 deletions(-) create mode 100644 hbase-client/src/main/java/org/apache/hadoop/hbase/client/coprocessor/DoubleColumnInterpreter.java create mode 100644 hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestDoubleColumnInterpreter.java diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/coprocessor/DoubleColumnInterpreter.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/coprocessor/DoubleColumnInterpreter.java new file mode 100644 index 0000000..34cacf8 --- /dev/null +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/coprocessor/DoubleColumnInterpreter.java @@ -0,0 +1,136 @@ +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.hadoop.hbase.client.coprocessor; + +import java.io.IOException; + +import org.apache.hadoop.classification.InterfaceAudience; +import org.apache.hadoop.classification.InterfaceStability; +import org.apache.hadoop.hbase.KeyValue; +import org.apache.hadoop.hbase.coprocessor.ColumnInterpreter; +import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg; +import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg; +import org.apache.hadoop.hbase.util.Bytes; + +/** + * a concrete column interpreter implementation. The cell value is a Double value + * and its promoted data type is also a Double value. For computing aggregation + * function, this class is used to find the datatype of the cell value. Client + * is supposed to instantiate it and passed along as a parameter. See + * TestDoubleColumnInterpreter methods for its sample usage. + * Its methods handle null arguments gracefully. + */ +@InterfaceAudience.Public +@InterfaceStability.Evolving +public class DoubleColumnInterpreter extends ColumnInterpreter{ + + public Double getValue(byte[] colFamily, byte[] colQualifier, KeyValue kv) + throws IOException { + if (kv == null || kv.getValueLength() != Bytes.SIZEOF_DOUBLE) + return null; + return Bytes.toDouble(kv.getValueArray(), kv.getValueOffset()); + } + + @Override + public Double add(Double d1, Double d2) { + if (d1 == null ^ d2 == null) { + return (d1 == null) ? d2 : d1; // either of one is null. + } else if (d1 == null) // both are null + return null; + return d1 + d2; + } + + @Override + public int compare(final Double d1, final Double d2) { + if (d1 == null ^ d2 == null) { + return d1 == null ? -1 : 1; // either of one is null. + } else if (d1 == null) + return 0; // both are null + return d1.compareTo(d2); // natural ordering. + } + + @Override + public Double getMaxValue() { + return Double.MAX_VALUE; + } + + @Override + public Double increment(Double o) { + return o == null ? null : (o + 1.00d); + } + + @Override + public Double multiply(Double d1, Double d2) { + return (d1 == null || d2 == null) ? null : d1 * d2; + } + + @Override + public Double getMinValue() { + return Double.MIN_VALUE; + } + + @Override + public double divideForAvg(Double d1, Long l2) { + return (l2 == null || d1 == null) ? Double.NaN : (d1.doubleValue() / l2 + .doubleValue()); + } + + @Override + public Double castToReturnType(Double o) { + return o; + } + + @Override + public Double castToCellType(Double d) { + return d; + } + + @Override + public EmptyMsg getRequestData() { + return EmptyMsg.getDefaultInstance(); + } + + @Override + public void initialize(EmptyMsg msg) { + //nothing + } + + @Override + public DoubleMsg getProtoForCellType(Double t) { + DoubleMsg.Builder builder = DoubleMsg.newBuilder(); + return builder.setDoubleMsg(t).build(); + } + + @Override + public DoubleMsg getProtoForPromotedType(Double s) { + DoubleMsg.Builder builder = DoubleMsg.newBuilder(); + return builder.setDoubleMsg(s).build(); + } + + @Override + public Double getPromotedValueFromProto(DoubleMsg r) { + return r.getDoubleMsg(); + } + + @Override + public Double getCellValueFromProto(DoubleMsg q) { + return q.getDoubleMsg(); + } +} diff --git a/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.java b/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.java index 7acf1d3..cede9d4 100644 --- a/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.java +++ b/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.java @@ -8,77 +8,28 @@ public final class HBaseProtos { public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } - /** - * Protobuf enum {@code CompareType} - * - *
-   * Comparison operators 
-   * 
- */ public enum CompareType implements com.google.protobuf.ProtocolMessageEnum { - /** - * LESS = 0; - */ LESS(0, 0), - /** - * LESS_OR_EQUAL = 1; - */ LESS_OR_EQUAL(1, 1), - /** - * EQUAL = 2; - */ EQUAL(2, 2), - /** - * NOT_EQUAL = 3; - */ NOT_EQUAL(3, 3), - /** - * GREATER_OR_EQUAL = 4; - */ GREATER_OR_EQUAL(4, 4), - /** - * GREATER = 5; - */ GREATER(5, 5), - /** - * NO_OP = 6; - */ NO_OP(6, 6), ; - - /** - * LESS = 0; - */ + public static final int LESS_VALUE = 0; - /** - * LESS_OR_EQUAL = 1; - */ public static final int LESS_OR_EQUAL_VALUE = 1; - /** - * EQUAL = 2; - */ public static final int EQUAL_VALUE = 2; - /** - * NOT_EQUAL = 3; - */ public static final int NOT_EQUAL_VALUE = 3; - /** - * GREATER_OR_EQUAL = 4; - */ public static final int GREATER_OR_EQUAL_VALUE = 4; - /** - * GREATER = 5; - */ public static final int GREATER_VALUE = 5; - /** - * NO_OP = 6; - */ public static final int NO_OP_VALUE = 6; - - + + public final int getNumber() { return value; } - + public static CompareType valueOf(int value) { switch (value) { case 0: return LESS; @@ -91,7 +42,7 @@ public final class HBaseProtos { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; @@ -103,7 +54,7 @@ public final class HBaseProtos { return CompareType.valueOf(number); } }; - + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); @@ -116,9 +67,11 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.getDescriptor().getEnumTypes().get(0); } - - private static final CompareType[] VALUES = values(); - + + private static final CompareType[] VALUES = { + LESS, LESS_OR_EQUAL, EQUAL, NOT_EQUAL, GREATER_OR_EQUAL, GREATER, NO_OP, + }; + public static CompareType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { @@ -127,179 +80,78 @@ public final class HBaseProtos { } return VALUES[desc.getIndex()]; } - + private final int index; private final int value; - + private CompareType(int index, int value) { this.index = index; this.value = value; } - + // @@protoc_insertion_point(enum_scope:CompareType) } - + public interface TableNameOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required bytes namespace = 1; - /** - * required bytes namespace = 1; - */ boolean hasNamespace(); - /** - * required bytes namespace = 1; - */ com.google.protobuf.ByteString getNamespace(); - + // required bytes qualifier = 2; - /** - * required bytes qualifier = 2; - */ boolean hasQualifier(); - /** - * required bytes qualifier = 2; - */ com.google.protobuf.ByteString getQualifier(); } - /** - * Protobuf type {@code TableName} - * - *
-   **
-   * Table Name
-   * 
- */ public static final class TableName extends com.google.protobuf.GeneratedMessage implements TableNameOrBuilder { // Use TableName.newBuilder() to construct. - private TableName(com.google.protobuf.GeneratedMessage.Builder builder) { + private TableName(Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private TableName(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - + private TableName(boolean noInit) {} + private static final TableName defaultInstance; public static TableName getDefaultInstance() { return defaultInstance; } - + public TableName getDefaultInstanceForType() { return defaultInstance; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TableName( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - namespace_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - qualifier_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 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_TableName_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableName_fieldAccessorTable; } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public TableName parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TableName(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - + private int bitField0_; // required bytes namespace = 1; public static final int NAMESPACE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString namespace_; - /** - * required bytes namespace = 1; - */ public boolean hasNamespace() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required bytes namespace = 1; - */ public com.google.protobuf.ByteString getNamespace() { return namespace_; } - + // required bytes qualifier = 2; public static final int QUALIFIER_FIELD_NUMBER = 2; private com.google.protobuf.ByteString qualifier_; - /** - * required bytes qualifier = 2; - */ public boolean hasQualifier() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required bytes qualifier = 2; - */ public com.google.protobuf.ByteString getQualifier() { return qualifier_; } - + private void initFields() { namespace_ = com.google.protobuf.ByteString.EMPTY; qualifier_ = com.google.protobuf.ByteString.EMPTY; @@ -308,7 +160,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasNamespace()) { memoizedIsInitialized = 0; return false; @@ -320,7 +172,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -332,12 +184,12 @@ public final class HBaseProtos { } 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 @@ -351,14 +203,14 @@ public final class HBaseProtos { 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) { @@ -368,7 +220,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName) obj; - + boolean result = true; result = result && (hasNamespace() == other.hasNamespace()); if (hasNamespace()) { @@ -384,13 +236,9 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasNamespace()) { @@ -402,84 +250,89 @@ public final class HBaseProtos { hash = (53 * hash) + getQualifier().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } 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 PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } 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 PARSER.parseFrom(input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } 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 { - return PARSER.parseFrom(input, extensionRegistry); + 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.TableName prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code TableName} - * - *
-     **
-     * Table Name
-     * 
- */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder { @@ -487,21 +340,18 @@ public final class HBaseProtos { getDescriptor() { 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_TableName_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableName_fieldAccessorTable; } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -512,7 +362,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); namespace_ = com.google.protobuf.ByteString.EMPTY; @@ -521,20 +371,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableName_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDescriptor(); } - + 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.TableName build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName result = buildPartial(); if (!result.isInitialized()) { @@ -542,7 +392,17 @@ public final class HBaseProtos { } return result; } - + + private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + 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_; @@ -559,7 +419,7 @@ public final class HBaseProtos { 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); @@ -568,7 +428,7 @@ public final class HBaseProtos { return this; } } - + 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()) { @@ -580,7 +440,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasNamespace()) { @@ -592,43 +452,54 @@ public final class HBaseProtos { } return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + 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; + namespace_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + qualifier_ = input.readBytes(); + break; + } } } - return this; } + private int bitField0_; - + // required bytes namespace = 1; private com.google.protobuf.ByteString namespace_ = com.google.protobuf.ByteString.EMPTY; - /** - * required bytes namespace = 1; - */ public boolean hasNamespace() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required bytes namespace = 1; - */ public com.google.protobuf.ByteString getNamespace() { return namespace_; } - /** - * required bytes namespace = 1; - */ public Builder setNamespace(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -638,33 +509,21 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * required bytes namespace = 1; - */ public Builder clearNamespace() { bitField0_ = (bitField0_ & ~0x00000001); namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } - + // required bytes qualifier = 2; private com.google.protobuf.ByteString qualifier_ = com.google.protobuf.ByteString.EMPTY; - /** - * required bytes qualifier = 2; - */ public boolean hasQualifier() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required bytes qualifier = 2; - */ public com.google.protobuf.ByteString getQualifier() { return qualifier_; } - /** - * required bytes qualifier = 2; - */ public Builder setQualifier(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -674,392 +533,167 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * required bytes qualifier = 2; - */ 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; - /** - * optional .TableName table_name = 1; - */ boolean hasTableName(); - /** - * optional .TableName table_name = 1; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableName(); - /** - * optional .TableName table_name = 1; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableNameOrBuilder(); - + // repeated .BytesBytesPair attributes = 2; - /** - * repeated .BytesBytesPair attributes = 2; - */ java.util.List getAttributesList(); - /** - * repeated .BytesBytesPair attributes = 2; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair getAttributes(int index); - /** - * repeated .BytesBytesPair attributes = 2; - */ int getAttributesCount(); - /** - * repeated .BytesBytesPair attributes = 2; - */ java.util.List getAttributesOrBuilderList(); - /** - * repeated .BytesBytesPair attributes = 2; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder getAttributesOrBuilder( int index); - + // repeated .ColumnFamilySchema column_families = 3; - /** - * repeated .ColumnFamilySchema column_families = 3; - */ java.util.List getColumnFamiliesList(); - /** - * repeated .ColumnFamilySchema column_families = 3; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema getColumnFamilies(int index); - /** - * repeated .ColumnFamilySchema column_families = 3; - */ int getColumnFamiliesCount(); - /** - * repeated .ColumnFamilySchema column_families = 3; - */ java.util.List getColumnFamiliesOrBuilderList(); - /** - * repeated .ColumnFamilySchema column_families = 3; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchemaOrBuilder getColumnFamiliesOrBuilder( int index); - + // repeated .NameStringPair configuration = 4; - /** - * repeated .NameStringPair configuration = 4; - */ java.util.List getConfigurationList(); - /** - * repeated .NameStringPair configuration = 4; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index); - /** - * repeated .NameStringPair configuration = 4; - */ int getConfigurationCount(); - /** - * repeated .NameStringPair configuration = 4; - */ java.util.List getConfigurationOrBuilderList(); - /** - * repeated .NameStringPair configuration = 4; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder( int index); } - /** - * Protobuf type {@code TableSchema} - * - *
-   **
-   * Table Schema
-   * Inspired by the rest TableSchema
-   * 
- */ public static final class TableSchema extends com.google.protobuf.GeneratedMessage implements TableSchemaOrBuilder { // Use TableSchema.newBuilder() to construct. - private TableSchema(com.google.protobuf.GeneratedMessage.Builder builder) { + private TableSchema(Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private TableSchema(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - + private TableSchema(boolean noInit) {} + private static final TableSchema defaultInstance; public static TableSchema getDefaultInstance() { return defaultInstance; } - + public TableSchema getDefaultInstanceForType() { return defaultInstance; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TableSchema( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = tableName_.toBuilder(); - } - tableName_ = input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tableName_); - tableName_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - attributes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - attributes_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.PARSER, extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - columnFamilies_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - columnFamilies_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.PARSER, extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - configuration_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - configuration_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - attributes_ = java.util.Collections.unmodifiableList(attributes_); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - columnFamilies_ = java.util.Collections.unmodifiableList(columnFamilies_); - } - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - configuration_ = java.util.Collections.unmodifiableList(configuration_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + 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 - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public TableSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TableSchema(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + 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_; - /** - * optional .TableName table_name = 1; - */ public boolean hasTableName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * optional .TableName table_name = 1; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableName() { return tableName_; } - /** - * optional .TableName table_name = 1; - */ 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 attributes_; - /** - * repeated .BytesBytesPair attributes = 2; - */ public java.util.List getAttributesList() { return attributes_; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public java.util.List getAttributesOrBuilderList() { return attributes_; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public int getAttributesCount() { return attributes_.size(); } - /** - * repeated .BytesBytesPair attributes = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair getAttributes(int index) { return attributes_.get(index); } - /** - * repeated .BytesBytesPair attributes = 2; - */ 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 columnFamilies_; - /** - * repeated .ColumnFamilySchema column_families = 3; - */ public java.util.List getColumnFamiliesList() { return columnFamilies_; } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ public java.util.List getColumnFamiliesOrBuilderList() { return columnFamilies_; } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ public int getColumnFamiliesCount() { return columnFamilies_.size(); } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema getColumnFamilies(int index) { return columnFamilies_.get(index); } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ 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 configuration_; - /** - * repeated .NameStringPair configuration = 4; - */ public java.util.List getConfigurationList() { return configuration_; } - /** - * repeated .NameStringPair configuration = 4; - */ public java.util.List getConfigurationOrBuilderList() { return configuration_; } - /** - * repeated .NameStringPair configuration = 4; - */ public int getConfigurationCount() { return configuration_.size(); } - /** - * repeated .NameStringPair configuration = 4; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index) { return configuration_.get(index); } - /** - * repeated .NameStringPair configuration = 4; - */ 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(); @@ -1070,7 +704,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (hasTableName()) { if (!getTableName().isInitialized()) { memoizedIsInitialized = 0; @@ -1098,7 +732,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -1116,12 +750,12 @@ public final class HBaseProtos { } 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 @@ -1143,14 +777,14 @@ public final class HBaseProtos { 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) { @@ -1160,7 +794,7 @@ public final class HBaseProtos { 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()) { @@ -1177,13 +811,9 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasTableName()) { @@ -1203,85 +833,89 @@ public final class HBaseProtos { hash = (53 * hash) + getConfigurationList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + 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 PARSER.parseFrom(data, extensionRegistry); + 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 PARSER.parseFrom(data); + 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 PARSER.parseFrom(data, extensionRegistry); + 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 PARSER.parseFrom(input); + 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 PARSER.parseFrom(input, extensionRegistry); + 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 { - return PARSER.parseDelimitedFrom(input); + 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 { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + 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 PARSER.parseFrom(input); + 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 PARSER.parseFrom(input, extensionRegistry); + 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; } - /** - * Protobuf type {@code TableSchema} - * - *
-     **
-     * Table Schema
-     * Inspired by the rest TableSchema
-     * 
- */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchemaOrBuilder { @@ -1289,21 +923,18 @@ public final class HBaseProtos { 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 - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.Builder.class); + 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( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -1318,7 +949,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); if (tableNameBuilder_ == null) { @@ -1347,20 +978,20 @@ public final class HBaseProtos { } return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableSchema_descriptor; + 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()) { @@ -1368,7 +999,17 @@ public final class HBaseProtos { } 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_; @@ -1412,7 +1053,7 @@ public final class HBaseProtos { 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); @@ -1421,7 +1062,7 @@ public final class HBaseProtos { 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()) { @@ -1508,7 +1149,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (hasTableName()) { if (!getTableName().isInitialized()) { @@ -1536,39 +1177,70 @@ public final class HBaseProtos { } return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + 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; + } } } - return this; } + 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_; - /** - * optional .TableName table_name = 1; - */ public boolean hasTableName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * optional .TableName table_name = 1; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableName() { if (tableNameBuilder_ == null) { return tableName_; @@ -1576,9 +1248,6 @@ public final class HBaseProtos { return tableNameBuilder_.getMessage(); } } - /** - * optional .TableName table_name = 1; - */ public Builder setTableName(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) { if (tableNameBuilder_ == null) { if (value == null) { @@ -1592,9 +1261,6 @@ public final class HBaseProtos { bitField0_ |= 0x00000001; return this; } - /** - * optional .TableName table_name = 1; - */ public Builder setTableName( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder builderForValue) { if (tableNameBuilder_ == null) { @@ -1606,9 +1272,6 @@ public final class HBaseProtos { bitField0_ |= 0x00000001; return this; } - /** - * optional .TableName table_name = 1; - */ public Builder mergeTableName(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) { if (tableNameBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && @@ -1625,9 +1288,6 @@ public final class HBaseProtos { bitField0_ |= 0x00000001; return this; } - /** - * optional .TableName table_name = 1; - */ public Builder clearTableName() { if (tableNameBuilder_ == null) { tableName_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance(); @@ -1638,17 +1298,11 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000001); return this; } - /** - * optional .TableName table_name = 1; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder getTableNameBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTableNameFieldBuilder().getBuilder(); } - /** - * optional .TableName table_name = 1; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableNameOrBuilder() { if (tableNameBuilder_ != null) { return tableNameBuilder_.getMessageOrBuilder(); @@ -1656,9 +1310,6 @@ public final class HBaseProtos { return tableName_; } } - /** - * optional .TableName table_name = 1; - */ 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() { @@ -1672,7 +1323,7 @@ public final class HBaseProtos { } return tableNameBuilder_; } - + // repeated .BytesBytesPair attributes = 2; private java.util.List attributes_ = java.util.Collections.emptyList(); @@ -1682,13 +1333,10 @@ public final class HBaseProtos { 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_; - - /** - * repeated .BytesBytesPair attributes = 2; - */ + public java.util.List getAttributesList() { if (attributesBuilder_ == null) { return java.util.Collections.unmodifiableList(attributes_); @@ -1696,9 +1344,6 @@ public final class HBaseProtos { return attributesBuilder_.getMessageList(); } } - /** - * repeated .BytesBytesPair attributes = 2; - */ public int getAttributesCount() { if (attributesBuilder_ == null) { return attributes_.size(); @@ -1706,9 +1351,6 @@ public final class HBaseProtos { return attributesBuilder_.getCount(); } } - /** - * repeated .BytesBytesPair attributes = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair getAttributes(int index) { if (attributesBuilder_ == null) { return attributes_.get(index); @@ -1716,9 +1358,6 @@ public final class HBaseProtos { return attributesBuilder_.getMessage(index); } } - /** - * repeated .BytesBytesPair attributes = 2; - */ public Builder setAttributes( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair value) { if (attributesBuilder_ == null) { @@ -1733,9 +1372,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public Builder setAttributes( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder builderForValue) { if (attributesBuilder_ == null) { @@ -1747,9 +1383,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public Builder addAttributes(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair value) { if (attributesBuilder_ == null) { if (value == null) { @@ -1763,9 +1396,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public Builder addAttributes( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair value) { if (attributesBuilder_ == null) { @@ -1780,9 +1410,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public Builder addAttributes( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder builderForValue) { if (attributesBuilder_ == null) { @@ -1794,9 +1421,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public Builder addAttributes( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder builderForValue) { if (attributesBuilder_ == null) { @@ -1808,9 +1432,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public Builder addAllAttributes( java.lang.Iterable values) { if (attributesBuilder_ == null) { @@ -1822,9 +1443,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public Builder clearAttributes() { if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); @@ -1835,9 +1453,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public Builder removeAttributes(int index) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); @@ -1848,16 +1463,10 @@ public final class HBaseProtos { } return this; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder getAttributesBuilder( int index) { return getAttributesFieldBuilder().getBuilder(index); } - /** - * repeated .BytesBytesPair attributes = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder getAttributesOrBuilder( int index) { if (attributesBuilder_ == null) { @@ -1865,9 +1474,6 @@ public final class HBaseProtos { return attributesBuilder_.getMessageOrBuilder(index); } } - /** - * repeated .BytesBytesPair attributes = 2; - */ public java.util.List getAttributesOrBuilderList() { if (attributesBuilder_ != null) { @@ -1876,24 +1482,15 @@ public final class HBaseProtos { return java.util.Collections.unmodifiableList(attributes_); } } - /** - * repeated .BytesBytesPair attributes = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder addAttributesBuilder() { return getAttributesFieldBuilder().addBuilder( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.getDefaultInstance()); } - /** - * repeated .BytesBytesPair attributes = 2; - */ 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()); } - /** - * repeated .BytesBytesPair attributes = 2; - */ public java.util.List getAttributesBuilderList() { return getAttributesFieldBuilder().getBuilderList(); @@ -1912,7 +1509,7 @@ public final class HBaseProtos { } return attributesBuilder_; } - + // repeated .ColumnFamilySchema column_families = 3; private java.util.List columnFamilies_ = java.util.Collections.emptyList(); @@ -1922,13 +1519,10 @@ public final class HBaseProtos { 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_; - - /** - * repeated .ColumnFamilySchema column_families = 3; - */ + public java.util.List getColumnFamiliesList() { if (columnFamiliesBuilder_ == null) { return java.util.Collections.unmodifiableList(columnFamilies_); @@ -1936,9 +1530,6 @@ public final class HBaseProtos { return columnFamiliesBuilder_.getMessageList(); } } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ public int getColumnFamiliesCount() { if (columnFamiliesBuilder_ == null) { return columnFamilies_.size(); @@ -1946,9 +1537,6 @@ public final class HBaseProtos { return columnFamiliesBuilder_.getCount(); } } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema getColumnFamilies(int index) { if (columnFamiliesBuilder_ == null) { return columnFamilies_.get(index); @@ -1956,9 +1544,6 @@ public final class HBaseProtos { return columnFamiliesBuilder_.getMessage(index); } } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ public Builder setColumnFamilies( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema value) { if (columnFamiliesBuilder_ == null) { @@ -1973,9 +1558,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ public Builder setColumnFamilies( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder builderForValue) { if (columnFamiliesBuilder_ == null) { @@ -1987,9 +1569,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ public Builder addColumnFamilies(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema value) { if (columnFamiliesBuilder_ == null) { if (value == null) { @@ -2003,9 +1582,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ public Builder addColumnFamilies( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema value) { if (columnFamiliesBuilder_ == null) { @@ -2020,9 +1596,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ public Builder addColumnFamilies( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder builderForValue) { if (columnFamiliesBuilder_ == null) { @@ -2034,9 +1607,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ public Builder addColumnFamilies( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder builderForValue) { if (columnFamiliesBuilder_ == null) { @@ -2048,9 +1618,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ public Builder addAllColumnFamilies( java.lang.Iterable values) { if (columnFamiliesBuilder_ == null) { @@ -2062,9 +1629,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ public Builder clearColumnFamilies() { if (columnFamiliesBuilder_ == null) { columnFamilies_ = java.util.Collections.emptyList(); @@ -2075,9 +1639,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ public Builder removeColumnFamilies(int index) { if (columnFamiliesBuilder_ == null) { ensureColumnFamiliesIsMutable(); @@ -2088,16 +1649,10 @@ public final class HBaseProtos { } return this; } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder getColumnFamiliesBuilder( int index) { return getColumnFamiliesFieldBuilder().getBuilder(index); } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchemaOrBuilder getColumnFamiliesOrBuilder( int index) { if (columnFamiliesBuilder_ == null) { @@ -2105,9 +1660,6 @@ public final class HBaseProtos { return columnFamiliesBuilder_.getMessageOrBuilder(index); } } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ public java.util.List getColumnFamiliesOrBuilderList() { if (columnFamiliesBuilder_ != null) { @@ -2116,24 +1668,15 @@ public final class HBaseProtos { return java.util.Collections.unmodifiableList(columnFamilies_); } } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder addColumnFamiliesBuilder() { return getColumnFamiliesFieldBuilder().addBuilder( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.getDefaultInstance()); } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ 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()); } - /** - * repeated .ColumnFamilySchema column_families = 3; - */ public java.util.List getColumnFamiliesBuilderList() { return getColumnFamiliesFieldBuilder().getBuilderList(); @@ -2152,7 +1695,7 @@ public final class HBaseProtos { } return columnFamiliesBuilder_; } - + // repeated .NameStringPair configuration = 4; private java.util.List configuration_ = java.util.Collections.emptyList(); @@ -2162,13 +1705,10 @@ public final class HBaseProtos { bitField0_ |= 0x00000008; } } - + private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder> configurationBuilder_; - - /** - * repeated .NameStringPair configuration = 4; - */ + public java.util.List getConfigurationList() { if (configurationBuilder_ == null) { return java.util.Collections.unmodifiableList(configuration_); @@ -2176,9 +1716,6 @@ public final class HBaseProtos { return configurationBuilder_.getMessageList(); } } - /** - * repeated .NameStringPair configuration = 4; - */ public int getConfigurationCount() { if (configurationBuilder_ == null) { return configuration_.size(); @@ -2186,9 +1723,6 @@ public final class HBaseProtos { return configurationBuilder_.getCount(); } } - /** - * repeated .NameStringPair configuration = 4; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index) { if (configurationBuilder_ == null) { return configuration_.get(index); @@ -2196,9 +1730,6 @@ public final class HBaseProtos { return configurationBuilder_.getMessage(index); } } - /** - * repeated .NameStringPair configuration = 4; - */ public Builder setConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { @@ -2213,9 +1744,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 4; - */ public Builder setConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -2227,9 +1755,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 4; - */ public Builder addConfiguration(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { if (value == null) { @@ -2243,9 +1768,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 4; - */ public Builder addConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { @@ -2260,9 +1782,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 4; - */ public Builder addConfiguration( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -2274,9 +1793,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 4; - */ public Builder addConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -2288,9 +1804,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 4; - */ public Builder addAllConfiguration( java.lang.Iterable values) { if (configurationBuilder_ == null) { @@ -2302,9 +1815,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 4; - */ public Builder clearConfiguration() { if (configurationBuilder_ == null) { configuration_ = java.util.Collections.emptyList(); @@ -2315,9 +1825,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 4; - */ public Builder removeConfiguration(int index) { if (configurationBuilder_ == null) { ensureConfigurationIsMutable(); @@ -2328,16 +1835,10 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 4; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder getConfigurationBuilder( int index) { return getConfigurationFieldBuilder().getBuilder(index); } - /** - * repeated .NameStringPair configuration = 4; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder( int index) { if (configurationBuilder_ == null) { @@ -2345,9 +1846,6 @@ public final class HBaseProtos { return configurationBuilder_.getMessageOrBuilder(index); } } - /** - * repeated .NameStringPair configuration = 4; - */ public java.util.List getConfigurationOrBuilderList() { if (configurationBuilder_ != null) { @@ -2356,24 +1854,15 @@ public final class HBaseProtos { return java.util.Collections.unmodifiableList(configuration_); } } - /** - * repeated .NameStringPair configuration = 4; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder addConfigurationBuilder() { return getConfigurationFieldBuilder().addBuilder( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDefaultInstance()); } - /** - * repeated .NameStringPair configuration = 4; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder addConfigurationBuilder( int index) { return getConfigurationFieldBuilder().addBuilder( index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDefaultInstance()); } - /** - * repeated .NameStringPair configuration = 4; - */ public java.util.List getConfigurationBuilderList() { return getConfigurationFieldBuilder().getBuilderList(); @@ -2392,293 +1881,126 @@ public final class HBaseProtos { } return configurationBuilder_; } - + // @@protoc_insertion_point(builder_scope:TableSchema) } - + static { defaultInstance = new TableSchema(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:TableSchema) } - + public interface ColumnFamilySchemaOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required bytes name = 1; - /** - * required bytes name = 1; - */ boolean hasName(); - /** - * required bytes name = 1; - */ com.google.protobuf.ByteString getName(); - + // repeated .BytesBytesPair attributes = 2; - /** - * repeated .BytesBytesPair attributes = 2; - */ java.util.List getAttributesList(); - /** - * repeated .BytesBytesPair attributes = 2; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair getAttributes(int index); - /** - * repeated .BytesBytesPair attributes = 2; - */ int getAttributesCount(); - /** - * repeated .BytesBytesPair attributes = 2; - */ java.util.List getAttributesOrBuilderList(); - /** - * repeated .BytesBytesPair attributes = 2; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder getAttributesOrBuilder( int index); - + // repeated .NameStringPair configuration = 3; - /** - * repeated .NameStringPair configuration = 3; - */ java.util.List getConfigurationList(); - /** - * repeated .NameStringPair configuration = 3; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index); - /** - * repeated .NameStringPair configuration = 3; - */ int getConfigurationCount(); - /** - * repeated .NameStringPair configuration = 3; - */ java.util.List getConfigurationOrBuilderList(); - /** - * repeated .NameStringPair configuration = 3; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder( int index); } - /** - * Protobuf type {@code ColumnFamilySchema} - * - *
-   **
-   * Column Family Schema
-   * Inspired by the rest ColumSchemaMessage
-   * 
- */ public static final class ColumnFamilySchema extends com.google.protobuf.GeneratedMessage implements ColumnFamilySchemaOrBuilder { // Use ColumnFamilySchema.newBuilder() to construct. - private ColumnFamilySchema(com.google.protobuf.GeneratedMessage.Builder builder) { + private ColumnFamilySchema(Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private ColumnFamilySchema(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - + private ColumnFamilySchema(boolean noInit) {} + private static final ColumnFamilySchema defaultInstance; public static ColumnFamilySchema getDefaultInstance() { return defaultInstance; } - + public ColumnFamilySchema getDefaultInstanceForType() { return defaultInstance; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ColumnFamilySchema( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - name_ = input.readBytes(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - attributes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - attributes_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.PARSER, extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - configuration_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - configuration_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - attributes_ = java.util.Collections.unmodifiableList(attributes_); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - configuration_ = java.util.Collections.unmodifiableList(configuration_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ColumnFamilySchema_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ColumnFamilySchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ColumnFamilySchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ColumnFamilySchema(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ColumnFamilySchema_fieldAccessorTable; } - + private int bitField0_; // required bytes name = 1; public static final int NAME_FIELD_NUMBER = 1; private com.google.protobuf.ByteString name_; - /** - * required bytes name = 1; - */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required bytes name = 1; - */ public com.google.protobuf.ByteString getName() { return name_; } - + // repeated .BytesBytesPair attributes = 2; public static final int ATTRIBUTES_FIELD_NUMBER = 2; private java.util.List attributes_; - /** - * repeated .BytesBytesPair attributes = 2; - */ public java.util.List getAttributesList() { return attributes_; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public java.util.List getAttributesOrBuilderList() { return attributes_; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public int getAttributesCount() { return attributes_.size(); } - /** - * repeated .BytesBytesPair attributes = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair getAttributes(int index) { return attributes_.get(index); } - /** - * repeated .BytesBytesPair attributes = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder getAttributesOrBuilder( int index) { return attributes_.get(index); } - + // repeated .NameStringPair configuration = 3; public static final int CONFIGURATION_FIELD_NUMBER = 3; private java.util.List configuration_; - /** - * repeated .NameStringPair configuration = 3; - */ public java.util.List getConfigurationList() { return configuration_; } - /** - * repeated .NameStringPair configuration = 3; - */ public java.util.List getConfigurationOrBuilderList() { return configuration_; } - /** - * repeated .NameStringPair configuration = 3; - */ public int getConfigurationCount() { return configuration_.size(); } - /** - * repeated .NameStringPair configuration = 3; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index) { return configuration_.get(index); } - /** - * repeated .NameStringPair configuration = 3; - */ 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(); @@ -2688,7 +2010,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasName()) { memoizedIsInitialized = 0; return false; @@ -2708,7 +2030,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -2723,12 +2045,12 @@ public final class HBaseProtos { } 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 @@ -2746,14 +2068,14 @@ public final class HBaseProtos { 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) { @@ -2763,7 +2085,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema) obj; - + boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { @@ -2778,13 +2100,9 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { @@ -2800,85 +2118,89 @@ public final class HBaseProtos { hash = (53 * hash) + getConfigurationList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + 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.ColumnFamilySchema prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code ColumnFamilySchema} - * - *
-     **
-     * Column Family Schema
-     * Inspired by the rest ColumSchemaMessage
-     * 
- */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchemaOrBuilder { @@ -2886,21 +2208,18 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ColumnFamilySchema_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ColumnFamilySchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ColumnFamilySchema_fieldAccessorTable; } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -2913,7 +2232,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); name_ = com.google.protobuf.ByteString.EMPTY; @@ -2932,20 +2251,20 @@ public final class HBaseProtos { } return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ColumnFamilySchema_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.getDescriptor(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema result = buildPartial(); if (!result.isInitialized()) { @@ -2953,7 +2272,17 @@ public final class HBaseProtos { } return result; } - + + private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema(this); int from_bitField0_ = bitField0_; @@ -2984,7 +2313,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema)other); @@ -2993,7 +2322,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.getDefaultInstance()) return this; if (other.hasName()) { @@ -3054,7 +2383,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasName()) { @@ -3074,43 +2403,61 @@ public final class HBaseProtos { } return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + 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.NameStringPair.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addConfiguration(subBuilder.buildPartial()); + break; + } } } - return this; } + private int bitField0_; - + // required bytes name = 1; private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY; - /** - * required bytes name = 1; - */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required bytes name = 1; - */ public com.google.protobuf.ByteString getName() { return name_; } - /** - * required bytes name = 1; - */ public Builder setName(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -3120,16 +2467,13 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * required bytes name = 1; - */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } - + // repeated .BytesBytesPair attributes = 2; private java.util.List attributes_ = java.util.Collections.emptyList(); @@ -3139,13 +2483,10 @@ public final class HBaseProtos { 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_; - - /** - * repeated .BytesBytesPair attributes = 2; - */ + public java.util.List getAttributesList() { if (attributesBuilder_ == null) { return java.util.Collections.unmodifiableList(attributes_); @@ -3153,9 +2494,6 @@ public final class HBaseProtos { return attributesBuilder_.getMessageList(); } } - /** - * repeated .BytesBytesPair attributes = 2; - */ public int getAttributesCount() { if (attributesBuilder_ == null) { return attributes_.size(); @@ -3163,9 +2501,6 @@ public final class HBaseProtos { return attributesBuilder_.getCount(); } } - /** - * repeated .BytesBytesPair attributes = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair getAttributes(int index) { if (attributesBuilder_ == null) { return attributes_.get(index); @@ -3173,9 +2508,6 @@ public final class HBaseProtos { return attributesBuilder_.getMessage(index); } } - /** - * repeated .BytesBytesPair attributes = 2; - */ public Builder setAttributes( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair value) { if (attributesBuilder_ == null) { @@ -3190,9 +2522,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public Builder setAttributes( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder builderForValue) { if (attributesBuilder_ == null) { @@ -3204,9 +2533,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public Builder addAttributes(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair value) { if (attributesBuilder_ == null) { if (value == null) { @@ -3220,9 +2546,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public Builder addAttributes( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair value) { if (attributesBuilder_ == null) { @@ -3237,9 +2560,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public Builder addAttributes( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder builderForValue) { if (attributesBuilder_ == null) { @@ -3251,9 +2571,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public Builder addAttributes( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder builderForValue) { if (attributesBuilder_ == null) { @@ -3265,9 +2582,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public Builder addAllAttributes( java.lang.Iterable values) { if (attributesBuilder_ == null) { @@ -3279,9 +2593,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public Builder clearAttributes() { if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); @@ -3292,9 +2603,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public Builder removeAttributes(int index) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); @@ -3305,16 +2613,10 @@ public final class HBaseProtos { } return this; } - /** - * repeated .BytesBytesPair attributes = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder getAttributesBuilder( int index) { return getAttributesFieldBuilder().getBuilder(index); } - /** - * repeated .BytesBytesPair attributes = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder getAttributesOrBuilder( int index) { if (attributesBuilder_ == null) { @@ -3322,9 +2624,6 @@ public final class HBaseProtos { return attributesBuilder_.getMessageOrBuilder(index); } } - /** - * repeated .BytesBytesPair attributes = 2; - */ public java.util.List getAttributesOrBuilderList() { if (attributesBuilder_ != null) { @@ -3333,24 +2632,15 @@ public final class HBaseProtos { return java.util.Collections.unmodifiableList(attributes_); } } - /** - * repeated .BytesBytesPair attributes = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder addAttributesBuilder() { return getAttributesFieldBuilder().addBuilder( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.getDefaultInstance()); } - /** - * repeated .BytesBytesPair attributes = 2; - */ 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()); } - /** - * repeated .BytesBytesPair attributes = 2; - */ public java.util.List getAttributesBuilderList() { return getAttributesFieldBuilder().getBuilderList(); @@ -3369,7 +2659,7 @@ public final class HBaseProtos { } return attributesBuilder_; } - + // repeated .NameStringPair configuration = 3; private java.util.List configuration_ = java.util.Collections.emptyList(); @@ -3379,13 +2669,10 @@ public final class HBaseProtos { bitField0_ |= 0x00000004; } } - + private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder> configurationBuilder_; - - /** - * repeated .NameStringPair configuration = 3; - */ + public java.util.List getConfigurationList() { if (configurationBuilder_ == null) { return java.util.Collections.unmodifiableList(configuration_); @@ -3393,9 +2680,6 @@ public final class HBaseProtos { return configurationBuilder_.getMessageList(); } } - /** - * repeated .NameStringPair configuration = 3; - */ public int getConfigurationCount() { if (configurationBuilder_ == null) { return configuration_.size(); @@ -3403,9 +2687,6 @@ public final class HBaseProtos { return configurationBuilder_.getCount(); } } - /** - * repeated .NameStringPair configuration = 3; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index) { if (configurationBuilder_ == null) { return configuration_.get(index); @@ -3413,9 +2694,6 @@ public final class HBaseProtos { return configurationBuilder_.getMessage(index); } } - /** - * repeated .NameStringPair configuration = 3; - */ public Builder setConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { @@ -3430,9 +2708,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 3; - */ public Builder setConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -3444,9 +2719,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 3; - */ public Builder addConfiguration(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { if (value == null) { @@ -3460,9 +2732,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 3; - */ public Builder addConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { @@ -3477,9 +2746,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 3; - */ public Builder addConfiguration( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -3491,9 +2757,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 3; - */ public Builder addConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -3505,9 +2768,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 3; - */ public Builder addAllConfiguration( java.lang.Iterable values) { if (configurationBuilder_ == null) { @@ -3519,9 +2779,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 3; - */ public Builder clearConfiguration() { if (configurationBuilder_ == null) { configuration_ = java.util.Collections.emptyList(); @@ -3532,9 +2789,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 3; - */ public Builder removeConfiguration(int index) { if (configurationBuilder_ == null) { ensureConfigurationIsMutable(); @@ -3545,16 +2799,10 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 3; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder getConfigurationBuilder( int index) { return getConfigurationFieldBuilder().getBuilder(index); } - /** - * repeated .NameStringPair configuration = 3; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder( int index) { if (configurationBuilder_ == null) { @@ -3562,9 +2810,6 @@ public final class HBaseProtos { return configurationBuilder_.getMessageOrBuilder(index); } } - /** - * repeated .NameStringPair configuration = 3; - */ public java.util.List getConfigurationOrBuilderList() { if (configurationBuilder_ != null) { @@ -3573,24 +2818,15 @@ public final class HBaseProtos { return java.util.Collections.unmodifiableList(configuration_); } } - /** - * repeated .NameStringPair configuration = 3; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder addConfigurationBuilder() { return getConfigurationFieldBuilder().addBuilder( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDefaultInstance()); } - /** - * repeated .NameStringPair configuration = 3; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder addConfigurationBuilder( int index) { return getConfigurationFieldBuilder().addBuilder( index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDefaultInstance()); } - /** - * repeated .NameStringPair configuration = 3; - */ public java.util.List getConfigurationBuilderList() { return getConfigurationFieldBuilder().getBuilderList(); @@ -3609,321 +2845,138 @@ public final class HBaseProtos { } return configurationBuilder_; } - + // @@protoc_insertion_point(builder_scope:ColumnFamilySchema) } - + static { defaultInstance = new ColumnFamilySchema(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:ColumnFamilySchema) } - + public interface RegionInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required uint64 region_id = 1; - /** - * required uint64 region_id = 1; - */ boolean hasRegionId(); - /** - * required uint64 region_id = 1; - */ long getRegionId(); - + // required .TableName table_name = 2; - /** - * required .TableName table_name = 2; - */ boolean hasTableName(); - /** - * required .TableName table_name = 2; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableName(); - /** - * required .TableName table_name = 2; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableNameOrBuilder(); - + // optional bytes start_key = 3; - /** - * optional bytes start_key = 3; - */ boolean hasStartKey(); - /** - * optional bytes start_key = 3; - */ com.google.protobuf.ByteString getStartKey(); - + // optional bytes end_key = 4; - /** - * optional bytes end_key = 4; - */ boolean hasEndKey(); - /** - * optional bytes end_key = 4; - */ com.google.protobuf.ByteString getEndKey(); - + // optional bool offline = 5; - /** - * optional bool offline = 5; - */ boolean hasOffline(); - /** - * optional bool offline = 5; - */ boolean getOffline(); - + // optional bool split = 6; - /** - * optional bool split = 6; - */ boolean hasSplit(); - /** - * optional bool split = 6; - */ boolean getSplit(); } - /** - * Protobuf type {@code RegionInfo} - * - *
-   **
-   * Protocol buffer version of HRegionInfo.
-   * 
- */ public static final class RegionInfo extends com.google.protobuf.GeneratedMessage implements RegionInfoOrBuilder { // Use RegionInfo.newBuilder() to construct. - private RegionInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + private RegionInfo(Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private RegionInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - + private RegionInfo(boolean noInit) {} + private static final RegionInfo defaultInstance; public static RegionInfo getDefaultInstance() { return defaultInstance; } - + public RegionInfo getDefaultInstanceForType() { return defaultInstance; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RegionInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - regionId_ = input.readUInt64(); - break; - } - case 18: { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = tableName_.toBuilder(); - } - tableName_ = input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tableName_); - tableName_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - bitField0_ |= 0x00000004; - startKey_ = input.readBytes(); - break; - } - case 34: { - bitField0_ |= 0x00000008; - endKey_ = input.readBytes(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - offline_ = input.readBool(); - break; - } - case 48: { - bitField0_ |= 0x00000020; - split_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionInfo_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public RegionInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RegionInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionInfo_fieldAccessorTable; } - + private int bitField0_; // required uint64 region_id = 1; public static final int REGION_ID_FIELD_NUMBER = 1; private long regionId_; - /** - * required uint64 region_id = 1; - */ public boolean hasRegionId() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint64 region_id = 1; - */ public long getRegionId() { return regionId_; } - + // required .TableName table_name = 2; public static final int TABLE_NAME_FIELD_NUMBER = 2; private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName tableName_; - /** - * required .TableName table_name = 2; - */ public boolean hasTableName() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .TableName table_name = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableName() { return tableName_; } - /** - * required .TableName table_name = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableNameOrBuilder() { return tableName_; } - + // optional bytes start_key = 3; public static final int START_KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString startKey_; - /** - * optional bytes start_key = 3; - */ public boolean hasStartKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional bytes start_key = 3; - */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } - + // optional bytes end_key = 4; public static final int END_KEY_FIELD_NUMBER = 4; private com.google.protobuf.ByteString endKey_; - /** - * optional bytes end_key = 4; - */ public boolean hasEndKey() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * optional bytes end_key = 4; - */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } - + // optional bool offline = 5; public static final int OFFLINE_FIELD_NUMBER = 5; private boolean offline_; - /** - * optional bool offline = 5; - */ public boolean hasOffline() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * optional bool offline = 5; - */ public boolean getOffline() { return offline_; } - + // optional bool split = 6; public static final int SPLIT_FIELD_NUMBER = 6; private boolean split_; - /** - * optional bool split = 6; - */ public boolean hasSplit() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** - * optional bool split = 6; - */ public boolean getSplit() { return split_; } - + private void initFields() { regionId_ = 0L; tableName_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance(); @@ -3936,7 +2989,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasRegionId()) { memoizedIsInitialized = 0; return false; @@ -3952,7 +3005,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -3976,12 +3029,12 @@ public final class HBaseProtos { } 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 @@ -4011,14 +3064,14 @@ public final class HBaseProtos { 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) { @@ -4028,7 +3081,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo) obj; - + boolean result = true; result = result && (hasRegionId() == other.hasRegionId()); if (hasRegionId()) { @@ -4064,13 +3117,9 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasRegionId()) { @@ -4098,84 +3147,89 @@ public final class HBaseProtos { hash = (53 * hash) + hashBoolean(getSplit()); } hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + 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.RegionInfo prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code RegionInfo} - * - *
-     **
-     * Protocol buffer version of HRegionInfo.
-     * 
- */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder { @@ -4183,21 +3237,18 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionInfo_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionInfo_fieldAccessorTable; } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -4209,7 +3260,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); regionId_ = 0L; @@ -4230,20 +3281,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000020); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionInfo_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.getDescriptor(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo result = buildPartial(); if (!result.isInitialized()) { @@ -4251,7 +3302,17 @@ public final class HBaseProtos { } return result; } - + + private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo(this); int from_bitField0_ = bitField0_; @@ -4288,7 +3349,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo)other); @@ -4297,7 +3358,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.getDefaultInstance()) return this; if (other.hasRegionId()) { @@ -4321,7 +3382,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasRegionId()) { @@ -4337,72 +3398,98 @@ public final class HBaseProtos { } return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required uint64 region_id = 1; - private long regionId_ ; - /** - * required uint64 region_id = 1; - */ - public boolean hasRegionId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required uint64 region_id = 1; - */ - public long getRegionId() { - return regionId_; - } - /** - * required uint64 region_id = 1; - */ - public Builder setRegionId(long value) { - bitField0_ |= 0x00000001; - regionId_ = value; - onChanged(); - return this; - } - /** - * required uint64 region_id = 1; - */ - public Builder clearRegionId() { + 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 8: { + bitField0_ |= 0x00000001; + regionId_ = input.readUInt64(); + break; + } + case 18: { + 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 26: { + bitField0_ |= 0x00000004; + startKey_ = input.readBytes(); + break; + } + case 34: { + bitField0_ |= 0x00000008; + endKey_ = input.readBytes(); + break; + } + case 40: { + bitField0_ |= 0x00000010; + offline_ = input.readBool(); + break; + } + case 48: { + bitField0_ |= 0x00000020; + split_ = input.readBool(); + break; + } + } + } + } + + private int bitField0_; + + // required uint64 region_id = 1; + private long regionId_ ; + public boolean hasRegionId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public long getRegionId() { + return regionId_; + } + public Builder setRegionId(long value) { + bitField0_ |= 0x00000001; + regionId_ = value; + onChanged(); + return this; + } + public Builder clearRegionId() { bitField0_ = (bitField0_ & ~0x00000001); regionId_ = 0L; onChanged(); return this; } - + // required .TableName table_name = 2; 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_; - /** - * required .TableName table_name = 2; - */ public boolean hasTableName() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required .TableName table_name = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableName() { if (tableNameBuilder_ == null) { return tableName_; @@ -4410,9 +3497,6 @@ public final class HBaseProtos { return tableNameBuilder_.getMessage(); } } - /** - * required .TableName table_name = 2; - */ public Builder setTableName(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) { if (tableNameBuilder_ == null) { if (value == null) { @@ -4426,9 +3510,6 @@ public final class HBaseProtos { bitField0_ |= 0x00000002; return this; } - /** - * required .TableName table_name = 2; - */ public Builder setTableName( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder builderForValue) { if (tableNameBuilder_ == null) { @@ -4440,9 +3521,6 @@ public final class HBaseProtos { bitField0_ |= 0x00000002; return this; } - /** - * required .TableName table_name = 2; - */ public Builder mergeTableName(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) { if (tableNameBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && @@ -4459,9 +3537,6 @@ public final class HBaseProtos { bitField0_ |= 0x00000002; return this; } - /** - * required .TableName table_name = 2; - */ public Builder clearTableName() { if (tableNameBuilder_ == null) { tableName_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance(); @@ -4472,17 +3547,11 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000002); return this; } - /** - * required .TableName table_name = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder getTableNameBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTableNameFieldBuilder().getBuilder(); } - /** - * required .TableName table_name = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableNameOrBuilder() { if (tableNameBuilder_ != null) { return tableNameBuilder_.getMessageOrBuilder(); @@ -4490,9 +3559,6 @@ public final class HBaseProtos { return tableName_; } } - /** - * required .TableName table_name = 2; - */ 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() { @@ -4506,24 +3572,15 @@ public final class HBaseProtos { } return tableNameBuilder_; } - + // optional bytes start_key = 3; private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes start_key = 3; - */ public boolean hasStartKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional bytes start_key = 3; - */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } - /** - * optional bytes start_key = 3; - */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -4533,33 +3590,21 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * optional bytes start_key = 3; - */ public Builder clearStartKey() { bitField0_ = (bitField0_ & ~0x00000004); startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } - + // optional bytes end_key = 4; private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes end_key = 4; - */ public boolean hasEndKey() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * optional bytes end_key = 4; - */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } - /** - * optional bytes end_key = 4; - */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -4569,263 +3614,128 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * optional bytes end_key = 4; - */ public Builder clearEndKey() { bitField0_ = (bitField0_ & ~0x00000008); endKey_ = getDefaultInstance().getEndKey(); onChanged(); return this; } - + // optional bool offline = 5; private boolean offline_ ; - /** - * optional bool offline = 5; - */ public boolean hasOffline() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * optional bool offline = 5; - */ public boolean getOffline() { return offline_; } - /** - * optional bool offline = 5; - */ public Builder setOffline(boolean value) { bitField0_ |= 0x00000010; offline_ = value; onChanged(); return this; } - /** - * optional bool offline = 5; - */ public Builder clearOffline() { bitField0_ = (bitField0_ & ~0x00000010); offline_ = false; onChanged(); return this; } - + // optional bool split = 6; private boolean split_ ; - /** - * optional bool split = 6; - */ public boolean hasSplit() { return ((bitField0_ & 0x00000020) == 0x00000020); } - /** - * optional bool split = 6; - */ public boolean getSplit() { return split_; } - /** - * optional bool split = 6; - */ public Builder setSplit(boolean value) { bitField0_ |= 0x00000020; split_ = value; onChanged(); return this; } - /** - * optional bool split = 6; - */ public Builder clearSplit() { bitField0_ = (bitField0_ & ~0x00000020); split_ = false; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:RegionInfo) } - + static { defaultInstance = new RegionInfo(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:RegionInfo) } - + public interface FavoredNodesOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // repeated .ServerName favored_node = 1; - /** - * repeated .ServerName favored_node = 1; - */ java.util.List getFavoredNodeList(); - /** - * repeated .ServerName favored_node = 1; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName getFavoredNode(int index); - /** - * repeated .ServerName favored_node = 1; - */ int getFavoredNodeCount(); - /** - * repeated .ServerName favored_node = 1; - */ java.util.List getFavoredNodeOrBuilderList(); - /** - * repeated .ServerName favored_node = 1; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder getFavoredNodeOrBuilder( int index); } - /** - * Protobuf type {@code FavoredNodes} - * - *
-   **
-   * Protocol buffer for favored nodes
-   * 
- */ public static final class FavoredNodes extends com.google.protobuf.GeneratedMessage implements FavoredNodesOrBuilder { // Use FavoredNodes.newBuilder() to construct. - private FavoredNodes(com.google.protobuf.GeneratedMessage.Builder builder) { + private FavoredNodes(Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private FavoredNodes(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - + private FavoredNodes(boolean noInit) {} + private static final FavoredNodes defaultInstance; public static FavoredNodes getDefaultInstance() { return defaultInstance; } - + public FavoredNodes getDefaultInstanceForType() { return defaultInstance; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FavoredNodes( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - favoredNode_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - favoredNode_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - favoredNode_ = java.util.Collections.unmodifiableList(favoredNode_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_FavoredNodes_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_FavoredNodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public FavoredNodes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FavoredNodes(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_FavoredNodes_fieldAccessorTable; } - + // repeated .ServerName favored_node = 1; public static final int FAVORED_NODE_FIELD_NUMBER = 1; private java.util.List favoredNode_; - /** - * repeated .ServerName favored_node = 1; - */ public java.util.List getFavoredNodeList() { return favoredNode_; } - /** - * repeated .ServerName favored_node = 1; - */ public java.util.List getFavoredNodeOrBuilderList() { return favoredNode_; } - /** - * repeated .ServerName favored_node = 1; - */ public int getFavoredNodeCount() { return favoredNode_.size(); } - /** - * repeated .ServerName favored_node = 1; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName getFavoredNode(int index) { return favoredNode_.get(index); } - /** - * repeated .ServerName favored_node = 1; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder getFavoredNodeOrBuilder( int index) { return favoredNode_.get(index); } - + private void initFields() { favoredNode_ = java.util.Collections.emptyList(); } @@ -4833,7 +3743,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + for (int i = 0; i < getFavoredNodeCount(); i++) { if (!getFavoredNode(i).isInitialized()) { memoizedIsInitialized = 0; @@ -4843,7 +3753,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -4852,12 +3762,12 @@ public final class HBaseProtos { } getUnknownFields().writeTo(output); } - + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; for (int i = 0; i < favoredNode_.size(); i++) { size += com.google.protobuf.CodedOutputStream @@ -4867,14 +3777,14 @@ public final class HBaseProtos { 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) { @@ -4884,7 +3794,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes) obj; - + boolean result = true; result = result && getFavoredNodeList() .equals(other.getFavoredNodeList()); @@ -4892,13 +3802,9 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getFavoredNodeCount() > 0) { @@ -4906,84 +3812,89 @@ public final class HBaseProtos { hash = (53 * hash) + getFavoredNodeList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + 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.FavoredNodes prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code FavoredNodes} - * - *
-     **
-     * Protocol buffer for favored nodes
-     * 
- */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodesOrBuilder { @@ -4991,21 +3902,18 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_FavoredNodes_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_FavoredNodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_FavoredNodes_fieldAccessorTable; } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -5017,7 +3925,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); if (favoredNodeBuilder_ == null) { @@ -5028,20 +3936,20 @@ public final class HBaseProtos { } return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_FavoredNodes_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes.getDescriptor(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes result = buildPartial(); if (!result.isInitialized()) { @@ -5049,7 +3957,17 @@ public final class HBaseProtos { } return result; } - + + private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes(this); int from_bitField0_ = bitField0_; @@ -5065,7 +3983,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes)other); @@ -5074,7 +3992,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes.getDefaultInstance()) return this; if (favoredNodeBuilder_ == null) { @@ -5106,7 +4024,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { for (int i = 0; i < getFavoredNodeCount(); i++) { if (!getFavoredNode(i).isInitialized()) { @@ -5116,26 +4034,42 @@ public final class HBaseProtos { } return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + 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.ServerName.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addFavoredNode(subBuilder.buildPartial()); + break; + } } } - return this; } + private int bitField0_; - + // repeated .ServerName favored_node = 1; private java.util.List favoredNode_ = java.util.Collections.emptyList(); @@ -5145,13 +4079,10 @@ public final class HBaseProtos { bitField0_ |= 0x00000001; } } - + private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder> favoredNodeBuilder_; - - /** - * repeated .ServerName favored_node = 1; - */ + public java.util.List getFavoredNodeList() { if (favoredNodeBuilder_ == null) { return java.util.Collections.unmodifiableList(favoredNode_); @@ -5159,9 +4090,6 @@ public final class HBaseProtos { return favoredNodeBuilder_.getMessageList(); } } - /** - * repeated .ServerName favored_node = 1; - */ public int getFavoredNodeCount() { if (favoredNodeBuilder_ == null) { return favoredNode_.size(); @@ -5169,9 +4097,6 @@ public final class HBaseProtos { return favoredNodeBuilder_.getCount(); } } - /** - * repeated .ServerName favored_node = 1; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName getFavoredNode(int index) { if (favoredNodeBuilder_ == null) { return favoredNode_.get(index); @@ -5179,9 +4104,6 @@ public final class HBaseProtos { return favoredNodeBuilder_.getMessage(index); } } - /** - * repeated .ServerName favored_node = 1; - */ public Builder setFavoredNode( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName value) { if (favoredNodeBuilder_ == null) { @@ -5196,9 +4118,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .ServerName favored_node = 1; - */ public Builder setFavoredNode( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder builderForValue) { if (favoredNodeBuilder_ == null) { @@ -5210,9 +4129,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .ServerName favored_node = 1; - */ public Builder addFavoredNode(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName value) { if (favoredNodeBuilder_ == null) { if (value == null) { @@ -5226,9 +4142,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .ServerName favored_node = 1; - */ public Builder addFavoredNode( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName value) { if (favoredNodeBuilder_ == null) { @@ -5243,9 +4156,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .ServerName favored_node = 1; - */ public Builder addFavoredNode( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder builderForValue) { if (favoredNodeBuilder_ == null) { @@ -5257,9 +4167,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .ServerName favored_node = 1; - */ public Builder addFavoredNode( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder builderForValue) { if (favoredNodeBuilder_ == null) { @@ -5271,9 +4178,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .ServerName favored_node = 1; - */ public Builder addAllFavoredNode( java.lang.Iterable values) { if (favoredNodeBuilder_ == null) { @@ -5285,9 +4189,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .ServerName favored_node = 1; - */ public Builder clearFavoredNode() { if (favoredNodeBuilder_ == null) { favoredNode_ = java.util.Collections.emptyList(); @@ -5298,9 +4199,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .ServerName favored_node = 1; - */ public Builder removeFavoredNode(int index) { if (favoredNodeBuilder_ == null) { ensureFavoredNodeIsMutable(); @@ -5311,16 +4209,10 @@ public final class HBaseProtos { } return this; } - /** - * repeated .ServerName favored_node = 1; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder getFavoredNodeBuilder( int index) { return getFavoredNodeFieldBuilder().getBuilder(index); } - /** - * repeated .ServerName favored_node = 1; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder getFavoredNodeOrBuilder( int index) { if (favoredNodeBuilder_ == null) { @@ -5328,9 +4220,6 @@ public final class HBaseProtos { return favoredNodeBuilder_.getMessageOrBuilder(index); } } - /** - * repeated .ServerName favored_node = 1; - */ public java.util.List getFavoredNodeOrBuilderList() { if (favoredNodeBuilder_ != null) { @@ -5339,24 +4228,15 @@ public final class HBaseProtos { return java.util.Collections.unmodifiableList(favoredNode_); } } - /** - * repeated .ServerName favored_node = 1; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder addFavoredNodeBuilder() { return getFavoredNodeFieldBuilder().addBuilder( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.getDefaultInstance()); } - /** - * repeated .ServerName favored_node = 1; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder addFavoredNodeBuilder( int index) { return getFavoredNodeFieldBuilder().addBuilder( index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.getDefaultInstance()); } - /** - * repeated .ServerName favored_node = 1; - */ public java.util.List getFavoredNodeBuilderList() { return getFavoredNodeFieldBuilder().getBuilderList(); @@ -5375,198 +4255,69 @@ public final class HBaseProtos { } return favoredNodeBuilder_; } - + // @@protoc_insertion_point(builder_scope:FavoredNodes) } - + static { defaultInstance = new FavoredNodes(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:FavoredNodes) } - + public interface RegionSpecifierOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required .RegionSpecifier.RegionSpecifierType type = 1; - /** - * required .RegionSpecifier.RegionSpecifierType type = 1; - */ boolean hasType(); - /** - * required .RegionSpecifier.RegionSpecifierType type = 1; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType getType(); - + // required bytes value = 2; - /** - * required bytes value = 2; - */ boolean hasValue(); - /** - * required bytes value = 2; - */ com.google.protobuf.ByteString getValue(); } - /** - * Protobuf type {@code RegionSpecifier} - * - *
-   **
-   * Container protocol buffer to specify a region.
-   * You can specify region by region name, or the hash
-   * of the region name, which is known as encoded
-   * region name.
-   * 
- */ public static final class RegionSpecifier extends com.google.protobuf.GeneratedMessage implements RegionSpecifierOrBuilder { // Use RegionSpecifier.newBuilder() to construct. - private RegionSpecifier(com.google.protobuf.GeneratedMessage.Builder builder) { + private RegionSpecifier(Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private RegionSpecifier(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - + private RegionSpecifier(boolean noInit) {} + private static final RegionSpecifier defaultInstance; public static RegionSpecifier getDefaultInstance() { return defaultInstance; } - + public RegionSpecifier getDefaultInstanceForType() { return defaultInstance; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RegionSpecifier( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType value = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - type_ = value; - } - break; - } - case 18: { - bitField0_ |= 0x00000002; - value_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionSpecifier_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionSpecifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public RegionSpecifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RegionSpecifier(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionSpecifier_fieldAccessorTable; } - - /** - * Protobuf enum {@code RegionSpecifier.RegionSpecifierType} - */ + public enum RegionSpecifierType implements com.google.protobuf.ProtocolMessageEnum { - /** - * REGION_NAME = 1; - * - *
-       * <tablename>,<startkey>,<regionId>.<encodedName>
-       * 
- */ REGION_NAME(0, 1), - /** - * ENCODED_REGION_NAME = 2; - * - *
-       * hash of <tablename>,<startkey>,<regionId>
-       * 
- */ ENCODED_REGION_NAME(1, 2), ; - - /** - * REGION_NAME = 1; - * - *
-       * <tablename>,<startkey>,<regionId>.<encodedName>
-       * 
- */ + public static final int REGION_NAME_VALUE = 1; - /** - * ENCODED_REGION_NAME = 2; - * - *
-       * hash of <tablename>,<startkey>,<regionId>
-       * 
- */ public static final int ENCODED_REGION_NAME_VALUE = 2; - - + + public final int getNumber() { return value; } - + public static RegionSpecifierType valueOf(int value) { switch (value) { case 1: return REGION_NAME; @@ -5574,7 +4325,7 @@ public final class HBaseProtos { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; @@ -5586,7 +4337,7 @@ public final class HBaseProtos { return RegionSpecifierType.valueOf(number); } }; - + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); @@ -5599,9 +4350,11 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.getDescriptor().getEnumTypes().get(0); } - - private static final RegionSpecifierType[] VALUES = values(); - + + private static final RegionSpecifierType[] VALUES = { + REGION_NAME, ENCODED_REGION_NAME, + }; + public static RegionSpecifierType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { @@ -5610,51 +4363,39 @@ public final class HBaseProtos { } return VALUES[desc.getIndex()]; } - + private final int index; private final int value; - + private RegionSpecifierType(int index, int value) { this.index = index; this.value = value; } - + // @@protoc_insertion_point(enum_scope:RegionSpecifier.RegionSpecifierType) } - + private int bitField0_; // required .RegionSpecifier.RegionSpecifierType type = 1; public static final int TYPE_FIELD_NUMBER = 1; private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType type_; - /** - * required .RegionSpecifier.RegionSpecifierType type = 1; - */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required .RegionSpecifier.RegionSpecifierType type = 1; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType getType() { return type_; } - + // required bytes value = 2; public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString value_; - /** - * required bytes value = 2; - */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required bytes value = 2; - */ public com.google.protobuf.ByteString getValue() { return value_; } - + private void initFields() { type_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType.REGION_NAME; value_ = com.google.protobuf.ByteString.EMPTY; @@ -5663,7 +4404,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasType()) { memoizedIsInitialized = 0; return false; @@ -5675,7 +4416,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -5687,12 +4428,12 @@ public final class HBaseProtos { } 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 @@ -5706,14 +4447,14 @@ public final class HBaseProtos { 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) { @@ -5723,7 +4464,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier) obj; - + boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { @@ -5739,13 +4480,9 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasType()) { @@ -5757,87 +4494,89 @@ public final class HBaseProtos { hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + 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.RegionSpecifier prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code RegionSpecifier} - * - *
-     **
-     * Container protocol buffer to specify a region.
-     * You can specify region by region name, or the hash
-     * of the region name, which is known as encoded
-     * region name.
-     * 
- */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifierOrBuilder { @@ -5845,21 +4584,18 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionSpecifier_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionSpecifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionSpecifier_fieldAccessorTable; } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -5870,7 +4606,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); type_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType.REGION_NAME; @@ -5879,20 +4615,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionSpecifier_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.getDescriptor(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier result = buildPartial(); if (!result.isInitialized()) { @@ -5900,9 +4636,19 @@ public final class HBaseProtos { } return result; } - - public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier buildPartial() { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier(this); + + private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier buildPartial() { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { @@ -5917,7 +4663,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier)other); @@ -5926,7 +4672,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.getDefaultInstance()) return this; if (other.hasType()) { @@ -5938,7 +4684,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasType()) { @@ -5950,43 +4696,60 @@ public final class HBaseProtos { } return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + 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 8: { + int rawValue = input.readEnum(); + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType value = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + type_ = value; + } + break; + } + case 18: { + bitField0_ |= 0x00000002; + value_ = input.readBytes(); + break; + } } } - return this; } + private int bitField0_; - + // required .RegionSpecifier.RegionSpecifierType type = 1; private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType type_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType.REGION_NAME; - /** - * required .RegionSpecifier.RegionSpecifierType type = 1; - */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required .RegionSpecifier.RegionSpecifierType type = 1; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType getType() { return type_; } - /** - * required .RegionSpecifier.RegionSpecifierType type = 1; - */ public Builder setType(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType value) { if (value == null) { throw new NullPointerException(); @@ -5996,33 +4759,21 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * required .RegionSpecifier.RegionSpecifierType type = 1; - */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType.REGION_NAME; onChanged(); return this; } - + // required bytes value = 2; private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * required bytes value = 2; - */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required bytes value = 2; - */ public com.google.protobuf.ByteString getValue() { return value_; } - /** - * required bytes value = 2; - */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -6032,191 +4783,84 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * required bytes value = 2; - */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:RegionSpecifier) } - + static { defaultInstance = new RegionSpecifier(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:RegionSpecifier) } - + public interface TimeRangeOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // optional uint64 from = 1; - /** - * optional uint64 from = 1; - */ boolean hasFrom(); - /** - * optional uint64 from = 1; - */ long getFrom(); - + // optional uint64 to = 2; - /** - * optional uint64 to = 2; - */ boolean hasTo(); - /** - * optional uint64 to = 2; - */ long getTo(); } - /** - * Protobuf type {@code TimeRange} - * - *
-   **
-   * A range of time. Both from and to are Java time
-   * stamp in milliseconds. If you don't specify a time
-   * range, it means all time.  By default, if not
-   * specified, from = 0, and to = Long.MAX_VALUE
-   * 
- */ public static final class TimeRange extends com.google.protobuf.GeneratedMessage implements TimeRangeOrBuilder { // Use TimeRange.newBuilder() to construct. - private TimeRange(com.google.protobuf.GeneratedMessage.Builder builder) { + private TimeRange(Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private TimeRange(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - + private TimeRange(boolean noInit) {} + private static final TimeRange defaultInstance; public static TimeRange getDefaultInstance() { return defaultInstance; } - + public TimeRange getDefaultInstanceForType() { return defaultInstance; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TimeRange( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - from_ = input.readUInt64(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - to_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TimeRange_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TimeRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public TimeRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TimeRange(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TimeRange_fieldAccessorTable; } - + private int bitField0_; // optional uint64 from = 1; public static final int FROM_FIELD_NUMBER = 1; private long from_; - /** - * optional uint64 from = 1; - */ public boolean hasFrom() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * optional uint64 from = 1; - */ public long getFrom() { return from_; } - + // optional uint64 to = 2; public static final int TO_FIELD_NUMBER = 2; private long to_; - /** - * optional uint64 to = 2; - */ public boolean hasTo() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional uint64 to = 2; - */ public long getTo() { return to_; } - + private void initFields() { from_ = 0L; to_ = 0L; @@ -6225,11 +4869,11 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -6241,12 +4885,12 @@ public final class HBaseProtos { } 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 @@ -6260,14 +4904,14 @@ public final class HBaseProtos { 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) { @@ -6277,7 +4921,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange) obj; - + boolean result = true; result = result && (hasFrom() == other.hasFrom()); if (hasFrom()) { @@ -6293,13 +4937,9 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasFrom()) { @@ -6311,87 +4951,89 @@ public final class HBaseProtos { hash = (53 * hash) + hashLong(getTo()); } hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + 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.TimeRange prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code TimeRange} - * - *
-     **
-     * A range of time. Both from and to are Java time
-     * stamp in milliseconds. If you don't specify a time
-     * range, it means all time.  By default, if not
-     * specified, from = 0, and to = Long.MAX_VALUE
-     * 
- */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRangeOrBuilder { @@ -6399,21 +5041,18 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TimeRange_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TimeRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TimeRange_fieldAccessorTable; } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -6424,7 +5063,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); from_ = 0L; @@ -6433,20 +5072,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TimeRange_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.getDescriptor(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange result = buildPartial(); if (!result.isInitialized()) { @@ -6454,7 +5093,17 @@ public final class HBaseProtos { } return result; } - + + private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange(this); int from_bitField0_ = bitField0_; @@ -6471,7 +5120,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange)other); @@ -6480,7 +5129,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.getDefaultInstance()) return this; if (other.hasFrom()) { @@ -6492,331 +5141,199 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + 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 8: { + bitField0_ |= 0x00000001; + from_ = input.readUInt64(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + to_ = input.readUInt64(); + break; + } } } - return this; } + private int bitField0_; - + // optional uint64 from = 1; private long from_ ; - /** - * optional uint64 from = 1; - */ public boolean hasFrom() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * optional uint64 from = 1; - */ public long getFrom() { return from_; } - /** - * optional uint64 from = 1; - */ public Builder setFrom(long value) { bitField0_ |= 0x00000001; from_ = value; onChanged(); return this; } - /** - * optional uint64 from = 1; - */ public Builder clearFrom() { bitField0_ = (bitField0_ & ~0x00000001); from_ = 0L; onChanged(); return this; } - + // optional uint64 to = 2; private long to_ ; - /** - * optional uint64 to = 2; - */ public boolean hasTo() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional uint64 to = 2; - */ public long getTo() { return to_; } - /** - * optional uint64 to = 2; - */ public Builder setTo(long value) { bitField0_ |= 0x00000002; to_ = value; onChanged(); return this; } - /** - * optional uint64 to = 2; - */ public Builder clearTo() { bitField0_ = (bitField0_ & ~0x00000002); to_ = 0L; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:TimeRange) } - + static { defaultInstance = new TimeRange(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:TimeRange) } - + public interface ServerNameOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string host_name = 1; - /** - * required string host_name = 1; - */ boolean hasHostName(); - /** - * required string host_name = 1; - */ - java.lang.String getHostName(); - /** - * required string host_name = 1; - */ - com.google.protobuf.ByteString - getHostNameBytes(); - + String getHostName(); + // optional uint32 port = 2; - /** - * optional uint32 port = 2; - */ boolean hasPort(); - /** - * optional uint32 port = 2; - */ int getPort(); - + // optional uint64 start_code = 3; - /** - * optional uint64 start_code = 3; - */ boolean hasStartCode(); - /** - * optional uint64 start_code = 3; - */ long getStartCode(); } - /** - * Protobuf type {@code ServerName} - * - *
-   **
-   * Protocol buffer version of ServerName
-   * 
- */ public static final class ServerName extends com.google.protobuf.GeneratedMessage implements ServerNameOrBuilder { // Use ServerName.newBuilder() to construct. - private ServerName(com.google.protobuf.GeneratedMessage.Builder builder) { + private ServerName(Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private ServerName(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - + private ServerName(boolean noInit) {} + private static final ServerName defaultInstance; public static ServerName getDefaultInstance() { return defaultInstance; } - + public ServerName getDefaultInstanceForType() { return defaultInstance; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ServerName( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - hostName_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - port_ = input.readUInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - startCode_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ServerName_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ServerName_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ServerName parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServerName(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ServerName_fieldAccessorTable; } - + private int bitField0_; // required string host_name = 1; public static final int HOST_NAME_FIELD_NUMBER = 1; private java.lang.Object hostName_; - /** - * required string host_name = 1; - */ public boolean hasHostName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required string host_name = 1; - */ - public java.lang.String getHostName() { + public String getHostName() { java.lang.Object ref = hostName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; + if (ref instanceof String) { + return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { hostName_ = s; } return s; } } - /** - * required string host_name = 1; - */ - public com.google.protobuf.ByteString - getHostNameBytes() { + private com.google.protobuf.ByteString getHostNameBytes() { java.lang.Object ref = hostName_; - if (ref instanceof java.lang.String) { + if (ref instanceof String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString.copyFromUtf8((String) ref); hostName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // optional uint32 port = 2; public static final int PORT_FIELD_NUMBER = 2; private int port_; - /** - * optional uint32 port = 2; - */ public boolean hasPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional uint32 port = 2; - */ public int getPort() { return port_; } - + // optional uint64 start_code = 3; public static final int START_CODE_FIELD_NUMBER = 3; private long startCode_; - /** - * optional uint64 start_code = 3; - */ public boolean hasStartCode() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional uint64 start_code = 3; - */ public long getStartCode() { return startCode_; } - + private void initFields() { hostName_ = ""; port_ = 0; @@ -6826,7 +5343,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasHostName()) { memoizedIsInitialized = 0; return false; @@ -6834,7 +5351,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -6849,12 +5366,12 @@ public final class HBaseProtos { } 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 @@ -6872,14 +5389,14 @@ public final class HBaseProtos { 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) { @@ -6889,7 +5406,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName) obj; - + boolean result = true; result = result && (hasHostName() == other.hasHostName()); if (hasHostName()) { @@ -6910,13 +5427,9 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasHostName()) { @@ -6932,84 +5445,89 @@ public final class HBaseProtos { hash = (53 * hash) + hashLong(getStartCode()); } hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + 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.ServerName prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code ServerName} - * - *
-     **
-     * Protocol buffer version of ServerName
-     * 
- */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder { @@ -7017,21 +5535,18 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ServerName_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ServerName_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ServerName_fieldAccessorTable; } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -7042,7 +5557,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); hostName_ = ""; @@ -7053,20 +5568,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000004); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ServerName_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.getDescriptor(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName result = buildPartial(); if (!result.isInitialized()) { @@ -7074,7 +5589,17 @@ public final class HBaseProtos { } return result; } - + + private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName(this); int from_bitField0_ = bitField0_; @@ -7095,7 +5620,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName)other); @@ -7104,13 +5629,11 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.getDefaultInstance()) return this; if (other.hasHostName()) { - bitField0_ |= 0x00000001; - hostName_ = other.hostName_; - onChanged(); + setHostName(other.getHostName()); } if (other.hasPort()) { setPort(other.getPort()); @@ -7121,7 +5644,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasHostName()) { @@ -7129,69 +5652,67 @@ public final class HBaseProtos { } return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required string host_name = 1; - private java.lang.Object hostName_ = ""; - /** - * required string host_name = 1; - */ - public boolean hasHostName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string host_name = 1; - */ - public java.lang.String getHostName() { - java.lang.Object ref = hostName_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - hostName_ = s; - return s; - } else { - return (java.lang.String) ref; + 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; + hostName_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + port_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + startCode_ = input.readUInt64(); + break; + } + } } } - /** - * required string host_name = 1; - */ - public com.google.protobuf.ByteString - getHostNameBytes() { + + private int bitField0_; + + // required string host_name = 1; + private java.lang.Object hostName_ = ""; + public boolean hasHostName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getHostName() { java.lang.Object ref = hostName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hostName_ = b; - return b; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + hostName_ = s; + return s; } else { - return (com.google.protobuf.ByteString) ref; + return (String) ref; } } - /** - * required string host_name = 1; - */ - public Builder setHostName( - java.lang.String value) { + public Builder setHostName(String value) { if (value == null) { throw new NullPointerException(); } @@ -7200,263 +5721,139 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * required string host_name = 1; - */ public Builder clearHostName() { bitField0_ = (bitField0_ & ~0x00000001); hostName_ = getDefaultInstance().getHostName(); onChanged(); return this; } - /** - * required string host_name = 1; - */ - public Builder setHostNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + void setHostName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; hostName_ = value; onChanged(); - return this; } - + // optional uint32 port = 2; private int port_ ; - /** - * optional uint32 port = 2; - */ public boolean hasPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional uint32 port = 2; - */ public int getPort() { return port_; } - /** - * optional uint32 port = 2; - */ public Builder setPort(int value) { bitField0_ |= 0x00000002; port_ = value; onChanged(); return this; } - /** - * optional uint32 port = 2; - */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000002); port_ = 0; onChanged(); return this; } - + // optional uint64 start_code = 3; private long startCode_ ; - /** - * optional uint64 start_code = 3; - */ public boolean hasStartCode() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional uint64 start_code = 3; - */ public long getStartCode() { return startCode_; } - /** - * optional uint64 start_code = 3; - */ public Builder setStartCode(long value) { bitField0_ |= 0x00000004; startCode_ = value; onChanged(); return this; } - /** - * optional uint64 start_code = 3; - */ public Builder clearStartCode() { bitField0_ = (bitField0_ & ~0x00000004); startCode_ = 0L; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:ServerName) } - + static { defaultInstance = new ServerName(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:ServerName) } - + public interface CoprocessorOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string name = 1; - /** - * required string name = 1; - */ boolean hasName(); - /** - * required string name = 1; - */ - java.lang.String getName(); - /** - * required string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); + String getName(); } - /** - * Protobuf type {@code Coprocessor} - */ public static final class Coprocessor extends com.google.protobuf.GeneratedMessage implements CoprocessorOrBuilder { // Use Coprocessor.newBuilder() to construct. - private Coprocessor(com.google.protobuf.GeneratedMessage.Builder builder) { + private Coprocessor(Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private Coprocessor(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - + private Coprocessor(boolean noInit) {} + private static final Coprocessor defaultInstance; public static Coprocessor getDefaultInstance() { return defaultInstance; } - + public Coprocessor getDefaultInstanceForType() { return defaultInstance; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Coprocessor( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - name_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_Coprocessor_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_Coprocessor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_Coprocessor_fieldAccessorTable; } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Coprocessor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Coprocessor(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - + private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; - /** - * required string name = 1; - */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required string name = 1; - */ - public java.lang.String getName() { + public String getName() { java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; + if (ref instanceof String) { + return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { name_ = s; } return s; } } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { + private com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { + if (ref instanceof String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString.copyFromUtf8((String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + private void initFields() { name_ = ""; } @@ -7464,7 +5861,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasName()) { memoizedIsInitialized = 0; return false; @@ -7472,7 +5869,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -7481,12 +5878,12 @@ public final class HBaseProtos { } 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 @@ -7496,14 +5893,14 @@ public final class HBaseProtos { 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) { @@ -7513,7 +5910,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor) obj; - + boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { @@ -7524,13 +5921,9 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { @@ -7538,79 +5931,89 @@ public final class HBaseProtos { hash = (53 * hash) + getName().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + 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.Coprocessor prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code Coprocessor} - */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CoprocessorOrBuilder { @@ -7618,21 +6021,18 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_Coprocessor_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_Coprocessor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_Coprocessor_fieldAccessorTable; } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -7643,27 +6043,27 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_Coprocessor_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor.getDescriptor(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor result = buildPartial(); if (!result.isInitialized()) { @@ -7671,7 +6071,17 @@ public final class HBaseProtos { } return result; } - + + private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor(this); int from_bitField0_ = bitField0_; @@ -7684,7 +6094,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor)other); @@ -7693,18 +6103,16 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor.getDefaultInstance()) return this; if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); + setName(other.getName()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasName()) { @@ -7712,69 +6120,57 @@ public final class HBaseProtos { } return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + 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; + } } } - return this; } + private int bitField0_; - + // required string name = 1; private java.lang.Object name_ = ""; - /** - * required string name = 1; - */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required string name = 1; - */ - public java.lang.String getName() { + public String getName() { java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); name_ = s; return s; } else { - return (java.lang.String) ref; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + return (String) ref; } } - /** - * required string name = 1; - */ - public Builder setName( - java.lang.String value) { + public Builder setName(String value) { if (value == null) { throw new NullPointerException(); } @@ -7783,260 +6179,133 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * required string name = 1; - */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } - /** - * required string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + void setName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; name_ = value; onChanged(); - return this; } - + // @@protoc_insertion_point(builder_scope:Coprocessor) } - + static { defaultInstance = new Coprocessor(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:Coprocessor) } - + public interface NameStringPairOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string name = 1; - /** - * required string name = 1; - */ boolean hasName(); - /** - * required string name = 1; - */ - java.lang.String getName(); - /** - * required string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - + String getName(); + // required string value = 2; - /** - * required string value = 2; - */ boolean hasValue(); - /** - * required string value = 2; - */ - java.lang.String getValue(); - /** - * required string value = 2; - */ - com.google.protobuf.ByteString - getValueBytes(); + String getValue(); } - /** - * Protobuf type {@code NameStringPair} - */ public static final class NameStringPair extends com.google.protobuf.GeneratedMessage implements NameStringPairOrBuilder { // Use NameStringPair.newBuilder() to construct. - private NameStringPair(com.google.protobuf.GeneratedMessage.Builder builder) { + private NameStringPair(Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private NameStringPair(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - + private NameStringPair(boolean noInit) {} + private static final NameStringPair defaultInstance; public static NameStringPair getDefaultInstance() { return defaultInstance; } - + public NameStringPair getDefaultInstanceForType() { return defaultInstance; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NameStringPair( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - name_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - value_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameStringPair_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameStringPair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameStringPair_fieldAccessorTable; } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public NameStringPair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NameStringPair(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - + private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; - /** - * required string name = 1; - */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required string name = 1; - */ - public java.lang.String getName() { + public String getName() { java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; + if (ref instanceof String) { + return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { name_ = s; } return s; } } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { + private com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { + if (ref instanceof String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString.copyFromUtf8((String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // required string value = 2; public static final int VALUE_FIELD_NUMBER = 2; private java.lang.Object value_; - /** - * required string value = 2; - */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required string value = 2; - */ - public java.lang.String getValue() { + public String getValue() { java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; + if (ref instanceof String) { + return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { value_ = s; } return s; } } - /** - * required string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { + private com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { + if (ref instanceof String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString.copyFromUtf8((String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + private void initFields() { name_ = ""; value_ = ""; @@ -8045,7 +6314,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasName()) { memoizedIsInitialized = 0; return false; @@ -8057,7 +6326,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -8069,12 +6338,12 @@ public final class HBaseProtos { } 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 @@ -8088,14 +6357,14 @@ public final class HBaseProtos { 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) { @@ -8105,7 +6374,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair) obj; - + boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { @@ -8121,13 +6390,9 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { @@ -8139,79 +6404,89 @@ public final class HBaseProtos { hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + 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.NameStringPair prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code NameStringPair} - */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder { @@ -8219,21 +6494,18 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameStringPair_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameStringPair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameStringPair_fieldAccessorTable; } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -8244,7 +6516,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); name_ = ""; @@ -8253,20 +6525,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameStringPair_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDescriptor(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair result = buildPartial(); if (!result.isInitialized()) { @@ -8274,7 +6546,17 @@ public final class HBaseProtos { } return result; } - + + private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair(this); int from_bitField0_ = bitField0_; @@ -8291,7 +6573,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair)other); @@ -8300,23 +6582,19 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDefaultInstance()) return this; if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); + setName(other.getName()); } if (other.hasValue()) { - bitField0_ |= 0x00000002; - value_ = other.value_; - onChanged(); + setValue(other.getValue()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasName()) { @@ -8328,69 +6606,62 @@ public final class HBaseProtos { } return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + 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: { + bitField0_ |= 0x00000002; + value_ = input.readBytes(); + break; + } } } - return this; } + private int bitField0_; - + // required string name = 1; private java.lang.Object name_ = ""; - /** - * required string name = 1; - */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required string name = 1; - */ - public java.lang.String getName() { + public String getName() { java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); name_ = s; return s; } else { - return (java.lang.String) ref; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + return (String) ref; } } - /** - * required string name = 1; - */ - public Builder setName( - java.lang.String value) { + public Builder setName(String value) { if (value == null) { throw new NullPointerException(); } @@ -8399,72 +6670,34 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * required string name = 1; - */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } - /** - * required string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + void setName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; name_ = value; onChanged(); - return this; } - + // required string value = 2; private java.lang.Object value_ = ""; - /** - * required string value = 2; - */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required string value = 2; - */ - public java.lang.String getValue() { + public String getValue() { java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); value_ = s; return s; } else { - return (java.lang.String) ref; - } - } - /** - * required string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + return (String) ref; } } - /** - * required string value = 2; - */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(String value) { if (value == null) { throw new NullPointerException(); } @@ -8473,228 +6706,111 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * required string value = 2; - */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } - /** - * required string value = 2; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + void setValue(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000002; value_ = value; onChanged(); - return this; } - + // @@protoc_insertion_point(builder_scope:NameStringPair) } - + static { defaultInstance = new NameStringPair(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:NameStringPair) } - + public interface NameBytesPairOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string name = 1; - /** - * required string name = 1; - */ boolean hasName(); - /** - * required string name = 1; - */ - java.lang.String getName(); - /** - * required string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - + String getName(); + // optional bytes value = 2; - /** - * optional bytes value = 2; - */ boolean hasValue(); - /** - * optional bytes value = 2; - */ - com.google.protobuf.ByteString getValue(); - } - /** - * Protobuf type {@code NameBytesPair} - */ - public static final class NameBytesPair extends - com.google.protobuf.GeneratedMessage - implements NameBytesPairOrBuilder { - // Use NameBytesPair.newBuilder() to construct. - private NameBytesPair(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private NameBytesPair(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final NameBytesPair defaultInstance; - public static NameBytesPair getDefaultInstance() { - return defaultInstance; - } - - public NameBytesPair getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NameBytesPair( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - name_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - value_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } + com.google.protobuf.ByteString getValue(); + } + public static final class NameBytesPair extends + com.google.protobuf.GeneratedMessage + implements NameBytesPairOrBuilder { + // Use NameBytesPair.newBuilder() to construct. + private NameBytesPair(Builder builder) { + super(builder); + } + private NameBytesPair(boolean noInit) {} + + private static final NameBytesPair defaultInstance; + public static NameBytesPair getDefaultInstance() { + return defaultInstance; + } + + public NameBytesPair getDefaultInstanceForType() { + return defaultInstance; } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameBytesPair_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameBytesPair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public NameBytesPair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NameBytesPair(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameBytesPair_fieldAccessorTable; } - + private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; - /** - * required string name = 1; - */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required string name = 1; - */ - public java.lang.String getName() { + public String getName() { java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; + if (ref instanceof String) { + return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { name_ = s; } return s; } } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { + private com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { + if (ref instanceof String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString.copyFromUtf8((String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // optional bytes value = 2; public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString value_; - /** - * optional bytes value = 2; - */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional bytes value = 2; - */ public com.google.protobuf.ByteString getValue() { return value_; } - + private void initFields() { name_ = ""; value_ = com.google.protobuf.ByteString.EMPTY; @@ -8703,7 +6819,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasName()) { memoizedIsInitialized = 0; return false; @@ -8711,7 +6827,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -8723,12 +6839,12 @@ public final class HBaseProtos { } 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 @@ -8742,14 +6858,14 @@ public final class HBaseProtos { 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) { @@ -8759,7 +6875,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair) obj; - + boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { @@ -8775,13 +6891,9 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { @@ -8793,79 +6905,89 @@ public final class HBaseProtos { hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + 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.NameBytesPair prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code NameBytesPair} - */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder { @@ -8873,21 +6995,18 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameBytesPair_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameBytesPair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameBytesPair_fieldAccessorTable; } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -8898,7 +7017,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); name_ = ""; @@ -8907,20 +7026,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameBytesPair_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.getDescriptor(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair result = buildPartial(); if (!result.isInitialized()) { @@ -8928,7 +7047,17 @@ public final class HBaseProtos { } return result; } - + + private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair(this); int from_bitField0_ = bitField0_; @@ -8945,7 +7074,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair)other); @@ -8954,13 +7083,11 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.getDefaultInstance()) return this; if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); + setName(other.getName()); } if (other.hasValue()) { setValue(other.getValue()); @@ -8968,7 +7095,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasName()) { @@ -8976,69 +7103,62 @@ public final class HBaseProtos { } return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + 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: { + bitField0_ |= 0x00000002; + value_ = input.readBytes(); + break; + } } } - return this; } + private int bitField0_; - + // required string name = 1; private java.lang.Object name_ = ""; - /** - * required string name = 1; - */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required string name = 1; - */ - public java.lang.String getName() { + public String getName() { java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); name_ = s; return s; } else { - return (java.lang.String) ref; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + return (String) ref; } } - /** - * required string name = 1; - */ - public Builder setName( - java.lang.String value) { + public Builder setName(String value) { if (value == null) { throw new NullPointerException(); } @@ -9047,46 +7167,26 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * required string name = 1; - */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } - /** - * required string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + void setName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; name_ = value; onChanged(); - return this; } - + // optional bytes value = 2; private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes value = 2; - */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional bytes value = 2; - */ public com.google.protobuf.ByteString getValue() { return value_; } - /** - * optional bytes value = 2; - */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -9096,183 +7196,84 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * optional bytes value = 2; - */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:NameBytesPair) } - + static { defaultInstance = new NameBytesPair(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:NameBytesPair) } - + public interface BytesBytesPairOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required bytes first = 1; - /** - * required bytes first = 1; - */ boolean hasFirst(); - /** - * required bytes first = 1; - */ com.google.protobuf.ByteString getFirst(); - + // required bytes second = 2; - /** - * required bytes second = 2; - */ boolean hasSecond(); - /** - * required bytes second = 2; - */ com.google.protobuf.ByteString getSecond(); } - /** - * Protobuf type {@code BytesBytesPair} - */ public static final class BytesBytesPair extends com.google.protobuf.GeneratedMessage implements BytesBytesPairOrBuilder { // Use BytesBytesPair.newBuilder() to construct. - private BytesBytesPair(com.google.protobuf.GeneratedMessage.Builder builder) { + private BytesBytesPair(Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private BytesBytesPair(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - + private BytesBytesPair(boolean noInit) {} + private static final BytesBytesPair defaultInstance; public static BytesBytesPair getDefaultInstance() { return defaultInstance; } - + public BytesBytesPair getDefaultInstanceForType() { return defaultInstance; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BytesBytesPair( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - first_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - second_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BytesBytesPair_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BytesBytesPair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public BytesBytesPair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BytesBytesPair(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BytesBytesPair_fieldAccessorTable; } - + private int bitField0_; // required bytes first = 1; public static final int FIRST_FIELD_NUMBER = 1; private com.google.protobuf.ByteString first_; - /** - * required bytes first = 1; - */ public boolean hasFirst() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required bytes first = 1; - */ public com.google.protobuf.ByteString getFirst() { return first_; } - + // required bytes second = 2; public static final int SECOND_FIELD_NUMBER = 2; private com.google.protobuf.ByteString second_; - /** - * required bytes second = 2; - */ public boolean hasSecond() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required bytes second = 2; - */ public com.google.protobuf.ByteString getSecond() { return second_; } - + private void initFields() { first_ = com.google.protobuf.ByteString.EMPTY; second_ = com.google.protobuf.ByteString.EMPTY; @@ -9281,7 +7282,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasFirst()) { memoizedIsInitialized = 0; return false; @@ -9293,7 +7294,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -9305,12 +7306,12 @@ public final class HBaseProtos { } 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 @@ -9324,14 +7325,14 @@ public final class HBaseProtos { 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) { @@ -9341,7 +7342,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair) obj; - + boolean result = true; result = result && (hasFirst() == other.hasFirst()); if (hasFirst()) { @@ -9357,13 +7358,9 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasFirst()) { @@ -9375,79 +7372,89 @@ public final class HBaseProtos { hash = (53 * hash) + getSecond().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + 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.BytesBytesPair prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code BytesBytesPair} - */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder { @@ -9455,21 +7462,18 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BytesBytesPair_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BytesBytesPair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BytesBytesPair_fieldAccessorTable; } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -9480,7 +7484,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); first_ = com.google.protobuf.ByteString.EMPTY; @@ -9489,20 +7493,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BytesBytesPair_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.getDescriptor(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair result = buildPartial(); if (!result.isInitialized()) { @@ -9510,7 +7514,17 @@ public final class HBaseProtos { } return result; } - + + private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair(this); int from_bitField0_ = bitField0_; @@ -9527,7 +7541,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair)other); @@ -9536,7 +7550,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.getDefaultInstance()) return this; if (other.hasFirst()) { @@ -9548,7 +7562,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasFirst()) { @@ -9560,43 +7574,54 @@ public final class HBaseProtos { } return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + 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; + first_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + second_ = input.readBytes(); + break; + } } } - return this; } + private int bitField0_; - + // required bytes first = 1; private com.google.protobuf.ByteString first_ = com.google.protobuf.ByteString.EMPTY; - /** - * required bytes first = 1; - */ public boolean hasFirst() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required bytes first = 1; - */ public com.google.protobuf.ByteString getFirst() { return first_; } - /** - * required bytes first = 1; - */ public Builder setFirst(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -9606,33 +7631,21 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * required bytes first = 1; - */ public Builder clearFirst() { bitField0_ = (bitField0_ & ~0x00000001); first_ = getDefaultInstance().getFirst(); onChanged(); return this; } - + // required bytes second = 2; private com.google.protobuf.ByteString second_ = com.google.protobuf.ByteString.EMPTY; - /** - * required bytes second = 2; - */ public boolean hasSecond() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required bytes second = 2; - */ public com.google.protobuf.ByteString getSecond() { return second_; } - /** - * required bytes second = 2; - */ public Builder setSecond(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -9642,215 +7655,106 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * required bytes second = 2; - */ public Builder clearSecond() { bitField0_ = (bitField0_ & ~0x00000002); second_ = getDefaultInstance().getSecond(); onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:BytesBytesPair) } - + static { defaultInstance = new BytesBytesPair(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:BytesBytesPair) } - + public interface NameInt64PairOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // optional string name = 1; - /** - * optional string name = 1; - */ boolean hasName(); - /** - * optional string name = 1; - */ - java.lang.String getName(); - /** - * optional string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - + String getName(); + // optional int64 value = 2; - /** - * optional int64 value = 2; - */ boolean hasValue(); - /** - * optional int64 value = 2; - */ long getValue(); } - /** - * Protobuf type {@code NameInt64Pair} - */ public static final class NameInt64Pair extends com.google.protobuf.GeneratedMessage implements NameInt64PairOrBuilder { // Use NameInt64Pair.newBuilder() to construct. - private NameInt64Pair(com.google.protobuf.GeneratedMessage.Builder builder) { + private NameInt64Pair(Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private NameInt64Pair(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - + private NameInt64Pair(boolean noInit) {} + private static final NameInt64Pair defaultInstance; public static NameInt64Pair getDefaultInstance() { return defaultInstance; } - + public NameInt64Pair getDefaultInstanceForType() { return defaultInstance; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NameInt64Pair( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - name_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - value_ = input.readInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameInt64Pair_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameInt64Pair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public NameInt64Pair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NameInt64Pair(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + internalGetFieldAccessorTable() { + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameInt64Pair_fieldAccessorTable; } - + private int bitField0_; // optional string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; - /** - * optional string name = 1; - */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * optional string name = 1; - */ - public java.lang.String getName() { + public String getName() { java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; + if (ref instanceof String) { + return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { name_ = s; } return s; } } - /** - * optional string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { + private com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { + if (ref instanceof String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString.copyFromUtf8((String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // optional int64 value = 2; public static final int VALUE_FIELD_NUMBER = 2; private long value_; - /** - * optional int64 value = 2; - */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional int64 value = 2; - */ public long getValue() { return value_; } - + private void initFields() { name_ = ""; value_ = 0L; @@ -9859,11 +7763,11 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -9875,12 +7779,12 @@ public final class HBaseProtos { } 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 @@ -9894,14 +7798,14 @@ public final class HBaseProtos { 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) { @@ -9911,7 +7815,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair) obj; - + boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { @@ -9927,13 +7831,9 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { @@ -9945,79 +7845,89 @@ public final class HBaseProtos { hash = (53 * hash) + hashLong(getValue()); } hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + 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.NameInt64Pair prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code NameInt64Pair} - */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64PairOrBuilder { @@ -10025,21 +7935,18 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameInt64Pair_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameInt64Pair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameInt64Pair_fieldAccessorTable; } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -10050,7 +7957,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); name_ = ""; @@ -10059,20 +7966,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameInt64Pair_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair.getDescriptor(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair result = buildPartial(); if (!result.isInitialized()) { @@ -10080,7 +7987,17 @@ public final class HBaseProtos { } return result; } - + + private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair(this); int from_bitField0_ = bitField0_; @@ -10097,7 +8014,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair)other); @@ -10106,13 +8023,11 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair.getDefaultInstance()) return this; if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); + setName(other.getName()); } if (other.hasValue()) { setValue(other.getValue()); @@ -10120,73 +8035,66 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + 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 16: { + bitField0_ |= 0x00000002; + value_ = input.readInt64(); + break; + } } } - return this; } + private int bitField0_; - + // optional string name = 1; private java.lang.Object name_ = ""; - /** - * optional string name = 1; - */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * optional string name = 1; - */ - public java.lang.String getName() { + public String getName() { java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); name_ = s; return s; } else { - return (java.lang.String) ref; + return (String) ref; } } - /** - * optional string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 1; - */ - public Builder setName( - java.lang.String value) { + public Builder setName(String value) { if (value == null) { throw new NullPointerException(); } @@ -10195,301 +8103,113 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * optional string name = 1; - */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } - /** - * optional string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + void setName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; name_ = value; onChanged(); - return this; } - + // optional int64 value = 2; private long value_ ; - /** - * optional int64 value = 2; - */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional int64 value = 2; - */ public long getValue() { return value_; } - /** - * optional int64 value = 2; - */ public Builder setValue(long value) { bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } - /** - * optional int64 value = 2; - */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = 0L; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:NameInt64Pair) } - + static { defaultInstance = new NameInt64Pair(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:NameInt64Pair) } - + public interface SnapshotDescriptionOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string name = 1; - /** - * required string name = 1; - */ boolean hasName(); - /** - * required string name = 1; - */ - java.lang.String getName(); - /** - * required string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - + String getName(); + // optional string table = 2; - /** - * optional string table = 2; - * - *
-     * not needed for delete, but checked for in taking snapshot
-     * 
- */ boolean hasTable(); - /** - * optional string table = 2; - * - *
-     * not needed for delete, but checked for in taking snapshot
-     * 
- */ - java.lang.String getTable(); - /** - * optional string table = 2; - * - *
-     * not needed for delete, but checked for in taking snapshot
-     * 
- */ - com.google.protobuf.ByteString - getTableBytes(); - + String getTable(); + // optional int64 creation_time = 3 [default = 0]; - /** - * optional int64 creation_time = 3 [default = 0]; - */ boolean hasCreationTime(); - /** - * optional int64 creation_time = 3 [default = 0]; - */ long getCreationTime(); - + // optional .SnapshotDescription.Type type = 4 [default = FLUSH]; - /** - * optional .SnapshotDescription.Type type = 4 [default = FLUSH]; - */ boolean hasType(); - /** - * optional .SnapshotDescription.Type type = 4 [default = FLUSH]; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type getType(); - + // optional int32 version = 5; - /** - * optional int32 version = 5; - */ boolean hasVersion(); - /** - * optional int32 version = 5; - */ int getVersion(); } - /** - * Protobuf type {@code SnapshotDescription} - * - *
-   **
-   * Description of the snapshot to take
-   * 
- */ public static final class SnapshotDescription extends com.google.protobuf.GeneratedMessage implements SnapshotDescriptionOrBuilder { // Use SnapshotDescription.newBuilder() to construct. - private SnapshotDescription(com.google.protobuf.GeneratedMessage.Builder builder) { + private SnapshotDescription(Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private SnapshotDescription(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - + private SnapshotDescription(boolean noInit) {} + private static final SnapshotDescription defaultInstance; public static SnapshotDescription getDefaultInstance() { return defaultInstance; } - + public SnapshotDescription getDefaultInstanceForType() { return defaultInstance; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SnapshotDescription( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - name_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - table_ = input.readBytes(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - creationTime_ = input.readInt64(); - break; - } - case 32: { - int rawValue = input.readEnum(); - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type value = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(4, rawValue); - } else { - bitField0_ |= 0x00000008; - type_ = value; - } - break; - } - case 40: { - bitField0_ |= 0x00000010; - version_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_SnapshotDescription_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_SnapshotDescription_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SnapshotDescription parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SnapshotDescription(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_SnapshotDescription_fieldAccessorTable; } - - /** - * Protobuf enum {@code SnapshotDescription.Type} - */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { - /** - * DISABLED = 0; - */ DISABLED(0, 0), - /** - * FLUSH = 1; - */ FLUSH(1, 1), ; - - /** - * DISABLED = 0; - */ + public static final int DISABLED_VALUE = 0; - /** - * FLUSH = 1; - */ public static final int FLUSH_VALUE = 1; - - + + public final int getNumber() { return value; } - + public static Type valueOf(int value) { switch (value) { case 0: return DISABLED; @@ -10497,7 +8217,7 @@ public final class HBaseProtos { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; @@ -10509,7 +8229,7 @@ public final class HBaseProtos { return Type.valueOf(number); } }; - + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); @@ -10522,9 +8242,11 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.getDescriptor().getEnumTypes().get(0); } - - private static final Type[] VALUES = values(); - + + private static final Type[] VALUES = { + DISABLED, FLUSH, + }; + public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { @@ -10533,165 +8255,113 @@ public final class HBaseProtos { } return VALUES[desc.getIndex()]; } - + private final int index; private final int value; - + private Type(int index, int value) { this.index = index; this.value = value; } - + // @@protoc_insertion_point(enum_scope:SnapshotDescription.Type) } - + private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; - /** - * required string name = 1; - */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required string name = 1; - */ - public java.lang.String getName() { + public String getName() { java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; + if (ref instanceof String) { + return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { name_ = s; } return s; } } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { + private com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { + if (ref instanceof String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString.copyFromUtf8((String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // optional string table = 2; public static final int TABLE_FIELD_NUMBER = 2; private java.lang.Object table_; - /** - * optional string table = 2; - * - *
-     * not needed for delete, but checked for in taking snapshot
-     * 
- */ public boolean hasTable() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional string table = 2; - * - *
-     * not needed for delete, but checked for in taking snapshot
-     * 
- */ - public java.lang.String getTable() { + public String getTable() { java.lang.Object ref = table_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; + if (ref instanceof String) { + return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { table_ = s; } return s; } } - /** - * optional string table = 2; - * - *
-     * not needed for delete, but checked for in taking snapshot
-     * 
- */ - public com.google.protobuf.ByteString - getTableBytes() { + private com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; - if (ref instanceof java.lang.String) { + if (ref instanceof String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString.copyFromUtf8((String) ref); table_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // optional int64 creation_time = 3 [default = 0]; public static final int CREATION_TIME_FIELD_NUMBER = 3; private long creationTime_; - /** - * optional int64 creation_time = 3 [default = 0]; - */ public boolean hasCreationTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional int64 creation_time = 3 [default = 0]; - */ public long getCreationTime() { return creationTime_; } - + // optional .SnapshotDescription.Type type = 4 [default = FLUSH]; public static final int TYPE_FIELD_NUMBER = 4; private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type type_; - /** - * optional .SnapshotDescription.Type type = 4 [default = FLUSH]; - */ public boolean hasType() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * optional .SnapshotDescription.Type type = 4 [default = FLUSH]; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type getType() { return type_; } - + // optional int32 version = 5; public static final int VERSION_FIELD_NUMBER = 5; private int version_; - /** - * optional int32 version = 5; - */ public boolean hasVersion() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * optional int32 version = 5; - */ public int getVersion() { return version_; } - + private void initFields() { name_ = ""; table_ = ""; @@ -10703,7 +8373,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasName()) { memoizedIsInitialized = 0; return false; @@ -10711,7 +8381,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -10732,12 +8402,12 @@ public final class HBaseProtos { } 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 @@ -10763,14 +8433,14 @@ public final class HBaseProtos { 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) { @@ -10780,7 +8450,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription) obj; - + boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { @@ -10811,13 +8481,9 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { @@ -10841,84 +8507,89 @@ public final class HBaseProtos { hash = (53 * hash) + getVersion(); } hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + 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.SnapshotDescription prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code SnapshotDescription} - * - *
-     **
-     * Description of the snapshot to take
-     * 
- */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescriptionOrBuilder { @@ -10926,21 +8597,18 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_SnapshotDescription_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_SnapshotDescription_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_SnapshotDescription_fieldAccessorTable; } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -10951,7 +8619,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); name_ = ""; @@ -10966,20 +8634,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000010); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_SnapshotDescription_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.getDescriptor(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription result = buildPartial(); if (!result.isInitialized()) { @@ -10987,7 +8655,17 @@ public final class HBaseProtos { } return result; } - + + private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription(this); int from_bitField0_ = bitField0_; @@ -11016,7 +8694,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription)other); @@ -11025,18 +8703,14 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.getDefaultInstance()) return this; if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); + setName(other.getName()); } if (other.hasTable()) { - bitField0_ |= 0x00000002; - table_ = other.table_; - onChanged(); + setTable(other.getTable()); } if (other.hasCreationTime()) { setCreationTime(other.getCreationTime()); @@ -11050,7 +8724,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasName()) { @@ -11058,69 +8732,83 @@ public final class HBaseProtos { } return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + 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: { + bitField0_ |= 0x00000002; + table_ = input.readBytes(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + creationTime_ = input.readInt64(); + break; + } + case 32: { + int rawValue = input.readEnum(); + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type value = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(4, rawValue); + } else { + bitField0_ |= 0x00000008; + type_ = value; + } + break; + } + case 40: { + bitField0_ |= 0x00000010; + version_ = input.readInt32(); + break; + } } } - return this; } + private int bitField0_; - + // required string name = 1; private java.lang.Object name_ = ""; - /** - * required string name = 1; - */ public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } + return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { + public String getName() { java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + name_ = s; + return s; } else { - return (com.google.protobuf.ByteString) ref; + return (String) ref; } } - /** - * required string name = 1; - */ - public Builder setName( - java.lang.String value) { + public Builder setName(String value) { if (value == null) { throw new NullPointerException(); } @@ -11129,88 +8817,34 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * required string name = 1; - */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } - /** - * required string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + void setName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; name_ = value; onChanged(); - return this; } - + // optional string table = 2; private java.lang.Object table_ = ""; - /** - * optional string table = 2; - * - *
-       * not needed for delete, but checked for in taking snapshot
-       * 
- */ public boolean hasTable() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional string table = 2; - * - *
-       * not needed for delete, but checked for in taking snapshot
-       * 
- */ - public java.lang.String getTable() { + public String getTable() { java.lang.Object ref = table_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); table_ = s; return s; } else { - return (java.lang.String) ref; + return (String) ref; } } - /** - * optional string table = 2; - * - *
-       * not needed for delete, but checked for in taking snapshot
-       * 
- */ - public com.google.protobuf.ByteString - getTableBytes() { - java.lang.Object ref = table_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - table_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string table = 2; - * - *
-       * not needed for delete, but checked for in taking snapshot
-       * 
- */ - public Builder setTable( - java.lang.String value) { + public Builder setTable(String value) { if (value == null) { throw new NullPointerException(); } @@ -11219,87 +8853,47 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * optional string table = 2; - * - *
-       * not needed for delete, but checked for in taking snapshot
-       * 
- */ public Builder clearTable() { bitField0_ = (bitField0_ & ~0x00000002); table_ = getDefaultInstance().getTable(); onChanged(); return this; } - /** - * optional string table = 2; - * - *
-       * not needed for delete, but checked for in taking snapshot
-       * 
- */ - public Builder setTableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + void setTable(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000002; table_ = value; onChanged(); - return this; } - + // optional int64 creation_time = 3 [default = 0]; private long creationTime_ ; - /** - * optional int64 creation_time = 3 [default = 0]; - */ public boolean hasCreationTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional int64 creation_time = 3 [default = 0]; - */ public long getCreationTime() { return creationTime_; } - /** - * optional int64 creation_time = 3 [default = 0]; - */ public Builder setCreationTime(long value) { bitField0_ |= 0x00000004; creationTime_ = value; onChanged(); return this; } - /** - * optional int64 creation_time = 3 [default = 0]; - */ public Builder clearCreationTime() { bitField0_ = (bitField0_ & ~0x00000004); creationTime_ = 0L; onChanged(); return this; } - + // optional .SnapshotDescription.Type type = 4 [default = FLUSH]; private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type type_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type.FLUSH; - /** - * optional .SnapshotDescription.Type type = 4 [default = FLUSH]; - */ public boolean hasType() { return ((bitField0_ & 0x00000008) == 0x00000008); } - /** - * optional .SnapshotDescription.Type type = 4 [default = FLUSH]; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type getType() { return type_; } - /** - * optional .SnapshotDescription.Type type = 4 [default = FLUSH]; - */ public Builder setType(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type value) { if (value == null) { throw new NullPointerException(); @@ -11309,436 +8903,194 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * optional .SnapshotDescription.Type type = 4 [default = FLUSH]; - */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000008); type_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type.FLUSH; onChanged(); return this; } - + // optional int32 version = 5; private int version_ ; - /** - * optional int32 version = 5; - */ public boolean hasVersion() { return ((bitField0_ & 0x00000010) == 0x00000010); } - /** - * optional int32 version = 5; - */ public int getVersion() { return version_; } - /** - * optional int32 version = 5; - */ public Builder setVersion(int value) { bitField0_ |= 0x00000010; version_ = value; onChanged(); return this; } - /** - * optional int32 version = 5; - */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000010); version_ = 0; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:SnapshotDescription) } - + static { defaultInstance = new SnapshotDescription(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:SnapshotDescription) } - + public interface ProcedureDescriptionOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string signature = 1; - /** - * required string signature = 1; - * - *
-     * the unique signature of the procedure
-     * 
- */ boolean hasSignature(); - /** - * required string signature = 1; - * - *
-     * the unique signature of the procedure
-     * 
- */ - java.lang.String getSignature(); - /** - * required string signature = 1; - * - *
-     * the unique signature of the procedure
-     * 
- */ - com.google.protobuf.ByteString - getSignatureBytes(); - + String getSignature(); + // optional string instance = 2; - /** - * optional string instance = 2; - * - *
-     * the procedure instance name
-     * 
- */ boolean hasInstance(); - /** - * optional string instance = 2; - * - *
-     * the procedure instance name
-     * 
- */ - java.lang.String getInstance(); - /** - * optional string instance = 2; - * - *
-     * the procedure instance name
-     * 
- */ - com.google.protobuf.ByteString - getInstanceBytes(); - + String getInstance(); + // optional int64 creation_time = 3 [default = 0]; - /** - * optional int64 creation_time = 3 [default = 0]; - */ boolean hasCreationTime(); - /** - * optional int64 creation_time = 3 [default = 0]; - */ long getCreationTime(); - + // repeated .NameStringPair configuration = 4; - /** - * repeated .NameStringPair configuration = 4; - */ java.util.List getConfigurationList(); - /** - * repeated .NameStringPair configuration = 4; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index); - /** - * repeated .NameStringPair configuration = 4; - */ int getConfigurationCount(); - /** - * repeated .NameStringPair configuration = 4; - */ java.util.List getConfigurationOrBuilderList(); - /** - * repeated .NameStringPair configuration = 4; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder( int index); } - /** - * Protobuf type {@code ProcedureDescription} - * - *
-   **
-   * Description of the distributed procedure to take
-   * 
- */ public static final class ProcedureDescription extends com.google.protobuf.GeneratedMessage implements ProcedureDescriptionOrBuilder { // Use ProcedureDescription.newBuilder() to construct. - private ProcedureDescription(com.google.protobuf.GeneratedMessage.Builder builder) { + private ProcedureDescription(Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private ProcedureDescription(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - + private ProcedureDescription(boolean noInit) {} + private static final ProcedureDescription defaultInstance; public static ProcedureDescription getDefaultInstance() { return defaultInstance; } - + public ProcedureDescription getDefaultInstanceForType() { return defaultInstance; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProcedureDescription( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - signature_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - instance_ = input.readBytes(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - creationTime_ = input.readInt64(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - configuration_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - configuration_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - configuration_ = java.util.Collections.unmodifiableList(configuration_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ProcedureDescription_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ProcedureDescription_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ProcedureDescription parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProcedureDescription(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ProcedureDescription_fieldAccessorTable; } - + private int bitField0_; // required string signature = 1; public static final int SIGNATURE_FIELD_NUMBER = 1; private java.lang.Object signature_; - /** - * required string signature = 1; - * - *
-     * the unique signature of the procedure
-     * 
- */ public boolean hasSignature() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required string signature = 1; - * - *
-     * the unique signature of the procedure
-     * 
- */ - public java.lang.String getSignature() { + public String getSignature() { java.lang.Object ref = signature_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; + if (ref instanceof String) { + return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { signature_ = s; } return s; } } - /** - * required string signature = 1; - * - *
-     * the unique signature of the procedure
-     * 
- */ - public com.google.protobuf.ByteString - getSignatureBytes() { + private com.google.protobuf.ByteString getSignatureBytes() { java.lang.Object ref = signature_; - if (ref instanceof java.lang.String) { + if (ref instanceof String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString.copyFromUtf8((String) ref); signature_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // optional string instance = 2; public static final int INSTANCE_FIELD_NUMBER = 2; private java.lang.Object instance_; - /** - * optional string instance = 2; - * - *
-     * the procedure instance name
-     * 
- */ public boolean hasInstance() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional string instance = 2; - * - *
-     * the procedure instance name
-     * 
- */ - public java.lang.String getInstance() { + public String getInstance() { java.lang.Object ref = instance_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; + if (ref instanceof String) { + return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { instance_ = s; } return s; } } - /** - * optional string instance = 2; - * - *
-     * the procedure instance name
-     * 
- */ - public com.google.protobuf.ByteString - getInstanceBytes() { + private com.google.protobuf.ByteString getInstanceBytes() { java.lang.Object ref = instance_; - if (ref instanceof java.lang.String) { + if (ref instanceof String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString.copyFromUtf8((String) ref); instance_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // optional int64 creation_time = 3 [default = 0]; public static final int CREATION_TIME_FIELD_NUMBER = 3; private long creationTime_; - /** - * optional int64 creation_time = 3 [default = 0]; - */ public boolean hasCreationTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional int64 creation_time = 3 [default = 0]; - */ public long getCreationTime() { return creationTime_; } - + // repeated .NameStringPair configuration = 4; public static final int CONFIGURATION_FIELD_NUMBER = 4; private java.util.List configuration_; - /** - * repeated .NameStringPair configuration = 4; - */ public java.util.List getConfigurationList() { return configuration_; } - /** - * repeated .NameStringPair configuration = 4; - */ public java.util.List getConfigurationOrBuilderList() { return configuration_; } - /** - * repeated .NameStringPair configuration = 4; - */ public int getConfigurationCount() { return configuration_.size(); } - /** - * repeated .NameStringPair configuration = 4; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index) { return configuration_.get(index); } - /** - * repeated .NameStringPair configuration = 4; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder( int index) { return configuration_.get(index); } - + private void initFields() { signature_ = ""; instance_ = ""; @@ -11749,7 +9101,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasSignature()) { memoizedIsInitialized = 0; return false; @@ -11763,7 +9115,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -11781,12 +9133,12 @@ public final class HBaseProtos { } 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 @@ -11808,14 +9160,14 @@ public final class HBaseProtos { 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) { @@ -11825,7 +9177,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription) obj; - + boolean result = true; result = result && (hasSignature() == other.hasSignature()); if (hasSignature()) { @@ -11848,13 +9200,9 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasSignature()) { @@ -11874,84 +9222,89 @@ public final class HBaseProtos { hash = (53 * hash) + getConfigurationList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + 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.ProcedureDescription prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code ProcedureDescription} - * - *
-     **
-     * Description of the distributed procedure to take
-     * 
- */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescriptionOrBuilder { @@ -11959,21 +9312,18 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ProcedureDescription_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ProcedureDescription_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ProcedureDescription_fieldAccessorTable; } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -11985,7 +9335,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); signature_ = ""; @@ -12002,20 +9352,20 @@ public final class HBaseProtos { } return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ProcedureDescription_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription.getDescriptor(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription result = buildPartial(); if (!result.isInitialized()) { @@ -12023,7 +9373,17 @@ public final class HBaseProtos { } return result; } - + + private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription(this); int from_bitField0_ = bitField0_; @@ -12053,7 +9413,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription)other); @@ -12062,18 +9422,14 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription.getDefaultInstance()) return this; if (other.hasSignature()) { - bitField0_ |= 0x00000001; - signature_ = other.signature_; - onChanged(); + setSignature(other.getSignature()); } if (other.hasInstance()) { - bitField0_ |= 0x00000002; - instance_ = other.instance_; - onChanged(); + setInstance(other.getInstance()); } if (other.hasCreationTime()) { setCreationTime(other.getCreationTime()); @@ -12107,7 +9463,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasSignature()) { @@ -12121,85 +9477,73 @@ public final class HBaseProtos { } return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + 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; + signature_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + instance_ = input.readBytes(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + creationTime_ = input.readInt64(); + 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; + } } } - return this; } + private int bitField0_; - + // required string signature = 1; private java.lang.Object signature_ = ""; - /** - * required string signature = 1; - * - *
-       * the unique signature of the procedure
-       * 
- */ public boolean hasSignature() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required string signature = 1; - * - *
-       * the unique signature of the procedure
-       * 
- */ - public java.lang.String getSignature() { + public String getSignature() { java.lang.Object ref = signature_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); signature_ = s; return s; } else { - return (java.lang.String) ref; + return (String) ref; } } - /** - * required string signature = 1; - * - *
-       * the unique signature of the procedure
-       * 
- */ - public com.google.protobuf.ByteString - getSignatureBytes() { - java.lang.Object ref = signature_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signature_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string signature = 1; - * - *
-       * the unique signature of the procedure
-       * 
- */ - public Builder setSignature( - java.lang.String value) { + public Builder setSignature(String value) { if (value == null) { throw new NullPointerException(); } @@ -12208,96 +9552,34 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * required string signature = 1; - * - *
-       * the unique signature of the procedure
-       * 
- */ public Builder clearSignature() { bitField0_ = (bitField0_ & ~0x00000001); signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } - /** - * required string signature = 1; - * - *
-       * the unique signature of the procedure
-       * 
- */ - public Builder setSignatureBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; + void setSignature(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; signature_ = value; onChanged(); - return this; } - + // optional string instance = 2; private java.lang.Object instance_ = ""; - /** - * optional string instance = 2; - * - *
-       * the procedure instance name
-       * 
- */ public boolean hasInstance() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * optional string instance = 2; - * - *
-       * the procedure instance name
-       * 
- */ - public java.lang.String getInstance() { + public String getInstance() { java.lang.Object ref = instance_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); instance_ = s; return s; } else { - return (java.lang.String) ref; + return (String) ref; } } - /** - * optional string instance = 2; - * - *
-       * the procedure instance name
-       * 
- */ - public com.google.protobuf.ByteString - getInstanceBytes() { - java.lang.Object ref = instance_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - instance_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string instance = 2; - * - *
-       * the procedure instance name
-       * 
- */ - public Builder setInstance( - java.lang.String value) { + public Builder setInstance(String value) { if (value == null) { throw new NullPointerException(); } @@ -12306,70 +9588,39 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * optional string instance = 2; - * - *
-       * the procedure instance name
-       * 
- */ public Builder clearInstance() { bitField0_ = (bitField0_ & ~0x00000002); instance_ = getDefaultInstance().getInstance(); onChanged(); return this; } - /** - * optional string instance = 2; - * - *
-       * the procedure instance name
-       * 
- */ - public Builder setInstanceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; + void setInstance(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000002; instance_ = value; onChanged(); - return this; } - + // optional int64 creation_time = 3 [default = 0]; private long creationTime_ ; - /** - * optional int64 creation_time = 3 [default = 0]; - */ public boolean hasCreationTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } - /** - * optional int64 creation_time = 3 [default = 0]; - */ public long getCreationTime() { return creationTime_; } - /** - * optional int64 creation_time = 3 [default = 0]; - */ public Builder setCreationTime(long value) { bitField0_ |= 0x00000004; creationTime_ = value; onChanged(); return this; } - /** - * optional int64 creation_time = 3 [default = 0]; - */ public Builder clearCreationTime() { bitField0_ = (bitField0_ & ~0x00000004); creationTime_ = 0L; onChanged(); return this; } - + // repeated .NameStringPair configuration = 4; private java.util.List configuration_ = java.util.Collections.emptyList(); @@ -12379,13 +9630,10 @@ public final class HBaseProtos { bitField0_ |= 0x00000008; } } - + private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder> configurationBuilder_; - - /** - * repeated .NameStringPair configuration = 4; - */ + public java.util.List getConfigurationList() { if (configurationBuilder_ == null) { return java.util.Collections.unmodifiableList(configuration_); @@ -12393,9 +9641,6 @@ public final class HBaseProtos { return configurationBuilder_.getMessageList(); } } - /** - * repeated .NameStringPair configuration = 4; - */ public int getConfigurationCount() { if (configurationBuilder_ == null) { return configuration_.size(); @@ -12403,9 +9648,6 @@ public final class HBaseProtos { return configurationBuilder_.getCount(); } } - /** - * repeated .NameStringPair configuration = 4; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index) { if (configurationBuilder_ == null) { return configuration_.get(index); @@ -12413,9 +9655,6 @@ public final class HBaseProtos { return configurationBuilder_.getMessage(index); } } - /** - * repeated .NameStringPair configuration = 4; - */ public Builder setConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { @@ -12430,9 +9669,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 4; - */ public Builder setConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -12444,9 +9680,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 4; - */ public Builder addConfiguration(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { if (value == null) { @@ -12460,9 +9693,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 4; - */ public Builder addConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { @@ -12477,9 +9707,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 4; - */ public Builder addConfiguration( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -12491,9 +9718,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 4; - */ public Builder addConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -12505,9 +9729,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 4; - */ public Builder addAllConfiguration( java.lang.Iterable values) { if (configurationBuilder_ == null) { @@ -12519,9 +9740,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 4; - */ public Builder clearConfiguration() { if (configurationBuilder_ == null) { configuration_ = java.util.Collections.emptyList(); @@ -12532,9 +9750,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 4; - */ public Builder removeConfiguration(int index) { if (configurationBuilder_ == null) { ensureConfigurationIsMutable(); @@ -12545,16 +9760,10 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 4; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder getConfigurationBuilder( int index) { return getConfigurationFieldBuilder().getBuilder(index); } - /** - * repeated .NameStringPair configuration = 4; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder( int index) { if (configurationBuilder_ == null) { @@ -12562,9 +9771,6 @@ public final class HBaseProtos { return configurationBuilder_.getMessageOrBuilder(index); } } - /** - * repeated .NameStringPair configuration = 4; - */ public java.util.List getConfigurationOrBuilderList() { if (configurationBuilder_ != null) { @@ -12573,24 +9779,15 @@ public final class HBaseProtos { return java.util.Collections.unmodifiableList(configuration_); } } - /** - * repeated .NameStringPair configuration = 4; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder addConfigurationBuilder() { return getConfigurationFieldBuilder().addBuilder( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDefaultInstance()); } - /** - * repeated .NameStringPair configuration = 4; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder addConfigurationBuilder( int index) { return getConfigurationFieldBuilder().addBuilder( index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDefaultInstance()); } - /** - * repeated .NameStringPair configuration = 4; - */ public java.util.List getConfigurationBuilderList() { return getConfigurationFieldBuilder().getBuilderList(); @@ -12609,145 +9806,84 @@ public final class HBaseProtos { } return configurationBuilder_; } - + // @@protoc_insertion_point(builder_scope:ProcedureDescription) } - + static { defaultInstance = new ProcedureDescription(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:ProcedureDescription) } - + public interface EmptyMsgOrBuilder extends com.google.protobuf.MessageOrBuilder { } - /** - * Protobuf type {@code EmptyMsg} - */ public static final class EmptyMsg extends com.google.protobuf.GeneratedMessage implements EmptyMsgOrBuilder { // Use EmptyMsg.newBuilder() to construct. - private EmptyMsg(com.google.protobuf.GeneratedMessage.Builder builder) { + private EmptyMsg(Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private EmptyMsg(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - + private EmptyMsg(boolean noInit) {} + private static final EmptyMsg defaultInstance; public static EmptyMsg getDefaultInstance() { return defaultInstance; } - + public EmptyMsg getDefaultInstanceForType() { return defaultInstance; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmptyMsg( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_EmptyMsg_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_EmptyMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmptyMsg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmptyMsg(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_EmptyMsg_fieldAccessorTable; } - + private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); getUnknownFields().writeTo(output); } - + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; 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) { @@ -12757,95 +9893,101 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg) obj; - + boolean result = true; result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + 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.EmptyMsg prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code EmptyMsg} - */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsgOrBuilder { @@ -12853,21 +9995,18 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_EmptyMsg_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_EmptyMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_EmptyMsg_fieldAccessorTable; } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -12878,25 +10017,25 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.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.internal_static_EmptyMsg_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg.getDescriptor(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg result = buildPartial(); if (!result.isInitialized()) { @@ -12904,13 +10043,23 @@ public final class HBaseProtos { } return result; } - + + private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg(this); onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg)other); @@ -12919,171 +10068,102 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + 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; + } } } - return this; } - + + // @@protoc_insertion_point(builder_scope:EmptyMsg) } - + static { defaultInstance = new EmptyMsg(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:EmptyMsg) } - + public interface LongMsgOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required int64 long_msg = 1; - /** - * required int64 long_msg = 1; - */ boolean hasLongMsg(); - /** - * required int64 long_msg = 1; - */ long getLongMsg(); } - /** - * Protobuf type {@code LongMsg} - */ public static final class LongMsg extends com.google.protobuf.GeneratedMessage implements LongMsgOrBuilder { // Use LongMsg.newBuilder() to construct. - private LongMsg(com.google.protobuf.GeneratedMessage.Builder builder) { + private LongMsg(Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private LongMsg(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - + private LongMsg(boolean noInit) {} + private static final LongMsg defaultInstance; public static LongMsg getDefaultInstance() { return defaultInstance; } - + public LongMsg getDefaultInstanceForType() { return defaultInstance; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LongMsg( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - longMsg_ = input.readInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_LongMsg_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_LongMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public LongMsg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongMsg(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_LongMsg_fieldAccessorTable; } - + private int bitField0_; // required int64 long_msg = 1; public static final int LONG_MSG_FIELD_NUMBER = 1; private long longMsg_; - /** - * required int64 long_msg = 1; - */ public boolean hasLongMsg() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required int64 long_msg = 1; - */ public long getLongMsg() { return longMsg_; } - + private void initFields() { longMsg_ = 0L; } @@ -13091,7 +10171,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasLongMsg()) { memoizedIsInitialized = 0; return false; @@ -13099,7 +10179,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -13108,12 +10188,12 @@ public final class HBaseProtos { } 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 @@ -13123,14 +10203,14 @@ public final class HBaseProtos { 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) { @@ -13140,7 +10220,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg) obj; - + boolean result = true; result = result && (hasLongMsg() == other.hasLongMsg()); if (hasLongMsg()) { @@ -13151,13 +10231,9 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasLongMsg()) { @@ -13165,79 +10241,89 @@ public final class HBaseProtos { hash = (53 * hash) + hashLong(getLongMsg()); } hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + 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.LongMsg prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code LongMsg} - */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsgOrBuilder { @@ -13245,21 +10331,18 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_LongMsg_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_LongMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_LongMsg_fieldAccessorTable; } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -13270,27 +10353,27 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); longMsg_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_LongMsg_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.getDescriptor(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg result = buildPartial(); if (!result.isInitialized()) { @@ -13298,7 +10381,17 @@ public final class HBaseProtos { } return result; } - + + private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg(this); int from_bitField0_ = bitField0_; @@ -13311,7 +10404,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg)other); @@ -13320,7 +10413,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.getDefaultInstance()) return this; if (other.hasLongMsg()) { @@ -13329,7 +10422,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasLongMsg()) { @@ -13337,195 +10430,119 @@ public final class HBaseProtos { } return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + 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 8: { + bitField0_ |= 0x00000001; + longMsg_ = input.readInt64(); + break; + } } } - return this; } + private int bitField0_; - + // required int64 long_msg = 1; private long longMsg_ ; - /** - * required int64 long_msg = 1; - */ public boolean hasLongMsg() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required int64 long_msg = 1; - */ public long getLongMsg() { return longMsg_; } - /** - * required int64 long_msg = 1; - */ public Builder setLongMsg(long value) { bitField0_ |= 0x00000001; longMsg_ = value; onChanged(); return this; } - /** - * required int64 long_msg = 1; - */ public Builder clearLongMsg() { bitField0_ = (bitField0_ & ~0x00000001); longMsg_ = 0L; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:LongMsg) } - + static { defaultInstance = new LongMsg(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:LongMsg) } - + public interface BigDecimalMsgOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required bytes bigdecimal_msg = 1; - /** - * required bytes bigdecimal_msg = 1; - */ boolean hasBigdecimalMsg(); - /** - * required bytes bigdecimal_msg = 1; - */ com.google.protobuf.ByteString getBigdecimalMsg(); } - /** - * Protobuf type {@code BigDecimalMsg} - */ public static final class BigDecimalMsg extends com.google.protobuf.GeneratedMessage implements BigDecimalMsgOrBuilder { // Use BigDecimalMsg.newBuilder() to construct. - private BigDecimalMsg(com.google.protobuf.GeneratedMessage.Builder builder) { + private BigDecimalMsg(Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private BigDecimalMsg(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - + private BigDecimalMsg(boolean noInit) {} + private static final BigDecimalMsg defaultInstance; public static BigDecimalMsg getDefaultInstance() { return defaultInstance; } - + public BigDecimalMsg getDefaultInstanceForType() { return defaultInstance; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BigDecimalMsg( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - bigdecimalMsg_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BigDecimalMsg_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BigDecimalMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public BigDecimalMsg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BigDecimalMsg(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BigDecimalMsg_fieldAccessorTable; } - + private int bitField0_; // required bytes bigdecimal_msg = 1; public static final int BIGDECIMAL_MSG_FIELD_NUMBER = 1; private com.google.protobuf.ByteString bigdecimalMsg_; - /** - * required bytes bigdecimal_msg = 1; - */ public boolean hasBigdecimalMsg() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required bytes bigdecimal_msg = 1; - */ public com.google.protobuf.ByteString getBigdecimalMsg() { return bigdecimalMsg_; } - + private void initFields() { bigdecimalMsg_ = com.google.protobuf.ByteString.EMPTY; } @@ -13533,7 +10550,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasBigdecimalMsg()) { memoizedIsInitialized = 0; return false; @@ -13541,7 +10558,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -13550,12 +10567,12 @@ public final class HBaseProtos { } 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 @@ -13565,14 +10582,14 @@ public final class HBaseProtos { 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) { @@ -13582,7 +10599,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg) obj; - + boolean result = true; result = result && (hasBigdecimalMsg() == other.hasBigdecimalMsg()); if (hasBigdecimalMsg()) { @@ -13593,13 +10610,9 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasBigdecimalMsg()) { @@ -13607,79 +10620,89 @@ public final class HBaseProtos { hash = (53 * hash) + getBigdecimalMsg().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + 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.BigDecimalMsg prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code BigDecimalMsg} - */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsgOrBuilder { @@ -13687,21 +10710,18 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BigDecimalMsg_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BigDecimalMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BigDecimalMsg_fieldAccessorTable; } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -13712,27 +10732,27 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); bigdecimalMsg_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BigDecimalMsg_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg.getDescriptor(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg result = buildPartial(); if (!result.isInitialized()) { @@ -13740,7 +10760,17 @@ public final class HBaseProtos { } return result; } - + + private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg(this); int from_bitField0_ = bitField0_; @@ -13753,7 +10783,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg)other); @@ -13762,7 +10792,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg.getDefaultInstance()) return this; if (other.hasBigdecimalMsg()) { @@ -13771,7 +10801,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasBigdecimalMsg()) { @@ -13779,43 +10809,49 @@ public final class HBaseProtos { } return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + 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; + bigdecimalMsg_ = input.readBytes(); + break; + } } } - return this; } + private int bitField0_; - + // required bytes bigdecimal_msg = 1; private com.google.protobuf.ByteString bigdecimalMsg_ = com.google.protobuf.ByteString.EMPTY; - /** - * required bytes bigdecimal_msg = 1; - */ public boolean hasBigdecimalMsg() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required bytes bigdecimal_msg = 1; - */ public com.google.protobuf.ByteString getBigdecimalMsg() { return bigdecimalMsg_; } - /** - * required bytes bigdecimal_msg = 1; - */ public Builder setBigdecimalMsg(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -13825,183 +10861,84 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * required bytes bigdecimal_msg = 1; - */ public Builder clearBigdecimalMsg() { bitField0_ = (bitField0_ & ~0x00000001); bigdecimalMsg_ = getDefaultInstance().getBigdecimalMsg(); onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:BigDecimalMsg) } - + static { defaultInstance = new BigDecimalMsg(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:BigDecimalMsg) } - + public interface UUIDOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required uint64 least_sig_bits = 1; - /** - * required uint64 least_sig_bits = 1; - */ boolean hasLeastSigBits(); - /** - * required uint64 least_sig_bits = 1; - */ long getLeastSigBits(); - + // required uint64 most_sig_bits = 2; - /** - * required uint64 most_sig_bits = 2; - */ boolean hasMostSigBits(); - /** - * required uint64 most_sig_bits = 2; - */ long getMostSigBits(); } - /** - * Protobuf type {@code UUID} - */ public static final class UUID extends com.google.protobuf.GeneratedMessage implements UUIDOrBuilder { // Use UUID.newBuilder() to construct. - private UUID(com.google.protobuf.GeneratedMessage.Builder builder) { + private UUID(Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private UUID(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - + private UUID(boolean noInit) {} + private static final UUID defaultInstance; public static UUID getDefaultInstance() { return defaultInstance; } - + public UUID getDefaultInstanceForType() { return defaultInstance; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UUID( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - leastSigBits_ = input.readUInt64(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - mostSigBits_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_UUID_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_UUID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public UUID parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UUID(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_UUID_fieldAccessorTable; } - + private int bitField0_; // required uint64 least_sig_bits = 1; public static final int LEAST_SIG_BITS_FIELD_NUMBER = 1; private long leastSigBits_; - /** - * required uint64 least_sig_bits = 1; - */ public boolean hasLeastSigBits() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint64 least_sig_bits = 1; - */ public long getLeastSigBits() { return leastSigBits_; } - + // required uint64 most_sig_bits = 2; public static final int MOST_SIG_BITS_FIELD_NUMBER = 2; private long mostSigBits_; - /** - * required uint64 most_sig_bits = 2; - */ public boolean hasMostSigBits() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint64 most_sig_bits = 2; - */ public long getMostSigBits() { return mostSigBits_; } - + private void initFields() { leastSigBits_ = 0L; mostSigBits_ = 0L; @@ -14010,7 +10947,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasLeastSigBits()) { memoizedIsInitialized = 0; return false; @@ -14022,7 +10959,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -14034,12 +10971,12 @@ public final class HBaseProtos { } 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 @@ -14053,14 +10990,14 @@ public final class HBaseProtos { 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) { @@ -14070,7 +11007,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID) obj; - + boolean result = true; result = result && (hasLeastSigBits() == other.hasLeastSigBits()); if (hasLeastSigBits()) { @@ -14086,13 +11023,9 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasLeastSigBits()) { @@ -14104,79 +11037,89 @@ public final class HBaseProtos { hash = (53 * hash) + hashLong(getMostSigBits()); } hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + 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.UUID prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code UUID} - */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUIDOrBuilder { @@ -14184,21 +11127,18 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_UUID_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_UUID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_UUID_fieldAccessorTable; } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -14209,7 +11149,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); leastSigBits_ = 0L; @@ -14218,20 +11158,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_UUID_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID.getDescriptor(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID result = buildPartial(); if (!result.isInitialized()) { @@ -14239,7 +11179,17 @@ public final class HBaseProtos { } return result; } - + + private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID(this); int from_bitField0_ = bitField0_; @@ -14256,7 +11206,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID)other); @@ -14265,7 +11215,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID.getDefaultInstance()) return this; if (other.hasLeastSigBits()) { @@ -14277,7 +11227,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasLeastSigBits()) { @@ -14289,300 +11239,176 @@ public final class HBaseProtos { } return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + 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 8: { + bitField0_ |= 0x00000001; + leastSigBits_ = input.readUInt64(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + mostSigBits_ = input.readUInt64(); + break; + } } } - return this; } + private int bitField0_; - + // required uint64 least_sig_bits = 1; private long leastSigBits_ ; - /** - * required uint64 least_sig_bits = 1; - */ public boolean hasLeastSigBits() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required uint64 least_sig_bits = 1; - */ public long getLeastSigBits() { return leastSigBits_; } - /** - * required uint64 least_sig_bits = 1; - */ public Builder setLeastSigBits(long value) { bitField0_ |= 0x00000001; leastSigBits_ = value; onChanged(); return this; } - /** - * required uint64 least_sig_bits = 1; - */ public Builder clearLeastSigBits() { bitField0_ = (bitField0_ & ~0x00000001); leastSigBits_ = 0L; onChanged(); return this; } - + // required uint64 most_sig_bits = 2; private long mostSigBits_ ; - /** - * required uint64 most_sig_bits = 2; - */ public boolean hasMostSigBits() { return ((bitField0_ & 0x00000002) == 0x00000002); } - /** - * required uint64 most_sig_bits = 2; - */ public long getMostSigBits() { return mostSigBits_; } - /** - * required uint64 most_sig_bits = 2; - */ public Builder setMostSigBits(long value) { bitField0_ |= 0x00000002; mostSigBits_ = value; onChanged(); return this; } - /** - * required uint64 most_sig_bits = 2; - */ public Builder clearMostSigBits() { bitField0_ = (bitField0_ & ~0x00000002); mostSigBits_ = 0L; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:UUID) } - + static { defaultInstance = new UUID(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:UUID) } - + public interface NamespaceDescriptorOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required bytes name = 1; - /** - * required bytes name = 1; - */ boolean hasName(); - /** - * required bytes name = 1; - */ com.google.protobuf.ByteString getName(); - + // repeated .NameStringPair configuration = 2; - /** - * repeated .NameStringPair configuration = 2; - */ java.util.List getConfigurationList(); - /** - * repeated .NameStringPair configuration = 2; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index); - /** - * repeated .NameStringPair configuration = 2; - */ int getConfigurationCount(); - /** - * repeated .NameStringPair configuration = 2; - */ java.util.List getConfigurationOrBuilderList(); - /** - * repeated .NameStringPair configuration = 2; - */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder( int index); } - /** - * Protobuf type {@code NamespaceDescriptor} - */ public static final class NamespaceDescriptor extends com.google.protobuf.GeneratedMessage implements NamespaceDescriptorOrBuilder { // Use NamespaceDescriptor.newBuilder() to construct. - private NamespaceDescriptor(com.google.protobuf.GeneratedMessage.Builder builder) { + private NamespaceDescriptor(Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private NamespaceDescriptor(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - + private NamespaceDescriptor(boolean noInit) {} + private static final NamespaceDescriptor defaultInstance; public static NamespaceDescriptor getDefaultInstance() { return defaultInstance; } - + public NamespaceDescriptor getDefaultInstanceForType() { return defaultInstance; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamespaceDescriptor( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - name_ = input.readBytes(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - configuration_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - configuration_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - configuration_ = java.util.Collections.unmodifiableList(configuration_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NamespaceDescriptor_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NamespaceDescriptor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public NamespaceDescriptor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamespaceDescriptor(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NamespaceDescriptor_fieldAccessorTable; } - + private int bitField0_; // required bytes name = 1; public static final int NAME_FIELD_NUMBER = 1; private com.google.protobuf.ByteString name_; - /** - * required bytes name = 1; - */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required bytes name = 1; - */ public com.google.protobuf.ByteString getName() { return name_; } - + // repeated .NameStringPair configuration = 2; public static final int CONFIGURATION_FIELD_NUMBER = 2; private java.util.List configuration_; - /** - * repeated .NameStringPair configuration = 2; - */ public java.util.List getConfigurationList() { return configuration_; } - /** - * repeated .NameStringPair configuration = 2; - */ public java.util.List getConfigurationOrBuilderList() { return configuration_; } - /** - * repeated .NameStringPair configuration = 2; - */ public int getConfigurationCount() { return configuration_.size(); } - /** - * repeated .NameStringPair configuration = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index) { return configuration_.get(index); } - /** - * repeated .NameStringPair configuration = 2; - */ 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; configuration_ = java.util.Collections.emptyList(); @@ -14591,7 +11417,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasName()) { memoizedIsInitialized = 0; return false; @@ -14605,7 +11431,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -14617,12 +11443,12 @@ public final class HBaseProtos { } 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 @@ -14636,14 +11462,14 @@ public final class HBaseProtos { 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) { @@ -14653,7 +11479,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor) obj; - + boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { @@ -14666,13 +11492,9 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { @@ -14684,79 +11506,89 @@ public final class HBaseProtos { hash = (53 * hash) + getConfigurationList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + 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.NamespaceDescriptor prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code NamespaceDescriptor} - */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptorOrBuilder { @@ -14764,21 +11596,18 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NamespaceDescriptor_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NamespaceDescriptor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NamespaceDescriptor_fieldAccessorTable; } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -14790,7 +11619,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); name_ = com.google.protobuf.ByteString.EMPTY; @@ -14803,20 +11632,20 @@ public final class HBaseProtos { } return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NamespaceDescriptor_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor.getDescriptor(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor result = buildPartial(); if (!result.isInitialized()) { @@ -14824,7 +11653,17 @@ public final class HBaseProtos { } return result; } - + + private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor(this); int from_bitField0_ = bitField0_; @@ -14846,7 +11685,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor)other); @@ -14855,7 +11694,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor.getDefaultInstance()) return this; if (other.hasName()) { @@ -14890,7 +11729,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasName()) { @@ -14904,43 +11743,55 @@ public final class HBaseProtos { } return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + 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.NameStringPair.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addConfiguration(subBuilder.buildPartial()); + break; + } } } - return this; } + private int bitField0_; - + // required bytes name = 1; private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY; - /** - * required bytes name = 1; - */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * required bytes name = 1; - */ public com.google.protobuf.ByteString getName() { return name_; } - /** - * required bytes name = 1; - */ public Builder setName(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -14950,16 +11801,13 @@ public final class HBaseProtos { onChanged(); return this; } - /** - * required bytes name = 1; - */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } - + // repeated .NameStringPair configuration = 2; private java.util.List configuration_ = java.util.Collections.emptyList(); @@ -14969,13 +11817,10 @@ public final class HBaseProtos { bitField0_ |= 0x00000002; } } - + private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder> configurationBuilder_; - - /** - * repeated .NameStringPair configuration = 2; - */ + public java.util.List getConfigurationList() { if (configurationBuilder_ == null) { return java.util.Collections.unmodifiableList(configuration_); @@ -14983,9 +11828,6 @@ public final class HBaseProtos { return configurationBuilder_.getMessageList(); } } - /** - * repeated .NameStringPair configuration = 2; - */ public int getConfigurationCount() { if (configurationBuilder_ == null) { return configuration_.size(); @@ -14993,9 +11835,6 @@ public final class HBaseProtos { return configurationBuilder_.getCount(); } } - /** - * repeated .NameStringPair configuration = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index) { if (configurationBuilder_ == null) { return configuration_.get(index); @@ -15003,9 +11842,6 @@ public final class HBaseProtos { return configurationBuilder_.getMessage(index); } } - /** - * repeated .NameStringPair configuration = 2; - */ public Builder setConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { @@ -15020,9 +11856,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 2; - */ public Builder setConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -15034,9 +11867,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 2; - */ public Builder addConfiguration(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { if (value == null) { @@ -15050,9 +11880,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 2; - */ public Builder addConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { @@ -15067,9 +11894,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 2; - */ public Builder addConfiguration( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -15081,9 +11905,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 2; - */ public Builder addConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -15095,9 +11916,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 2; - */ public Builder addAllConfiguration( java.lang.Iterable values) { if (configurationBuilder_ == null) { @@ -15109,9 +11927,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 2; - */ public Builder clearConfiguration() { if (configurationBuilder_ == null) { configuration_ = java.util.Collections.emptyList(); @@ -15122,9 +11937,6 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 2; - */ public Builder removeConfiguration(int index) { if (configurationBuilder_ == null) { ensureConfigurationIsMutable(); @@ -15135,16 +11947,10 @@ public final class HBaseProtos { } return this; } - /** - * repeated .NameStringPair configuration = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder getConfigurationBuilder( int index) { return getConfigurationFieldBuilder().getBuilder(index); } - /** - * repeated .NameStringPair configuration = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder( int index) { if (configurationBuilder_ == null) { @@ -15152,9 +11958,6 @@ public final class HBaseProtos { return configurationBuilder_.getMessageOrBuilder(index); } } - /** - * repeated .NameStringPair configuration = 2; - */ public java.util.List getConfigurationOrBuilderList() { if (configurationBuilder_ != null) { @@ -15163,24 +11966,15 @@ public final class HBaseProtos { return java.util.Collections.unmodifiableList(configuration_); } } - /** - * repeated .NameStringPair configuration = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder addConfigurationBuilder() { return getConfigurationFieldBuilder().addBuilder( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDefaultInstance()); } - /** - * repeated .NameStringPair configuration = 2; - */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder addConfigurationBuilder( int index) { return getConfigurationFieldBuilder().addBuilder( index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDefaultInstance()); } - /** - * repeated .NameStringPair configuration = 2; - */ public java.util.List getConfigurationBuilderList() { return getConfigurationFieldBuilder().getBuilderList(); @@ -15199,148 +11993,64 @@ public final class HBaseProtos { } return configurationBuilder_; } - + // @@protoc_insertion_point(builder_scope:NamespaceDescriptor) } - + static { defaultInstance = new NamespaceDescriptor(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:NamespaceDescriptor) } - + public interface RegionServerInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // optional int32 infoPort = 1; - /** - * optional int32 infoPort = 1; - */ boolean hasInfoPort(); - /** - * optional int32 infoPort = 1; - */ int getInfoPort(); } - /** - * Protobuf type {@code RegionServerInfo} - * - *
-   **
-   * Description of the region server info
-   * 
- */ public static final class RegionServerInfo extends com.google.protobuf.GeneratedMessage implements RegionServerInfoOrBuilder { // Use RegionServerInfo.newBuilder() to construct. - private RegionServerInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + private RegionServerInfo(Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private RegionServerInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - + private RegionServerInfo(boolean noInit) {} + private static final RegionServerInfo defaultInstance; public static RegionServerInfo getDefaultInstance() { return defaultInstance; } - + public RegionServerInfo getDefaultInstanceForType() { return defaultInstance; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RegionServerInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - infoPort_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionServerInfo_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionServerInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public RegionServerInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RegionServerInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionServerInfo_fieldAccessorTable; } - + private int bitField0_; // optional int32 infoPort = 1; public static final int INFOPORT_FIELD_NUMBER = 1; private int infoPort_; - /** - * optional int32 infoPort = 1; - */ public boolean hasInfoPort() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * optional int32 infoPort = 1; - */ public int getInfoPort() { return infoPort_; } - + private void initFields() { infoPort_ = 0; } @@ -15348,11 +12058,11 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -15361,12 +12071,12 @@ public final class HBaseProtos { } 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 @@ -15376,14 +12086,14 @@ public final class HBaseProtos { 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) { @@ -15393,7 +12103,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo) obj; - + boolean result = true; result = result && (hasInfoPort() == other.hasInfoPort()); if (hasInfoPort()) { @@ -15404,13 +12114,9 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - - private int memoizedHashCode = 0; + @java.lang.Override public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasInfoPort()) { @@ -15418,84 +12124,89 @@ public final class HBaseProtos { hash = (53 * hash) + getInfoPort(); } hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return newBuilder().mergeFrom(data).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return newBuilder().mergeFrom(input).buildParsed(); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + 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.RegionServerInfo prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code RegionServerInfo} - * - *
-     **
-     * Description of the region server info
-     * 
- */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfoOrBuilder { @@ -15503,21 +12214,18 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionServerInfo_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionServerInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo.Builder.class); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionServerInfo_fieldAccessorTable; } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { + + private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -15528,27 +12236,27 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); infoPort_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionServerInfo_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo.getDescriptor(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo result = buildPartial(); if (!result.isInitialized()) { @@ -15556,7 +12264,17 @@ public final class HBaseProtos { } return result; } - + + private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo(this); int from_bitField0_ = bitField0_; @@ -15569,7 +12287,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo)other); @@ -15578,7 +12296,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo.getDefaultInstance()) return this; if (other.hasInfoPort()) { @@ -15587,74 +12305,77 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + 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 8: { + bitField0_ |= 0x00000001; + infoPort_ = input.readInt32(); + break; + } } } - return this; } + private int bitField0_; - + // optional int32 infoPort = 1; private int infoPort_ ; - /** - * optional int32 infoPort = 1; - */ public boolean hasInfoPort() { return ((bitField0_ & 0x00000001) == 0x00000001); } - /** - * optional int32 infoPort = 1; - */ public int getInfoPort() { return infoPort_; } - /** - * optional int32 infoPort = 1; - */ public Builder setInfoPort(int value) { bitField0_ |= 0x00000001; infoPort_ = value; onChanged(); return this; } - /** - * optional int32 infoPort = 1; - */ public Builder clearInfoPort() { bitField0_ = (bitField0_ & ~0x00000001); infoPort_ = 0; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:RegionServerInfo) } - + static { defaultInstance = new RegionServerInfo(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:RegionServerInfo) } - + private static com.google.protobuf.Descriptors.Descriptor internal_static_TableName_descriptor; private static @@ -15760,7 +12481,7 @@ public final class HBaseProtos { private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RegionServerInfo_fieldAccessorTable; - + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -15824,127 +12545,169 @@ public final class HBaseProtos { internal_static_TableName_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_TableName_descriptor, - new java.lang.String[] { "Namespace", "Qualifier", }); + new java.lang.String[] { "Namespace", "Qualifier", }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder.class); internal_static_TableSchema_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_TableSchema_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_TableSchema_descriptor, - new java.lang.String[] { "TableName", "Attributes", "ColumnFamilies", "Configuration", }); + new java.lang.String[] { "TableName", "Attributes", "ColumnFamilies", "Configuration", }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.Builder.class); internal_static_ColumnFamilySchema_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_ColumnFamilySchema_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ColumnFamilySchema_descriptor, - new java.lang.String[] { "Name", "Attributes", "Configuration", }); + new java.lang.String[] { "Name", "Attributes", "Configuration", }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder.class); internal_static_RegionInfo_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_RegionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RegionInfo_descriptor, - new java.lang.String[] { "RegionId", "TableName", "StartKey", "EndKey", "Offline", "Split", }); + new java.lang.String[] { "RegionId", "TableName", "StartKey", "EndKey", "Offline", "Split", }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.Builder.class); internal_static_FavoredNodes_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_FavoredNodes_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_FavoredNodes_descriptor, - new java.lang.String[] { "FavoredNode", }); + new java.lang.String[] { "FavoredNode", }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes.Builder.class); internal_static_RegionSpecifier_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_RegionSpecifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RegionSpecifier_descriptor, - new java.lang.String[] { "Type", "Value", }); + new java.lang.String[] { "Type", "Value", }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.Builder.class); internal_static_TimeRange_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_TimeRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_TimeRange_descriptor, - new java.lang.String[] { "From", "To", }); + new java.lang.String[] { "From", "To", }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.Builder.class); internal_static_ServerName_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_ServerName_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ServerName_descriptor, - new java.lang.String[] { "HostName", "Port", "StartCode", }); + new java.lang.String[] { "HostName", "Port", "StartCode", }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder.class); internal_static_Coprocessor_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_Coprocessor_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Coprocessor_descriptor, - new java.lang.String[] { "Name", }); + new java.lang.String[] { "Name", }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor.Builder.class); internal_static_NameStringPair_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_NameStringPair_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_NameStringPair_descriptor, - new java.lang.String[] { "Name", "Value", }); + new java.lang.String[] { "Name", "Value", }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder.class); internal_static_NameBytesPair_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_NameBytesPair_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_NameBytesPair_descriptor, - new java.lang.String[] { "Name", "Value", }); + new java.lang.String[] { "Name", "Value", }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder.class); internal_static_BytesBytesPair_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_BytesBytesPair_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_BytesBytesPair_descriptor, - new java.lang.String[] { "First", "Second", }); + new java.lang.String[] { "First", "Second", }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder.class); internal_static_NameInt64Pair_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_NameInt64Pair_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_NameInt64Pair_descriptor, - new java.lang.String[] { "Name", "Value", }); + new java.lang.String[] { "Name", "Value", }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair.Builder.class); internal_static_SnapshotDescription_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_SnapshotDescription_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_SnapshotDescription_descriptor, - new java.lang.String[] { "Name", "Table", "CreationTime", "Type", "Version", }); + new java.lang.String[] { "Name", "Table", "CreationTime", "Type", "Version", }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Builder.class); internal_static_ProcedureDescription_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_ProcedureDescription_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ProcedureDescription_descriptor, - new java.lang.String[] { "Signature", "Instance", "CreationTime", "Configuration", }); + new java.lang.String[] { "Signature", "Instance", "CreationTime", "Configuration", }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription.Builder.class); internal_static_EmptyMsg_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_EmptyMsg_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_EmptyMsg_descriptor, - new java.lang.String[] { }); + new java.lang.String[] { }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg.Builder.class); internal_static_LongMsg_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_LongMsg_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_LongMsg_descriptor, - new java.lang.String[] { "LongMsg", }); + new java.lang.String[] { "LongMsg", }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.Builder.class); internal_static_BigDecimalMsg_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_BigDecimalMsg_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_BigDecimalMsg_descriptor, - new java.lang.String[] { "BigdecimalMsg", }); + new java.lang.String[] { "BigdecimalMsg", }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg.Builder.class); internal_static_UUID_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_UUID_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_UUID_descriptor, - new java.lang.String[] { "LeastSigBits", "MostSigBits", }); + new java.lang.String[] { "LeastSigBits", "MostSigBits", }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID.Builder.class); internal_static_NamespaceDescriptor_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_NamespaceDescriptor_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_NamespaceDescriptor_descriptor, - new java.lang.String[] { "Name", "Configuration", }); + new java.lang.String[] { "Name", "Configuration", }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor.Builder.class); internal_static_RegionServerInfo_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_RegionServerInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RegionServerInfo_descriptor, - new java.lang.String[] { "InfoPort", }); + new java.lang.String[] { "InfoPort", }, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo.class, + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo.Builder.class); return null; } }; @@ -15954,6 +12717,6 @@ public final class HBaseProtos { org.apache.hadoop.hbase.protobuf.generated.CellProtos.getDescriptor(), }, assigner); } - + // @@protoc_insertion_point(outer_class_scope) } diff --git a/hbase-protocol/src/main/protobuf/HBase.proto b/hbase-protocol/src/main/protobuf/HBase.proto index a966c40..5622735 100644 --- a/hbase-protocol/src/main/protobuf/HBase.proto +++ b/hbase-protocol/src/main/protobuf/HBase.proto @@ -179,7 +179,10 @@ message EmptyMsg { message LongMsg { required int64 long_msg = 1; +} +message DoubleMsg { + required double double_msg = 1; } message BigDecimalMsg { diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestDoubleColumnInterpreter.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestDoubleColumnInterpreter.java new file mode 100644 index 0000000..35593ec --- /dev/null +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/coprocessor/TestDoubleColumnInterpreter.java @@ -0,0 +1,714 @@ +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.hadoop.hbase.coprocessor; + +import static org.junit.Assert.assertEquals; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.apache.hadoop.conf.Configuration; +import org.apache.hadoop.hbase.HBaseTestingUtility; +import org.apache.hadoop.hbase.HConstants; +import org.apache.hadoop.hbase.MediumTests; +import org.apache.hadoop.hbase.TableName; +import org.apache.hadoop.hbase.client.Durability; +import org.apache.hadoop.hbase.client.HTable; +import org.apache.hadoop.hbase.client.Put; +import org.apache.hadoop.hbase.client.Scan; +import org.apache.hadoop.hbase.client.coprocessor.AggregationClient; +import org.apache.hadoop.hbase.client.coprocessor.DoubleColumnInterpreter; +import org.apache.hadoop.hbase.filter.Filter; +import org.apache.hadoop.hbase.filter.PrefixFilter; +import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg; +import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg; +import org.apache.hadoop.hbase.util.Bytes; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.experimental.categories.Category; + +/** + * A test class to test DoubleColumnInterpreter for AggregateProtocol + */ +@Category(MediumTests.class) +public class TestDoubleColumnInterpreter { + protected static Log myLog = LogFactory.getLog(TestDoubleColumnInterpreter.class); + + /** + * Creating the test infrastructure. + */ + private static final TableName TEST_TABLE = TableName.valueOf("TestTable"); + private static final byte[] TEST_FAMILY = Bytes.toBytes("TestFamily"); + private static final byte[] TEST_QUALIFIER = Bytes.toBytes("TestQualifier"); + private static final byte[] TEST_MULTI_CQ = Bytes.toBytes("TestMultiCQ"); + + private static byte[] ROW = Bytes.toBytes("testRow"); + private static final int ROWSIZE = 20; + private static final int rowSeperator1 = 5; + private static final int rowSeperator2 = 12; + private static byte[][] ROWS = makeN(ROW, ROWSIZE); + + private static HBaseTestingUtility util = new HBaseTestingUtility(); + private static Configuration conf = util.getConfiguration(); + + /** + * A set up method to start the test cluster. AggregateProtocolImpl is registered and will be + * loaded during region startup. + * @throws Exception + */ + @BeforeClass + public static void setupBeforeClass() throws Exception { + + conf.set(CoprocessorHost.REGION_COPROCESSOR_CONF_KEY, + "org.apache.hadoop.hbase.coprocessor.AggregateImplementation"); + + util.startMiniCluster(2); + HTable table = util.createTable(TEST_TABLE, TEST_FAMILY); + util.createMultiRegions(util.getConfiguration(), table, TEST_FAMILY, new byte[][] { + HConstants.EMPTY_BYTE_ARRAY, ROWS[rowSeperator1], ROWS[rowSeperator2] }); + /** + * The testtable has one CQ which is always populated and one variable CQ for each row rowkey1: + * CF:CQ CF:CQ1 rowKey2: CF:CQ CF:CQ2 + */ + for (int i = 0; i < ROWSIZE; i++) { + Put put = new Put(ROWS[i]); + put.setDurability(Durability.SKIP_WAL); + Double d = new Double(i); + put.add(TEST_FAMILY, TEST_QUALIFIER, Bytes.toBytes(d)); + table.put(put); + Put p2 = new Put(ROWS[i]); + put.setDurability(Durability.SKIP_WAL); + p2.add(TEST_FAMILY, Bytes.add(TEST_MULTI_CQ, Bytes.toBytes(d)), Bytes.toBytes(d * 0.10)); + table.put(p2); + } + table.close(); + } + + /** + * Shutting down the cluster + * @throws Exception + */ + @AfterClass + public static void tearDownAfterClass() throws Exception { + util.shutdownMiniCluster(); + } + + /** + * an infrastructure method to prepare rows for the testtable. + * @param base + * @param n + * @return + */ + private static byte[][] makeN(byte[] base, int n) { + byte[][] ret = new byte[n][]; + for (int i = 0; i < n; i++) { + ret[i] = Bytes.add(base, Bytes.toBytes(i)); + } + return ret; + } + + /** + * ****************** Test cases for Median ********************** + */ + /** + * @throws Throwable + */ + @Test(timeout = 300000) + public void testMedianWithValidRange() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addColumn(TEST_FAMILY, TEST_QUALIFIER); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double median = aClient.median(TEST_TABLE, ci, scan); + assertEquals(8.00, median, 0.00); + } + + /** + * ***************Test cases for Maximum ******************* + */ + + /** + * give max for the entire table. + * @throws Throwable + */ + @Test(timeout = 300000) + public void testMaxWithValidRange() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addColumn(TEST_FAMILY, TEST_QUALIFIER); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double maximum = aClient.max(TEST_TABLE, ci, scan); + assertEquals(19.00, maximum, 0.00); + } + + /** + * @throws Throwable + */ + @Test(timeout = 300000) + public void testMaxWithValidRange2() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addColumn(TEST_FAMILY, TEST_QUALIFIER); + scan.setStartRow(ROWS[5]); + scan.setStopRow(ROWS[15]); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double max = aClient.max(TEST_TABLE, ci, scan); + assertEquals(14.00, max, 0.00); + } + + @Test(timeout = 300000) + public void testMaxWithValidRangeWithNoCQ() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addFamily(TEST_FAMILY); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double maximum = aClient.max(TEST_TABLE, ci, scan); + assertEquals(19.00, maximum, 0.00); + } + + @Test(timeout = 300000) + public void testMaxWithValidRange2WithNoCQ() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addFamily(TEST_FAMILY); + scan.setStartRow(ROWS[6]); + scan.setStopRow(ROWS[7]); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double max = aClient.max(TEST_TABLE, ci, scan); + assertEquals(6.00, max, 0.00); + } + + @Test(timeout = 300000) + public void testMaxWithValidRangeWithNullCF() { + AggregationClient aClient = new AggregationClient(conf); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + Scan scan = new Scan(); + Double max = null; + try { + max = aClient.max(TEST_TABLE, ci, scan); + } catch (Throwable e) { + max = null; + } + assertEquals(null, max);// CP will throw an IOException about the + // null column family, and max will be set to 0 + } + + @Test(timeout = 300000) + public void testMaxWithInvalidRange() { + AggregationClient aClient = new AggregationClient(conf); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + Scan scan = new Scan(); + scan.setStartRow(ROWS[4]); + scan.setStopRow(ROWS[2]); + scan.addColumn(TEST_FAMILY, TEST_QUALIFIER); + double max = Double.MIN_VALUE; + ; + try { + max = aClient.max(TEST_TABLE, ci, scan); + } catch (Throwable e) { + max = 0.00; + } + assertEquals(0.00, max, 0.00);// control should go to the catch block + } + + @Test(timeout = 300000) + public void testMaxWithInvalidRange2() throws Throwable { + double max = Double.MIN_VALUE; + Scan scan = new Scan(); + scan.addColumn(TEST_FAMILY, TEST_QUALIFIER); + scan.setStartRow(ROWS[4]); + scan.setStopRow(ROWS[4]); + try { + AggregationClient aClient = new AggregationClient(conf); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + max = aClient.max(TEST_TABLE, ci, scan); + } catch (Exception e) { + max = 0.00; + } + assertEquals(0.00, max, 0.00);// control should go to the catch block + } + + @Test(timeout = 300000) + public void testMaxWithFilter() throws Throwable { + Double max = 0.00d; + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addColumn(TEST_FAMILY, TEST_QUALIFIER); + Filter f = new PrefixFilter(Bytes.toBytes("foo:bar")); + scan.setFilter(f); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + max = aClient.max(TEST_TABLE, ci, scan); + assertEquals(null, max); + } + + /** + * **************************Test cases for Minimum *********************** + */ + + /** + * @throws Throwable + */ + @Test(timeout = 300000) + public void testMinWithValidRange() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addColumn(TEST_FAMILY, TEST_QUALIFIER); + scan.setStartRow(HConstants.EMPTY_START_ROW); + scan.setStopRow(HConstants.EMPTY_END_ROW); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double min = aClient.min(TEST_TABLE, ci, scan); + assertEquals(0.00, min, 0.00); + } + + /** + * @throws Throwable + */ + @Test(timeout = 300000) + public void testMinWithValidRange2() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addColumn(TEST_FAMILY, TEST_QUALIFIER); + scan.setStartRow(ROWS[5]); + scan.setStopRow(ROWS[15]); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double min = aClient.min(TEST_TABLE, ci, scan); + assertEquals(5.00, min, 0.00); + } + + @Test(timeout = 300000) + public void testMinWithValidRangeWithNoCQ() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addFamily(TEST_FAMILY); + scan.setStartRow(HConstants.EMPTY_START_ROW); + scan.setStopRow(HConstants.EMPTY_END_ROW); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double min = aClient.min(TEST_TABLE, ci, scan); + assertEquals(0.00, min, 0.00); + } + + @Test(timeout = 300000) + public void testMinWithValidRange2WithNoCQ() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addFamily(TEST_FAMILY); + scan.setStartRow(ROWS[6]); + scan.setStopRow(ROWS[7]); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double min = aClient.min(TEST_TABLE, ci, scan); + assertEquals(0.60, min, 0.001); + } + + @Test(timeout = 300000) + public void testMinWithValidRangeWithNullCF() { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.setStartRow(ROWS[5]); + scan.setStopRow(ROWS[15]); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + Double min = null; + try { + min = aClient.min(TEST_TABLE, ci, scan); + } catch (Throwable e) { + } + assertEquals(null, min);// CP will throw an IOException about the + // null column family, and max will be set to 0 + } + + @Test(timeout = 300000) + public void testMinWithInvalidRange() { + AggregationClient aClient = new AggregationClient(conf); + Double min = null; + Scan scan = new Scan(); + scan.addFamily(TEST_FAMILY); + scan.setStartRow(ROWS[4]); + scan.setStopRow(ROWS[2]); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + try { + min = aClient.min(TEST_TABLE, ci, scan); + } catch (Throwable e) { + } + assertEquals(null, min);// control should go to the catch block + } + + @Test(timeout = 300000) + public void testMinWithInvalidRange2() { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addFamily(TEST_FAMILY); + scan.setStartRow(ROWS[6]); + scan.setStopRow(ROWS[6]); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + Double min = null; + try { + min = aClient.min(TEST_TABLE, ci, scan); + } catch (Throwable e) { + } + assertEquals(null, min);// control should go to the catch block + } + + @Test(timeout = 300000) + public void testMinWithFilter() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addColumn(TEST_FAMILY, TEST_QUALIFIER); + Filter f = new PrefixFilter(Bytes.toBytes("foo:bar")); + scan.setFilter(f); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + Double min = null; + min = aClient.min(TEST_TABLE, ci, scan); + assertEquals(null, min); + } + + /** + * *************** Test cases for Sum ********************* + */ + /** + * @throws Throwable + */ + @Test(timeout = 300000) + public void testSumWithValidRange() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addColumn(TEST_FAMILY, TEST_QUALIFIER); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double sum = aClient.sum(TEST_TABLE, ci, scan); + assertEquals(190.00, sum, 0.00); + } + + /** + * @throws Throwable + */ + @Test(timeout = 300000) + public void testSumWithValidRange2() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addColumn(TEST_FAMILY, TEST_QUALIFIER); + scan.setStartRow(ROWS[5]); + scan.setStopRow(ROWS[15]); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double sum = aClient.sum(TEST_TABLE, ci, scan); + assertEquals(95.00, sum, 0.00); + } + + @Test(timeout = 300000) + public void testSumWithValidRangeWithNoCQ() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addFamily(TEST_FAMILY); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double sum = aClient.sum(TEST_TABLE, ci, scan); + assertEquals(209.00, sum, 0.00); // 190 + 19 + } + + @Test(timeout = 300000) + public void testSumWithValidRange2WithNoCQ() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addFamily(TEST_FAMILY); + scan.setStartRow(ROWS[6]); + scan.setStopRow(ROWS[7]); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double sum = aClient.sum(TEST_TABLE, ci, scan); + assertEquals(6.60, sum, 0.00); // 6 + 60 + } + + @Test(timeout = 300000) + public void testSumWithValidRangeWithNullCF() { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.setStartRow(ROWS[6]); + scan.setStopRow(ROWS[7]); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + Double sum = null; + try { + sum = aClient.sum(TEST_TABLE, ci, scan); + } catch (Throwable e) { + } + assertEquals(null, sum);// CP will throw an IOException about the + // null column family, and max will be set to 0 + } + + @Test(timeout = 300000) + public void testSumWithInvalidRange() { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addFamily(TEST_FAMILY); + scan.setStartRow(ROWS[6]); + scan.setStopRow(ROWS[2]); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + Double sum = null; + try { + sum = aClient.sum(TEST_TABLE, ci, scan); + } catch (Throwable e) { + } + assertEquals(null, sum);// control should go to the catch block + } + + @Test(timeout = 300000) + public void testSumWithFilter() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Filter f = new PrefixFilter(Bytes.toBytes("foo:bar")); + Scan scan = new Scan(); + scan.addFamily(TEST_FAMILY); + scan.setFilter(f); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + Double sum = null; + sum = aClient.sum(TEST_TABLE, ci, scan); + assertEquals(null, sum); + } + + /** + * ****************************** Test Cases for Avg ************** + */ + /** + * @throws Throwable + */ + @Test(timeout = 300000) + public void testAvgWithValidRange() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addColumn(TEST_FAMILY, TEST_QUALIFIER); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double avg = aClient.avg(TEST_TABLE, ci, scan); + assertEquals(9.5, avg, 0); + } + + /** + * @throws Throwable + */ + @Test(timeout = 300000) + public void testAvgWithValidRange2() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addColumn(TEST_FAMILY, TEST_QUALIFIER); + scan.setStartRow(ROWS[5]); + scan.setStopRow(ROWS[15]); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double avg = aClient.avg(TEST_TABLE, ci, scan); + assertEquals(9.5, avg, 0); + } + + @Test(timeout = 300000) + public void testAvgWithValidRangeWithNoCQ() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addFamily(TEST_FAMILY); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double avg = aClient.avg(TEST_TABLE, ci, scan); + assertEquals(10.45, avg, 0.01); + } + + @Test(timeout = 300000) + public void testAvgWithValidRange2WithNoCQ() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addFamily(TEST_FAMILY); + scan.setStartRow(ROWS[6]); + scan.setStopRow(ROWS[7]); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double avg = aClient.avg(TEST_TABLE, ci, scan); + assertEquals(6 + 0.60, avg, 0); + } + + @Test(timeout = 300000) + public void testAvgWithValidRangeWithNullCF() { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + Double avg = null; + try { + avg = aClient.avg(TEST_TABLE, ci, scan); + } catch (Throwable e) { + } + assertEquals(null, avg);// CP will throw an IOException about the + // null column family, and max will be set to 0 + } + + @Test(timeout = 300000) + public void testAvgWithInvalidRange() { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addColumn(TEST_FAMILY, TEST_QUALIFIER); + scan.setStartRow(ROWS[5]); + scan.setStopRow(ROWS[1]); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + Double avg = null; + try { + avg = aClient.avg(TEST_TABLE, ci, scan); + } catch (Throwable e) { + } + assertEquals(null, avg);// control should go to the catch block + } + + @Test(timeout = 300000) + public void testAvgWithFilter() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addColumn(TEST_FAMILY, TEST_QUALIFIER); + Filter f = new PrefixFilter(Bytes.toBytes("foo:bar")); + scan.setFilter(f); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + Double avg = null; + avg = aClient.avg(TEST_TABLE, ci, scan); + assertEquals(Double.NaN, avg, 0); + } + + /** + * ****************** Test cases for STD ********************** + */ + /** + * @throws Throwable + */ + @Test(timeout = 300000) + public void testStdWithValidRange() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addColumn(TEST_FAMILY, TEST_QUALIFIER); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double std = aClient.std(TEST_TABLE, ci, scan); + assertEquals(5.766, std, 0.05d); + } + + /** + * need to change this + * @throws Throwable + */ + @Test(timeout = 300000) + public void testStdWithValidRange2() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addColumn(TEST_FAMILY, TEST_QUALIFIER); + scan.setStartRow(ROWS[5]); + scan.setStopRow(ROWS[15]); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double std = aClient.std(TEST_TABLE, ci, scan); + assertEquals(2.87, std, 0.05d); + } + + /** + * need to change this + * @throws Throwable + */ + @Test(timeout = 300000) + public void testStdWithValidRangeWithNoCQ() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addFamily(TEST_FAMILY); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double std = aClient.std(TEST_TABLE, ci, scan); + assertEquals(6.342, std, 0.05d); + } + + @Test(timeout = 300000) + public void testStdWithValidRange2WithNoCQ() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addFamily(TEST_FAMILY); + scan.setStartRow(ROWS[6]); + scan.setStopRow(ROWS[7]); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + double std = aClient.std(TEST_TABLE, ci, scan); + System.out.println("std is:" + std); + assertEquals(0, std, 0.05d); + } + + @Test(timeout = 300000) + public void testStdWithValidRangeWithNullCF() { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.setStartRow(ROWS[6]); + scan.setStopRow(ROWS[17]); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + Double std = null; + try { + std = aClient.std(TEST_TABLE, ci, scan); + } catch (Throwable e) { + } + assertEquals(null, std);// CP will throw an IOException about the + // null column family, and max will be set to 0 + } + + @Test + public void testStdWithInvalidRange() { + AggregationClient aClient = new AggregationClient(conf); + Scan scan = new Scan(); + scan.addFamily(TEST_FAMILY); + scan.setStartRow(ROWS[6]); + scan.setStopRow(ROWS[1]); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + Double std = null; + try { + std = aClient.std(TEST_TABLE, ci, scan); + } catch (Throwable e) { + } + assertEquals(null, std);// control should go to the catch block + } + + @Test(timeout = 300000) + public void testStdWithFilter() throws Throwable { + AggregationClient aClient = new AggregationClient(conf); + Filter f = new PrefixFilter(Bytes.toBytes("foo:bar")); + Scan scan = new Scan(); + scan.addFamily(TEST_FAMILY); + scan.setFilter(f); + final ColumnInterpreter ci = + new DoubleColumnInterpreter(); + Double std = null; + std = aClient.std(TEST_TABLE, ci, scan); + assertEquals(Double.NaN, std, 0); + } +} -- 1.7.4.4 From 4a601689277410cd71805b64fcfe68daca63a75d Mon Sep 17 00:00:00 2001 From: Julian Wissmann Date: Fri, 14 Mar 2014 17:03:48 +0100 Subject: [PATCH 2/2] recompiled proto with protoc 2.5.0 --- .../hbase/protobuf/generated/HBaseProtos.java | 9227 ++++++++++++++------ 1 files changed, 6459 insertions(+), 2768 deletions(-) diff --git a/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.java b/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.java index cede9d4..238db31 100644 --- a/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.java +++ b/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.java @@ -8,28 +8,77 @@ public final class HBaseProtos { public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } + /** + * Protobuf enum {@code CompareType} + * + *
+   * Comparison operators 
+   * 
+ */ public enum CompareType implements com.google.protobuf.ProtocolMessageEnum { + /** + * LESS = 0; + */ LESS(0, 0), + /** + * LESS_OR_EQUAL = 1; + */ LESS_OR_EQUAL(1, 1), + /** + * EQUAL = 2; + */ EQUAL(2, 2), + /** + * NOT_EQUAL = 3; + */ NOT_EQUAL(3, 3), + /** + * GREATER_OR_EQUAL = 4; + */ GREATER_OR_EQUAL(4, 4), + /** + * GREATER = 5; + */ GREATER(5, 5), + /** + * NO_OP = 6; + */ NO_OP(6, 6), ; - + + /** + * LESS = 0; + */ public static final int LESS_VALUE = 0; + /** + * LESS_OR_EQUAL = 1; + */ public static final int LESS_OR_EQUAL_VALUE = 1; + /** + * EQUAL = 2; + */ public static final int EQUAL_VALUE = 2; + /** + * NOT_EQUAL = 3; + */ public static final int NOT_EQUAL_VALUE = 3; + /** + * GREATER_OR_EQUAL = 4; + */ public static final int GREATER_OR_EQUAL_VALUE = 4; + /** + * GREATER = 5; + */ public static final int GREATER_VALUE = 5; + /** + * NO_OP = 6; + */ public static final int NO_OP_VALUE = 6; - - + + public final int getNumber() { return value; } - + public static CompareType valueOf(int value) { switch (value) { case 0: return LESS; @@ -42,7 +91,7 @@ public final class HBaseProtos { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; @@ -54,7 +103,7 @@ public final class HBaseProtos { return CompareType.valueOf(number); } }; - + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); @@ -67,11 +116,9 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.getDescriptor().getEnumTypes().get(0); } - - private static final CompareType[] VALUES = { - LESS, LESS_OR_EQUAL, EQUAL, NOT_EQUAL, GREATER_OR_EQUAL, GREATER, NO_OP, - }; - + + private static final CompareType[] VALUES = values(); + public static CompareType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { @@ -80,78 +127,179 @@ public final class HBaseProtos { } return VALUES[desc.getIndex()]; } - + private final int index; private final int value; - + private CompareType(int index, int value) { this.index = index; this.value = value; } - + // @@protoc_insertion_point(enum_scope:CompareType) } - + public interface TableNameOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required bytes namespace = 1; + /** + * required bytes namespace = 1; + */ boolean hasNamespace(); + /** + * required bytes namespace = 1; + */ com.google.protobuf.ByteString getNamespace(); - + // required bytes qualifier = 2; + /** + * required bytes qualifier = 2; + */ boolean hasQualifier(); + /** + * required bytes qualifier = 2; + */ com.google.protobuf.ByteString getQualifier(); } + /** + * Protobuf type {@code TableName} + * + *
+   **
+   * Table Name
+   * 
+ */ public static final class TableName extends com.google.protobuf.GeneratedMessage implements TableNameOrBuilder { // Use TableName.newBuilder() to construct. - private TableName(Builder builder) { + private TableName(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private TableName(boolean noInit) {} - + private TableName(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final TableName defaultInstance; public static TableName getDefaultInstance() { return defaultInstance; } - + public TableName getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TableName( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + namespace_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + qualifier_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 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_TableName_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder.class); } - + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public TableName parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TableName(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + private int bitField0_; // required bytes namespace = 1; public static final int NAMESPACE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString namespace_; + /** + * required bytes namespace = 1; + */ public boolean hasNamespace() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required bytes namespace = 1; + */ public com.google.protobuf.ByteString getNamespace() { return namespace_; } - + // required bytes qualifier = 2; public static final int QUALIFIER_FIELD_NUMBER = 2; private com.google.protobuf.ByteString qualifier_; + /** + * required bytes qualifier = 2; + */ public boolean hasQualifier() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required bytes qualifier = 2; + */ public com.google.protobuf.ByteString getQualifier() { return qualifier_; } - + private void initFields() { namespace_ = com.google.protobuf.ByteString.EMPTY; qualifier_ = com.google.protobuf.ByteString.EMPTY; @@ -160,7 +308,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasNamespace()) { memoizedIsInitialized = 0; return false; @@ -172,7 +320,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -184,12 +332,12 @@ public final class HBaseProtos { } 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 @@ -203,14 +351,14 @@ public final class HBaseProtos { 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) { @@ -220,7 +368,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName) obj; - + boolean result = true; result = result && (hasNamespace() == other.hasNamespace()); if (hasNamespace()) { @@ -236,9 +384,13 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasNamespace()) { @@ -250,89 +402,84 @@ public final class HBaseProtos { hash = (53 * hash) + getQualifier().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + 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(); + return PARSER.parseFrom(data); } 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(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } 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(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } 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(); + return PARSER.parseFrom(input, extensionRegistry); } 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)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } 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(); + return PARSER.parseFrom(input); } 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 { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code TableName} + * + *
+     **
+     * Table Name
+     * 
+ */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder { @@ -340,18 +487,21 @@ public final class HBaseProtos { getDescriptor() { 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_TableName_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder.class); } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -362,7 +512,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); namespace_ = com.google.protobuf.ByteString.EMPTY; @@ -371,20 +521,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDescriptor(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableName_descriptor; } - + 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.TableName build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName result = buildPartial(); if (!result.isInitialized()) { @@ -392,17 +542,7 @@ public final class HBaseProtos { } return result; } - - private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + 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_; @@ -419,7 +559,7 @@ public final class HBaseProtos { 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); @@ -428,7 +568,7 @@ public final class HBaseProtos { return this; } } - + 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()) { @@ -440,7 +580,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasNamespace()) { @@ -452,54 +592,43 @@ public final class HBaseProtos { } 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; - namespace_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - qualifier_ = input.readBytes(); - break; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required bytes namespace = 1; private com.google.protobuf.ByteString namespace_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes namespace = 1; + */ public boolean hasNamespace() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required bytes namespace = 1; + */ public com.google.protobuf.ByteString getNamespace() { return namespace_; } + /** + * required bytes namespace = 1; + */ public Builder setNamespace(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -509,21 +638,33 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * required bytes namespace = 1; + */ public Builder clearNamespace() { bitField0_ = (bitField0_ & ~0x00000001); namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } - + // required bytes qualifier = 2; private com.google.protobuf.ByteString qualifier_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes qualifier = 2; + */ public boolean hasQualifier() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required bytes qualifier = 2; + */ public com.google.protobuf.ByteString getQualifier() { return qualifier_; } + /** + * required bytes qualifier = 2; + */ public Builder setQualifier(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -533,167 +674,392 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * required bytes qualifier = 2; + */ 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; + /** + * optional .TableName table_name = 1; + */ boolean hasTableName(); + /** + * optional .TableName table_name = 1; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableName(); + /** + * optional .TableName table_name = 1; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableNameOrBuilder(); - + // repeated .BytesBytesPair attributes = 2; + /** + * repeated .BytesBytesPair attributes = 2; + */ java.util.List getAttributesList(); + /** + * repeated .BytesBytesPair attributes = 2; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair getAttributes(int index); + /** + * repeated .BytesBytesPair attributes = 2; + */ int getAttributesCount(); + /** + * repeated .BytesBytesPair attributes = 2; + */ java.util.List getAttributesOrBuilderList(); + /** + * repeated .BytesBytesPair attributes = 2; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder getAttributesOrBuilder( int index); - + // repeated .ColumnFamilySchema column_families = 3; + /** + * repeated .ColumnFamilySchema column_families = 3; + */ java.util.List getColumnFamiliesList(); + /** + * repeated .ColumnFamilySchema column_families = 3; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema getColumnFamilies(int index); + /** + * repeated .ColumnFamilySchema column_families = 3; + */ int getColumnFamiliesCount(); + /** + * repeated .ColumnFamilySchema column_families = 3; + */ java.util.List getColumnFamiliesOrBuilderList(); + /** + * repeated .ColumnFamilySchema column_families = 3; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchemaOrBuilder getColumnFamiliesOrBuilder( int index); - + // repeated .NameStringPair configuration = 4; + /** + * repeated .NameStringPair configuration = 4; + */ java.util.List getConfigurationList(); + /** + * repeated .NameStringPair configuration = 4; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index); + /** + * repeated .NameStringPair configuration = 4; + */ int getConfigurationCount(); + /** + * repeated .NameStringPair configuration = 4; + */ java.util.List getConfigurationOrBuilderList(); + /** + * repeated .NameStringPair configuration = 4; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder( int index); } + /** + * Protobuf type {@code TableSchema} + * + *
+   **
+   * Table Schema
+   * Inspired by the rest TableSchema
+   * 
+ */ public static final class TableSchema extends com.google.protobuf.GeneratedMessage implements TableSchemaOrBuilder { // Use TableSchema.newBuilder() to construct. - private TableSchema(Builder builder) { + private TableSchema(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private TableSchema(boolean noInit) {} - + private TableSchema(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final TableSchema defaultInstance; public static TableSchema getDefaultInstance() { return defaultInstance; } - + public TableSchema getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TableSchema( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = tableName_.toBuilder(); + } + tableName_ = input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tableName_); + tableName_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + attributes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + attributes_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.PARSER, extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + columnFamilies_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + columnFamilies_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.PARSER, extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + configuration_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + configuration_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.PARSER, extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + attributes_ = java.util.Collections.unmodifiableList(attributes_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + columnFamilies_ = java.util.Collections.unmodifiableList(columnFamilies_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + configuration_ = java.util.Collections.unmodifiableList(configuration_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } 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; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public TableSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TableSchema(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + 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_; + /** + * optional .TableName table_name = 1; + */ public boolean hasTableName() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * optional .TableName table_name = 1; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableName() { return tableName_; } + /** + * optional .TableName table_name = 1; + */ 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 attributes_; + /** + * repeated .BytesBytesPair attributes = 2; + */ public java.util.List getAttributesList() { return attributes_; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public java.util.List getAttributesOrBuilderList() { return attributes_; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public int getAttributesCount() { return attributes_.size(); } + /** + * repeated .BytesBytesPair attributes = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair getAttributes(int index) { return attributes_.get(index); } + /** + * repeated .BytesBytesPair attributes = 2; + */ 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 columnFamilies_; + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public java.util.List getColumnFamiliesList() { return columnFamilies_; } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public java.util.List getColumnFamiliesOrBuilderList() { return columnFamilies_; } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public int getColumnFamiliesCount() { return columnFamilies_.size(); } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema getColumnFamilies(int index) { return columnFamilies_.get(index); } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ 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 configuration_; + /** + * repeated .NameStringPair configuration = 4; + */ public java.util.List getConfigurationList() { return configuration_; } + /** + * repeated .NameStringPair configuration = 4; + */ public java.util.List getConfigurationOrBuilderList() { return configuration_; } + /** + * repeated .NameStringPair configuration = 4; + */ public int getConfigurationCount() { return configuration_.size(); } + /** + * repeated .NameStringPair configuration = 4; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index) { return configuration_.get(index); } + /** + * repeated .NameStringPair configuration = 4; + */ 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(); @@ -704,7 +1070,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (hasTableName()) { if (!getTableName().isInitialized()) { memoizedIsInitialized = 0; @@ -732,7 +1098,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -750,12 +1116,12 @@ public final class HBaseProtos { } 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 @@ -777,14 +1143,14 @@ public final class HBaseProtos { 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) { @@ -794,7 +1160,7 @@ public final class HBaseProtos { 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()) { @@ -811,9 +1177,13 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasTableName()) { @@ -833,89 +1203,85 @@ public final class HBaseProtos { hash = (53 * hash) + getConfigurationList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; 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(); + return PARSER.parseFrom(data); } 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(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } 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(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } 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(); + return PARSER.parseFrom(input, extensionRegistry); } 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; - } + return PARSER.parseDelimitedFrom(input); } 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } 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(); + return PARSER.parseFrom(input); } 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(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.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; } + /** + * Protobuf type {@code TableSchema} + * + *
+     **
+     * Table Schema
+     * Inspired by the rest TableSchema
+     * 
+ */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchemaOrBuilder { @@ -923,18 +1289,21 @@ public final class HBaseProtos { 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; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.Builder.class); } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -949,7 +1318,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); if (tableNameBuilder_ == null) { @@ -978,20 +1347,20 @@ public final class HBaseProtos { } 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(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TableSchema_descriptor; } - + 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()) { @@ -999,17 +1368,7 @@ public final class HBaseProtos { } 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_; @@ -1053,7 +1412,7 @@ public final class HBaseProtos { 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); @@ -1062,7 +1421,7 @@ public final class HBaseProtos { 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()) { @@ -1149,7 +1508,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (hasTableName()) { if (!getTableName().isInitialized()) { @@ -1177,70 +1536,39 @@ public final class HBaseProtos { } 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; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - 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_; + /** + * optional .TableName table_name = 1; + */ public boolean hasTableName() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * optional .TableName table_name = 1; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableName() { if (tableNameBuilder_ == null) { return tableName_; @@ -1248,6 +1576,9 @@ public final class HBaseProtos { return tableNameBuilder_.getMessage(); } } + /** + * optional .TableName table_name = 1; + */ public Builder setTableName(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) { if (tableNameBuilder_ == null) { if (value == null) { @@ -1261,6 +1592,9 @@ public final class HBaseProtos { bitField0_ |= 0x00000001; return this; } + /** + * optional .TableName table_name = 1; + */ public Builder setTableName( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder builderForValue) { if (tableNameBuilder_ == null) { @@ -1272,6 +1606,9 @@ public final class HBaseProtos { bitField0_ |= 0x00000001; return this; } + /** + * optional .TableName table_name = 1; + */ public Builder mergeTableName(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) { if (tableNameBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && @@ -1288,6 +1625,9 @@ public final class HBaseProtos { bitField0_ |= 0x00000001; return this; } + /** + * optional .TableName table_name = 1; + */ public Builder clearTableName() { if (tableNameBuilder_ == null) { tableName_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance(); @@ -1298,11 +1638,17 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000001); return this; } + /** + * optional .TableName table_name = 1; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder getTableNameBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTableNameFieldBuilder().getBuilder(); } + /** + * optional .TableName table_name = 1; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableNameOrBuilder() { if (tableNameBuilder_ != null) { return tableNameBuilder_.getMessageOrBuilder(); @@ -1310,6 +1656,9 @@ public final class HBaseProtos { return tableName_; } } + /** + * optional .TableName table_name = 1; + */ 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() { @@ -1323,7 +1672,7 @@ public final class HBaseProtos { } return tableNameBuilder_; } - + // repeated .BytesBytesPair attributes = 2; private java.util.List attributes_ = java.util.Collections.emptyList(); @@ -1333,10 +1682,13 @@ public final class HBaseProtos { 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_; - + + /** + * repeated .BytesBytesPair attributes = 2; + */ public java.util.List getAttributesList() { if (attributesBuilder_ == null) { return java.util.Collections.unmodifiableList(attributes_); @@ -1344,6 +1696,9 @@ public final class HBaseProtos { return attributesBuilder_.getMessageList(); } } + /** + * repeated .BytesBytesPair attributes = 2; + */ public int getAttributesCount() { if (attributesBuilder_ == null) { return attributes_.size(); @@ -1351,6 +1706,9 @@ public final class HBaseProtos { return attributesBuilder_.getCount(); } } + /** + * repeated .BytesBytesPair attributes = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair getAttributes(int index) { if (attributesBuilder_ == null) { return attributes_.get(index); @@ -1358,6 +1716,9 @@ public final class HBaseProtos { return attributesBuilder_.getMessage(index); } } + /** + * repeated .BytesBytesPair attributes = 2; + */ public Builder setAttributes( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair value) { if (attributesBuilder_ == null) { @@ -1372,6 +1733,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public Builder setAttributes( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder builderForValue) { if (attributesBuilder_ == null) { @@ -1383,6 +1747,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public Builder addAttributes(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair value) { if (attributesBuilder_ == null) { if (value == null) { @@ -1396,6 +1763,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public Builder addAttributes( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair value) { if (attributesBuilder_ == null) { @@ -1410,6 +1780,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public Builder addAttributes( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder builderForValue) { if (attributesBuilder_ == null) { @@ -1421,6 +1794,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public Builder addAttributes( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder builderForValue) { if (attributesBuilder_ == null) { @@ -1432,6 +1808,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public Builder addAllAttributes( java.lang.Iterable values) { if (attributesBuilder_ == null) { @@ -1443,6 +1822,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public Builder clearAttributes() { if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); @@ -1453,6 +1835,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public Builder removeAttributes(int index) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); @@ -1463,10 +1848,16 @@ public final class HBaseProtos { } return this; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder getAttributesBuilder( int index) { return getAttributesFieldBuilder().getBuilder(index); } + /** + * repeated .BytesBytesPair attributes = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder getAttributesOrBuilder( int index) { if (attributesBuilder_ == null) { @@ -1474,6 +1865,9 @@ public final class HBaseProtos { return attributesBuilder_.getMessageOrBuilder(index); } } + /** + * repeated .BytesBytesPair attributes = 2; + */ public java.util.List getAttributesOrBuilderList() { if (attributesBuilder_ != null) { @@ -1482,15 +1876,24 @@ public final class HBaseProtos { return java.util.Collections.unmodifiableList(attributes_); } } + /** + * repeated .BytesBytesPair attributes = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder addAttributesBuilder() { return getAttributesFieldBuilder().addBuilder( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.getDefaultInstance()); } + /** + * repeated .BytesBytesPair attributes = 2; + */ 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()); } + /** + * repeated .BytesBytesPair attributes = 2; + */ public java.util.List getAttributesBuilderList() { return getAttributesFieldBuilder().getBuilderList(); @@ -1509,7 +1912,7 @@ public final class HBaseProtos { } return attributesBuilder_; } - + // repeated .ColumnFamilySchema column_families = 3; private java.util.List columnFamilies_ = java.util.Collections.emptyList(); @@ -1519,10 +1922,13 @@ public final class HBaseProtos { 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_; - + + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public java.util.List getColumnFamiliesList() { if (columnFamiliesBuilder_ == null) { return java.util.Collections.unmodifiableList(columnFamilies_); @@ -1530,6 +1936,9 @@ public final class HBaseProtos { return columnFamiliesBuilder_.getMessageList(); } } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public int getColumnFamiliesCount() { if (columnFamiliesBuilder_ == null) { return columnFamilies_.size(); @@ -1537,6 +1946,9 @@ public final class HBaseProtos { return columnFamiliesBuilder_.getCount(); } } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema getColumnFamilies(int index) { if (columnFamiliesBuilder_ == null) { return columnFamilies_.get(index); @@ -1544,6 +1956,9 @@ public final class HBaseProtos { return columnFamiliesBuilder_.getMessage(index); } } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public Builder setColumnFamilies( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema value) { if (columnFamiliesBuilder_ == null) { @@ -1558,6 +1973,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public Builder setColumnFamilies( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder builderForValue) { if (columnFamiliesBuilder_ == null) { @@ -1569,6 +1987,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public Builder addColumnFamilies(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema value) { if (columnFamiliesBuilder_ == null) { if (value == null) { @@ -1582,6 +2003,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public Builder addColumnFamilies( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema value) { if (columnFamiliesBuilder_ == null) { @@ -1596,6 +2020,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public Builder addColumnFamilies( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder builderForValue) { if (columnFamiliesBuilder_ == null) { @@ -1607,6 +2034,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public Builder addColumnFamilies( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder builderForValue) { if (columnFamiliesBuilder_ == null) { @@ -1618,6 +2048,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public Builder addAllColumnFamilies( java.lang.Iterable values) { if (columnFamiliesBuilder_ == null) { @@ -1629,6 +2062,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public Builder clearColumnFamilies() { if (columnFamiliesBuilder_ == null) { columnFamilies_ = java.util.Collections.emptyList(); @@ -1639,6 +2075,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public Builder removeColumnFamilies(int index) { if (columnFamiliesBuilder_ == null) { ensureColumnFamiliesIsMutable(); @@ -1649,10 +2088,16 @@ public final class HBaseProtos { } return this; } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder getColumnFamiliesBuilder( int index) { return getColumnFamiliesFieldBuilder().getBuilder(index); } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchemaOrBuilder getColumnFamiliesOrBuilder( int index) { if (columnFamiliesBuilder_ == null) { @@ -1660,6 +2105,9 @@ public final class HBaseProtos { return columnFamiliesBuilder_.getMessageOrBuilder(index); } } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public java.util.List getColumnFamiliesOrBuilderList() { if (columnFamiliesBuilder_ != null) { @@ -1668,15 +2116,24 @@ public final class HBaseProtos { return java.util.Collections.unmodifiableList(columnFamilies_); } } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder addColumnFamiliesBuilder() { return getColumnFamiliesFieldBuilder().addBuilder( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.getDefaultInstance()); } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ 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()); } + /** + * repeated .ColumnFamilySchema column_families = 3; + */ public java.util.List getColumnFamiliesBuilderList() { return getColumnFamiliesFieldBuilder().getBuilderList(); @@ -1695,7 +2152,7 @@ public final class HBaseProtos { } return columnFamiliesBuilder_; } - + // repeated .NameStringPair configuration = 4; private java.util.List configuration_ = java.util.Collections.emptyList(); @@ -1705,10 +2162,13 @@ public final class HBaseProtos { bitField0_ |= 0x00000008; } } - + private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder> configurationBuilder_; - + + /** + * repeated .NameStringPair configuration = 4; + */ public java.util.List getConfigurationList() { if (configurationBuilder_ == null) { return java.util.Collections.unmodifiableList(configuration_); @@ -1716,6 +2176,9 @@ public final class HBaseProtos { return configurationBuilder_.getMessageList(); } } + /** + * repeated .NameStringPair configuration = 4; + */ public int getConfigurationCount() { if (configurationBuilder_ == null) { return configuration_.size(); @@ -1723,6 +2186,9 @@ public final class HBaseProtos { return configurationBuilder_.getCount(); } } + /** + * repeated .NameStringPair configuration = 4; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index) { if (configurationBuilder_ == null) { return configuration_.get(index); @@ -1730,6 +2196,9 @@ public final class HBaseProtos { return configurationBuilder_.getMessage(index); } } + /** + * repeated .NameStringPair configuration = 4; + */ public Builder setConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { @@ -1744,6 +2213,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 4; + */ public Builder setConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -1755,6 +2227,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 4; + */ public Builder addConfiguration(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { if (value == null) { @@ -1768,6 +2243,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 4; + */ public Builder addConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { @@ -1782,6 +2260,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 4; + */ public Builder addConfiguration( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -1793,6 +2274,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 4; + */ public Builder addConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -1804,6 +2288,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 4; + */ public Builder addAllConfiguration( java.lang.Iterable values) { if (configurationBuilder_ == null) { @@ -1815,6 +2302,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 4; + */ public Builder clearConfiguration() { if (configurationBuilder_ == null) { configuration_ = java.util.Collections.emptyList(); @@ -1825,6 +2315,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 4; + */ public Builder removeConfiguration(int index) { if (configurationBuilder_ == null) { ensureConfigurationIsMutable(); @@ -1835,10 +2328,16 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 4; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder getConfigurationBuilder( int index) { return getConfigurationFieldBuilder().getBuilder(index); } + /** + * repeated .NameStringPair configuration = 4; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder( int index) { if (configurationBuilder_ == null) { @@ -1846,6 +2345,9 @@ public final class HBaseProtos { return configurationBuilder_.getMessageOrBuilder(index); } } + /** + * repeated .NameStringPair configuration = 4; + */ public java.util.List getConfigurationOrBuilderList() { if (configurationBuilder_ != null) { @@ -1854,15 +2356,24 @@ public final class HBaseProtos { return java.util.Collections.unmodifiableList(configuration_); } } + /** + * repeated .NameStringPair configuration = 4; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder addConfigurationBuilder() { return getConfigurationFieldBuilder().addBuilder( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDefaultInstance()); } + /** + * repeated .NameStringPair configuration = 4; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder addConfigurationBuilder( int index) { return getConfigurationFieldBuilder().addBuilder( index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDefaultInstance()); } + /** + * repeated .NameStringPair configuration = 4; + */ public java.util.List getConfigurationBuilderList() { return getConfigurationFieldBuilder().getBuilderList(); @@ -1881,126 +2392,293 @@ public final class HBaseProtos { } return configurationBuilder_; } - + // @@protoc_insertion_point(builder_scope:TableSchema) } - + static { defaultInstance = new TableSchema(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:TableSchema) } - + public interface ColumnFamilySchemaOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required bytes name = 1; + /** + * required bytes name = 1; + */ boolean hasName(); + /** + * required bytes name = 1; + */ com.google.protobuf.ByteString getName(); - + // repeated .BytesBytesPair attributes = 2; + /** + * repeated .BytesBytesPair attributes = 2; + */ java.util.List getAttributesList(); + /** + * repeated .BytesBytesPair attributes = 2; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair getAttributes(int index); + /** + * repeated .BytesBytesPair attributes = 2; + */ int getAttributesCount(); + /** + * repeated .BytesBytesPair attributes = 2; + */ java.util.List getAttributesOrBuilderList(); + /** + * repeated .BytesBytesPair attributes = 2; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder getAttributesOrBuilder( int index); - + // repeated .NameStringPair configuration = 3; + /** + * repeated .NameStringPair configuration = 3; + */ java.util.List getConfigurationList(); + /** + * repeated .NameStringPair configuration = 3; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index); + /** + * repeated .NameStringPair configuration = 3; + */ int getConfigurationCount(); + /** + * repeated .NameStringPair configuration = 3; + */ java.util.List getConfigurationOrBuilderList(); + /** + * repeated .NameStringPair configuration = 3; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder( int index); } + /** + * Protobuf type {@code ColumnFamilySchema} + * + *
+   **
+   * Column Family Schema
+   * Inspired by the rest ColumSchemaMessage
+   * 
+ */ public static final class ColumnFamilySchema extends com.google.protobuf.GeneratedMessage implements ColumnFamilySchemaOrBuilder { // Use ColumnFamilySchema.newBuilder() to construct. - private ColumnFamilySchema(Builder builder) { + private ColumnFamilySchema(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private ColumnFamilySchema(boolean noInit) {} - + private ColumnFamilySchema(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final ColumnFamilySchema defaultInstance; public static ColumnFamilySchema getDefaultInstance() { return defaultInstance; } - + public ColumnFamilySchema getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ColumnFamilySchema( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + name_ = input.readBytes(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + attributes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + attributes_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.PARSER, extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + configuration_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + configuration_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.PARSER, extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + attributes_ = java.util.Collections.unmodifiableList(attributes_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + configuration_ = java.util.Collections.unmodifiableList(configuration_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ColumnFamilySchema_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ColumnFamilySchema_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ColumnFamilySchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public ColumnFamilySchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ColumnFamilySchema(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // required bytes name = 1; public static final int NAME_FIELD_NUMBER = 1; private com.google.protobuf.ByteString name_; + /** + * required bytes name = 1; + */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required bytes name = 1; + */ public com.google.protobuf.ByteString getName() { return name_; } - + // repeated .BytesBytesPair attributes = 2; public static final int ATTRIBUTES_FIELD_NUMBER = 2; private java.util.List attributes_; + /** + * repeated .BytesBytesPair attributes = 2; + */ public java.util.List getAttributesList() { return attributes_; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public java.util.List getAttributesOrBuilderList() { return attributes_; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public int getAttributesCount() { return attributes_.size(); } + /** + * repeated .BytesBytesPair attributes = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair getAttributes(int index) { return attributes_.get(index); } + /** + * repeated .BytesBytesPair attributes = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder getAttributesOrBuilder( int index) { return attributes_.get(index); } - + // repeated .NameStringPair configuration = 3; public static final int CONFIGURATION_FIELD_NUMBER = 3; private java.util.List configuration_; + /** + * repeated .NameStringPair configuration = 3; + */ public java.util.List getConfigurationList() { return configuration_; } + /** + * repeated .NameStringPair configuration = 3; + */ public java.util.List getConfigurationOrBuilderList() { return configuration_; } + /** + * repeated .NameStringPair configuration = 3; + */ public int getConfigurationCount() { return configuration_.size(); } + /** + * repeated .NameStringPair configuration = 3; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index) { return configuration_.get(index); } + /** + * repeated .NameStringPair configuration = 3; + */ 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(); @@ -2010,7 +2688,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasName()) { memoizedIsInitialized = 0; return false; @@ -2030,7 +2708,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -2045,12 +2723,12 @@ public final class HBaseProtos { } 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 @@ -2068,14 +2746,14 @@ public final class HBaseProtos { 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) { @@ -2085,7 +2763,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema) obj; - + boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { @@ -2100,9 +2778,13 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { @@ -2118,89 +2800,85 @@ public final class HBaseProtos { hash = (53 * hash) + getConfigurationList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code ColumnFamilySchema} + * + *
+     **
+     * Column Family Schema
+     * Inspired by the rest ColumSchemaMessage
+     * 
+ */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchemaOrBuilder { @@ -2208,18 +2886,21 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ColumnFamilySchema_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ColumnFamilySchema_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ColumnFamilySchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder.class); } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -2232,7 +2913,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); name_ = com.google.protobuf.ByteString.EMPTY; @@ -2251,20 +2932,20 @@ public final class HBaseProtos { } return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.getDescriptor(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ColumnFamilySchema_descriptor; } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema result = buildPartial(); if (!result.isInitialized()) { @@ -2272,17 +2953,7 @@ public final class HBaseProtos { } return result; } - - private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema(this); int from_bitField0_ = bitField0_; @@ -2313,7 +2984,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema)other); @@ -2322,7 +2993,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.getDefaultInstance()) return this; if (other.hasName()) { @@ -2383,7 +3054,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasName()) { @@ -2403,61 +3074,43 @@ public final class HBaseProtos { } 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.NameStringPair.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addConfiguration(subBuilder.buildPartial()); - break; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required bytes name = 1; private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes name = 1; + */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required bytes name = 1; + */ public com.google.protobuf.ByteString getName() { return name_; } + /** + * required bytes name = 1; + */ public Builder setName(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -2467,13 +3120,16 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * required bytes name = 1; + */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } - + // repeated .BytesBytesPair attributes = 2; private java.util.List attributes_ = java.util.Collections.emptyList(); @@ -2483,10 +3139,13 @@ public final class HBaseProtos { 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_; - + + /** + * repeated .BytesBytesPair attributes = 2; + */ public java.util.List getAttributesList() { if (attributesBuilder_ == null) { return java.util.Collections.unmodifiableList(attributes_); @@ -2494,6 +3153,9 @@ public final class HBaseProtos { return attributesBuilder_.getMessageList(); } } + /** + * repeated .BytesBytesPair attributes = 2; + */ public int getAttributesCount() { if (attributesBuilder_ == null) { return attributes_.size(); @@ -2501,6 +3163,9 @@ public final class HBaseProtos { return attributesBuilder_.getCount(); } } + /** + * repeated .BytesBytesPair attributes = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair getAttributes(int index) { if (attributesBuilder_ == null) { return attributes_.get(index); @@ -2508,6 +3173,9 @@ public final class HBaseProtos { return attributesBuilder_.getMessage(index); } } + /** + * repeated .BytesBytesPair attributes = 2; + */ public Builder setAttributes( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair value) { if (attributesBuilder_ == null) { @@ -2522,6 +3190,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public Builder setAttributes( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder builderForValue) { if (attributesBuilder_ == null) { @@ -2533,6 +3204,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public Builder addAttributes(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair value) { if (attributesBuilder_ == null) { if (value == null) { @@ -2546,6 +3220,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public Builder addAttributes( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair value) { if (attributesBuilder_ == null) { @@ -2560,6 +3237,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public Builder addAttributes( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder builderForValue) { if (attributesBuilder_ == null) { @@ -2571,6 +3251,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public Builder addAttributes( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder builderForValue) { if (attributesBuilder_ == null) { @@ -2582,6 +3265,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public Builder addAllAttributes( java.lang.Iterable values) { if (attributesBuilder_ == null) { @@ -2593,6 +3279,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public Builder clearAttributes() { if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); @@ -2603,6 +3292,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public Builder removeAttributes(int index) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); @@ -2613,10 +3305,16 @@ public final class HBaseProtos { } return this; } + /** + * repeated .BytesBytesPair attributes = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder getAttributesBuilder( int index) { return getAttributesFieldBuilder().getBuilder(index); } + /** + * repeated .BytesBytesPair attributes = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder getAttributesOrBuilder( int index) { if (attributesBuilder_ == null) { @@ -2624,6 +3322,9 @@ public final class HBaseProtos { return attributesBuilder_.getMessageOrBuilder(index); } } + /** + * repeated .BytesBytesPair attributes = 2; + */ public java.util.List getAttributesOrBuilderList() { if (attributesBuilder_ != null) { @@ -2632,15 +3333,24 @@ public final class HBaseProtos { return java.util.Collections.unmodifiableList(attributes_); } } + /** + * repeated .BytesBytesPair attributes = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder addAttributesBuilder() { return getAttributesFieldBuilder().addBuilder( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.getDefaultInstance()); } + /** + * repeated .BytesBytesPair attributes = 2; + */ 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()); } + /** + * repeated .BytesBytesPair attributes = 2; + */ public java.util.List getAttributesBuilderList() { return getAttributesFieldBuilder().getBuilderList(); @@ -2659,7 +3369,7 @@ public final class HBaseProtos { } return attributesBuilder_; } - + // repeated .NameStringPair configuration = 3; private java.util.List configuration_ = java.util.Collections.emptyList(); @@ -2669,10 +3379,13 @@ public final class HBaseProtos { bitField0_ |= 0x00000004; } } - + private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder> configurationBuilder_; - + + /** + * repeated .NameStringPair configuration = 3; + */ public java.util.List getConfigurationList() { if (configurationBuilder_ == null) { return java.util.Collections.unmodifiableList(configuration_); @@ -2680,6 +3393,9 @@ public final class HBaseProtos { return configurationBuilder_.getMessageList(); } } + /** + * repeated .NameStringPair configuration = 3; + */ public int getConfigurationCount() { if (configurationBuilder_ == null) { return configuration_.size(); @@ -2687,6 +3403,9 @@ public final class HBaseProtos { return configurationBuilder_.getCount(); } } + /** + * repeated .NameStringPair configuration = 3; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index) { if (configurationBuilder_ == null) { return configuration_.get(index); @@ -2694,6 +3413,9 @@ public final class HBaseProtos { return configurationBuilder_.getMessage(index); } } + /** + * repeated .NameStringPair configuration = 3; + */ public Builder setConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { @@ -2708,6 +3430,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 3; + */ public Builder setConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -2719,6 +3444,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 3; + */ public Builder addConfiguration(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { if (value == null) { @@ -2732,6 +3460,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 3; + */ public Builder addConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { @@ -2746,6 +3477,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 3; + */ public Builder addConfiguration( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -2757,6 +3491,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 3; + */ public Builder addConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -2768,6 +3505,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 3; + */ public Builder addAllConfiguration( java.lang.Iterable values) { if (configurationBuilder_ == null) { @@ -2779,6 +3519,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 3; + */ public Builder clearConfiguration() { if (configurationBuilder_ == null) { configuration_ = java.util.Collections.emptyList(); @@ -2789,6 +3532,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 3; + */ public Builder removeConfiguration(int index) { if (configurationBuilder_ == null) { ensureConfigurationIsMutable(); @@ -2799,10 +3545,16 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 3; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder getConfigurationBuilder( int index) { return getConfigurationFieldBuilder().getBuilder(index); } + /** + * repeated .NameStringPair configuration = 3; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder( int index) { if (configurationBuilder_ == null) { @@ -2810,6 +3562,9 @@ public final class HBaseProtos { return configurationBuilder_.getMessageOrBuilder(index); } } + /** + * repeated .NameStringPair configuration = 3; + */ public java.util.List getConfigurationOrBuilderList() { if (configurationBuilder_ != null) { @@ -2818,15 +3573,24 @@ public final class HBaseProtos { return java.util.Collections.unmodifiableList(configuration_); } } + /** + * repeated .NameStringPair configuration = 3; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder addConfigurationBuilder() { return getConfigurationFieldBuilder().addBuilder( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDefaultInstance()); } + /** + * repeated .NameStringPair configuration = 3; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder addConfigurationBuilder( int index) { return getConfigurationFieldBuilder().addBuilder( index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDefaultInstance()); } + /** + * repeated .NameStringPair configuration = 3; + */ public java.util.List getConfigurationBuilderList() { return getConfigurationFieldBuilder().getBuilderList(); @@ -2845,138 +3609,321 @@ public final class HBaseProtos { } return configurationBuilder_; } - + // @@protoc_insertion_point(builder_scope:ColumnFamilySchema) } - + static { defaultInstance = new ColumnFamilySchema(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:ColumnFamilySchema) } - + public interface RegionInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required uint64 region_id = 1; + /** + * required uint64 region_id = 1; + */ boolean hasRegionId(); + /** + * required uint64 region_id = 1; + */ long getRegionId(); - + // required .TableName table_name = 2; + /** + * required .TableName table_name = 2; + */ boolean hasTableName(); + /** + * required .TableName table_name = 2; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableName(); + /** + * required .TableName table_name = 2; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableNameOrBuilder(); - + // optional bytes start_key = 3; + /** + * optional bytes start_key = 3; + */ boolean hasStartKey(); + /** + * optional bytes start_key = 3; + */ com.google.protobuf.ByteString getStartKey(); - + // optional bytes end_key = 4; + /** + * optional bytes end_key = 4; + */ boolean hasEndKey(); + /** + * optional bytes end_key = 4; + */ com.google.protobuf.ByteString getEndKey(); - + // optional bool offline = 5; + /** + * optional bool offline = 5; + */ boolean hasOffline(); + /** + * optional bool offline = 5; + */ boolean getOffline(); - + // optional bool split = 6; + /** + * optional bool split = 6; + */ boolean hasSplit(); + /** + * optional bool split = 6; + */ boolean getSplit(); } + /** + * Protobuf type {@code RegionInfo} + * + *
+   **
+   * Protocol buffer version of HRegionInfo.
+   * 
+ */ public static final class RegionInfo extends com.google.protobuf.GeneratedMessage implements RegionInfoOrBuilder { // Use RegionInfo.newBuilder() to construct. - private RegionInfo(Builder builder) { + private RegionInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private RegionInfo(boolean noInit) {} - + private RegionInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final RegionInfo defaultInstance; public static RegionInfo getDefaultInstance() { return defaultInstance; } - + public RegionInfo getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RegionInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + regionId_ = input.readUInt64(); + break; + } + case 18: { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = tableName_.toBuilder(); + } + tableName_ = input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tableName_); + tableName_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + bitField0_ |= 0x00000004; + startKey_ = input.readBytes(); + break; + } + case 34: { + bitField0_ |= 0x00000008; + endKey_ = input.readBytes(); + break; + } + case 40: { + bitField0_ |= 0x00000010; + offline_ = input.readBool(); + break; + } + case 48: { + bitField0_ |= 0x00000020; + split_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionInfo_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionInfo_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public RegionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RegionInfo(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // required uint64 region_id = 1; public static final int REGION_ID_FIELD_NUMBER = 1; private long regionId_; + /** + * required uint64 region_id = 1; + */ public boolean hasRegionId() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required uint64 region_id = 1; + */ public long getRegionId() { return regionId_; } - + // required .TableName table_name = 2; public static final int TABLE_NAME_FIELD_NUMBER = 2; private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName tableName_; + /** + * required .TableName table_name = 2; + */ public boolean hasTableName() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required .TableName table_name = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableName() { return tableName_; } + /** + * required .TableName table_name = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableNameOrBuilder() { return tableName_; } - + // optional bytes start_key = 3; public static final int START_KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString startKey_; + /** + * optional bytes start_key = 3; + */ public boolean hasStartKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * optional bytes start_key = 3; + */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } - + // optional bytes end_key = 4; public static final int END_KEY_FIELD_NUMBER = 4; private com.google.protobuf.ByteString endKey_; + /** + * optional bytes end_key = 4; + */ public boolean hasEndKey() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** + * optional bytes end_key = 4; + */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } - + // optional bool offline = 5; public static final int OFFLINE_FIELD_NUMBER = 5; private boolean offline_; + /** + * optional bool offline = 5; + */ public boolean hasOffline() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** + * optional bool offline = 5; + */ public boolean getOffline() { return offline_; } - + // optional bool split = 6; public static final int SPLIT_FIELD_NUMBER = 6; private boolean split_; + /** + * optional bool split = 6; + */ public boolean hasSplit() { return ((bitField0_ & 0x00000020) == 0x00000020); } + /** + * optional bool split = 6; + */ public boolean getSplit() { return split_; } - + private void initFields() { regionId_ = 0L; tableName_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance(); @@ -2989,7 +3936,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasRegionId()) { memoizedIsInitialized = 0; return false; @@ -3005,7 +3952,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -3029,12 +3976,12 @@ public final class HBaseProtos { } 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 @@ -3064,14 +4011,14 @@ public final class HBaseProtos { 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) { @@ -3081,7 +4028,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo) obj; - + boolean result = true; result = result && (hasRegionId() == other.hasRegionId()); if (hasRegionId()) { @@ -3117,9 +4064,13 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasRegionId()) { @@ -3147,89 +4098,84 @@ public final class HBaseProtos { hash = (53 * hash) + hashBoolean(getSplit()); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code RegionInfo} + * + *
+     **
+     * Protocol buffer version of HRegionInfo.
+     * 
+ */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder { @@ -3237,18 +4183,21 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionInfo_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionInfo_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.Builder.class); } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -3260,7 +4209,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); regionId_ = 0L; @@ -3281,20 +4230,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000020); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.getDescriptor(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionInfo_descriptor; } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo result = buildPartial(); if (!result.isInitialized()) { @@ -3302,17 +4251,7 @@ public final class HBaseProtos { } return result; } - - private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo(this); int from_bitField0_ = bitField0_; @@ -3349,7 +4288,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo)other); @@ -3358,7 +4297,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.getDefaultInstance()) return this; if (other.hasRegionId()) { @@ -3382,7 +4321,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasRegionId()) { @@ -3398,98 +4337,72 @@ public final class HBaseProtos { } 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 8: { - bitField0_ |= 0x00000001; - regionId_ = input.readUInt64(); - break; - } - case 18: { - 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 26: { - bitField0_ |= 0x00000004; - startKey_ = input.readBytes(); - break; - } - case 34: { - bitField0_ |= 0x00000008; - endKey_ = input.readBytes(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - offline_ = input.readBool(); - break; - } - case 48: { - bitField0_ |= 0x00000020; - split_ = input.readBool(); - break; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required uint64 region_id = 1; private long regionId_ ; + /** + * required uint64 region_id = 1; + */ public boolean hasRegionId() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required uint64 region_id = 1; + */ public long getRegionId() { return regionId_; } + /** + * required uint64 region_id = 1; + */ public Builder setRegionId(long value) { bitField0_ |= 0x00000001; regionId_ = value; onChanged(); return this; } + /** + * required uint64 region_id = 1; + */ public Builder clearRegionId() { bitField0_ = (bitField0_ & ~0x00000001); regionId_ = 0L; onChanged(); return this; } - + // required .TableName table_name = 2; 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_; + /** + * required .TableName table_name = 2; + */ public boolean hasTableName() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required .TableName table_name = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableName() { if (tableNameBuilder_ == null) { return tableName_; @@ -3497,6 +4410,9 @@ public final class HBaseProtos { return tableNameBuilder_.getMessage(); } } + /** + * required .TableName table_name = 2; + */ public Builder setTableName(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) { if (tableNameBuilder_ == null) { if (value == null) { @@ -3510,6 +4426,9 @@ public final class HBaseProtos { bitField0_ |= 0x00000002; return this; } + /** + * required .TableName table_name = 2; + */ public Builder setTableName( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder builderForValue) { if (tableNameBuilder_ == null) { @@ -3521,6 +4440,9 @@ public final class HBaseProtos { bitField0_ |= 0x00000002; return this; } + /** + * required .TableName table_name = 2; + */ public Builder mergeTableName(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) { if (tableNameBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && @@ -3537,6 +4459,9 @@ public final class HBaseProtos { bitField0_ |= 0x00000002; return this; } + /** + * required .TableName table_name = 2; + */ public Builder clearTableName() { if (tableNameBuilder_ == null) { tableName_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance(); @@ -3547,11 +4472,17 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000002); return this; } + /** + * required .TableName table_name = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder getTableNameBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTableNameFieldBuilder().getBuilder(); } + /** + * required .TableName table_name = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableNameOrBuilder() { if (tableNameBuilder_ != null) { return tableNameBuilder_.getMessageOrBuilder(); @@ -3559,6 +4490,9 @@ public final class HBaseProtos { return tableName_; } } + /** + * required .TableName table_name = 2; + */ 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() { @@ -3572,15 +4506,24 @@ public final class HBaseProtos { } return tableNameBuilder_; } - + // optional bytes start_key = 3; private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes start_key = 3; + */ public boolean hasStartKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * optional bytes start_key = 3; + */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } + /** + * optional bytes start_key = 3; + */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -3590,21 +4533,33 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * optional bytes start_key = 3; + */ public Builder clearStartKey() { bitField0_ = (bitField0_ & ~0x00000004); startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } - + // optional bytes end_key = 4; private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes end_key = 4; + */ public boolean hasEndKey() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** + * optional bytes end_key = 4; + */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } + /** + * optional bytes end_key = 4; + */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -3614,128 +4569,263 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * optional bytes end_key = 4; + */ public Builder clearEndKey() { bitField0_ = (bitField0_ & ~0x00000008); endKey_ = getDefaultInstance().getEndKey(); onChanged(); return this; } - + // optional bool offline = 5; private boolean offline_ ; + /** + * optional bool offline = 5; + */ public boolean hasOffline() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** + * optional bool offline = 5; + */ public boolean getOffline() { return offline_; } + /** + * optional bool offline = 5; + */ public Builder setOffline(boolean value) { bitField0_ |= 0x00000010; offline_ = value; onChanged(); return this; } + /** + * optional bool offline = 5; + */ public Builder clearOffline() { bitField0_ = (bitField0_ & ~0x00000010); offline_ = false; onChanged(); return this; } - + // optional bool split = 6; private boolean split_ ; + /** + * optional bool split = 6; + */ public boolean hasSplit() { return ((bitField0_ & 0x00000020) == 0x00000020); } + /** + * optional bool split = 6; + */ public boolean getSplit() { return split_; } + /** + * optional bool split = 6; + */ public Builder setSplit(boolean value) { bitField0_ |= 0x00000020; split_ = value; onChanged(); return this; } + /** + * optional bool split = 6; + */ public Builder clearSplit() { bitField0_ = (bitField0_ & ~0x00000020); split_ = false; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:RegionInfo) } - + static { defaultInstance = new RegionInfo(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:RegionInfo) } - + public interface FavoredNodesOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // repeated .ServerName favored_node = 1; + /** + * repeated .ServerName favored_node = 1; + */ java.util.List getFavoredNodeList(); + /** + * repeated .ServerName favored_node = 1; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName getFavoredNode(int index); + /** + * repeated .ServerName favored_node = 1; + */ int getFavoredNodeCount(); + /** + * repeated .ServerName favored_node = 1; + */ java.util.List getFavoredNodeOrBuilderList(); + /** + * repeated .ServerName favored_node = 1; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder getFavoredNodeOrBuilder( int index); } + /** + * Protobuf type {@code FavoredNodes} + * + *
+   **
+   * Protocol buffer for favored nodes
+   * 
+ */ public static final class FavoredNodes extends com.google.protobuf.GeneratedMessage implements FavoredNodesOrBuilder { // Use FavoredNodes.newBuilder() to construct. - private FavoredNodes(Builder builder) { + private FavoredNodes(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private FavoredNodes(boolean noInit) {} - + private FavoredNodes(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final FavoredNodes defaultInstance; public static FavoredNodes getDefaultInstance() { return defaultInstance; } - + public FavoredNodes getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FavoredNodes( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + favoredNode_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + favoredNode_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.PARSER, extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + favoredNode_ = java.util.Collections.unmodifiableList(favoredNode_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_FavoredNodes_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_FavoredNodes_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_FavoredNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public FavoredNodes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FavoredNodes(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + // repeated .ServerName favored_node = 1; public static final int FAVORED_NODE_FIELD_NUMBER = 1; private java.util.List favoredNode_; + /** + * repeated .ServerName favored_node = 1; + */ public java.util.List getFavoredNodeList() { return favoredNode_; } + /** + * repeated .ServerName favored_node = 1; + */ public java.util.List getFavoredNodeOrBuilderList() { return favoredNode_; } + /** + * repeated .ServerName favored_node = 1; + */ public int getFavoredNodeCount() { return favoredNode_.size(); } + /** + * repeated .ServerName favored_node = 1; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName getFavoredNode(int index) { return favoredNode_.get(index); } + /** + * repeated .ServerName favored_node = 1; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder getFavoredNodeOrBuilder( int index) { return favoredNode_.get(index); } - + private void initFields() { favoredNode_ = java.util.Collections.emptyList(); } @@ -3743,7 +4833,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + for (int i = 0; i < getFavoredNodeCount(); i++) { if (!getFavoredNode(i).isInitialized()) { memoizedIsInitialized = 0; @@ -3753,7 +4843,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -3762,12 +4852,12 @@ public final class HBaseProtos { } getUnknownFields().writeTo(output); } - + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; for (int i = 0; i < favoredNode_.size(); i++) { size += com.google.protobuf.CodedOutputStream @@ -3777,14 +4867,14 @@ public final class HBaseProtos { 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) { @@ -3794,7 +4884,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes) obj; - + boolean result = true; result = result && getFavoredNodeList() .equals(other.getFavoredNodeList()); @@ -3802,9 +4892,13 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getFavoredNodeCount() > 0) { @@ -3812,89 +4906,84 @@ public final class HBaseProtos { hash = (53 * hash) + getFavoredNodeList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code FavoredNodes} + * + *
+     **
+     * Protocol buffer for favored nodes
+     * 
+ */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodesOrBuilder { @@ -3902,18 +4991,21 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_FavoredNodes_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_FavoredNodes_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_FavoredNodes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes.Builder.class); } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -3925,7 +5017,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); if (favoredNodeBuilder_ == null) { @@ -3936,20 +5028,20 @@ public final class HBaseProtos { } return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes.getDescriptor(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_FavoredNodes_descriptor; } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes result = buildPartial(); if (!result.isInitialized()) { @@ -3957,17 +5049,7 @@ public final class HBaseProtos { } return result; } - - private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes(this); int from_bitField0_ = bitField0_; @@ -3983,7 +5065,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes)other); @@ -3992,7 +5074,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes.getDefaultInstance()) return this; if (favoredNodeBuilder_ == null) { @@ -4024,7 +5106,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { for (int i = 0; i < getFavoredNodeCount(); i++) { if (!getFavoredNode(i).isInitialized()) { @@ -4034,42 +5116,26 @@ public final class HBaseProtos { } 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.ServerName.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addFavoredNode(subBuilder.buildPartial()); - break; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // repeated .ServerName favored_node = 1; private java.util.List favoredNode_ = java.util.Collections.emptyList(); @@ -4079,10 +5145,13 @@ public final class HBaseProtos { bitField0_ |= 0x00000001; } } - + private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder> favoredNodeBuilder_; - + + /** + * repeated .ServerName favored_node = 1; + */ public java.util.List getFavoredNodeList() { if (favoredNodeBuilder_ == null) { return java.util.Collections.unmodifiableList(favoredNode_); @@ -4090,6 +5159,9 @@ public final class HBaseProtos { return favoredNodeBuilder_.getMessageList(); } } + /** + * repeated .ServerName favored_node = 1; + */ public int getFavoredNodeCount() { if (favoredNodeBuilder_ == null) { return favoredNode_.size(); @@ -4097,6 +5169,9 @@ public final class HBaseProtos { return favoredNodeBuilder_.getCount(); } } + /** + * repeated .ServerName favored_node = 1; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName getFavoredNode(int index) { if (favoredNodeBuilder_ == null) { return favoredNode_.get(index); @@ -4104,6 +5179,9 @@ public final class HBaseProtos { return favoredNodeBuilder_.getMessage(index); } } + /** + * repeated .ServerName favored_node = 1; + */ public Builder setFavoredNode( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName value) { if (favoredNodeBuilder_ == null) { @@ -4118,6 +5196,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .ServerName favored_node = 1; + */ public Builder setFavoredNode( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder builderForValue) { if (favoredNodeBuilder_ == null) { @@ -4129,6 +5210,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .ServerName favored_node = 1; + */ public Builder addFavoredNode(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName value) { if (favoredNodeBuilder_ == null) { if (value == null) { @@ -4142,6 +5226,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .ServerName favored_node = 1; + */ public Builder addFavoredNode( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName value) { if (favoredNodeBuilder_ == null) { @@ -4156,6 +5243,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .ServerName favored_node = 1; + */ public Builder addFavoredNode( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder builderForValue) { if (favoredNodeBuilder_ == null) { @@ -4167,6 +5257,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .ServerName favored_node = 1; + */ public Builder addFavoredNode( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder builderForValue) { if (favoredNodeBuilder_ == null) { @@ -4178,6 +5271,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .ServerName favored_node = 1; + */ public Builder addAllFavoredNode( java.lang.Iterable values) { if (favoredNodeBuilder_ == null) { @@ -4189,6 +5285,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .ServerName favored_node = 1; + */ public Builder clearFavoredNode() { if (favoredNodeBuilder_ == null) { favoredNode_ = java.util.Collections.emptyList(); @@ -4199,6 +5298,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .ServerName favored_node = 1; + */ public Builder removeFavoredNode(int index) { if (favoredNodeBuilder_ == null) { ensureFavoredNodeIsMutable(); @@ -4209,10 +5311,16 @@ public final class HBaseProtos { } return this; } + /** + * repeated .ServerName favored_node = 1; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder getFavoredNodeBuilder( int index) { return getFavoredNodeFieldBuilder().getBuilder(index); } + /** + * repeated .ServerName favored_node = 1; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder getFavoredNodeOrBuilder( int index) { if (favoredNodeBuilder_ == null) { @@ -4220,6 +5328,9 @@ public final class HBaseProtos { return favoredNodeBuilder_.getMessageOrBuilder(index); } } + /** + * repeated .ServerName favored_node = 1; + */ public java.util.List getFavoredNodeOrBuilderList() { if (favoredNodeBuilder_ != null) { @@ -4228,15 +5339,24 @@ public final class HBaseProtos { return java.util.Collections.unmodifiableList(favoredNode_); } } + /** + * repeated .ServerName favored_node = 1; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder addFavoredNodeBuilder() { return getFavoredNodeFieldBuilder().addBuilder( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.getDefaultInstance()); } + /** + * repeated .ServerName favored_node = 1; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder addFavoredNodeBuilder( int index) { return getFavoredNodeFieldBuilder().addBuilder( index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.getDefaultInstance()); } + /** + * repeated .ServerName favored_node = 1; + */ public java.util.List getFavoredNodeBuilderList() { return getFavoredNodeFieldBuilder().getBuilderList(); @@ -4255,69 +5375,198 @@ public final class HBaseProtos { } return favoredNodeBuilder_; } - + // @@protoc_insertion_point(builder_scope:FavoredNodes) } - + static { defaultInstance = new FavoredNodes(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:FavoredNodes) } - + public interface RegionSpecifierOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required .RegionSpecifier.RegionSpecifierType type = 1; + /** + * required .RegionSpecifier.RegionSpecifierType type = 1; + */ boolean hasType(); + /** + * required .RegionSpecifier.RegionSpecifierType type = 1; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType getType(); - + // required bytes value = 2; + /** + * required bytes value = 2; + */ boolean hasValue(); + /** + * required bytes value = 2; + */ com.google.protobuf.ByteString getValue(); } + /** + * Protobuf type {@code RegionSpecifier} + * + *
+   **
+   * Container protocol buffer to specify a region.
+   * You can specify region by region name, or the hash
+   * of the region name, which is known as encoded
+   * region name.
+   * 
+ */ public static final class RegionSpecifier extends com.google.protobuf.GeneratedMessage implements RegionSpecifierOrBuilder { // Use RegionSpecifier.newBuilder() to construct. - private RegionSpecifier(Builder builder) { + private RegionSpecifier(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private RegionSpecifier(boolean noInit) {} - + private RegionSpecifier(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final RegionSpecifier defaultInstance; public static RegionSpecifier getDefaultInstance() { return defaultInstance; } - + public RegionSpecifier getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RegionSpecifier( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType value = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + type_ = value; + } + break; + } + case 18: { + bitField0_ |= 0x00000002; + value_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionSpecifier_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionSpecifier_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionSpecifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public RegionSpecifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RegionSpecifier(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + + /** + * Protobuf enum {@code RegionSpecifier.RegionSpecifierType} + */ public enum RegionSpecifierType implements com.google.protobuf.ProtocolMessageEnum { + /** + * REGION_NAME = 1; + * + *
+       * <tablename>,<startkey>,<regionId>.<encodedName>
+       * 
+ */ REGION_NAME(0, 1), + /** + * ENCODED_REGION_NAME = 2; + * + *
+       * hash of <tablename>,<startkey>,<regionId>
+       * 
+ */ ENCODED_REGION_NAME(1, 2), ; - + + /** + * REGION_NAME = 1; + * + *
+       * <tablename>,<startkey>,<regionId>.<encodedName>
+       * 
+ */ public static final int REGION_NAME_VALUE = 1; + /** + * ENCODED_REGION_NAME = 2; + * + *
+       * hash of <tablename>,<startkey>,<regionId>
+       * 
+ */ public static final int ENCODED_REGION_NAME_VALUE = 2; - - + + public final int getNumber() { return value; } - + public static RegionSpecifierType valueOf(int value) { switch (value) { case 1: return REGION_NAME; @@ -4325,7 +5574,7 @@ public final class HBaseProtos { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; @@ -4337,7 +5586,7 @@ public final class HBaseProtos { return RegionSpecifierType.valueOf(number); } }; - + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); @@ -4350,11 +5599,9 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.getDescriptor().getEnumTypes().get(0); } - - private static final RegionSpecifierType[] VALUES = { - REGION_NAME, ENCODED_REGION_NAME, - }; - + + private static final RegionSpecifierType[] VALUES = values(); + public static RegionSpecifierType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { @@ -4363,39 +5610,51 @@ public final class HBaseProtos { } return VALUES[desc.getIndex()]; } - + private final int index; private final int value; - + private RegionSpecifierType(int index, int value) { this.index = index; this.value = value; } - + // @@protoc_insertion_point(enum_scope:RegionSpecifier.RegionSpecifierType) } - + private int bitField0_; // required .RegionSpecifier.RegionSpecifierType type = 1; public static final int TYPE_FIELD_NUMBER = 1; private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType type_; + /** + * required .RegionSpecifier.RegionSpecifierType type = 1; + */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .RegionSpecifier.RegionSpecifierType type = 1; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType getType() { return type_; } - + // required bytes value = 2; public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString value_; + /** + * required bytes value = 2; + */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required bytes value = 2; + */ public com.google.protobuf.ByteString getValue() { return value_; } - + private void initFields() { type_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType.REGION_NAME; value_ = com.google.protobuf.ByteString.EMPTY; @@ -4404,7 +5663,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasType()) { memoizedIsInitialized = 0; return false; @@ -4416,7 +5675,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -4428,12 +5687,12 @@ public final class HBaseProtos { } 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 @@ -4447,14 +5706,14 @@ public final class HBaseProtos { 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) { @@ -4464,7 +5723,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier) obj; - + boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { @@ -4480,9 +5739,13 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasType()) { @@ -4494,89 +5757,87 @@ public final class HBaseProtos { hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code RegionSpecifier} + * + *
+     **
+     * Container protocol buffer to specify a region.
+     * You can specify region by region name, or the hash
+     * of the region name, which is known as encoded
+     * region name.
+     * 
+ */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifierOrBuilder { @@ -4584,18 +5845,21 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionSpecifier_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionSpecifier_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionSpecifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.Builder.class); } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -4606,7 +5870,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); type_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType.REGION_NAME; @@ -4615,20 +5879,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.getDescriptor(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionSpecifier_descriptor; } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier result = buildPartial(); if (!result.isInitialized()) { @@ -4636,17 +5900,7 @@ public final class HBaseProtos { } return result; } - - private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier(this); int from_bitField0_ = bitField0_; @@ -4663,7 +5917,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier)other); @@ -4672,7 +5926,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.getDefaultInstance()) return this; if (other.hasType()) { @@ -4684,7 +5938,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasType()) { @@ -4696,60 +5950,43 @@ public final class HBaseProtos { } 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 8: { - int rawValue = input.readEnum(); - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType value = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - type_ = value; - } - break; - } - case 18: { - bitField0_ |= 0x00000002; - value_ = input.readBytes(); - break; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required .RegionSpecifier.RegionSpecifierType type = 1; private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType type_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType.REGION_NAME; + /** + * required .RegionSpecifier.RegionSpecifierType type = 1; + */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .RegionSpecifier.RegionSpecifierType type = 1; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType getType() { return type_; } + /** + * required .RegionSpecifier.RegionSpecifierType type = 1; + */ public Builder setType(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType value) { if (value == null) { throw new NullPointerException(); @@ -4759,21 +5996,33 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * required .RegionSpecifier.RegionSpecifierType type = 1; + */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.RegionSpecifierType.REGION_NAME; onChanged(); return this; } - + // required bytes value = 2; private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes value = 2; + */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required bytes value = 2; + */ public com.google.protobuf.ByteString getValue() { return value_; } + /** + * required bytes value = 2; + */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -4783,84 +6032,191 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * required bytes value = 2; + */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:RegionSpecifier) } - + static { defaultInstance = new RegionSpecifier(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:RegionSpecifier) } - + public interface TimeRangeOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // optional uint64 from = 1; + /** + * optional uint64 from = 1; + */ boolean hasFrom(); + /** + * optional uint64 from = 1; + */ long getFrom(); - + // optional uint64 to = 2; + /** + * optional uint64 to = 2; + */ boolean hasTo(); + /** + * optional uint64 to = 2; + */ long getTo(); } + /** + * Protobuf type {@code TimeRange} + * + *
+   **
+   * A range of time. Both from and to are Java time
+   * stamp in milliseconds. If you don't specify a time
+   * range, it means all time.  By default, if not
+   * specified, from = 0, and to = Long.MAX_VALUE
+   * 
+ */ public static final class TimeRange extends com.google.protobuf.GeneratedMessage implements TimeRangeOrBuilder { // Use TimeRange.newBuilder() to construct. - private TimeRange(Builder builder) { + private TimeRange(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private TimeRange(boolean noInit) {} - + private TimeRange(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final TimeRange defaultInstance; public static TimeRange getDefaultInstance() { return defaultInstance; } - + public TimeRange getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TimeRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + from_ = input.readUInt64(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + to_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TimeRange_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TimeRange_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TimeRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public TimeRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TimeRange(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // optional uint64 from = 1; public static final int FROM_FIELD_NUMBER = 1; private long from_; + /** + * optional uint64 from = 1; + */ public boolean hasFrom() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * optional uint64 from = 1; + */ public long getFrom() { return from_; } - + // optional uint64 to = 2; public static final int TO_FIELD_NUMBER = 2; private long to_; + /** + * optional uint64 to = 2; + */ public boolean hasTo() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional uint64 to = 2; + */ public long getTo() { return to_; } - + private void initFields() { from_ = 0L; to_ = 0L; @@ -4869,11 +6225,11 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -4885,12 +6241,12 @@ public final class HBaseProtos { } 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 @@ -4904,14 +6260,14 @@ public final class HBaseProtos { 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) { @@ -4921,7 +6277,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange) obj; - + boolean result = true; result = result && (hasFrom() == other.hasFrom()); if (hasFrom()) { @@ -4937,9 +6293,13 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasFrom()) { @@ -4951,89 +6311,87 @@ public final class HBaseProtos { hash = (53 * hash) + hashLong(getTo()); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code TimeRange} + * + *
+     **
+     * A range of time. Both from and to are Java time
+     * stamp in milliseconds. If you don't specify a time
+     * range, it means all time.  By default, if not
+     * specified, from = 0, and to = Long.MAX_VALUE
+     * 
+ */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRangeOrBuilder { @@ -5041,18 +6399,21 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TimeRange_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TimeRange_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TimeRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.Builder.class); } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -5063,7 +6424,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); from_ = 0L; @@ -5072,20 +6433,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.getDescriptor(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_TimeRange_descriptor; } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange result = buildPartial(); if (!result.isInitialized()) { @@ -5093,17 +6454,7 @@ public final class HBaseProtos { } return result; } - - private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange(this); int from_bitField0_ = bitField0_; @@ -5120,7 +6471,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange)other); @@ -5129,7 +6480,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.getDefaultInstance()) return this; if (other.hasFrom()) { @@ -5141,199 +6492,331 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - 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 8: { - bitField0_ |= 0x00000001; - from_ = input.readUInt64(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - to_ = input.readUInt64(); - break; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // optional uint64 from = 1; private long from_ ; + /** + * optional uint64 from = 1; + */ public boolean hasFrom() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * optional uint64 from = 1; + */ public long getFrom() { return from_; } + /** + * optional uint64 from = 1; + */ public Builder setFrom(long value) { bitField0_ |= 0x00000001; from_ = value; onChanged(); return this; } + /** + * optional uint64 from = 1; + */ public Builder clearFrom() { bitField0_ = (bitField0_ & ~0x00000001); from_ = 0L; onChanged(); return this; } - + // optional uint64 to = 2; private long to_ ; + /** + * optional uint64 to = 2; + */ public boolean hasTo() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional uint64 to = 2; + */ public long getTo() { return to_; } + /** + * optional uint64 to = 2; + */ public Builder setTo(long value) { bitField0_ |= 0x00000002; to_ = value; onChanged(); return this; } + /** + * optional uint64 to = 2; + */ public Builder clearTo() { bitField0_ = (bitField0_ & ~0x00000002); to_ = 0L; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:TimeRange) } - + static { defaultInstance = new TimeRange(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:TimeRange) } - + public interface ServerNameOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string host_name = 1; + /** + * required string host_name = 1; + */ boolean hasHostName(); - String getHostName(); - + /** + * required string host_name = 1; + */ + java.lang.String getHostName(); + /** + * required string host_name = 1; + */ + com.google.protobuf.ByteString + getHostNameBytes(); + // optional uint32 port = 2; + /** + * optional uint32 port = 2; + */ boolean hasPort(); + /** + * optional uint32 port = 2; + */ int getPort(); - + // optional uint64 start_code = 3; + /** + * optional uint64 start_code = 3; + */ boolean hasStartCode(); + /** + * optional uint64 start_code = 3; + */ long getStartCode(); } + /** + * Protobuf type {@code ServerName} + * + *
+   **
+   * Protocol buffer version of ServerName
+   * 
+ */ public static final class ServerName extends com.google.protobuf.GeneratedMessage implements ServerNameOrBuilder { // Use ServerName.newBuilder() to construct. - private ServerName(Builder builder) { + private ServerName(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private ServerName(boolean noInit) {} - + private ServerName(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final ServerName defaultInstance; public static ServerName getDefaultInstance() { return defaultInstance; } - + public ServerName getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ServerName( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + hostName_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + port_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + startCode_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ServerName_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ServerName_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ServerName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public ServerName parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ServerName(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // required string host_name = 1; public static final int HOST_NAME_FIELD_NUMBER = 1; private java.lang.Object hostName_; + /** + * required string host_name = 1; + */ public boolean hasHostName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getHostName() { + /** + * required string host_name = 1; + */ + public java.lang.String getHostName() { java.lang.Object ref = hostName_; - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { hostName_ = s; } return s; } } - private com.google.protobuf.ByteString getHostNameBytes() { + /** + * required string host_name = 1; + */ + public com.google.protobuf.ByteString + getHostNameBytes() { java.lang.Object ref = hostName_; - if (ref instanceof String) { + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // optional uint32 port = 2; public static final int PORT_FIELD_NUMBER = 2; private int port_; + /** + * optional uint32 port = 2; + */ public boolean hasPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional uint32 port = 2; + */ public int getPort() { return port_; } - + // optional uint64 start_code = 3; public static final int START_CODE_FIELD_NUMBER = 3; private long startCode_; + /** + * optional uint64 start_code = 3; + */ public boolean hasStartCode() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * optional uint64 start_code = 3; + */ public long getStartCode() { return startCode_; } - + private void initFields() { hostName_ = ""; port_ = 0; @@ -5343,7 +6826,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasHostName()) { memoizedIsInitialized = 0; return false; @@ -5351,7 +6834,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -5366,12 +6849,12 @@ public final class HBaseProtos { } 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 @@ -5389,14 +6872,14 @@ public final class HBaseProtos { 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) { @@ -5406,7 +6889,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName) obj; - + boolean result = true; result = result && (hasHostName() == other.hasHostName()); if (hasHostName()) { @@ -5427,9 +6910,13 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasHostName()) { @@ -5445,89 +6932,84 @@ public final class HBaseProtos { hash = (53 * hash) + hashLong(getStartCode()); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code ServerName} + * + *
+     **
+     * Protocol buffer version of ServerName
+     * 
+ */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder { @@ -5535,18 +7017,21 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ServerName_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ServerName_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ServerName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder.class); } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -5557,7 +7042,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); hostName_ = ""; @@ -5568,20 +7053,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000004); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.getDescriptor(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ServerName_descriptor; } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName result = buildPartial(); if (!result.isInitialized()) { @@ -5589,17 +7074,7 @@ public final class HBaseProtos { } return result; } - - private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName(this); int from_bitField0_ = bitField0_; @@ -5620,7 +7095,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName)other); @@ -5629,11 +7104,13 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.getDefaultInstance()) return this; if (other.hasHostName()) { - setHostName(other.getHostName()); + bitField0_ |= 0x00000001; + hostName_ = other.hostName_; + onChanged(); } if (other.hasPort()) { setPort(other.getPort()); @@ -5644,7 +7121,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasHostName()) { @@ -5652,67 +7129,69 @@ public final class HBaseProtos { } 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; - hostName_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - port_ = input.readUInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - startCode_ = input.readUInt64(); - break; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required string host_name = 1; private java.lang.Object hostName_ = ""; + /** + * required string host_name = 1; + */ public boolean hasHostName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getHostName() { + /** + * required string host_name = 1; + */ + public java.lang.String getHostName() { java.lang.Object ref = hostName_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); hostName_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; + } + } + /** + * required string host_name = 1; + */ + public com.google.protobuf.ByteString + getHostNameBytes() { + java.lang.Object ref = hostName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hostName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } } - public Builder setHostName(String value) { + /** + * required string host_name = 1; + */ + public Builder setHostName( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -5721,139 +7200,263 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * required string host_name = 1; + */ public Builder clearHostName() { bitField0_ = (bitField0_ & ~0x00000001); hostName_ = getDefaultInstance().getHostName(); onChanged(); return this; } - void setHostName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string host_name = 1; + */ + public Builder setHostNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; hostName_ = value; onChanged(); + return this; } - + // optional uint32 port = 2; private int port_ ; + /** + * optional uint32 port = 2; + */ public boolean hasPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional uint32 port = 2; + */ public int getPort() { return port_; } + /** + * optional uint32 port = 2; + */ public Builder setPort(int value) { bitField0_ |= 0x00000002; port_ = value; onChanged(); return this; } + /** + * optional uint32 port = 2; + */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000002); port_ = 0; onChanged(); return this; } - + // optional uint64 start_code = 3; private long startCode_ ; + /** + * optional uint64 start_code = 3; + */ public boolean hasStartCode() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * optional uint64 start_code = 3; + */ public long getStartCode() { return startCode_; } + /** + * optional uint64 start_code = 3; + */ public Builder setStartCode(long value) { bitField0_ |= 0x00000004; startCode_ = value; onChanged(); return this; } + /** + * optional uint64 start_code = 3; + */ public Builder clearStartCode() { bitField0_ = (bitField0_ & ~0x00000004); startCode_ = 0L; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:ServerName) } - + static { defaultInstance = new ServerName(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:ServerName) } - + public interface CoprocessorOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string name = 1; + /** + * required string name = 1; + */ boolean hasName(); - String getName(); + /** + * required string name = 1; + */ + java.lang.String getName(); + /** + * required string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); } + /** + * Protobuf type {@code Coprocessor} + */ public static final class Coprocessor extends com.google.protobuf.GeneratedMessage implements CoprocessorOrBuilder { // Use Coprocessor.newBuilder() to construct. - private Coprocessor(Builder builder) { + private Coprocessor(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private Coprocessor(boolean noInit) {} - + private Coprocessor(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final Coprocessor defaultInstance; public static Coprocessor getDefaultInstance() { return defaultInstance; } - + public Coprocessor getDefaultInstanceForType() { return defaultInstance; } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_Coprocessor_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_Coprocessor_fieldAccessorTable; + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - + private Coprocessor( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + name_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_Coprocessor_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_Coprocessor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Coprocessor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Coprocessor(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; + /** + * required string name = 1; + */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getName() { + /** + * required string name = 1; + */ + public java.lang.String getName() { java.lang.Object ref = name_; - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { name_ = s; } return s; } } - private com.google.protobuf.ByteString getNameBytes() { + /** + * required string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; - if (ref instanceof String) { + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + private void initFields() { name_ = ""; } @@ -5861,7 +7464,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasName()) { memoizedIsInitialized = 0; return false; @@ -5869,7 +7472,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -5878,12 +7481,12 @@ public final class HBaseProtos { } 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 @@ -5893,14 +7496,14 @@ public final class HBaseProtos { 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) { @@ -5910,7 +7513,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor) obj; - + boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { @@ -5921,9 +7524,13 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { @@ -5931,89 +7538,79 @@ public final class HBaseProtos { hash = (53 * hash) + getName().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code Coprocessor} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.CoprocessorOrBuilder { @@ -6021,18 +7618,21 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_Coprocessor_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_Coprocessor_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_Coprocessor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor.Builder.class); } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -6043,27 +7643,27 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor.getDescriptor(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_Coprocessor_descriptor; } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor result = buildPartial(); if (!result.isInitialized()) { @@ -6071,17 +7671,7 @@ public final class HBaseProtos { } return result; } - - private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor(this); int from_bitField0_ = bitField0_; @@ -6094,7 +7684,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor)other); @@ -6103,16 +7693,18 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor.getDefaultInstance()) return this; if (other.hasName()) { - setName(other.getName()); + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasName()) { @@ -6120,57 +7712,69 @@ public final class HBaseProtos { } 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; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required string name = 1; private java.lang.Object name_ = ""; + /** + * required string name = 1; + */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getName() { + /** + * required string name = 1; + */ + public java.lang.String getName() { java.lang.Object ref = name_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setName(String value) { + /** + * required string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string name = 1; + */ + public Builder setName( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -6179,133 +7783,260 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * required string name = 1; + */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } - void setName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; name_ = value; onChanged(); + return this; } - + // @@protoc_insertion_point(builder_scope:Coprocessor) } - + static { defaultInstance = new Coprocessor(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:Coprocessor) } - + public interface NameStringPairOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string name = 1; + /** + * required string name = 1; + */ boolean hasName(); - String getName(); - + /** + * required string name = 1; + */ + java.lang.String getName(); + /** + * required string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + // required string value = 2; + /** + * required string value = 2; + */ boolean hasValue(); - String getValue(); + /** + * required string value = 2; + */ + java.lang.String getValue(); + /** + * required string value = 2; + */ + com.google.protobuf.ByteString + getValueBytes(); } + /** + * Protobuf type {@code NameStringPair} + */ public static final class NameStringPair extends com.google.protobuf.GeneratedMessage implements NameStringPairOrBuilder { // Use NameStringPair.newBuilder() to construct. - private NameStringPair(Builder builder) { + private NameStringPair(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private NameStringPair(boolean noInit) {} - + private NameStringPair(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final NameStringPair defaultInstance; public static NameStringPair getDefaultInstance() { return defaultInstance; } - + public NameStringPair getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NameStringPair( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + name_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + value_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameStringPair_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameStringPair_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameStringPair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public NameStringPair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NameStringPair(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; + /** + * required string name = 1; + */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getName() { + /** + * required string name = 1; + */ + public java.lang.String getName() { java.lang.Object ref = name_; - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { name_ = s; } return s; } } - private com.google.protobuf.ByteString getNameBytes() { + /** + * required string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; - if (ref instanceof String) { + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // required string value = 2; public static final int VALUE_FIELD_NUMBER = 2; private java.lang.Object value_; + /** + * required string value = 2; + */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } - public String getValue() { + /** + * required string value = 2; + */ + public java.lang.String getValue() { java.lang.Object ref = value_; - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { value_ = s; } return s; } } - private com.google.protobuf.ByteString getValueBytes() { + /** + * required string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; - if (ref instanceof String) { + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + private void initFields() { name_ = ""; value_ = ""; @@ -6314,7 +8045,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasName()) { memoizedIsInitialized = 0; return false; @@ -6326,7 +8057,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -6338,12 +8069,12 @@ public final class HBaseProtos { } 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 @@ -6357,14 +8088,14 @@ public final class HBaseProtos { 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) { @@ -6374,7 +8105,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair) obj; - + boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { @@ -6390,9 +8121,13 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { @@ -6404,89 +8139,79 @@ public final class HBaseProtos { hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code NameStringPair} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder { @@ -6494,18 +8219,21 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameStringPair_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameStringPair_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameStringPair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder.class); } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -6516,7 +8244,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); name_ = ""; @@ -6525,20 +8253,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDescriptor(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameStringPair_descriptor; } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair result = buildPartial(); if (!result.isInitialized()) { @@ -6546,17 +8274,7 @@ public final class HBaseProtos { } return result; } - - private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair(this); int from_bitField0_ = bitField0_; @@ -6573,7 +8291,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair)other); @@ -6582,19 +8300,23 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDefaultInstance()) return this; if (other.hasName()) { - setName(other.getName()); + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); } if (other.hasValue()) { - setValue(other.getValue()); + bitField0_ |= 0x00000002; + value_ = other.value_; + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasName()) { @@ -6606,62 +8328,69 @@ public final class HBaseProtos { } 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: { - bitField0_ |= 0x00000002; - value_ = input.readBytes(); - break; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required string name = 1; private java.lang.Object name_ = ""; + /** + * required string name = 1; + */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getName() { + /** + * required string name = 1; + */ + public java.lang.String getName() { java.lang.Object ref = name_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; + } + } + /** + * required string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } } - public Builder setName(String value) { + /** + * required string name = 1; + */ + public Builder setName( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -6670,34 +8399,72 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * required string name = 1; + */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } - void setName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; name_ = value; onChanged(); + return this; } - + // required string value = 2; private java.lang.Object value_ = ""; + /** + * required string value = 2; + */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } - public String getValue() { + /** + * required string value = 2; + */ + public java.lang.String getValue() { java.lang.Object ref = value_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); value_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; + } + } + /** + * required string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } } - public Builder setValue(String value) { + /** + * required string value = 2; + */ + public Builder setValue( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -6706,111 +8473,228 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * required string value = 2; + */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } - void setValue(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000002; + /** + * required string value = 2; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; value_ = value; onChanged(); + return this; } - + // @@protoc_insertion_point(builder_scope:NameStringPair) } - + static { defaultInstance = new NameStringPair(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:NameStringPair) } - + public interface NameBytesPairOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string name = 1; + /** + * required string name = 1; + */ boolean hasName(); - String getName(); - + /** + * required string name = 1; + */ + java.lang.String getName(); + /** + * required string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + // optional bytes value = 2; + /** + * optional bytes value = 2; + */ boolean hasValue(); + /** + * optional bytes value = 2; + */ com.google.protobuf.ByteString getValue(); } + /** + * Protobuf type {@code NameBytesPair} + */ public static final class NameBytesPair extends com.google.protobuf.GeneratedMessage implements NameBytesPairOrBuilder { // Use NameBytesPair.newBuilder() to construct. - private NameBytesPair(Builder builder) { + private NameBytesPair(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private NameBytesPair(boolean noInit) {} - + private NameBytesPair(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final NameBytesPair defaultInstance; public static NameBytesPair getDefaultInstance() { return defaultInstance; } - + public NameBytesPair getDefaultInstanceForType() { return defaultInstance; } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameBytesPair_descriptor; + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameBytesPair_fieldAccessorTable; + private NameBytesPair( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + name_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + value_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameBytesPair_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameBytesPair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public NameBytesPair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NameBytesPair(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; + /** + * required string name = 1; + */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getName() { + /** + * required string name = 1; + */ + public java.lang.String getName() { java.lang.Object ref = name_; - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { name_ = s; } return s; } } - private com.google.protobuf.ByteString getNameBytes() { + /** + * required string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; - if (ref instanceof String) { + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // optional bytes value = 2; public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString value_; + /** + * optional bytes value = 2; + */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional bytes value = 2; + */ public com.google.protobuf.ByteString getValue() { return value_; } - + private void initFields() { name_ = ""; value_ = com.google.protobuf.ByteString.EMPTY; @@ -6819,7 +8703,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasName()) { memoizedIsInitialized = 0; return false; @@ -6827,7 +8711,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -6839,12 +8723,12 @@ public final class HBaseProtos { } 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 @@ -6858,14 +8742,14 @@ public final class HBaseProtos { 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) { @@ -6875,7 +8759,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair) obj; - + boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { @@ -6891,9 +8775,13 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { @@ -6905,89 +8793,79 @@ public final class HBaseProtos { hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code NameBytesPair} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder { @@ -6995,18 +8873,21 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameBytesPair_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameBytesPair_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameBytesPair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder.class); } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -7017,7 +8898,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); name_ = ""; @@ -7026,20 +8907,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.getDescriptor(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameBytesPair_descriptor; } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair result = buildPartial(); if (!result.isInitialized()) { @@ -7047,17 +8928,7 @@ public final class HBaseProtos { } return result; } - - private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair(this); int from_bitField0_ = bitField0_; @@ -7074,7 +8945,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair)other); @@ -7083,11 +8954,13 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.getDefaultInstance()) return this; if (other.hasName()) { - setName(other.getName()); + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); } if (other.hasValue()) { setValue(other.getValue()); @@ -7095,7 +8968,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasName()) { @@ -7103,62 +8976,69 @@ public final class HBaseProtos { } 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: { - bitField0_ |= 0x00000002; - value_ = input.readBytes(); - break; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required string name = 1; private java.lang.Object name_ = ""; + /** + * required string name = 1; + */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getName() { + /** + * required string name = 1; + */ + public java.lang.String getName() { java.lang.Object ref = name_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; + } + } + /** + * required string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } } - public Builder setName(String value) { + /** + * required string name = 1; + */ + public Builder setName( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -7167,26 +9047,46 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * required string name = 1; + */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } - void setName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; name_ = value; onChanged(); + return this; } - + // optional bytes value = 2; private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes value = 2; + */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional bytes value = 2; + */ public com.google.protobuf.ByteString getValue() { return value_; } + /** + * optional bytes value = 2; + */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -7196,84 +9096,183 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * optional bytes value = 2; + */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:NameBytesPair) } - + static { defaultInstance = new NameBytesPair(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:NameBytesPair) } - + public interface BytesBytesPairOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required bytes first = 1; + /** + * required bytes first = 1; + */ boolean hasFirst(); + /** + * required bytes first = 1; + */ com.google.protobuf.ByteString getFirst(); - + // required bytes second = 2; + /** + * required bytes second = 2; + */ boolean hasSecond(); + /** + * required bytes second = 2; + */ com.google.protobuf.ByteString getSecond(); } + /** + * Protobuf type {@code BytesBytesPair} + */ public static final class BytesBytesPair extends com.google.protobuf.GeneratedMessage implements BytesBytesPairOrBuilder { // Use BytesBytesPair.newBuilder() to construct. - private BytesBytesPair(Builder builder) { + private BytesBytesPair(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private BytesBytesPair(boolean noInit) {} - + private BytesBytesPair(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final BytesBytesPair defaultInstance; public static BytesBytesPair getDefaultInstance() { return defaultInstance; } - + public BytesBytesPair getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BytesBytesPair( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + first_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + second_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BytesBytesPair_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BytesBytesPair_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BytesBytesPair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public BytesBytesPair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BytesBytesPair(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // required bytes first = 1; public static final int FIRST_FIELD_NUMBER = 1; private com.google.protobuf.ByteString first_; + /** + * required bytes first = 1; + */ public boolean hasFirst() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required bytes first = 1; + */ public com.google.protobuf.ByteString getFirst() { return first_; } - + // required bytes second = 2; public static final int SECOND_FIELD_NUMBER = 2; private com.google.protobuf.ByteString second_; + /** + * required bytes second = 2; + */ public boolean hasSecond() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required bytes second = 2; + */ public com.google.protobuf.ByteString getSecond() { return second_; } - + private void initFields() { first_ = com.google.protobuf.ByteString.EMPTY; second_ = com.google.protobuf.ByteString.EMPTY; @@ -7282,7 +9281,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasFirst()) { memoizedIsInitialized = 0; return false; @@ -7294,7 +9293,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -7306,12 +9305,12 @@ public final class HBaseProtos { } 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 @@ -7325,14 +9324,14 @@ public final class HBaseProtos { 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) { @@ -7342,7 +9341,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair) obj; - + boolean result = true; result = result && (hasFirst() == other.hasFirst()); if (hasFirst()) { @@ -7358,9 +9357,13 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasFirst()) { @@ -7372,89 +9375,79 @@ public final class HBaseProtos { hash = (53 * hash) + getSecond().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code BytesBytesPair} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPairOrBuilder { @@ -7462,18 +9455,21 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BytesBytesPair_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BytesBytesPair_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BytesBytesPair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder.class); } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -7484,7 +9480,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); first_ = com.google.protobuf.ByteString.EMPTY; @@ -7493,20 +9489,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.getDescriptor(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BytesBytesPair_descriptor; } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair result = buildPartial(); if (!result.isInitialized()) { @@ -7514,17 +9510,7 @@ public final class HBaseProtos { } return result; } - - private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair(this); int from_bitField0_ = bitField0_; @@ -7541,7 +9527,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair)other); @@ -7550,7 +9536,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.getDefaultInstance()) return this; if (other.hasFirst()) { @@ -7562,7 +9548,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasFirst()) { @@ -7574,54 +9560,43 @@ public final class HBaseProtos { } 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; - first_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - second_ = input.readBytes(); - break; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required bytes first = 1; private com.google.protobuf.ByteString first_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes first = 1; + */ public boolean hasFirst() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required bytes first = 1; + */ public com.google.protobuf.ByteString getFirst() { return first_; } + /** + * required bytes first = 1; + */ public Builder setFirst(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -7631,21 +9606,33 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * required bytes first = 1; + */ public Builder clearFirst() { bitField0_ = (bitField0_ & ~0x00000001); first_ = getDefaultInstance().getFirst(); onChanged(); return this; } - + // required bytes second = 2; private com.google.protobuf.ByteString second_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes second = 2; + */ public boolean hasSecond() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required bytes second = 2; + */ public com.google.protobuf.ByteString getSecond() { return second_; } + /** + * required bytes second = 2; + */ public Builder setSecond(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -7655,106 +9642,215 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * required bytes second = 2; + */ public Builder clearSecond() { bitField0_ = (bitField0_ & ~0x00000002); second_ = getDefaultInstance().getSecond(); onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:BytesBytesPair) } - + static { defaultInstance = new BytesBytesPair(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:BytesBytesPair) } - + public interface NameInt64PairOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // optional string name = 1; + /** + * optional string name = 1; + */ boolean hasName(); - String getName(); - + /** + * optional string name = 1; + */ + java.lang.String getName(); + /** + * optional string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + // optional int64 value = 2; + /** + * optional int64 value = 2; + */ boolean hasValue(); + /** + * optional int64 value = 2; + */ long getValue(); } + /** + * Protobuf type {@code NameInt64Pair} + */ public static final class NameInt64Pair extends com.google.protobuf.GeneratedMessage implements NameInt64PairOrBuilder { // Use NameInt64Pair.newBuilder() to construct. - private NameInt64Pair(Builder builder) { + private NameInt64Pair(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private NameInt64Pair(boolean noInit) {} - + private NameInt64Pair(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final NameInt64Pair defaultInstance; public static NameInt64Pair getDefaultInstance() { return defaultInstance; } - + public NameInt64Pair getDefaultInstanceForType() { return defaultInstance; } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameInt64Pair_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameInt64Pair_fieldAccessorTable; - } - - private int bitField0_; - // optional string name = 1; - public static final int NAME_FIELD_NUMBER = 1; - private java.lang.Object name_; - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - public String getName() { - java.lang.Object ref = name_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - name_ = s; - } - return s; + private NameInt64Pair( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + name_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + value_ = input.readInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameInt64Pair_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameInt64Pair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public NameInt64Pair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NameInt64Pair(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional string name = 1; + public static final int NAME_FIELD_NUMBER = 1; + private java.lang.Object name_; + /** + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; } } - private com.google.protobuf.ByteString getNameBytes() { + /** + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; - if (ref instanceof String) { + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // optional int64 value = 2; public static final int VALUE_FIELD_NUMBER = 2; private long value_; + /** + * optional int64 value = 2; + */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional int64 value = 2; + */ public long getValue() { return value_; } - + private void initFields() { name_ = ""; value_ = 0L; @@ -7763,11 +9859,11 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -7779,12 +9875,12 @@ public final class HBaseProtos { } 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 @@ -7798,14 +9894,14 @@ public final class HBaseProtos { 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) { @@ -7815,7 +9911,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair) obj; - + boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { @@ -7831,9 +9927,13 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { @@ -7845,89 +9945,79 @@ public final class HBaseProtos { hash = (53 * hash) + hashLong(getValue()); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code NameInt64Pair} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64PairOrBuilder { @@ -7935,18 +10025,21 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameInt64Pair_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameInt64Pair_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameInt64Pair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair.Builder.class); } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -7957,7 +10050,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); name_ = ""; @@ -7966,20 +10059,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair.getDescriptor(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NameInt64Pair_descriptor; } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair result = buildPartial(); if (!result.isInitialized()) { @@ -7987,17 +10080,7 @@ public final class HBaseProtos { } return result; } - - private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair(this); int from_bitField0_ = bitField0_; @@ -8014,7 +10097,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair)other); @@ -8023,11 +10106,13 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair.getDefaultInstance()) return this; if (other.hasName()) { - setName(other.getName()); + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); } if (other.hasValue()) { setValue(other.getValue()); @@ -8035,66 +10120,73 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - 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 16: { - bitField0_ |= 0x00000002; - value_ = input.readInt64(); - break; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // optional string name = 1; private java.lang.Object name_ = ""; + /** + * optional string name = 1; + */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getName() { + /** + * optional string name = 1; + */ + public java.lang.String getName() { java.lang.Object ref = name_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; + } + } + /** + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } } - public Builder setName(String value) { + /** + * optional string name = 1; + */ + public Builder setName( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -8103,113 +10195,301 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * optional string name = 1; + */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } - void setName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * optional string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; name_ = value; onChanged(); + return this; } - + // optional int64 value = 2; private long value_ ; + /** + * optional int64 value = 2; + */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional int64 value = 2; + */ public long getValue() { return value_; } + /** + * optional int64 value = 2; + */ public Builder setValue(long value) { bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } + /** + * optional int64 value = 2; + */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = 0L; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:NameInt64Pair) } - + static { defaultInstance = new NameInt64Pair(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:NameInt64Pair) } - + public interface SnapshotDescriptionOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string name = 1; + /** + * required string name = 1; + */ boolean hasName(); - String getName(); - + /** + * required string name = 1; + */ + java.lang.String getName(); + /** + * required string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + // optional string table = 2; + /** + * optional string table = 2; + * + *
+     * not needed for delete, but checked for in taking snapshot
+     * 
+ */ boolean hasTable(); - String getTable(); - + /** + * optional string table = 2; + * + *
+     * not needed for delete, but checked for in taking snapshot
+     * 
+ */ + java.lang.String getTable(); + /** + * optional string table = 2; + * + *
+     * not needed for delete, but checked for in taking snapshot
+     * 
+ */ + com.google.protobuf.ByteString + getTableBytes(); + // optional int64 creation_time = 3 [default = 0]; + /** + * optional int64 creation_time = 3 [default = 0]; + */ boolean hasCreationTime(); + /** + * optional int64 creation_time = 3 [default = 0]; + */ long getCreationTime(); - + // optional .SnapshotDescription.Type type = 4 [default = FLUSH]; + /** + * optional .SnapshotDescription.Type type = 4 [default = FLUSH]; + */ boolean hasType(); + /** + * optional .SnapshotDescription.Type type = 4 [default = FLUSH]; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type getType(); - + // optional int32 version = 5; + /** + * optional int32 version = 5; + */ boolean hasVersion(); + /** + * optional int32 version = 5; + */ int getVersion(); } + /** + * Protobuf type {@code SnapshotDescription} + * + *
+   **
+   * Description of the snapshot to take
+   * 
+ */ public static final class SnapshotDescription extends com.google.protobuf.GeneratedMessage implements SnapshotDescriptionOrBuilder { // Use SnapshotDescription.newBuilder() to construct. - private SnapshotDescription(Builder builder) { + private SnapshotDescription(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private SnapshotDescription(boolean noInit) {} - + private SnapshotDescription(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final SnapshotDescription defaultInstance; public static SnapshotDescription getDefaultInstance() { return defaultInstance; } - + public SnapshotDescription getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SnapshotDescription( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + name_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + table_ = input.readBytes(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + creationTime_ = input.readInt64(); + break; + } + case 32: { + int rawValue = input.readEnum(); + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type value = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(4, rawValue); + } else { + bitField0_ |= 0x00000008; + type_ = value; + } + break; + } + case 40: { + bitField0_ |= 0x00000010; + version_ = input.readInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_SnapshotDescription_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_SnapshotDescription_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_SnapshotDescription_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public SnapshotDescription parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SnapshotDescription(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + + /** + * Protobuf enum {@code SnapshotDescription.Type} + */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * DISABLED = 0; + */ DISABLED(0, 0), + /** + * FLUSH = 1; + */ FLUSH(1, 1), ; - + + /** + * DISABLED = 0; + */ public static final int DISABLED_VALUE = 0; + /** + * FLUSH = 1; + */ public static final int FLUSH_VALUE = 1; - - + + public final int getNumber() { return value; } - + public static Type valueOf(int value) { switch (value) { case 0: return DISABLED; @@ -8217,7 +10497,7 @@ public final class HBaseProtos { default: return null; } } - + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; @@ -8229,7 +10509,7 @@ public final class HBaseProtos { return Type.valueOf(number); } }; - + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); @@ -8242,11 +10522,9 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.getDescriptor().getEnumTypes().get(0); } - - private static final Type[] VALUES = { - DISABLED, FLUSH, - }; - + + private static final Type[] VALUES = values(); + public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { @@ -8255,113 +10533,165 @@ public final class HBaseProtos { } return VALUES[desc.getIndex()]; } - + private final int index; private final int value; - + private Type(int index, int value) { this.index = index; this.value = value; } - + // @@protoc_insertion_point(enum_scope:SnapshotDescription.Type) } - + private int bitField0_; // required string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; + /** + * required string name = 1; + */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getName() { + /** + * required string name = 1; + */ + public java.lang.String getName() { java.lang.Object ref = name_; - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { name_ = s; } return s; } } - private com.google.protobuf.ByteString getNameBytes() { + /** + * required string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; - if (ref instanceof String) { + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // optional string table = 2; public static final int TABLE_FIELD_NUMBER = 2; private java.lang.Object table_; + /** + * optional string table = 2; + * + *
+     * not needed for delete, but checked for in taking snapshot
+     * 
+ */ public boolean hasTable() { return ((bitField0_ & 0x00000002) == 0x00000002); } - public String getTable() { + /** + * optional string table = 2; + * + *
+     * not needed for delete, but checked for in taking snapshot
+     * 
+ */ + public java.lang.String getTable() { java.lang.Object ref = table_; - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { table_ = s; } return s; } } - private com.google.protobuf.ByteString getTableBytes() { + /** + * optional string table = 2; + * + *
+     * not needed for delete, but checked for in taking snapshot
+     * 
+ */ + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; - if (ref instanceof String) { + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // optional int64 creation_time = 3 [default = 0]; public static final int CREATION_TIME_FIELD_NUMBER = 3; private long creationTime_; + /** + * optional int64 creation_time = 3 [default = 0]; + */ public boolean hasCreationTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * optional int64 creation_time = 3 [default = 0]; + */ public long getCreationTime() { return creationTime_; } - + // optional .SnapshotDescription.Type type = 4 [default = FLUSH]; public static final int TYPE_FIELD_NUMBER = 4; private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type type_; + /** + * optional .SnapshotDescription.Type type = 4 [default = FLUSH]; + */ public boolean hasType() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** + * optional .SnapshotDescription.Type type = 4 [default = FLUSH]; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type getType() { return type_; } - + // optional int32 version = 5; public static final int VERSION_FIELD_NUMBER = 5; private int version_; + /** + * optional int32 version = 5; + */ public boolean hasVersion() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** + * optional int32 version = 5; + */ public int getVersion() { return version_; } - + private void initFields() { name_ = ""; table_ = ""; @@ -8373,7 +10703,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasName()) { memoizedIsInitialized = 0; return false; @@ -8381,7 +10711,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -8402,12 +10732,12 @@ public final class HBaseProtos { } 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 @@ -8433,14 +10763,14 @@ public final class HBaseProtos { 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) { @@ -8450,7 +10780,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription) obj; - + boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { @@ -8481,9 +10811,13 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { @@ -8507,89 +10841,84 @@ public final class HBaseProtos { hash = (53 * hash) + getVersion(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code SnapshotDescription} + * + *
+     **
+     * Description of the snapshot to take
+     * 
+ */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescriptionOrBuilder { @@ -8597,18 +10926,21 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_SnapshotDescription_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_SnapshotDescription_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_SnapshotDescription_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Builder.class); } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -8619,7 +10951,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); name_ = ""; @@ -8634,20 +10966,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000010); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.getDescriptor(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_SnapshotDescription_descriptor; } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription result = buildPartial(); if (!result.isInitialized()) { @@ -8655,17 +10987,7 @@ public final class HBaseProtos { } return result; } - - private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription(this); int from_bitField0_ = bitField0_; @@ -8694,7 +11016,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription)other); @@ -8703,14 +11025,18 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.getDefaultInstance()) return this; if (other.hasName()) { - setName(other.getName()); + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); } if (other.hasTable()) { - setTable(other.getTable()); + bitField0_ |= 0x00000002; + table_ = other.table_; + onChanged(); } if (other.hasCreationTime()) { setCreationTime(other.getCreationTime()); @@ -8724,7 +11050,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasName()) { @@ -8732,83 +11058,69 @@ public final class HBaseProtos { } 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: { - bitField0_ |= 0x00000002; - table_ = input.readBytes(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - creationTime_ = input.readInt64(); - break; - } - case 32: { - int rawValue = input.readEnum(); - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type value = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(4, rawValue); - } else { - bitField0_ |= 0x00000008; - type_ = value; - } - break; - } - case 40: { - bitField0_ |= 0x00000010; - version_ = input.readInt32(); - break; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required string name = 1; private java.lang.Object name_ = ""; + /** + * required string name = 1; + */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getName() { + /** + * required string name = 1; + */ + public java.lang.String getName() { java.lang.Object ref = name_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); name_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; + } + } + /** + * required string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } } - public Builder setName(String value) { + /** + * required string name = 1; + */ + public Builder setName( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -8817,34 +11129,88 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * required string name = 1; + */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } - void setName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; name_ = value; onChanged(); + return this; } - + // optional string table = 2; private java.lang.Object table_ = ""; + /** + * optional string table = 2; + * + *
+       * not needed for delete, but checked for in taking snapshot
+       * 
+ */ public boolean hasTable() { return ((bitField0_ & 0x00000002) == 0x00000002); } - public String getTable() { + /** + * optional string table = 2; + * + *
+       * not needed for delete, but checked for in taking snapshot
+       * 
+ */ + public java.lang.String getTable() { java.lang.Object ref = table_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); table_ = s; return s; } else { - return (String) ref; - } - } - public Builder setTable(String value) { + return (java.lang.String) ref; + } + } + /** + * optional string table = 2; + * + *
+       * not needed for delete, but checked for in taking snapshot
+       * 
+ */ + public com.google.protobuf.ByteString + getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string table = 2; + * + *
+       * not needed for delete, but checked for in taking snapshot
+       * 
+ */ + public Builder setTable( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -8853,47 +11219,87 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * optional string table = 2; + * + *
+       * not needed for delete, but checked for in taking snapshot
+       * 
+ */ public Builder clearTable() { bitField0_ = (bitField0_ & ~0x00000002); table_ = getDefaultInstance().getTable(); onChanged(); return this; } - void setTable(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000002; + /** + * optional string table = 2; + * + *
+       * not needed for delete, but checked for in taking snapshot
+       * 
+ */ + public Builder setTableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; table_ = value; onChanged(); + return this; } - + // optional int64 creation_time = 3 [default = 0]; private long creationTime_ ; + /** + * optional int64 creation_time = 3 [default = 0]; + */ public boolean hasCreationTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * optional int64 creation_time = 3 [default = 0]; + */ public long getCreationTime() { return creationTime_; } + /** + * optional int64 creation_time = 3 [default = 0]; + */ public Builder setCreationTime(long value) { bitField0_ |= 0x00000004; creationTime_ = value; onChanged(); return this; } + /** + * optional int64 creation_time = 3 [default = 0]; + */ public Builder clearCreationTime() { bitField0_ = (bitField0_ & ~0x00000004); creationTime_ = 0L; onChanged(); return this; } - + // optional .SnapshotDescription.Type type = 4 [default = FLUSH]; private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type type_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type.FLUSH; + /** + * optional .SnapshotDescription.Type type = 4 [default = FLUSH]; + */ public boolean hasType() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** + * optional .SnapshotDescription.Type type = 4 [default = FLUSH]; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type getType() { return type_; } + /** + * optional .SnapshotDescription.Type type = 4 [default = FLUSH]; + */ public Builder setType(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type value) { if (value == null) { throw new NullPointerException(); @@ -8903,194 +11309,436 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * optional .SnapshotDescription.Type type = 4 [default = FLUSH]; + */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000008); type_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type.FLUSH; onChanged(); return this; } - + // optional int32 version = 5; private int version_ ; + /** + * optional int32 version = 5; + */ public boolean hasVersion() { return ((bitField0_ & 0x00000010) == 0x00000010); } + /** + * optional int32 version = 5; + */ public int getVersion() { return version_; } + /** + * optional int32 version = 5; + */ public Builder setVersion(int value) { bitField0_ |= 0x00000010; version_ = value; onChanged(); return this; } + /** + * optional int32 version = 5; + */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000010); version_ = 0; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:SnapshotDescription) } - + static { defaultInstance = new SnapshotDescription(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:SnapshotDescription) } - + public interface ProcedureDescriptionOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string signature = 1; + /** + * required string signature = 1; + * + *
+     * the unique signature of the procedure
+     * 
+ */ boolean hasSignature(); - String getSignature(); - + /** + * required string signature = 1; + * + *
+     * the unique signature of the procedure
+     * 
+ */ + java.lang.String getSignature(); + /** + * required string signature = 1; + * + *
+     * the unique signature of the procedure
+     * 
+ */ + com.google.protobuf.ByteString + getSignatureBytes(); + // optional string instance = 2; + /** + * optional string instance = 2; + * + *
+     * the procedure instance name
+     * 
+ */ boolean hasInstance(); - String getInstance(); - + /** + * optional string instance = 2; + * + *
+     * the procedure instance name
+     * 
+ */ + java.lang.String getInstance(); + /** + * optional string instance = 2; + * + *
+     * the procedure instance name
+     * 
+ */ + com.google.protobuf.ByteString + getInstanceBytes(); + // optional int64 creation_time = 3 [default = 0]; + /** + * optional int64 creation_time = 3 [default = 0]; + */ boolean hasCreationTime(); + /** + * optional int64 creation_time = 3 [default = 0]; + */ long getCreationTime(); - + // repeated .NameStringPair configuration = 4; + /** + * repeated .NameStringPair configuration = 4; + */ java.util.List getConfigurationList(); + /** + * repeated .NameStringPair configuration = 4; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index); + /** + * repeated .NameStringPair configuration = 4; + */ int getConfigurationCount(); + /** + * repeated .NameStringPair configuration = 4; + */ java.util.List getConfigurationOrBuilderList(); + /** + * repeated .NameStringPair configuration = 4; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder( int index); } + /** + * Protobuf type {@code ProcedureDescription} + * + *
+   **
+   * Description of the distributed procedure to take
+   * 
+ */ public static final class ProcedureDescription extends com.google.protobuf.GeneratedMessage implements ProcedureDescriptionOrBuilder { // Use ProcedureDescription.newBuilder() to construct. - private ProcedureDescription(Builder builder) { + private ProcedureDescription(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private ProcedureDescription(boolean noInit) {} - + private ProcedureDescription(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final ProcedureDescription defaultInstance; public static ProcedureDescription getDefaultInstance() { return defaultInstance; } - + public ProcedureDescription getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProcedureDescription( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + signature_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + instance_ = input.readBytes(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + creationTime_ = input.readInt64(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + configuration_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + configuration_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.PARSER, extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + configuration_ = java.util.Collections.unmodifiableList(configuration_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ProcedureDescription_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ProcedureDescription_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ProcedureDescription_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public ProcedureDescription parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProcedureDescription(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // required string signature = 1; public static final int SIGNATURE_FIELD_NUMBER = 1; private java.lang.Object signature_; + /** + * required string signature = 1; + * + *
+     * the unique signature of the procedure
+     * 
+ */ public boolean hasSignature() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getSignature() { + /** + * required string signature = 1; + * + *
+     * the unique signature of the procedure
+     * 
+ */ + public java.lang.String getSignature() { java.lang.Object ref = signature_; - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { signature_ = s; } return s; } } - private com.google.protobuf.ByteString getSignatureBytes() { + /** + * required string signature = 1; + * + *
+     * the unique signature of the procedure
+     * 
+ */ + public com.google.protobuf.ByteString + getSignatureBytes() { java.lang.Object ref = signature_; - if (ref instanceof String) { + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); signature_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // optional string instance = 2; public static final int INSTANCE_FIELD_NUMBER = 2; private java.lang.Object instance_; + /** + * optional string instance = 2; + * + *
+     * the procedure instance name
+     * 
+ */ public boolean hasInstance() { return ((bitField0_ & 0x00000002) == 0x00000002); } - public String getInstance() { + /** + * optional string instance = 2; + * + *
+     * the procedure instance name
+     * 
+ */ + public java.lang.String getInstance() { java.lang.Object ref = instance_; - if (ref instanceof String) { - return (String) ref; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { instance_ = s; } return s; } } - private com.google.protobuf.ByteString getInstanceBytes() { + /** + * optional string instance = 2; + * + *
+     * the procedure instance name
+     * 
+ */ + public com.google.protobuf.ByteString + getInstanceBytes() { java.lang.Object ref = instance_; - if (ref instanceof String) { + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instance_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // optional int64 creation_time = 3 [default = 0]; public static final int CREATION_TIME_FIELD_NUMBER = 3; private long creationTime_; + /** + * optional int64 creation_time = 3 [default = 0]; + */ public boolean hasCreationTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * optional int64 creation_time = 3 [default = 0]; + */ public long getCreationTime() { return creationTime_; } - + // repeated .NameStringPair configuration = 4; public static final int CONFIGURATION_FIELD_NUMBER = 4; private java.util.List configuration_; + /** + * repeated .NameStringPair configuration = 4; + */ public java.util.List getConfigurationList() { return configuration_; } + /** + * repeated .NameStringPair configuration = 4; + */ public java.util.List getConfigurationOrBuilderList() { return configuration_; } + /** + * repeated .NameStringPair configuration = 4; + */ public int getConfigurationCount() { return configuration_.size(); } + /** + * repeated .NameStringPair configuration = 4; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index) { return configuration_.get(index); } + /** + * repeated .NameStringPair configuration = 4; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder( int index) { return configuration_.get(index); } - + private void initFields() { signature_ = ""; instance_ = ""; @@ -9101,7 +11749,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasSignature()) { memoizedIsInitialized = 0; return false; @@ -9115,7 +11763,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -9133,12 +11781,12 @@ public final class HBaseProtos { } 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 @@ -9160,14 +11808,14 @@ public final class HBaseProtos { 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) { @@ -9177,7 +11825,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription) obj; - + boolean result = true; result = result && (hasSignature() == other.hasSignature()); if (hasSignature()) { @@ -9200,9 +11848,13 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasSignature()) { @@ -9222,89 +11874,84 @@ public final class HBaseProtos { hash = (53 * hash) + getConfigurationList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code ProcedureDescription} + * + *
+     **
+     * Description of the distributed procedure to take
+     * 
+ */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescriptionOrBuilder { @@ -9312,18 +11959,21 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ProcedureDescription_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ProcedureDescription_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ProcedureDescription_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription.Builder.class); } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -9335,7 +11985,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); signature_ = ""; @@ -9352,20 +12002,20 @@ public final class HBaseProtos { } return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription.getDescriptor(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_ProcedureDescription_descriptor; } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription result = buildPartial(); if (!result.isInitialized()) { @@ -9373,17 +12023,7 @@ public final class HBaseProtos { } return result; } - - private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription(this); int from_bitField0_ = bitField0_; @@ -9413,7 +12053,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription)other); @@ -9422,14 +12062,18 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription.getDefaultInstance()) return this; if (other.hasSignature()) { - setSignature(other.getSignature()); + bitField0_ |= 0x00000001; + signature_ = other.signature_; + onChanged(); } if (other.hasInstance()) { - setInstance(other.getInstance()); + bitField0_ |= 0x00000002; + instance_ = other.instance_; + onChanged(); } if (other.hasCreationTime()) { setCreationTime(other.getCreationTime()); @@ -9463,7 +12107,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasSignature()) { @@ -9477,73 +12121,85 @@ public final class HBaseProtos { } 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; - signature_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - instance_ = input.readBytes(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - creationTime_ = input.readInt64(); - 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; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required string signature = 1; private java.lang.Object signature_ = ""; + /** + * required string signature = 1; + * + *
+       * the unique signature of the procedure
+       * 
+ */ public boolean hasSignature() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getSignature() { + /** + * required string signature = 1; + * + *
+       * the unique signature of the procedure
+       * 
+ */ + public java.lang.String getSignature() { java.lang.Object ref = signature_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); signature_ = s; return s; } else { - return (String) ref; - } - } - public Builder setSignature(String value) { + return (java.lang.String) ref; + } + } + /** + * required string signature = 1; + * + *
+       * the unique signature of the procedure
+       * 
+ */ + public com.google.protobuf.ByteString + getSignatureBytes() { + java.lang.Object ref = signature_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + signature_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string signature = 1; + * + *
+       * the unique signature of the procedure
+       * 
+ */ + public Builder setSignature( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -9552,34 +12208,96 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * required string signature = 1; + * + *
+       * the unique signature of the procedure
+       * 
+ */ public Builder clearSignature() { bitField0_ = (bitField0_ & ~0x00000001); signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } - void setSignature(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string signature = 1; + * + *
+       * the unique signature of the procedure
+       * 
+ */ + public Builder setSignatureBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; signature_ = value; onChanged(); + return this; } - + // optional string instance = 2; private java.lang.Object instance_ = ""; + /** + * optional string instance = 2; + * + *
+       * the procedure instance name
+       * 
+ */ public boolean hasInstance() { return ((bitField0_ & 0x00000002) == 0x00000002); } - public String getInstance() { + /** + * optional string instance = 2; + * + *
+       * the procedure instance name
+       * 
+ */ + public java.lang.String getInstance() { java.lang.Object ref = instance_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); instance_ = s; return s; } else { - return (String) ref; - } - } - public Builder setInstance(String value) { + return (java.lang.String) ref; + } + } + /** + * optional string instance = 2; + * + *
+       * the procedure instance name
+       * 
+ */ + public com.google.protobuf.ByteString + getInstanceBytes() { + java.lang.Object ref = instance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + instance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string instance = 2; + * + *
+       * the procedure instance name
+       * 
+ */ + public Builder setInstance( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -9588,39 +12306,70 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * optional string instance = 2; + * + *
+       * the procedure instance name
+       * 
+ */ public Builder clearInstance() { bitField0_ = (bitField0_ & ~0x00000002); instance_ = getDefaultInstance().getInstance(); onChanged(); return this; } - void setInstance(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000002; + /** + * optional string instance = 2; + * + *
+       * the procedure instance name
+       * 
+ */ + public Builder setInstanceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; instance_ = value; onChanged(); + return this; } - + // optional int64 creation_time = 3 [default = 0]; private long creationTime_ ; + /** + * optional int64 creation_time = 3 [default = 0]; + */ public boolean hasCreationTime() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * optional int64 creation_time = 3 [default = 0]; + */ public long getCreationTime() { return creationTime_; } + /** + * optional int64 creation_time = 3 [default = 0]; + */ public Builder setCreationTime(long value) { bitField0_ |= 0x00000004; creationTime_ = value; onChanged(); return this; } + /** + * optional int64 creation_time = 3 [default = 0]; + */ public Builder clearCreationTime() { bitField0_ = (bitField0_ & ~0x00000004); creationTime_ = 0L; onChanged(); return this; } - + // repeated .NameStringPair configuration = 4; private java.util.List configuration_ = java.util.Collections.emptyList(); @@ -9630,10 +12379,13 @@ public final class HBaseProtos { bitField0_ |= 0x00000008; } } - + private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder> configurationBuilder_; - + + /** + * repeated .NameStringPair configuration = 4; + */ public java.util.List getConfigurationList() { if (configurationBuilder_ == null) { return java.util.Collections.unmodifiableList(configuration_); @@ -9641,6 +12393,9 @@ public final class HBaseProtos { return configurationBuilder_.getMessageList(); } } + /** + * repeated .NameStringPair configuration = 4; + */ public int getConfigurationCount() { if (configurationBuilder_ == null) { return configuration_.size(); @@ -9648,6 +12403,9 @@ public final class HBaseProtos { return configurationBuilder_.getCount(); } } + /** + * repeated .NameStringPair configuration = 4; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index) { if (configurationBuilder_ == null) { return configuration_.get(index); @@ -9655,6 +12413,9 @@ public final class HBaseProtos { return configurationBuilder_.getMessage(index); } } + /** + * repeated .NameStringPair configuration = 4; + */ public Builder setConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { @@ -9669,6 +12430,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 4; + */ public Builder setConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -9680,6 +12444,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 4; + */ public Builder addConfiguration(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { if (value == null) { @@ -9693,6 +12460,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 4; + */ public Builder addConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { @@ -9707,6 +12477,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 4; + */ public Builder addConfiguration( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -9718,6 +12491,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 4; + */ public Builder addConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -9729,6 +12505,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 4; + */ public Builder addAllConfiguration( java.lang.Iterable values) { if (configurationBuilder_ == null) { @@ -9740,6 +12519,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 4; + */ public Builder clearConfiguration() { if (configurationBuilder_ == null) { configuration_ = java.util.Collections.emptyList(); @@ -9750,6 +12532,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 4; + */ public Builder removeConfiguration(int index) { if (configurationBuilder_ == null) { ensureConfigurationIsMutable(); @@ -9760,10 +12545,16 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 4; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder getConfigurationBuilder( int index) { return getConfigurationFieldBuilder().getBuilder(index); } + /** + * repeated .NameStringPair configuration = 4; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder( int index) { if (configurationBuilder_ == null) { @@ -9771,6 +12562,9 @@ public final class HBaseProtos { return configurationBuilder_.getMessageOrBuilder(index); } } + /** + * repeated .NameStringPair configuration = 4; + */ public java.util.List getConfigurationOrBuilderList() { if (configurationBuilder_ != null) { @@ -9779,15 +12573,24 @@ public final class HBaseProtos { return java.util.Collections.unmodifiableList(configuration_); } } + /** + * repeated .NameStringPair configuration = 4; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder addConfigurationBuilder() { return getConfigurationFieldBuilder().addBuilder( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDefaultInstance()); } + /** + * repeated .NameStringPair configuration = 4; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder addConfigurationBuilder( int index) { return getConfigurationFieldBuilder().addBuilder( index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDefaultInstance()); } + /** + * repeated .NameStringPair configuration = 4; + */ public java.util.List getConfigurationBuilderList() { return getConfigurationFieldBuilder().getBuilderList(); @@ -9806,84 +12609,145 @@ public final class HBaseProtos { } return configurationBuilder_; } - + // @@protoc_insertion_point(builder_scope:ProcedureDescription) } - + static { defaultInstance = new ProcedureDescription(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:ProcedureDescription) } - + public interface EmptyMsgOrBuilder extends com.google.protobuf.MessageOrBuilder { } + /** + * Protobuf type {@code EmptyMsg} + */ public static final class EmptyMsg extends com.google.protobuf.GeneratedMessage implements EmptyMsgOrBuilder { // Use EmptyMsg.newBuilder() to construct. - private EmptyMsg(Builder builder) { + private EmptyMsg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private EmptyMsg(boolean noInit) {} - + private EmptyMsg(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final EmptyMsg defaultInstance; public static EmptyMsg getDefaultInstance() { return defaultInstance; } - + public EmptyMsg getDefaultInstanceForType() { return defaultInstance; } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_EmptyMsg_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_EmptyMsg_fieldAccessorTable; - } - - private void initFields() { - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - + private EmptyMsg( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_EmptyMsg_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_EmptyMsg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public EmptyMsg parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EmptyMsg(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private void initFields() { + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); getUnknownFields().writeTo(output); } - + private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; - + size = 0; 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) { @@ -9893,101 +12757,95 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg) obj; - + boolean result = true; result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code EmptyMsg} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsgOrBuilder { @@ -9995,18 +12853,21 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_EmptyMsg_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_EmptyMsg_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_EmptyMsg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg.Builder.class); } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -10017,25 +12878,25 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.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.EmptyMsg.getDescriptor(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_EmptyMsg_descriptor; } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg result = buildPartial(); if (!result.isInitialized()) { @@ -10043,23 +12904,13 @@ public final class HBaseProtos { } return result; } - - private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg(this); onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg)other); @@ -10068,102 +12919,171 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - 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; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - - + // @@protoc_insertion_point(builder_scope:EmptyMsg) } - + static { defaultInstance = new EmptyMsg(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:EmptyMsg) } - + public interface LongMsgOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required int64 long_msg = 1; + /** + * required int64 long_msg = 1; + */ boolean hasLongMsg(); + /** + * required int64 long_msg = 1; + */ long getLongMsg(); } + /** + * Protobuf type {@code LongMsg} + */ public static final class LongMsg extends com.google.protobuf.GeneratedMessage implements LongMsgOrBuilder { // Use LongMsg.newBuilder() to construct. - private LongMsg(Builder builder) { + private LongMsg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private LongMsg(boolean noInit) {} - + private LongMsg(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final LongMsg defaultInstance; public static LongMsg getDefaultInstance() { return defaultInstance; } - + public LongMsg getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LongMsg( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + longMsg_ = input.readInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_LongMsg_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_LongMsg_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_LongMsg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.Builder.class); } - + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public LongMsg parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongMsg(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + private int bitField0_; // required int64 long_msg = 1; public static final int LONG_MSG_FIELD_NUMBER = 1; private long longMsg_; + /** + * required int64 long_msg = 1; + */ public boolean hasLongMsg() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required int64 long_msg = 1; + */ public long getLongMsg() { return longMsg_; } - + private void initFields() { longMsg_ = 0L; } @@ -10171,7 +13091,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasLongMsg()) { memoizedIsInitialized = 0; return false; @@ -10179,7 +13099,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -10188,12 +13108,12 @@ public final class HBaseProtos { } 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 @@ -10203,14 +13123,14 @@ public final class HBaseProtos { 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) { @@ -10220,7 +13140,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg) obj; - + boolean result = true; result = result && (hasLongMsg() == other.hasLongMsg()); if (hasLongMsg()) { @@ -10231,9 +13151,13 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasLongMsg()) { @@ -10241,108 +13165,543 @@ public final class HBaseProtos { hash = (53 * hash) + hashLong(getLongMsg()); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code LongMsg} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsgOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_LongMsg_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_LongMsg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.Builder.class); + } + + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + longMsg_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_LongMsg_descriptor; + } + + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg getDefaultInstanceForType() { + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.getDefaultInstance(); + } + + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg build() { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg buildPartial() { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.longMsg_ = longMsg_; + 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.LongMsg) { + return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg other) { + if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.getDefaultInstance()) return this; + if (other.hasLongMsg()) { + setLongMsg(other.getLongMsg()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasLongMsg()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // required int64 long_msg = 1; + private long longMsg_ ; + /** + * required int64 long_msg = 1; + */ + public boolean hasLongMsg() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int64 long_msg = 1; + */ + public long getLongMsg() { + return longMsg_; + } + /** + * required int64 long_msg = 1; + */ + public Builder setLongMsg(long value) { + bitField0_ |= 0x00000001; + longMsg_ = value; + onChanged(); + return this; + } + /** + * required int64 long_msg = 1; + */ + public Builder clearLongMsg() { + bitField0_ = (bitField0_ & ~0x00000001); + longMsg_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:LongMsg) + } + + static { + defaultInstance = new LongMsg(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:LongMsg) + } + + public interface DoubleMsgOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required double double_msg = 1; + /** + * required double double_msg = 1; + */ + boolean hasDoubleMsg(); + /** + * required double double_msg = 1; + */ + double getDoubleMsg(); + } + /** + * Protobuf type {@code DoubleMsg} + */ + public static final class DoubleMsg extends + com.google.protobuf.GeneratedMessage + implements DoubleMsgOrBuilder { + // Use DoubleMsg.newBuilder() to construct. + private DoubleMsg(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private DoubleMsg(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final DoubleMsg defaultInstance; + public static DoubleMsg getDefaultInstance() { + return defaultInstance; + } + + public DoubleMsg getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DoubleMsg( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 9: { + bitField0_ |= 0x00000001; + doubleMsg_ = input.readDouble(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_DoubleMsg_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_DoubleMsg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public DoubleMsg parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DoubleMsg(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // required double double_msg = 1; + public static final int DOUBLE_MSG_FIELD_NUMBER = 1; + private double doubleMsg_; + /** + * required double double_msg = 1; + */ + public boolean hasDoubleMsg() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required double double_msg = 1; + */ + public double getDoubleMsg() { + return doubleMsg_; + } + + private void initFields() { + doubleMsg_ = 0D; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasDoubleMsg()) { + 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.writeDouble(1, doubleMsg_); + } + 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 + .computeDoubleSize(1, doubleMsg_); + } + 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.DoubleMsg)) { + return super.equals(obj); + } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg) obj; + + boolean result = true; + result = result && (hasDoubleMsg() == other.hasDoubleMsg()); + if (hasDoubleMsg()) { + result = result && (Double.doubleToLongBits(getDoubleMsg()) == Double.doubleToLongBits(other.getDoubleMsg())); + } + result = result && + getUnknownFields().equals(other.getUnknownFields()); + return result; + } + + private int memoizedHashCode = 0; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasDoubleMsg()) { + hash = (37 * hash) + DOUBLE_MSG_FIELD_NUMBER; + hash = (53 * hash) + hashLong( + Double.doubleToLongBits(getDoubleMsg())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - - public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom( + + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } - public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom( + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } - public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom(byte[] data) + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } - public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom( + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } - public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom(java.io.InputStream input) + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } - public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom( + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseDelimitedFrom(java.io.InputStream input) + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } - public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseDelimitedFrom( + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom( + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } - public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg parseFrom( + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg prototype) { + public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code DoubleMsg} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsgOrBuilder { + implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsgOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_LongMsg_descriptor; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_DoubleMsg_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_LongMsg_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_DoubleMsg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg.Builder.class); } - - // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.newBuilder() + + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -10353,196 +13712,262 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); - longMsg_ = 0L; + doubleMsg_ = 0D; bitField0_ = (bitField0_ & ~0x00000001); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.getDescriptor(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_DoubleMsg_descriptor; } - - public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg getDefaultInstanceForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.getDefaultInstance(); + + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg getDefaultInstanceForType() { + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg.getDefaultInstance(); } - - public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg build() { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg result = buildPartial(); + + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg build() { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - - private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg buildPartial() { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg(this); + + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg buildPartial() { + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } - result.longMsg_ = longMsg_; + result.doubleMsg_ = doubleMsg_; 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.LongMsg) { - return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg)other); + if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg) { + return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg)other); } else { super.mergeFrom(other); return this; } } - - public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg other) { - if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.getDefaultInstance()) return this; - if (other.hasLongMsg()) { - setLongMsg(other.getLongMsg()); + + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg other) { + if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg.getDefaultInstance()) return this; + if (other.hasDoubleMsg()) { + setDoubleMsg(other.getDoubleMsg()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { - if (!hasLongMsg()) { + if (!hasDoubleMsg()) { 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 8: { - bitField0_ |= 0x00000001; - longMsg_ = input.readInt64(); - break; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.DoubleMsg) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - - // required int64 long_msg = 1; - private long longMsg_ ; - public boolean hasLongMsg() { + + // required double double_msg = 1; + private double doubleMsg_ ; + /** + * required double double_msg = 1; + */ + public boolean hasDoubleMsg() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public long getLongMsg() { - return longMsg_; + /** + * required double double_msg = 1; + */ + public double getDoubleMsg() { + return doubleMsg_; } - public Builder setLongMsg(long value) { + /** + * required double double_msg = 1; + */ + public Builder setDoubleMsg(double value) { bitField0_ |= 0x00000001; - longMsg_ = value; + doubleMsg_ = value; onChanged(); return this; } - public Builder clearLongMsg() { + /** + * required double double_msg = 1; + */ + public Builder clearDoubleMsg() { bitField0_ = (bitField0_ & ~0x00000001); - longMsg_ = 0L; + doubleMsg_ = 0D; onChanged(); return this; } - - // @@protoc_insertion_point(builder_scope:LongMsg) + + // @@protoc_insertion_point(builder_scope:DoubleMsg) } - + static { - defaultInstance = new LongMsg(true); + defaultInstance = new DoubleMsg(true); defaultInstance.initFields(); } - - // @@protoc_insertion_point(class_scope:LongMsg) + + // @@protoc_insertion_point(class_scope:DoubleMsg) } - + public interface BigDecimalMsgOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required bytes bigdecimal_msg = 1; + /** + * required bytes bigdecimal_msg = 1; + */ boolean hasBigdecimalMsg(); + /** + * required bytes bigdecimal_msg = 1; + */ com.google.protobuf.ByteString getBigdecimalMsg(); } + /** + * Protobuf type {@code BigDecimalMsg} + */ public static final class BigDecimalMsg extends com.google.protobuf.GeneratedMessage implements BigDecimalMsgOrBuilder { // Use BigDecimalMsg.newBuilder() to construct. - private BigDecimalMsg(Builder builder) { + private BigDecimalMsg(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private BigDecimalMsg(boolean noInit) {} - + private BigDecimalMsg(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final BigDecimalMsg defaultInstance; public static BigDecimalMsg getDefaultInstance() { return defaultInstance; } - + public BigDecimalMsg getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BigDecimalMsg( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + bigdecimalMsg_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BigDecimalMsg_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BigDecimalMsg_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BigDecimalMsg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public BigDecimalMsg parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BigDecimalMsg(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // required bytes bigdecimal_msg = 1; public static final int BIGDECIMAL_MSG_FIELD_NUMBER = 1; private com.google.protobuf.ByteString bigdecimalMsg_; + /** + * required bytes bigdecimal_msg = 1; + */ public boolean hasBigdecimalMsg() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required bytes bigdecimal_msg = 1; + */ public com.google.protobuf.ByteString getBigdecimalMsg() { return bigdecimalMsg_; } - + private void initFields() { bigdecimalMsg_ = com.google.protobuf.ByteString.EMPTY; } @@ -10550,7 +13975,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasBigdecimalMsg()) { memoizedIsInitialized = 0; return false; @@ -10558,7 +13983,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -10567,12 +13992,12 @@ public final class HBaseProtos { } 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 @@ -10582,14 +14007,14 @@ public final class HBaseProtos { 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) { @@ -10599,7 +14024,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg) obj; - + boolean result = true; result = result && (hasBigdecimalMsg() == other.hasBigdecimalMsg()); if (hasBigdecimalMsg()) { @@ -10610,9 +14035,13 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasBigdecimalMsg()) { @@ -10620,89 +14049,79 @@ public final class HBaseProtos { hash = (53 * hash) + getBigdecimalMsg().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code BigDecimalMsg} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsgOrBuilder { @@ -10710,18 +14129,21 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BigDecimalMsg_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BigDecimalMsg_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BigDecimalMsg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg.Builder.class); } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -10732,27 +14154,27 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); bigdecimalMsg_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg.getDescriptor(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_BigDecimalMsg_descriptor; } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg result = buildPartial(); if (!result.isInitialized()) { @@ -10760,17 +14182,7 @@ public final class HBaseProtos { } return result; } - - private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg(this); int from_bitField0_ = bitField0_; @@ -10783,7 +14195,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg)other); @@ -10792,7 +14204,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg.getDefaultInstance()) return this; if (other.hasBigdecimalMsg()) { @@ -10801,7 +14213,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasBigdecimalMsg()) { @@ -10809,49 +14221,43 @@ public final class HBaseProtos { } 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; - bigdecimalMsg_ = input.readBytes(); - break; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required bytes bigdecimal_msg = 1; private com.google.protobuf.ByteString bigdecimalMsg_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes bigdecimal_msg = 1; + */ public boolean hasBigdecimalMsg() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required bytes bigdecimal_msg = 1; + */ public com.google.protobuf.ByteString getBigdecimalMsg() { return bigdecimalMsg_; } + /** + * required bytes bigdecimal_msg = 1; + */ public Builder setBigdecimalMsg(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -10861,84 +14267,183 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * required bytes bigdecimal_msg = 1; + */ public Builder clearBigdecimalMsg() { bitField0_ = (bitField0_ & ~0x00000001); bigdecimalMsg_ = getDefaultInstance().getBigdecimalMsg(); onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:BigDecimalMsg) } - + static { defaultInstance = new BigDecimalMsg(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:BigDecimalMsg) } - + public interface UUIDOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required uint64 least_sig_bits = 1; + /** + * required uint64 least_sig_bits = 1; + */ boolean hasLeastSigBits(); + /** + * required uint64 least_sig_bits = 1; + */ long getLeastSigBits(); - + // required uint64 most_sig_bits = 2; + /** + * required uint64 most_sig_bits = 2; + */ boolean hasMostSigBits(); + /** + * required uint64 most_sig_bits = 2; + */ long getMostSigBits(); } + /** + * Protobuf type {@code UUID} + */ public static final class UUID extends com.google.protobuf.GeneratedMessage implements UUIDOrBuilder { // Use UUID.newBuilder() to construct. - private UUID(Builder builder) { + private UUID(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private UUID(boolean noInit) {} - + private UUID(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final UUID defaultInstance; public static UUID getDefaultInstance() { return defaultInstance; } - + public UUID getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UUID( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + leastSigBits_ = input.readUInt64(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + mostSigBits_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_UUID_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_UUID_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_UUID_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public UUID parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UUID(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // required uint64 least_sig_bits = 1; public static final int LEAST_SIG_BITS_FIELD_NUMBER = 1; private long leastSigBits_; + /** + * required uint64 least_sig_bits = 1; + */ public boolean hasLeastSigBits() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required uint64 least_sig_bits = 1; + */ public long getLeastSigBits() { return leastSigBits_; } - + // required uint64 most_sig_bits = 2; public static final int MOST_SIG_BITS_FIELD_NUMBER = 2; private long mostSigBits_; + /** + * required uint64 most_sig_bits = 2; + */ public boolean hasMostSigBits() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required uint64 most_sig_bits = 2; + */ public long getMostSigBits() { return mostSigBits_; } - + private void initFields() { leastSigBits_ = 0L; mostSigBits_ = 0L; @@ -10947,7 +14452,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasLeastSigBits()) { memoizedIsInitialized = 0; return false; @@ -10959,7 +14464,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -10971,12 +14476,12 @@ public final class HBaseProtos { } 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 @@ -10990,14 +14495,14 @@ public final class HBaseProtos { 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) { @@ -11007,7 +14512,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID) obj; - + boolean result = true; result = result && (hasLeastSigBits() == other.hasLeastSigBits()); if (hasLeastSigBits()) { @@ -11023,9 +14528,13 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasLeastSigBits()) { @@ -11037,89 +14546,79 @@ public final class HBaseProtos { hash = (53 * hash) + hashLong(getMostSigBits()); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code UUID} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUIDOrBuilder { @@ -11127,18 +14626,21 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_UUID_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_UUID_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_UUID_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID.Builder.class); } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -11149,7 +14651,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); leastSigBits_ = 0L; @@ -11158,20 +14660,20 @@ public final class HBaseProtos { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID.getDescriptor(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_UUID_descriptor; } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID result = buildPartial(); if (!result.isInitialized()) { @@ -11179,17 +14681,7 @@ public final class HBaseProtos { } return result; } - - private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID(this); int from_bitField0_ = bitField0_; @@ -11206,7 +14698,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID)other); @@ -11215,7 +14707,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID.getDefaultInstance()) return this; if (other.hasLeastSigBits()) { @@ -11227,7 +14719,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasLeastSigBits()) { @@ -11239,176 +14731,300 @@ public final class HBaseProtos { } 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 8: { - bitField0_ |= 0x00000001; - leastSigBits_ = input.readUInt64(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - mostSigBits_ = input.readUInt64(); - break; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required uint64 least_sig_bits = 1; private long leastSigBits_ ; + /** + * required uint64 least_sig_bits = 1; + */ public boolean hasLeastSigBits() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required uint64 least_sig_bits = 1; + */ public long getLeastSigBits() { return leastSigBits_; } + /** + * required uint64 least_sig_bits = 1; + */ public Builder setLeastSigBits(long value) { bitField0_ |= 0x00000001; leastSigBits_ = value; onChanged(); return this; } + /** + * required uint64 least_sig_bits = 1; + */ public Builder clearLeastSigBits() { bitField0_ = (bitField0_ & ~0x00000001); leastSigBits_ = 0L; onChanged(); return this; } - + // required uint64 most_sig_bits = 2; private long mostSigBits_ ; + /** + * required uint64 most_sig_bits = 2; + */ public boolean hasMostSigBits() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required uint64 most_sig_bits = 2; + */ public long getMostSigBits() { return mostSigBits_; } + /** + * required uint64 most_sig_bits = 2; + */ public Builder setMostSigBits(long value) { bitField0_ |= 0x00000002; mostSigBits_ = value; onChanged(); return this; } + /** + * required uint64 most_sig_bits = 2; + */ public Builder clearMostSigBits() { bitField0_ = (bitField0_ & ~0x00000002); mostSigBits_ = 0L; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:UUID) } - + static { defaultInstance = new UUID(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:UUID) } - + public interface NamespaceDescriptorOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required bytes name = 1; + /** + * required bytes name = 1; + */ boolean hasName(); + /** + * required bytes name = 1; + */ com.google.protobuf.ByteString getName(); - + // repeated .NameStringPair configuration = 2; + /** + * repeated .NameStringPair configuration = 2; + */ java.util.List getConfigurationList(); + /** + * repeated .NameStringPair configuration = 2; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index); + /** + * repeated .NameStringPair configuration = 2; + */ int getConfigurationCount(); + /** + * repeated .NameStringPair configuration = 2; + */ java.util.List getConfigurationOrBuilderList(); + /** + * repeated .NameStringPair configuration = 2; + */ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder( int index); } + /** + * Protobuf type {@code NamespaceDescriptor} + */ public static final class NamespaceDescriptor extends com.google.protobuf.GeneratedMessage implements NamespaceDescriptorOrBuilder { // Use NamespaceDescriptor.newBuilder() to construct. - private NamespaceDescriptor(Builder builder) { + private NamespaceDescriptor(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private NamespaceDescriptor(boolean noInit) {} - + private NamespaceDescriptor(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final NamespaceDescriptor defaultInstance; public static NamespaceDescriptor getDefaultInstance() { return defaultInstance; } - + public NamespaceDescriptor getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamespaceDescriptor( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + name_ = input.readBytes(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + configuration_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + configuration_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.PARSER, extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + configuration_ = java.util.Collections.unmodifiableList(configuration_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NamespaceDescriptor_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NamespaceDescriptor_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NamespaceDescriptor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public NamespaceDescriptor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamespaceDescriptor(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // required bytes name = 1; public static final int NAME_FIELD_NUMBER = 1; private com.google.protobuf.ByteString name_; + /** + * required bytes name = 1; + */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required bytes name = 1; + */ public com.google.protobuf.ByteString getName() { return name_; } - + // repeated .NameStringPair configuration = 2; public static final int CONFIGURATION_FIELD_NUMBER = 2; private java.util.List configuration_; + /** + * repeated .NameStringPair configuration = 2; + */ public java.util.List getConfigurationList() { return configuration_; } + /** + * repeated .NameStringPair configuration = 2; + */ public java.util.List getConfigurationOrBuilderList() { return configuration_; } + /** + * repeated .NameStringPair configuration = 2; + */ public int getConfigurationCount() { return configuration_.size(); } + /** + * repeated .NameStringPair configuration = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index) { return configuration_.get(index); } + /** + * repeated .NameStringPair configuration = 2; + */ 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; configuration_ = java.util.Collections.emptyList(); @@ -11417,7 +15033,7 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasName()) { memoizedIsInitialized = 0; return false; @@ -11431,7 +15047,7 @@ public final class HBaseProtos { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -11443,12 +15059,12 @@ public final class HBaseProtos { } 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 @@ -11462,14 +15078,14 @@ public final class HBaseProtos { 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) { @@ -11479,7 +15095,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor) obj; - + boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { @@ -11492,9 +15108,13 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasName()) { @@ -11506,89 +15126,79 @@ public final class HBaseProtos { hash = (53 * hash) + getConfigurationList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code NamespaceDescriptor} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptorOrBuilder { @@ -11596,18 +15206,21 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NamespaceDescriptor_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NamespaceDescriptor_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NamespaceDescriptor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor.Builder.class); } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -11619,7 +15232,7 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); name_ = com.google.protobuf.ByteString.EMPTY; @@ -11632,20 +15245,20 @@ public final class HBaseProtos { } return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor.getDescriptor(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_NamespaceDescriptor_descriptor; } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor result = buildPartial(); if (!result.isInitialized()) { @@ -11653,17 +15266,7 @@ public final class HBaseProtos { } return result; } - - private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor(this); int from_bitField0_ = bitField0_; @@ -11685,7 +15288,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor)other); @@ -11694,7 +15297,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor.getDefaultInstance()) return this; if (other.hasName()) { @@ -11729,7 +15332,7 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasName()) { @@ -11743,55 +15346,43 @@ public final class HBaseProtos { } 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.NameStringPair.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addConfiguration(subBuilder.buildPartial()); - break; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required bytes name = 1; private com.google.protobuf.ByteString name_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes name = 1; + */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required bytes name = 1; + */ public com.google.protobuf.ByteString getName() { return name_; } + /** + * required bytes name = 1; + */ public Builder setName(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -11801,13 +15392,16 @@ public final class HBaseProtos { onChanged(); return this; } + /** + * required bytes name = 1; + */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } - + // repeated .NameStringPair configuration = 2; private java.util.List configuration_ = java.util.Collections.emptyList(); @@ -11817,10 +15411,13 @@ public final class HBaseProtos { bitField0_ |= 0x00000002; } } - + private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder> configurationBuilder_; - + + /** + * repeated .NameStringPair configuration = 2; + */ public java.util.List getConfigurationList() { if (configurationBuilder_ == null) { return java.util.Collections.unmodifiableList(configuration_); @@ -11828,6 +15425,9 @@ public final class HBaseProtos { return configurationBuilder_.getMessageList(); } } + /** + * repeated .NameStringPair configuration = 2; + */ public int getConfigurationCount() { if (configurationBuilder_ == null) { return configuration_.size(); @@ -11835,6 +15435,9 @@ public final class HBaseProtos { return configurationBuilder_.getCount(); } } + /** + * repeated .NameStringPair configuration = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair getConfiguration(int index) { if (configurationBuilder_ == null) { return configuration_.get(index); @@ -11842,6 +15445,9 @@ public final class HBaseProtos { return configurationBuilder_.getMessage(index); } } + /** + * repeated .NameStringPair configuration = 2; + */ public Builder setConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { @@ -11856,6 +15462,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 2; + */ public Builder setConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -11867,6 +15476,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 2; + */ public Builder addConfiguration(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { if (value == null) { @@ -11880,6 +15492,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 2; + */ public Builder addConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair value) { if (configurationBuilder_ == null) { @@ -11894,6 +15509,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 2; + */ public Builder addConfiguration( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -11905,6 +15523,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 2; + */ public Builder addConfiguration( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder builderForValue) { if (configurationBuilder_ == null) { @@ -11916,6 +15537,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 2; + */ public Builder addAllConfiguration( java.lang.Iterable values) { if (configurationBuilder_ == null) { @@ -11927,6 +15551,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 2; + */ public Builder clearConfiguration() { if (configurationBuilder_ == null) { configuration_ = java.util.Collections.emptyList(); @@ -11937,6 +15564,9 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 2; + */ public Builder removeConfiguration(int index) { if (configurationBuilder_ == null) { ensureConfigurationIsMutable(); @@ -11947,10 +15577,16 @@ public final class HBaseProtos { } return this; } + /** + * repeated .NameStringPair configuration = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder getConfigurationBuilder( int index) { return getConfigurationFieldBuilder().getBuilder(index); } + /** + * repeated .NameStringPair configuration = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPairOrBuilder getConfigurationOrBuilder( int index) { if (configurationBuilder_ == null) { @@ -11958,6 +15594,9 @@ public final class HBaseProtos { return configurationBuilder_.getMessageOrBuilder(index); } } + /** + * repeated .NameStringPair configuration = 2; + */ public java.util.List getConfigurationOrBuilderList() { if (configurationBuilder_ != null) { @@ -11966,15 +15605,24 @@ public final class HBaseProtos { return java.util.Collections.unmodifiableList(configuration_); } } + /** + * repeated .NameStringPair configuration = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder addConfigurationBuilder() { return getConfigurationFieldBuilder().addBuilder( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDefaultInstance()); } + /** + * repeated .NameStringPair configuration = 2; + */ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder addConfigurationBuilder( int index) { return getConfigurationFieldBuilder().addBuilder( index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.getDefaultInstance()); } + /** + * repeated .NameStringPair configuration = 2; + */ public java.util.List getConfigurationBuilderList() { return getConfigurationFieldBuilder().getBuilderList(); @@ -11993,64 +15641,148 @@ public final class HBaseProtos { } return configurationBuilder_; } - + // @@protoc_insertion_point(builder_scope:NamespaceDescriptor) } - + static { defaultInstance = new NamespaceDescriptor(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:NamespaceDescriptor) } - + public interface RegionServerInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // optional int32 infoPort = 1; + /** + * optional int32 infoPort = 1; + */ boolean hasInfoPort(); + /** + * optional int32 infoPort = 1; + */ int getInfoPort(); } + /** + * Protobuf type {@code RegionServerInfo} + * + *
+   **
+   * Description of the region server info
+   * 
+ */ public static final class RegionServerInfo extends com.google.protobuf.GeneratedMessage implements RegionServerInfoOrBuilder { // Use RegionServerInfo.newBuilder() to construct. - private RegionServerInfo(Builder builder) { + private RegionServerInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private RegionServerInfo(boolean noInit) {} - + private RegionServerInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final RegionServerInfo defaultInstance; public static RegionServerInfo getDefaultInstance() { return defaultInstance; } - + public RegionServerInfo getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RegionServerInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + infoPort_ = input.readInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionServerInfo_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionServerInfo_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionServerInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public RegionServerInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RegionServerInfo(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // optional int32 infoPort = 1; public static final int INFOPORT_FIELD_NUMBER = 1; private int infoPort_; + /** + * optional int32 infoPort = 1; + */ public boolean hasInfoPort() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * optional int32 infoPort = 1; + */ public int getInfoPort() { return infoPort_; } - + private void initFields() { infoPort_ = 0; } @@ -12058,11 +15790,11 @@ public final class HBaseProtos { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -12071,12 +15803,12 @@ public final class HBaseProtos { } 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 @@ -12086,14 +15818,14 @@ public final class HBaseProtos { 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) { @@ -12103,7 +15835,7 @@ public final class HBaseProtos { return super.equals(obj); } org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo other = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo) obj; - + boolean result = true; result = result && (hasInfoPort() == other.hasInfoPort()); if (hasInfoPort()) { @@ -12114,9 +15846,13 @@ public final class HBaseProtos { getUnknownFields().equals(other.getUnknownFields()); return result; } - + + private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasInfoPort()) { @@ -12124,89 +15860,84 @@ public final class HBaseProtos { hash = (53 * hash) + getInfoPort(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } + return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo 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; - } + return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); + return PARSER.parseFrom(input, extensionRegistry); } - + public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } + /** + * Protobuf type {@code RegionServerInfo} + * + *
+     **
+     * Description of the region server info
+     * 
+ */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfoOrBuilder { @@ -12214,18 +15945,21 @@ public final class HBaseProtos { getDescriptor() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionServerInfo_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionServerInfo_fieldAccessorTable; + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionServerInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo.class, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo.Builder.class); } - + // Construct using org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -12236,27 +15970,27 @@ public final class HBaseProtos { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); infoPort_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo.getDescriptor(); + return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.internal_static_RegionServerInfo_descriptor; } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo getDefaultInstanceForType() { return org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo.getDefaultInstance(); } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo build() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo result = buildPartial(); if (!result.isInitialized()) { @@ -12264,17 +15998,7 @@ public final class HBaseProtos { } return result; } - - private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo buildPartial() { org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo result = new org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo(this); int from_bitField0_ = bitField0_; @@ -12287,7 +16011,7 @@ public final class HBaseProtos { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo) { return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo)other); @@ -12296,7 +16020,7 @@ public final class HBaseProtos { return this; } } - + public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo other) { if (other == org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo.getDefaultInstance()) return this; if (other.hasInfoPort()) { @@ -12305,77 +16029,74 @@ public final class HBaseProtos { this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { return true; } - + public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - 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 8: { - bitField0_ |= 0x00000001; - infoPort_ = input.readInt32(); - break; - } + org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // optional int32 infoPort = 1; private int infoPort_ ; + /** + * optional int32 infoPort = 1; + */ public boolean hasInfoPort() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * optional int32 infoPort = 1; + */ public int getInfoPort() { return infoPort_; } + /** + * optional int32 infoPort = 1; + */ public Builder setInfoPort(int value) { bitField0_ |= 0x00000001; infoPort_ = value; onChanged(); return this; } + /** + * optional int32 infoPort = 1; + */ public Builder clearInfoPort() { bitField0_ = (bitField0_ & ~0x00000001); infoPort_ = 0; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:RegionServerInfo) } - + static { defaultInstance = new RegionServerInfo(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:RegionServerInfo) } - + private static com.google.protobuf.Descriptors.Descriptor internal_static_TableName_descriptor; private static @@ -12462,6 +16183,11 @@ public final class HBaseProtos { com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_LongMsg_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor + internal_static_DoubleMsg_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_DoubleMsg_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor internal_static_BigDecimalMsg_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -12481,7 +16207,7 @@ public final class HBaseProtos { private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RegionServerInfo_fieldAccessorTable; - + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -12524,16 +16250,17 @@ public final class HBaseProtos { "\022\020\n\010instance\030\002 \001(\t\022\030\n\rcreation_time\030\003 \001(" + "\003:\0010\022&\n\rconfiguration\030\004 \003(\0132\017.NameString" + "Pair\"\n\n\010EmptyMsg\"\033\n\007LongMsg\022\020\n\010long_msg\030" + - "\001 \002(\003\"\'\n\rBigDecimalMsg\022\026\n\016bigdecimal_msg" + - "\030\001 \002(\014\"5\n\004UUID\022\026\n\016least_sig_bits\030\001 \002(\004\022\025" + - "\n\rmost_sig_bits\030\002 \002(\004\"K\n\023NamespaceDescri" + - "ptor\022\014\n\004name\030\001 \002(\014\022&\n\rconfiguration\030\002 \003(" + - "\0132\017.NameStringPair\"$\n\020RegionServerInfo\022\020" + - "\n\010infoPort\030\001 \001(\005*r\n\013CompareType\022\010\n\004LESS\020", - "\000\022\021\n\rLESS_OR_EQUAL\020\001\022\t\n\005EQUAL\020\002\022\r\n\tNOT_E" + - "QUAL\020\003\022\024\n\020GREATER_OR_EQUAL\020\004\022\013\n\007GREATER\020" + - "\005\022\t\n\005NO_OP\020\006B>\n*org.apache.hadoop.hbase." + - "protobuf.generatedB\013HBaseProtosH\001\240\001\001" + "\001 \002(\003\"\037\n\tDoubleMsg\022\022\n\ndouble_msg\030\001 \002(\001\"\'" + + "\n\rBigDecimalMsg\022\026\n\016bigdecimal_msg\030\001 \002(\014\"" + + "5\n\004UUID\022\026\n\016least_sig_bits\030\001 \002(\004\022\025\n\rmost_" + + "sig_bits\030\002 \002(\004\"K\n\023NamespaceDescriptor\022\014\n" + + "\004name\030\001 \002(\014\022&\n\rconfiguration\030\002 \003(\0132\017.Nam" + + "eStringPair\"$\n\020RegionServerInfo\022\020\n\010infoP", + "ort\030\001 \001(\005*r\n\013CompareType\022\010\n\004LESS\020\000\022\021\n\rLE" + + "SS_OR_EQUAL\020\001\022\t\n\005EQUAL\020\002\022\r\n\tNOT_EQUAL\020\003\022" + + "\024\n\020GREATER_OR_EQUAL\020\004\022\013\n\007GREATER\020\005\022\t\n\005NO" + + "_OP\020\006B>\n*org.apache.hadoop.hbase.protobu" + + "f.generatedB\013HBaseProtosH\001\240\001\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -12545,169 +16272,133 @@ public final class HBaseProtos { internal_static_TableName_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_TableName_descriptor, - new java.lang.String[] { "Namespace", "Qualifier", }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder.class); + new java.lang.String[] { "Namespace", "Qualifier", }); internal_static_TableSchema_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_TableSchema_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_TableSchema_descriptor, - new java.lang.String[] { "TableName", "Attributes", "ColumnFamilies", "Configuration", }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.Builder.class); + new java.lang.String[] { "TableName", "Attributes", "ColumnFamilies", "Configuration", }); internal_static_ColumnFamilySchema_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_ColumnFamilySchema_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ColumnFamilySchema_descriptor, - new java.lang.String[] { "Name", "Attributes", "Configuration", }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema.Builder.class); + new java.lang.String[] { "Name", "Attributes", "Configuration", }); internal_static_RegionInfo_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_RegionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RegionInfo_descriptor, - new java.lang.String[] { "RegionId", "TableName", "StartKey", "EndKey", "Offline", "Split", }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.Builder.class); + new java.lang.String[] { "RegionId", "TableName", "StartKey", "EndKey", "Offline", "Split", }); internal_static_FavoredNodes_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_FavoredNodes_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_FavoredNodes_descriptor, - new java.lang.String[] { "FavoredNode", }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.FavoredNodes.Builder.class); + new java.lang.String[] { "FavoredNode", }); internal_static_RegionSpecifier_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_RegionSpecifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RegionSpecifier_descriptor, - new java.lang.String[] { "Type", "Value", }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionSpecifier.Builder.class); + new java.lang.String[] { "Type", "Value", }); internal_static_TimeRange_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_TimeRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_TimeRange_descriptor, - new java.lang.String[] { "From", "To", }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TimeRange.Builder.class); + new java.lang.String[] { "From", "To", }); internal_static_ServerName_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_ServerName_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ServerName_descriptor, - new java.lang.String[] { "HostName", "Port", "StartCode", }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder.class); + new java.lang.String[] { "HostName", "Port", "StartCode", }); internal_static_Coprocessor_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_Coprocessor_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Coprocessor_descriptor, - new java.lang.String[] { "Name", }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.Coprocessor.Builder.class); + new java.lang.String[] { "Name", }); internal_static_NameStringPair_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_NameStringPair_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_NameStringPair_descriptor, - new java.lang.String[] { "Name", "Value", }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameStringPair.Builder.class); + new java.lang.String[] { "Name", "Value", }); internal_static_NameBytesPair_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_NameBytesPair_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_NameBytesPair_descriptor, - new java.lang.String[] { "Name", "Value", }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder.class); + new java.lang.String[] { "Name", "Value", }); internal_static_BytesBytesPair_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_BytesBytesPair_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_BytesBytesPair_descriptor, - new java.lang.String[] { "First", "Second", }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BytesBytesPair.Builder.class); + new java.lang.String[] { "First", "Second", }); internal_static_NameInt64Pair_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_NameInt64Pair_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_NameInt64Pair_descriptor, - new java.lang.String[] { "Name", "Value", }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameInt64Pair.Builder.class); + new java.lang.String[] { "Name", "Value", }); internal_static_SnapshotDescription_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_SnapshotDescription_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_SnapshotDescription_descriptor, - new java.lang.String[] { "Name", "Table", "CreationTime", "Type", "Version", }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Builder.class); + new java.lang.String[] { "Name", "Table", "CreationTime", "Type", "Version", }); internal_static_ProcedureDescription_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_ProcedureDescription_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ProcedureDescription_descriptor, - new java.lang.String[] { "Signature", "Instance", "CreationTime", "Configuration", }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ProcedureDescription.Builder.class); + new java.lang.String[] { "Signature", "Instance", "CreationTime", "Configuration", }); internal_static_EmptyMsg_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_EmptyMsg_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_EmptyMsg_descriptor, - new java.lang.String[] { }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.EmptyMsg.Builder.class); + new java.lang.String[] { }); internal_static_LongMsg_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_LongMsg_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_LongMsg_descriptor, - new java.lang.String[] { "LongMsg", }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.LongMsg.Builder.class); - internal_static_BigDecimalMsg_descriptor = + new java.lang.String[] { "LongMsg", }); + internal_static_DoubleMsg_descriptor = getDescriptor().getMessageTypes().get(17); + internal_static_DoubleMsg_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_DoubleMsg_descriptor, + new java.lang.String[] { "DoubleMsg", }); + internal_static_BigDecimalMsg_descriptor = + getDescriptor().getMessageTypes().get(18); internal_static_BigDecimalMsg_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_BigDecimalMsg_descriptor, - new java.lang.String[] { "BigdecimalMsg", }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.BigDecimalMsg.Builder.class); + new java.lang.String[] { "BigdecimalMsg", }); internal_static_UUID_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_UUID_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_UUID_descriptor, - new java.lang.String[] { "LeastSigBits", "MostSigBits", }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.UUID.Builder.class); + new java.lang.String[] { "LeastSigBits", "MostSigBits", }); internal_static_NamespaceDescriptor_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_NamespaceDescriptor_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_NamespaceDescriptor_descriptor, - new java.lang.String[] { "Name", "Configuration", }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NamespaceDescriptor.Builder.class); + new java.lang.String[] { "Name", "Configuration", }); internal_static_RegionServerInfo_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_RegionServerInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RegionServerInfo_descriptor, - new java.lang.String[] { "InfoPort", }, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo.class, - org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionServerInfo.Builder.class); + new java.lang.String[] { "InfoPort", }); return null; } }; @@ -12717,6 +16408,6 @@ public final class HBaseProtos { org.apache.hadoop.hbase.protobuf.generated.CellProtos.getDescriptor(), }, assigner); } - + // @@protoc_insertion_point(outer_class_scope) } -- 1.7.4.4