diff --git a/hcatalog/storage-handlers/hbase/src/gen-java/org/apache/hive/hcatalog/hbase/snapshot/RevisionManagerEndpointProtos.java b/hcatalog/storage-handlers/hbase/src/gen-java/org/apache/hive/hcatalog/hbase/snapshot/RevisionManagerEndpointProtos.java index 7818286..6b10174 100644 --- a/hcatalog/storage-handlers/hbase/src/gen-java/org/apache/hive/hcatalog/hbase/snapshot/RevisionManagerEndpointProtos.java +++ b/hcatalog/storage-handlers/hbase/src/gen-java/org/apache/hive/hcatalog/hbase/snapshot/RevisionManagerEndpointProtos.java @@ -10,91 +10,222 @@ public static void registerAllExtensions( } public interface CreateTableRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string table_name = 1; + /** + * required string table_name = 1; + */ boolean hasTableName(); - String getTableName(); - + /** + * required string table_name = 1; + */ + java.lang.String getTableName(); + /** + * required string table_name = 1; + */ + com.google.protobuf.ByteString + getTableNameBytes(); + // repeated string column_families = 2; - java.util.List getColumnFamiliesList(); + /** + * repeated string column_families = 2; + */ + java.util.List + getColumnFamiliesList(); + /** + * repeated string column_families = 2; + */ int getColumnFamiliesCount(); - String getColumnFamilies(int index); + /** + * repeated string column_families = 2; + */ + java.lang.String getColumnFamilies(int index); + /** + * repeated string column_families = 2; + */ + com.google.protobuf.ByteString + getColumnFamiliesBytes(int index); } + /** + * Protobuf type {@code CreateTableRequest} + */ public static final class CreateTableRequest extends com.google.protobuf.GeneratedMessage implements CreateTableRequestOrBuilder { // Use CreateTableRequest.newBuilder() to construct. - private CreateTableRequest(Builder builder) { + private CreateTableRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private CreateTableRequest(boolean noInit) {} - + private CreateTableRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final CreateTableRequest defaultInstance; public static CreateTableRequest getDefaultInstance() { return defaultInstance; } - + public CreateTableRequest getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateTableRequest( + 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; + tableName_ = input.readBytes(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + columnFamilies_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + columnFamilies_.add(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 { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + columnFamilies_ = new com.google.protobuf.UnmodifiableLazyStringList(columnFamilies_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableRequest_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableRequest_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public CreateTableRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateTableRequest(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // required string table_name = 1; public static final int TABLE_NAME_FIELD_NUMBER = 1; private java.lang.Object tableName_; + /** + * required string table_name = 1; + */ public boolean hasTableName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getTableName() { + /** + * required string table_name = 1; + */ + public java.lang.String getTableName() { java.lang.Object ref = tableName_; - 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()) { tableName_ = s; } return s; } } - private com.google.protobuf.ByteString getTableNameBytes() { + /** + * required string table_name = 1; + */ + public com.google.protobuf.ByteString + getTableNameBytes() { java.lang.Object ref = tableName_; - 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); tableName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // repeated string column_families = 2; public static final int COLUMN_FAMILIES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList columnFamilies_; - public java.util.List + /** + * repeated string column_families = 2; + */ + public java.util.List getColumnFamiliesList() { return columnFamilies_; } + /** + * repeated string column_families = 2; + */ public int getColumnFamiliesCount() { return columnFamilies_.size(); } - public String getColumnFamilies(int index) { + /** + * repeated string column_families = 2; + */ + public java.lang.String getColumnFamilies(int index) { return columnFamilies_.get(index); } - + /** + * repeated string column_families = 2; + */ + public com.google.protobuf.ByteString + getColumnFamiliesBytes(int index) { + return columnFamilies_.getByteString(index); + } + private void initFields() { tableName_ = ""; columnFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -103,7 +234,7 @@ private void initFields() { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasTableName()) { memoizedIsInitialized = 0; return false; @@ -111,7 +242,7 @@ public final boolean isInitialized() { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -123,12 +254,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) } 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 @@ -147,14 +278,14 @@ public int 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) { @@ -164,7 +295,7 @@ public boolean equals(final java.lang.Object obj) { return super.equals(obj); } org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest) obj; - + boolean result = true; result = result && (hasTableName() == other.hasTableName()); if (hasTableName()) { @@ -177,9 +308,13 @@ public boolean equals(final java.lang.Object obj) { 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()) { @@ -191,89 +326,79 @@ public int hashCode() { hash = (53 * hash) + getColumnFamiliesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest 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 CreateTableRequest} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequestOrBuilder { @@ -281,18 +406,21 @@ protected Builder newBuilderForType( getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableRequest_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableRequest_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest.Builder.class); } - + // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -303,7 +431,7 @@ private void maybeForceBuilderInitialization() { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); tableName_ = ""; @@ -312,20 +440,20 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest.getDescriptor(); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableRequest_descriptor; } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest getDefaultInstanceForType() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest.getDefaultInstance(); } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest build() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest result = buildPartial(); if (!result.isInitialized()) { @@ -333,17 +461,7 @@ public Builder clone() { } return result; } - - private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest buildPartial() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest(this); int from_bitField0_ = bitField0_; @@ -362,7 +480,7 @@ public Builder clone() { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest) { return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest)other); @@ -371,11 +489,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { return this; } } - + public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest other) { if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest.getDefaultInstance()) return this; if (other.hasTableName()) { - setTableName(other.getTableName()); + bitField0_ |= 0x00000001; + tableName_ = other.tableName_; + onChanged(); } if (!other.columnFamilies_.isEmpty()) { if (columnFamilies_.isEmpty()) { @@ -390,7 +510,7 @@ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManager this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasTableName()) { @@ -398,62 +518,69 @@ 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; - tableName_ = input.readBytes(); - break; - } - case 18: { - ensureColumnFamiliesIsMutable(); - columnFamilies_.add(input.readBytes()); - break; - } + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required string table_name = 1; private java.lang.Object tableName_ = ""; + /** + * required string table_name = 1; + */ public boolean hasTableName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getTableName() { + /** + * required string table_name = 1; + */ + public java.lang.String getTableName() { java.lang.Object ref = tableName_; - 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(); tableName_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; + } + } + /** + * required string table_name = 1; + */ + public com.google.protobuf.ByteString + getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } } - public Builder setTableName(String value) { + /** + * required string table_name = 1; + */ + public Builder setTableName( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -462,18 +589,29 @@ public Builder setTableName(String value) { onChanged(); return this; } + /** + * required string table_name = 1; + */ public Builder clearTableName() { bitField0_ = (bitField0_ & ~0x00000001); tableName_ = getDefaultInstance().getTableName(); onChanged(); return this; } - void setTableName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string table_name = 1; + */ + public Builder setTableNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; tableName_ = value; onChanged(); + return this; } - + // repeated string column_families = 2; private com.google.protobuf.LazyStringList columnFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureColumnFamiliesIsMutable() { @@ -482,18 +620,37 @@ private void ensureColumnFamiliesIsMutable() { bitField0_ |= 0x00000002; } } - public java.util.List + /** + * repeated string column_families = 2; + */ + public java.util.List getColumnFamiliesList() { return java.util.Collections.unmodifiableList(columnFamilies_); } + /** + * repeated string column_families = 2; + */ public int getColumnFamiliesCount() { return columnFamilies_.size(); } - public String getColumnFamilies(int index) { + /** + * repeated string column_families = 2; + */ + public java.lang.String getColumnFamilies(int index) { return columnFamilies_.get(index); } + /** + * repeated string column_families = 2; + */ + public com.google.protobuf.ByteString + getColumnFamiliesBytes(int index) { + return columnFamilies_.getByteString(index); + } + /** + * repeated string column_families = 2; + */ public Builder setColumnFamilies( - int index, String value) { + int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -502,7 +659,11 @@ public Builder setColumnFamilies( onChanged(); return this; } - public Builder addColumnFamilies(String value) { + /** + * repeated string column_families = 2; + */ + public Builder addColumnFamilies( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -511,102 +672,177 @@ public Builder addColumnFamilies(String value) { onChanged(); return this; } + /** + * repeated string column_families = 2; + */ public Builder addAllColumnFamilies( - java.lang.Iterable values) { + java.lang.Iterable values) { ensureColumnFamiliesIsMutable(); super.addAll(values, columnFamilies_); onChanged(); return this; } + /** + * repeated string column_families = 2; + */ public Builder clearColumnFamilies() { columnFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } - void addColumnFamilies(com.google.protobuf.ByteString value) { - ensureColumnFamiliesIsMutable(); + /** + * repeated string column_families = 2; + */ + public Builder addColumnFamiliesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnFamiliesIsMutable(); columnFamilies_.add(value); onChanged(); + return this; } - + // @@protoc_insertion_point(builder_scope:CreateTableRequest) } - + static { defaultInstance = new CreateTableRequest(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:CreateTableRequest) } - + public interface CreateTableResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { } + /** + * Protobuf type {@code CreateTableResponse} + */ public static final class CreateTableResponse extends com.google.protobuf.GeneratedMessage implements CreateTableResponseOrBuilder { // Use CreateTableResponse.newBuilder() to construct. - private CreateTableResponse(Builder builder) { + private CreateTableResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private CreateTableResponse(boolean noInit) {} - + private CreateTableResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final CreateTableResponse defaultInstance; public static CreateTableResponse getDefaultInstance() { return defaultInstance; } - + public CreateTableResponse getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateTableResponse( + 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableResponse_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableResponse_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public CreateTableResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateTableResponse(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) { @@ -616,101 +852,95 @@ public boolean equals(final java.lang.Object obj) { return super.equals(obj); } org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse) 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse 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 CreateTableResponse} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponseOrBuilder { @@ -718,18 +948,21 @@ protected Builder newBuilderForType( getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableResponse_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableResponse_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.Builder.class); } - + // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -740,25 +973,25 @@ private void maybeForceBuilderInitialization() { 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.getDescriptor(); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateTableResponse_descriptor; } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse getDefaultInstanceForType() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.getDefaultInstance(); } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse build() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse result = buildPartial(); if (!result.isInitialized()) { @@ -766,23 +999,13 @@ public Builder clone() { } return result; } - - private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse buildPartial() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse(this); onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse) { return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse)other); @@ -791,124 +1014,203 @@ public Builder mergeFrom(com.google.protobuf.Message other) { return this; } } - + public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse other) { if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - - + // @@protoc_insertion_point(builder_scope:CreateTableResponse) } - + static { defaultInstance = new CreateTableResponse(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:CreateTableResponse) } - + public interface DropTableRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string table_name = 1; + /** + * required string table_name = 1; + */ boolean hasTableName(); - String getTableName(); + /** + * required string table_name = 1; + */ + java.lang.String getTableName(); + /** + * required string table_name = 1; + */ + com.google.protobuf.ByteString + getTableNameBytes(); } + /** + * Protobuf type {@code DropTableRequest} + */ public static final class DropTableRequest extends com.google.protobuf.GeneratedMessage implements DropTableRequestOrBuilder { // Use DropTableRequest.newBuilder() to construct. - private DropTableRequest(Builder builder) { + private DropTableRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private DropTableRequest(boolean noInit) {} - + private DropTableRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final DropTableRequest defaultInstance; public static DropTableRequest getDefaultInstance() { return defaultInstance; } - + public DropTableRequest getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DropTableRequest( + 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; + tableName_ = 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableRequest_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableRequest_fieldAccessorTable; - } - - private int bitField0_; - // required string table_name = 1; - public static final int TABLE_NAME_FIELD_NUMBER = 1; - private java.lang.Object tableName_; - public boolean hasTableName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest.Builder.class); } - public String getTableName() { + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public DropTableRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DropTableRequest(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // required string table_name = 1; + public static final int TABLE_NAME_FIELD_NUMBER = 1; + private java.lang.Object tableName_; + /** + * required string table_name = 1; + */ + public boolean hasTableName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string table_name = 1; + */ + public java.lang.String getTableName() { java.lang.Object ref = tableName_; - 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()) { tableName_ = s; } return s; } } - private com.google.protobuf.ByteString getTableNameBytes() { + /** + * required string table_name = 1; + */ + public com.google.protobuf.ByteString + getTableNameBytes() { java.lang.Object ref = tableName_; - 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); tableName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + private void initFields() { tableName_ = ""; } @@ -916,7 +1218,7 @@ private void initFields() { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasTableName()) { memoizedIsInitialized = 0; return false; @@ -924,7 +1226,7 @@ public final boolean isInitialized() { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -933,12 +1235,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) } 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 @@ -948,14 +1250,14 @@ public int 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) { @@ -965,7 +1267,7 @@ public boolean equals(final java.lang.Object obj) { return super.equals(obj); } org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest) obj; - + boolean result = true; result = result && (hasTableName() == other.hasTableName()); if (hasTableName()) { @@ -976,9 +1278,13 @@ public boolean equals(final java.lang.Object obj) { 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()) { @@ -986,89 +1292,79 @@ public int hashCode() { hash = (53 * hash) + getTableName().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest 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 DropTableRequest} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequestOrBuilder { @@ -1076,18 +1372,21 @@ protected Builder newBuilderForType( getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableRequest_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableRequest_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest.Builder.class); } - + // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -1098,27 +1397,27 @@ private void maybeForceBuilderInitialization() { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); tableName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest.getDescriptor(); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableRequest_descriptor; } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest getDefaultInstanceForType() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest.getDefaultInstance(); } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest build() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest result = buildPartial(); if (!result.isInitialized()) { @@ -1126,17 +1425,7 @@ public Builder clone() { } return result; } - - private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest buildPartial() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest(this); int from_bitField0_ = bitField0_; @@ -1149,7 +1438,7 @@ public Builder clone() { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest) { return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest)other); @@ -1158,16 +1447,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { return this; } } - + public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest other) { if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest.getDefaultInstance()) return this; if (other.hasTableName()) { - setTableName(other.getTableName()); + bitField0_ |= 0x00000001; + tableName_ = other.tableName_; + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasTableName()) { @@ -1175,57 +1466,69 @@ 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; - tableName_ = input.readBytes(); - break; - } + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required string table_name = 1; private java.lang.Object tableName_ = ""; + /** + * required string table_name = 1; + */ public boolean hasTableName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getTableName() { + /** + * required string table_name = 1; + */ + public java.lang.String getTableName() { java.lang.Object ref = tableName_; - 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(); tableName_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setTableName(String value) { + /** + * required string table_name = 1; + */ + public com.google.protobuf.ByteString + getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string table_name = 1; + */ + public Builder setTableName( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -1234,95 +1537,167 @@ public Builder setTableName(String value) { onChanged(); return this; } + /** + * required string table_name = 1; + */ public Builder clearTableName() { bitField0_ = (bitField0_ & ~0x00000001); tableName_ = getDefaultInstance().getTableName(); onChanged(); return this; } - void setTableName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string table_name = 1; + */ + public Builder setTableNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; tableName_ = value; onChanged(); + return this; } - + // @@protoc_insertion_point(builder_scope:DropTableRequest) } - + static { defaultInstance = new DropTableRequest(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:DropTableRequest) } - + public interface DropTableResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { } + /** + * Protobuf type {@code DropTableResponse} + */ public static final class DropTableResponse extends com.google.protobuf.GeneratedMessage implements DropTableResponseOrBuilder { // Use DropTableResponse.newBuilder() to construct. - private DropTableResponse(Builder builder) { + private DropTableResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private DropTableResponse(boolean noInit) {} - + private DropTableResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final DropTableResponse defaultInstance; public static DropTableResponse getDefaultInstance() { return defaultInstance; } - + public DropTableResponse getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DropTableResponse( + 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableResponse_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableResponse_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public DropTableResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DropTableResponse(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) { @@ -1332,101 +1707,95 @@ public boolean equals(final java.lang.Object obj) { return super.equals(obj); } org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse) 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse 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 DropTableResponse} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponseOrBuilder { @@ -1434,18 +1803,21 @@ protected Builder newBuilderForType( getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableResponse_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableResponse_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.Builder.class); } - + // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -1456,25 +1828,25 @@ private void maybeForceBuilderInitialization() { 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.getDescriptor(); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_DropTableResponse_descriptor; } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse getDefaultInstanceForType() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.getDefaultInstance(); } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse build() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse result = buildPartial(); if (!result.isInitialized()) { @@ -1482,23 +1854,13 @@ public Builder clone() { } return result; } - - private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse buildPartial() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse(this); onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse) { return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse)other); @@ -1507,157 +1869,295 @@ public Builder mergeFrom(com.google.protobuf.Message other) { return this; } } - + public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse other) { if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - - + // @@protoc_insertion_point(builder_scope:DropTableResponse) } - + static { defaultInstance = new DropTableResponse(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:DropTableResponse) } - + public interface BeginWriteTransactionRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string table_name = 1; + /** + * required string table_name = 1; + */ boolean hasTableName(); - String getTableName(); - + /** + * required string table_name = 1; + */ + java.lang.String getTableName(); + /** + * required string table_name = 1; + */ + com.google.protobuf.ByteString + getTableNameBytes(); + // optional int64 keep_alive = 2; + /** + * optional int64 keep_alive = 2; + */ boolean hasKeepAlive(); + /** + * optional int64 keep_alive = 2; + */ long getKeepAlive(); - + // repeated string column_families = 3; - java.util.List getColumnFamiliesList(); + /** + * repeated string column_families = 3; + */ + java.util.List + getColumnFamiliesList(); + /** + * repeated string column_families = 3; + */ int getColumnFamiliesCount(); - String getColumnFamilies(int index); + /** + * repeated string column_families = 3; + */ + java.lang.String getColumnFamilies(int index); + /** + * repeated string column_families = 3; + */ + com.google.protobuf.ByteString + getColumnFamiliesBytes(int index); } + /** + * Protobuf type {@code BeginWriteTransactionRequest} + */ public static final class BeginWriteTransactionRequest extends com.google.protobuf.GeneratedMessage implements BeginWriteTransactionRequestOrBuilder { // Use BeginWriteTransactionRequest.newBuilder() to construct. - private BeginWriteTransactionRequest(Builder builder) { + private BeginWriteTransactionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private BeginWriteTransactionRequest(boolean noInit) {} - + private BeginWriteTransactionRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final BeginWriteTransactionRequest defaultInstance; public static BeginWriteTransactionRequest getDefaultInstance() { return defaultInstance; } - + public BeginWriteTransactionRequest getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BeginWriteTransactionRequest( + 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; + tableName_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + keepAlive_ = input.readInt64(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + columnFamilies_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + columnFamilies_.add(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 { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + columnFamilies_ = new com.google.protobuf.UnmodifiableLazyStringList(columnFamilies_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionRequest_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionRequest_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest.Builder.class); } - + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public BeginWriteTransactionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BeginWriteTransactionRequest(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + private int bitField0_; // required string table_name = 1; public static final int TABLE_NAME_FIELD_NUMBER = 1; private java.lang.Object tableName_; + /** + * required string table_name = 1; + */ public boolean hasTableName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getTableName() { + /** + * required string table_name = 1; + */ + public java.lang.String getTableName() { java.lang.Object ref = tableName_; - 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()) { tableName_ = s; } return s; } } - private com.google.protobuf.ByteString getTableNameBytes() { + /** + * required string table_name = 1; + */ + public com.google.protobuf.ByteString + getTableNameBytes() { java.lang.Object ref = tableName_; - 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); tableName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // optional int64 keep_alive = 2; public static final int KEEP_ALIVE_FIELD_NUMBER = 2; private long keepAlive_; + /** + * optional int64 keep_alive = 2; + */ public boolean hasKeepAlive() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional int64 keep_alive = 2; + */ public long getKeepAlive() { return keepAlive_; } - + // repeated string column_families = 3; public static final int COLUMN_FAMILIES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList columnFamilies_; - public java.util.List + /** + * repeated string column_families = 3; + */ + public java.util.List getColumnFamiliesList() { return columnFamilies_; } + /** + * repeated string column_families = 3; + */ public int getColumnFamiliesCount() { return columnFamilies_.size(); } - public String getColumnFamilies(int index) { + /** + * repeated string column_families = 3; + */ + public java.lang.String getColumnFamilies(int index) { return columnFamilies_.get(index); } - + /** + * repeated string column_families = 3; + */ + public com.google.protobuf.ByteString + getColumnFamiliesBytes(int index) { + return columnFamilies_.getByteString(index); + } + private void initFields() { tableName_ = ""; keepAlive_ = 0L; @@ -1667,7 +2167,7 @@ private void initFields() { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasTableName()) { memoizedIsInitialized = 0; return false; @@ -1675,7 +2175,7 @@ public final boolean isInitialized() { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -1690,12 +2190,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) } 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 @@ -1718,14 +2218,14 @@ public int 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) { @@ -1735,7 +2235,7 @@ public boolean equals(final java.lang.Object obj) { return super.equals(obj); } org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest) obj; - + boolean result = true; result = result && (hasTableName() == other.hasTableName()); if (hasTableName()) { @@ -1753,9 +2253,13 @@ public boolean equals(final java.lang.Object obj) { 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()) { @@ -1771,89 +2275,79 @@ public int hashCode() { hash = (53 * hash) + getColumnFamiliesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest 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 BeginWriteTransactionRequest} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequestOrBuilder { @@ -1861,18 +2355,21 @@ protected Builder newBuilderForType( getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionRequest_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionRequest_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest.Builder.class); } - + // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -1883,7 +2380,7 @@ private void maybeForceBuilderInitialization() { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); tableName_ = ""; @@ -1894,20 +2391,20 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000004); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest.getDescriptor(); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionRequest_descriptor; } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest getDefaultInstanceForType() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest.getDefaultInstance(); } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest build() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest result = buildPartial(); if (!result.isInitialized()) { @@ -1915,17 +2412,7 @@ public Builder clone() { } return result; } - - private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest buildPartial() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest(this); int from_bitField0_ = bitField0_; @@ -1948,7 +2435,7 @@ public Builder clone() { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest) { return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest)other); @@ -1957,11 +2444,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { return this; } } - + public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest other) { if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest.getDefaultInstance()) return this; if (other.hasTableName()) { - setTableName(other.getTableName()); + bitField0_ |= 0x00000001; + tableName_ = other.tableName_; + onChanged(); } if (other.hasKeepAlive()) { setKeepAlive(other.getKeepAlive()); @@ -1970,84 +2459,86 @@ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManager if (columnFamilies_.isEmpty()) { columnFamilies_ = other.columnFamilies_; bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureColumnFamiliesIsMutable(); - columnFamilies_.addAll(other.columnFamilies_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasTableName()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - tableName_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - keepAlive_ = input.readInt64(); - break; - } - case 26: { - ensureColumnFamiliesIsMutable(); - columnFamilies_.add(input.readBytes()); - break; - } + } else { + ensureColumnFamiliesIsMutable(); + columnFamilies_.addAll(other.columnFamilies_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasTableName()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required string table_name = 1; private java.lang.Object tableName_ = ""; + /** + * required string table_name = 1; + */ public boolean hasTableName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getTableName() { + /** + * required string table_name = 1; + */ + public java.lang.String getTableName() { java.lang.Object ref = tableName_; - 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(); tableName_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; + } + } + /** + * required string table_name = 1; + */ + public com.google.protobuf.ByteString + getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } } - public Builder setTableName(String value) { + /** + * required string table_name = 1; + */ + public Builder setTableName( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -2056,39 +2547,62 @@ public Builder setTableName(String value) { onChanged(); return this; } + /** + * required string table_name = 1; + */ public Builder clearTableName() { bitField0_ = (bitField0_ & ~0x00000001); tableName_ = getDefaultInstance().getTableName(); onChanged(); return this; } - void setTableName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string table_name = 1; + */ + public Builder setTableNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; tableName_ = value; onChanged(); + return this; } - + // optional int64 keep_alive = 2; private long keepAlive_ ; + /** + * optional int64 keep_alive = 2; + */ public boolean hasKeepAlive() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional int64 keep_alive = 2; + */ public long getKeepAlive() { return keepAlive_; } + /** + * optional int64 keep_alive = 2; + */ public Builder setKeepAlive(long value) { bitField0_ |= 0x00000002; keepAlive_ = value; onChanged(); return this; } + /** + * optional int64 keep_alive = 2; + */ public Builder clearKeepAlive() { bitField0_ = (bitField0_ & ~0x00000002); keepAlive_ = 0L; onChanged(); return this; } - + // repeated string column_families = 3; private com.google.protobuf.LazyStringList columnFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureColumnFamiliesIsMutable() { @@ -2097,18 +2611,37 @@ private void ensureColumnFamiliesIsMutable() { bitField0_ |= 0x00000004; } } - public java.util.List + /** + * repeated string column_families = 3; + */ + public java.util.List getColumnFamiliesList() { return java.util.Collections.unmodifiableList(columnFamilies_); } + /** + * repeated string column_families = 3; + */ public int getColumnFamiliesCount() { return columnFamilies_.size(); } - public String getColumnFamilies(int index) { + /** + * repeated string column_families = 3; + */ + public java.lang.String getColumnFamilies(int index) { return columnFamilies_.get(index); } + /** + * repeated string column_families = 3; + */ + public com.google.protobuf.ByteString + getColumnFamiliesBytes(int index) { + return columnFamilies_.getByteString(index); + } + /** + * repeated string column_families = 3; + */ public Builder setColumnFamilies( - int index, String value) { + int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -2117,7 +2650,11 @@ public Builder setColumnFamilies( onChanged(); return this; } - public Builder addColumnFamilies(String value) { + /** + * repeated string column_families = 3; + */ + public Builder addColumnFamilies( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -2126,86 +2663,193 @@ public Builder addColumnFamilies(String value) { onChanged(); return this; } + /** + * repeated string column_families = 3; + */ public Builder addAllColumnFamilies( - java.lang.Iterable values) { + java.lang.Iterable values) { ensureColumnFamiliesIsMutable(); super.addAll(values, columnFamilies_); onChanged(); return this; } + /** + * repeated string column_families = 3; + */ public Builder clearColumnFamilies() { columnFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } - void addColumnFamilies(com.google.protobuf.ByteString value) { - ensureColumnFamiliesIsMutable(); + /** + * repeated string column_families = 3; + */ + public Builder addColumnFamiliesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnFamiliesIsMutable(); columnFamilies_.add(value); onChanged(); + return this; } - + // @@protoc_insertion_point(builder_scope:BeginWriteTransactionRequest) } - + static { defaultInstance = new BeginWriteTransactionRequest(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:BeginWriteTransactionRequest) } - + public interface BeginWriteTransactionResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required .Transaction transaction = 1; + /** + * required .Transaction transaction = 1; + */ boolean hasTransaction(); + /** + * required .Transaction transaction = 1; + */ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction(); + /** + * required .Transaction transaction = 1; + */ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder(); } + /** + * Protobuf type {@code BeginWriteTransactionResponse} + */ public static final class BeginWriteTransactionResponse extends com.google.protobuf.GeneratedMessage implements BeginWriteTransactionResponseOrBuilder { // Use BeginWriteTransactionResponse.newBuilder() to construct. - private BeginWriteTransactionResponse(Builder builder) { + private BeginWriteTransactionResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private BeginWriteTransactionResponse(boolean noInit) {} - + private BeginWriteTransactionResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final BeginWriteTransactionResponse defaultInstance; public static BeginWriteTransactionResponse getDefaultInstance() { return defaultInstance; } - + public BeginWriteTransactionResponse getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BeginWriteTransactionResponse( + 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = transaction_.toBuilder(); + } + transaction_ = input.readMessage(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(transaction_); + transaction_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionResponse_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionResponse_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public BeginWriteTransactionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BeginWriteTransactionResponse(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // required .Transaction transaction = 1; public static final int TRANSACTION_FIELD_NUMBER = 1; private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction transaction_; + /** + * required .Transaction transaction = 1; + */ public boolean hasTransaction() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .Transaction transaction = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction() { return transaction_; } + /** + * required .Transaction transaction = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder() { return transaction_; } - + private void initFields() { transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance(); } @@ -2213,7 +2857,7 @@ private void initFields() { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasTransaction()) { memoizedIsInitialized = 0; return false; @@ -2225,7 +2869,7 @@ public final boolean isInitialized() { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -2234,12 +2878,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) } 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 @@ -2249,14 +2893,14 @@ public int 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) { @@ -2266,7 +2910,7 @@ public boolean equals(final java.lang.Object obj) { return super.equals(obj); } org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse) obj; - + boolean result = true; result = result && (hasTransaction() == other.hasTransaction()); if (hasTransaction()) { @@ -2277,9 +2921,13 @@ public boolean equals(final java.lang.Object obj) { 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 (hasTransaction()) { @@ -2287,89 +2935,79 @@ public int hashCode() { hash = (53 * hash) + getTransaction().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse 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 BeginWriteTransactionResponse} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponseOrBuilder { @@ -2377,18 +3015,21 @@ protected Builder newBuilderForType( getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionResponse_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionResponse_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.Builder.class); } - + // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -2400,7 +3041,7 @@ private void maybeForceBuilderInitialization() { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); if (transactionBuilder_ == null) { @@ -2411,20 +3052,20 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000001); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.getDescriptor(); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_BeginWriteTransactionResponse_descriptor; } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse getDefaultInstanceForType() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.getDefaultInstance(); } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse build() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse result = buildPartial(); if (!result.isInitialized()) { @@ -2432,17 +3073,7 @@ public Builder clone() { } return result; } - - private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse buildPartial() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse(this); int from_bitField0_ = bitField0_; @@ -2459,7 +3090,7 @@ public Builder clone() { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse) { return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse)other); @@ -2468,7 +3099,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { return this; } } - + public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse other) { if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.getDefaultInstance()) return this; if (other.hasTransaction()) { @@ -2477,7 +3108,7 @@ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManager this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasTransaction()) { @@ -2489,52 +3120,39 @@ 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: { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder subBuilder = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.newBuilder(); - if (hasTransaction()) { - subBuilder.mergeFrom(getTransaction()); - } - input.readMessage(subBuilder, extensionRegistry); - setTransaction(subBuilder.buildPartial()); - break; - } + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required .Transaction transaction = 1; private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder> transactionBuilder_; + /** + * required .Transaction transaction = 1; + */ public boolean hasTransaction() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .Transaction transaction = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction() { if (transactionBuilder_ == null) { return transaction_; @@ -2542,6 +3160,9 @@ public boolean hasTransaction() { return transactionBuilder_.getMessage(); } } + /** + * required .Transaction transaction = 1; + */ public Builder setTransaction(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { @@ -2555,6 +3176,9 @@ public Builder setTransaction(org.apache.hive.hcatalog.hbase.snapshot.RevisionMa bitField0_ |= 0x00000001; return this; } + /** + * required .Transaction transaction = 1; + */ public Builder setTransaction( org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { @@ -2566,6 +3190,9 @@ public Builder setTransaction( bitField0_ |= 0x00000001; return this; } + /** + * required .Transaction transaction = 1; + */ public Builder mergeTransaction(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction value) { if (transactionBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && @@ -2582,6 +3209,9 @@ public Builder mergeTransaction(org.apache.hive.hcatalog.hbase.snapshot.Revision bitField0_ |= 0x00000001; return this; } + /** + * required .Transaction transaction = 1; + */ public Builder clearTransaction() { if (transactionBuilder_ == null) { transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance(); @@ -2592,11 +3222,17 @@ public Builder clearTransaction() { bitField0_ = (bitField0_ & ~0x00000001); return this; } + /** + * required .Transaction transaction = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder getTransactionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTransactionFieldBuilder().getBuilder(); } + /** + * required .Transaction transaction = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); @@ -2604,6 +3240,9 @@ public Builder clearTransaction() { return transaction_; } } + /** + * required .Transaction transaction = 1; + */ private com.google.protobuf.SingleFieldBuilder< org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder> getTransactionFieldBuilder() { @@ -2617,68 +3256,161 @@ public Builder clearTransaction() { } return transactionBuilder_; } - + // @@protoc_insertion_point(builder_scope:BeginWriteTransactionResponse) } - + static { defaultInstance = new BeginWriteTransactionResponse(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:BeginWriteTransactionResponse) } - + public interface CommitWriteTransactionRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required .Transaction transaction = 1; + /** + * required .Transaction transaction = 1; + */ boolean hasTransaction(); + /** + * required .Transaction transaction = 1; + */ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction(); + /** + * required .Transaction transaction = 1; + */ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder(); } + /** + * Protobuf type {@code CommitWriteTransactionRequest} + */ public static final class CommitWriteTransactionRequest extends com.google.protobuf.GeneratedMessage implements CommitWriteTransactionRequestOrBuilder { // Use CommitWriteTransactionRequest.newBuilder() to construct. - private CommitWriteTransactionRequest(Builder builder) { + private CommitWriteTransactionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private CommitWriteTransactionRequest(boolean noInit) {} - + private CommitWriteTransactionRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final CommitWriteTransactionRequest defaultInstance; public static CommitWriteTransactionRequest getDefaultInstance() { return defaultInstance; } - + public CommitWriteTransactionRequest getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CommitWriteTransactionRequest( + 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = transaction_.toBuilder(); + } + transaction_ = input.readMessage(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(transaction_); + transaction_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionRequest_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionRequest_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public CommitWriteTransactionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommitWriteTransactionRequest(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // required .Transaction transaction = 1; public static final int TRANSACTION_FIELD_NUMBER = 1; private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction transaction_; + /** + * required .Transaction transaction = 1; + */ public boolean hasTransaction() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .Transaction transaction = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction() { return transaction_; } + /** + * required .Transaction transaction = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder() { return transaction_; } - + private void initFields() { transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance(); } @@ -2686,7 +3418,7 @@ private void initFields() { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasTransaction()) { memoizedIsInitialized = 0; return false; @@ -2698,7 +3430,7 @@ public final boolean isInitialized() { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -2707,12 +3439,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) } 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 @@ -2722,14 +3454,14 @@ public int 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) { @@ -2739,7 +3471,7 @@ public boolean equals(final java.lang.Object obj) { return super.equals(obj); } org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest) obj; - + boolean result = true; result = result && (hasTransaction() == other.hasTransaction()); if (hasTransaction()) { @@ -2750,9 +3482,13 @@ public boolean equals(final java.lang.Object obj) { 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 (hasTransaction()) { @@ -2760,89 +3496,79 @@ public int hashCode() { hash = (53 * hash) + getTransaction().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest 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 CommitWriteTransactionRequest} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequestOrBuilder { @@ -2850,18 +3576,21 @@ protected Builder newBuilderForType( getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionRequest_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionRequest_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest.Builder.class); } - + // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -2873,7 +3602,7 @@ private void maybeForceBuilderInitialization() { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); if (transactionBuilder_ == null) { @@ -2884,20 +3613,20 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000001); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest.getDescriptor(); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionRequest_descriptor; } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest getDefaultInstanceForType() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest.getDefaultInstance(); } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest build() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest result = buildPartial(); if (!result.isInitialized()) { @@ -2905,17 +3634,7 @@ public Builder clone() { } return result; } - - private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest buildPartial() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest(this); int from_bitField0_ = bitField0_; @@ -2932,7 +3651,7 @@ public Builder clone() { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest) { return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest)other); @@ -2941,7 +3660,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { return this; } } - + public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest other) { if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest.getDefaultInstance()) return this; if (other.hasTransaction()) { @@ -2950,7 +3669,7 @@ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManager this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasTransaction()) { @@ -2962,52 +3681,39 @@ 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: { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder subBuilder = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.newBuilder(); - if (hasTransaction()) { - subBuilder.mergeFrom(getTransaction()); - } - input.readMessage(subBuilder, extensionRegistry); - setTransaction(subBuilder.buildPartial()); - break; - } + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required .Transaction transaction = 1; private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder> transactionBuilder_; + /** + * required .Transaction transaction = 1; + */ public boolean hasTransaction() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .Transaction transaction = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction() { if (transactionBuilder_ == null) { return transaction_; @@ -3015,6 +3721,9 @@ public boolean hasTransaction() { return transactionBuilder_.getMessage(); } } + /** + * required .Transaction transaction = 1; + */ public Builder setTransaction(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { @@ -3028,6 +3737,9 @@ public Builder setTransaction(org.apache.hive.hcatalog.hbase.snapshot.RevisionMa bitField0_ |= 0x00000001; return this; } + /** + * required .Transaction transaction = 1; + */ public Builder setTransaction( org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { @@ -3039,6 +3751,9 @@ public Builder setTransaction( bitField0_ |= 0x00000001; return this; } + /** + * required .Transaction transaction = 1; + */ public Builder mergeTransaction(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction value) { if (transactionBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && @@ -3055,6 +3770,9 @@ public Builder mergeTransaction(org.apache.hive.hcatalog.hbase.snapshot.Revision bitField0_ |= 0x00000001; return this; } + /** + * required .Transaction transaction = 1; + */ public Builder clearTransaction() { if (transactionBuilder_ == null) { transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance(); @@ -3065,11 +3783,17 @@ public Builder clearTransaction() { bitField0_ = (bitField0_ & ~0x00000001); return this; } + /** + * required .Transaction transaction = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder getTransactionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTransactionFieldBuilder().getBuilder(); } + /** + * required .Transaction transaction = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); @@ -3077,6 +3801,9 @@ public Builder clearTransaction() { return transaction_; } } + /** + * required .Transaction transaction = 1; + */ private com.google.protobuf.SingleFieldBuilder< org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder> getTransactionFieldBuilder() { @@ -3090,84 +3817,145 @@ public Builder clearTransaction() { } return transactionBuilder_; } - + // @@protoc_insertion_point(builder_scope:CommitWriteTransactionRequest) } - + static { defaultInstance = new CommitWriteTransactionRequest(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:CommitWriteTransactionRequest) } - + public interface CommitWriteTransactionResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { } + /** + * Protobuf type {@code CommitWriteTransactionResponse} + */ public static final class CommitWriteTransactionResponse extends com.google.protobuf.GeneratedMessage implements CommitWriteTransactionResponseOrBuilder { // Use CommitWriteTransactionResponse.newBuilder() to construct. - private CommitWriteTransactionResponse(Builder builder) { + private CommitWriteTransactionResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private CommitWriteTransactionResponse(boolean noInit) {} - + private CommitWriteTransactionResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final CommitWriteTransactionResponse defaultInstance; public static CommitWriteTransactionResponse getDefaultInstance() { return defaultInstance; } - + public CommitWriteTransactionResponse getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CommitWriteTransactionResponse( + 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionResponse_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionResponse_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public CommitWriteTransactionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommitWriteTransactionResponse(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) { @@ -3177,101 +3965,95 @@ public boolean equals(final java.lang.Object obj) { return super.equals(obj); } org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse) 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse 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 CommitWriteTransactionResponse} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponseOrBuilder { @@ -3279,18 +4061,21 @@ protected Builder newBuilderForType( getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionResponse_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionResponse_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.Builder.class); } - + // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -3301,25 +4086,25 @@ private void maybeForceBuilderInitialization() { 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.getDescriptor(); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CommitWriteTransactionResponse_descriptor; } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse getDefaultInstanceForType() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.getDefaultInstance(); } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse build() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse result = buildPartial(); if (!result.isInitialized()) { @@ -3327,23 +4112,13 @@ public Builder clone() { } return result; } - - private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse buildPartial() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse(this); onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse) { return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse)other); @@ -3352,106 +4127,189 @@ public Builder mergeFrom(com.google.protobuf.Message other) { return this; } } - + public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse other) { if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - - + // @@protoc_insertion_point(builder_scope:CommitWriteTransactionResponse) } - + static { defaultInstance = new CommitWriteTransactionResponse(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:CommitWriteTransactionResponse) } - + public interface AbortWriteTransactionRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required .Transaction transaction = 1; + /** + * required .Transaction transaction = 1; + */ boolean hasTransaction(); + /** + * required .Transaction transaction = 1; + */ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction(); + /** + * required .Transaction transaction = 1; + */ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder(); } + /** + * Protobuf type {@code AbortWriteTransactionRequest} + */ public static final class AbortWriteTransactionRequest extends com.google.protobuf.GeneratedMessage implements AbortWriteTransactionRequestOrBuilder { // Use AbortWriteTransactionRequest.newBuilder() to construct. - private AbortWriteTransactionRequest(Builder builder) { + private AbortWriteTransactionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private AbortWriteTransactionRequest(boolean noInit) {} - + private AbortWriteTransactionRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final AbortWriteTransactionRequest defaultInstance; public static AbortWriteTransactionRequest getDefaultInstance() { return defaultInstance; } - + public AbortWriteTransactionRequest getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AbortWriteTransactionRequest( + 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = transaction_.toBuilder(); + } + transaction_ = input.readMessage(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(transaction_); + transaction_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionRequest_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionRequest_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public AbortWriteTransactionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AbortWriteTransactionRequest(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // required .Transaction transaction = 1; public static final int TRANSACTION_FIELD_NUMBER = 1; private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction transaction_; + /** + * required .Transaction transaction = 1; + */ public boolean hasTransaction() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .Transaction transaction = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction() { return transaction_; } + /** + * required .Transaction transaction = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder() { return transaction_; } - + private void initFields() { transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance(); } @@ -3459,7 +4317,7 @@ private void initFields() { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasTransaction()) { memoizedIsInitialized = 0; return false; @@ -3471,7 +4329,7 @@ public final boolean isInitialized() { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -3480,12 +4338,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) } 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 @@ -3495,14 +4353,14 @@ public int 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) { @@ -3512,7 +4370,7 @@ public boolean equals(final java.lang.Object obj) { return super.equals(obj); } org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest) obj; - + boolean result = true; result = result && (hasTransaction() == other.hasTransaction()); if (hasTransaction()) { @@ -3523,9 +4381,13 @@ public boolean equals(final java.lang.Object obj) { 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 (hasTransaction()) { @@ -3533,89 +4395,79 @@ public int hashCode() { hash = (53 * hash) + getTransaction().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest 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 AbortWriteTransactionRequest} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequestOrBuilder { @@ -3623,18 +4475,21 @@ protected Builder newBuilderForType( getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionRequest_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionRequest_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest.Builder.class); } - + // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -3646,7 +4501,7 @@ private void maybeForceBuilderInitialization() { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); if (transactionBuilder_ == null) { @@ -3657,20 +4512,20 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000001); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest.getDescriptor(); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionRequest_descriptor; } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest getDefaultInstanceForType() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest.getDefaultInstance(); } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest build() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest result = buildPartial(); if (!result.isInitialized()) { @@ -3678,17 +4533,7 @@ public Builder clone() { } return result; } - - private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest buildPartial() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest(this); int from_bitField0_ = bitField0_; @@ -3705,7 +4550,7 @@ public Builder clone() { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest) { return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest)other); @@ -3714,7 +4559,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { return this; } } - + public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest other) { if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest.getDefaultInstance()) return this; if (other.hasTransaction()) { @@ -3723,7 +4568,7 @@ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManager this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasTransaction()) { @@ -3735,52 +4580,39 @@ 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: { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder subBuilder = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.newBuilder(); - if (hasTransaction()) { - subBuilder.mergeFrom(getTransaction()); - } - input.readMessage(subBuilder, extensionRegistry); - setTransaction(subBuilder.buildPartial()); - break; - } + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required .Transaction transaction = 1; private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder> transactionBuilder_; + /** + * required .Transaction transaction = 1; + */ public boolean hasTransaction() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .Transaction transaction = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction() { if (transactionBuilder_ == null) { return transaction_; @@ -3788,6 +4620,9 @@ public boolean hasTransaction() { return transactionBuilder_.getMessage(); } } + /** + * required .Transaction transaction = 1; + */ public Builder setTransaction(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { @@ -3801,6 +4636,9 @@ public Builder setTransaction(org.apache.hive.hcatalog.hbase.snapshot.RevisionMa bitField0_ |= 0x00000001; return this; } + /** + * required .Transaction transaction = 1; + */ public Builder setTransaction( org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { @@ -3812,6 +4650,9 @@ public Builder setTransaction( bitField0_ |= 0x00000001; return this; } + /** + * required .Transaction transaction = 1; + */ public Builder mergeTransaction(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction value) { if (transactionBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && @@ -3828,6 +4669,9 @@ public Builder mergeTransaction(org.apache.hive.hcatalog.hbase.snapshot.Revision bitField0_ |= 0x00000001; return this; } + /** + * required .Transaction transaction = 1; + */ public Builder clearTransaction() { if (transactionBuilder_ == null) { transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance(); @@ -3838,11 +4682,17 @@ public Builder clearTransaction() { bitField0_ = (bitField0_ & ~0x00000001); return this; } + /** + * required .Transaction transaction = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder getTransactionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTransactionFieldBuilder().getBuilder(); } + /** + * required .Transaction transaction = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); @@ -3850,6 +4700,9 @@ public Builder clearTransaction() { return transaction_; } } + /** + * required .Transaction transaction = 1; + */ private com.google.protobuf.SingleFieldBuilder< org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder> getTransactionFieldBuilder() { @@ -3863,84 +4716,145 @@ public Builder clearTransaction() { } return transactionBuilder_; } - + // @@protoc_insertion_point(builder_scope:AbortWriteTransactionRequest) } - + static { defaultInstance = new AbortWriteTransactionRequest(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:AbortWriteTransactionRequest) } - + public interface AbortWriteTransactionResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { } + /** + * Protobuf type {@code AbortWriteTransactionResponse} + */ public static final class AbortWriteTransactionResponse extends com.google.protobuf.GeneratedMessage implements AbortWriteTransactionResponseOrBuilder { // Use AbortWriteTransactionResponse.newBuilder() to construct. - private AbortWriteTransactionResponse(Builder builder) { + private AbortWriteTransactionResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private AbortWriteTransactionResponse(boolean noInit) {} - + private AbortWriteTransactionResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final AbortWriteTransactionResponse defaultInstance; public static AbortWriteTransactionResponse getDefaultInstance() { return defaultInstance; } - + public AbortWriteTransactionResponse getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AbortWriteTransactionResponse( + 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionResponse_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionResponse_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public AbortWriteTransactionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AbortWriteTransactionResponse(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) { @@ -3950,101 +4864,95 @@ public boolean equals(final java.lang.Object obj) { return super.equals(obj); } org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse) 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse 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 AbortWriteTransactionResponse} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponseOrBuilder { @@ -4052,18 +4960,21 @@ protected Builder newBuilderForType( getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionResponse_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionResponse_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.Builder.class); } - + // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -4074,25 +4985,25 @@ private void maybeForceBuilderInitialization() { 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.getDescriptor(); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_AbortWriteTransactionResponse_descriptor; } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse getDefaultInstanceForType() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.getDefaultInstance(); } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse build() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse result = buildPartial(); if (!result.isInitialized()) { @@ -4100,23 +5011,13 @@ public Builder clone() { } return result; } - - private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse buildPartial() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse(this); onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse) { return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse)other); @@ -4125,160 +5026,266 @@ public Builder mergeFrom(com.google.protobuf.Message other) { return this; } } - + public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse other) { if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - - + // @@protoc_insertion_point(builder_scope:AbortWriteTransactionResponse) } - + static { defaultInstance = new AbortWriteTransactionResponse(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:AbortWriteTransactionResponse) } - + public interface GetAbortedWriteTransactionsRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string table_name = 1; + /** + * required string table_name = 1; + */ boolean hasTableName(); - String getTableName(); - + /** + * required string table_name = 1; + */ + java.lang.String getTableName(); + /** + * required string table_name = 1; + */ + com.google.protobuf.ByteString + getTableNameBytes(); + // required string column_family = 2; + /** + * required string column_family = 2; + */ boolean hasColumnFamily(); - String getColumnFamily(); + /** + * required string column_family = 2; + */ + java.lang.String getColumnFamily(); + /** + * required string column_family = 2; + */ + com.google.protobuf.ByteString + getColumnFamilyBytes(); } + /** + * Protobuf type {@code GetAbortedWriteTransactionsRequest} + */ public static final class GetAbortedWriteTransactionsRequest extends com.google.protobuf.GeneratedMessage implements GetAbortedWriteTransactionsRequestOrBuilder { // Use GetAbortedWriteTransactionsRequest.newBuilder() to construct. - private GetAbortedWriteTransactionsRequest(Builder builder) { + private GetAbortedWriteTransactionsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private GetAbortedWriteTransactionsRequest(boolean noInit) {} - + private GetAbortedWriteTransactionsRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final GetAbortedWriteTransactionsRequest defaultInstance; public static GetAbortedWriteTransactionsRequest getDefaultInstance() { return defaultInstance; } - + public GetAbortedWriteTransactionsRequest getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetAbortedWriteTransactionsRequest( + 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; + tableName_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + columnFamily_ = 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsRequest_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsRequest_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public GetAbortedWriteTransactionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAbortedWriteTransactionsRequest(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // required string table_name = 1; public static final int TABLE_NAME_FIELD_NUMBER = 1; private java.lang.Object tableName_; + /** + * required string table_name = 1; + */ public boolean hasTableName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getTableName() { + /** + * required string table_name = 1; + */ + public java.lang.String getTableName() { java.lang.Object ref = tableName_; - 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()) { tableName_ = s; } return s; } } - private com.google.protobuf.ByteString getTableNameBytes() { + /** + * required string table_name = 1; + */ + public com.google.protobuf.ByteString + getTableNameBytes() { java.lang.Object ref = tableName_; - 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); tableName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // required string column_family = 2; public static final int COLUMN_FAMILY_FIELD_NUMBER = 2; private java.lang.Object columnFamily_; + /** + * required string column_family = 2; + */ public boolean hasColumnFamily() { return ((bitField0_ & 0x00000002) == 0x00000002); } - public String getColumnFamily() { + /** + * required string column_family = 2; + */ + public java.lang.String getColumnFamily() { java.lang.Object ref = columnFamily_; - 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()) { columnFamily_ = s; } return s; } } - private com.google.protobuf.ByteString getColumnFamilyBytes() { + /** + * required string column_family = 2; + */ + public com.google.protobuf.ByteString + getColumnFamilyBytes() { java.lang.Object ref = columnFamily_; - 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); columnFamily_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + private void initFields() { tableName_ = ""; columnFamily_ = ""; @@ -4287,7 +5294,7 @@ private void initFields() { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasTableName()) { memoizedIsInitialized = 0; return false; @@ -4299,7 +5306,7 @@ public final boolean isInitialized() { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -4311,12 +5318,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) } 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 @@ -4330,14 +5337,14 @@ public int 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) { @@ -4347,7 +5354,7 @@ public boolean equals(final java.lang.Object obj) { return super.equals(obj); } org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest) obj; - + boolean result = true; result = result && (hasTableName() == other.hasTableName()); if (hasTableName()) { @@ -4363,9 +5370,13 @@ public boolean equals(final java.lang.Object obj) { 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()) { @@ -4377,89 +5388,79 @@ public int hashCode() { hash = (53 * hash) + getColumnFamily().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest 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 GetAbortedWriteTransactionsRequest} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequestOrBuilder { @@ -4467,18 +5468,21 @@ protected Builder newBuilderForType( getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsRequest_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsRequest_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest.Builder.class); } - + // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -4489,7 +5493,7 @@ private void maybeForceBuilderInitialization() { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); tableName_ = ""; @@ -4498,20 +5502,20 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest.getDescriptor(); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsRequest_descriptor; } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest getDefaultInstanceForType() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest.getDefaultInstance(); } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest build() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -4519,17 +5523,7 @@ public Builder clone() { } return result; } - - private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest buildPartial() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest(this); int from_bitField0_ = bitField0_; @@ -4546,7 +5540,7 @@ public Builder clone() { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest) { return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest)other); @@ -4555,19 +5549,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { return this; } } - + public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest other) { if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest.getDefaultInstance()) return this; if (other.hasTableName()) { - setTableName(other.getTableName()); + bitField0_ |= 0x00000001; + tableName_ = other.tableName_; + onChanged(); } if (other.hasColumnFamily()) { - setColumnFamily(other.getColumnFamily()); + bitField0_ |= 0x00000002; + columnFamily_ = other.columnFamily_; + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasTableName()) { @@ -4579,62 +5577,69 @@ 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; - tableName_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - columnFamily_ = input.readBytes(); - break; - } + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required string table_name = 1; private java.lang.Object tableName_ = ""; + /** + * required string table_name = 1; + */ public boolean hasTableName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getTableName() { + /** + * required string table_name = 1; + */ + public java.lang.String getTableName() { java.lang.Object ref = tableName_; - 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(); tableName_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; + } + } + /** + * required string table_name = 1; + */ + public com.google.protobuf.ByteString + getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } } - public Builder setTableName(String value) { + /** + * required string table_name = 1; + */ + public Builder setTableName( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -4643,34 +5648,72 @@ public Builder setTableName(String value) { onChanged(); return this; } + /** + * required string table_name = 1; + */ public Builder clearTableName() { bitField0_ = (bitField0_ & ~0x00000001); tableName_ = getDefaultInstance().getTableName(); onChanged(); return this; } - void setTableName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string table_name = 1; + */ + public Builder setTableNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; tableName_ = value; onChanged(); + return this; } - + // required string column_family = 2; private java.lang.Object columnFamily_ = ""; + /** + * required string column_family = 2; + */ public boolean hasColumnFamily() { return ((bitField0_ & 0x00000002) == 0x00000002); } - public String getColumnFamily() { + /** + * required string column_family = 2; + */ + public java.lang.String getColumnFamily() { java.lang.Object ref = columnFamily_; - 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(); columnFamily_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setColumnFamily(String value) { + /** + * required string column_family = 2; + */ + public com.google.protobuf.ByteString + getColumnFamilyBytes() { + java.lang.Object ref = columnFamily_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnFamily_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string column_family = 2; + */ + public Builder setColumnFamily( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -4679,91 +5722,205 @@ public Builder setColumnFamily(String value) { onChanged(); return this; } + /** + * required string column_family = 2; + */ public Builder clearColumnFamily() { bitField0_ = (bitField0_ & ~0x00000002); columnFamily_ = getDefaultInstance().getColumnFamily(); onChanged(); return this; } - void setColumnFamily(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000002; + /** + * required string column_family = 2; + */ + public Builder setColumnFamilyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; columnFamily_ = value; onChanged(); + return this; } - + // @@protoc_insertion_point(builder_scope:GetAbortedWriteTransactionsRequest) } - + static { defaultInstance = new GetAbortedWriteTransactionsRequest(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:GetAbortedWriteTransactionsRequest) } - + public interface GetAbortedWriteTransactionsResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // repeated .FamilyRevision family_revisions = 1; + /** + * repeated .FamilyRevision family_revisions = 1; + */ java.util.List getFamilyRevisionsList(); + /** + * repeated .FamilyRevision family_revisions = 1; + */ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision getFamilyRevisions(int index); + /** + * repeated .FamilyRevision family_revisions = 1; + */ int getFamilyRevisionsCount(); + /** + * repeated .FamilyRevision family_revisions = 1; + */ java.util.List getFamilyRevisionsOrBuilderList(); + /** + * repeated .FamilyRevision family_revisions = 1; + */ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevisionOrBuilder getFamilyRevisionsOrBuilder( int index); } + /** + * Protobuf type {@code GetAbortedWriteTransactionsResponse} + */ public static final class GetAbortedWriteTransactionsResponse extends com.google.protobuf.GeneratedMessage implements GetAbortedWriteTransactionsResponseOrBuilder { // Use GetAbortedWriteTransactionsResponse.newBuilder() to construct. - private GetAbortedWriteTransactionsResponse(Builder builder) { + private GetAbortedWriteTransactionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private GetAbortedWriteTransactionsResponse(boolean noInit) {} - + private GetAbortedWriteTransactionsResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final GetAbortedWriteTransactionsResponse defaultInstance; public static GetAbortedWriteTransactionsResponse getDefaultInstance() { return defaultInstance; } - + public GetAbortedWriteTransactionsResponse getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetAbortedWriteTransactionsResponse( + 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)) { + familyRevisions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + familyRevisions_.add(input.readMessage(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.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)) { + familyRevisions_ = java.util.Collections.unmodifiableList(familyRevisions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsResponse_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsResponse_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public GetAbortedWriteTransactionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAbortedWriteTransactionsResponse(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + // repeated .FamilyRevision family_revisions = 1; public static final int FAMILY_REVISIONS_FIELD_NUMBER = 1; private java.util.List familyRevisions_; + /** + * repeated .FamilyRevision family_revisions = 1; + */ public java.util.List getFamilyRevisionsList() { return familyRevisions_; } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public java.util.List getFamilyRevisionsOrBuilderList() { return familyRevisions_; } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public int getFamilyRevisionsCount() { return familyRevisions_.size(); } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision getFamilyRevisions(int index) { return familyRevisions_.get(index); } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevisionOrBuilder getFamilyRevisionsOrBuilder( int index) { return familyRevisions_.get(index); } - + private void initFields() { familyRevisions_ = java.util.Collections.emptyList(); } @@ -4771,7 +5928,7 @@ private void initFields() { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + for (int i = 0; i < getFamilyRevisionsCount(); i++) { if (!getFamilyRevisions(i).isInitialized()) { memoizedIsInitialized = 0; @@ -4781,7 +5938,7 @@ public final boolean isInitialized() { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -4790,12 +5947,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) } 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 < familyRevisions_.size(); i++) { size += com.google.protobuf.CodedOutputStream @@ -4805,14 +5962,14 @@ public int 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) { @@ -4822,7 +5979,7 @@ public boolean equals(final java.lang.Object obj) { return super.equals(obj); } org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse) obj; - + boolean result = true; result = result && getFamilyRevisionsList() .equals(other.getFamilyRevisionsList()); @@ -4830,9 +5987,13 @@ public boolean equals(final java.lang.Object obj) { 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 (getFamilyRevisionsCount() > 0) { @@ -4840,89 +6001,79 @@ public int hashCode() { hash = (53 * hash) + getFamilyRevisionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse 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 GetAbortedWriteTransactionsResponse} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponseOrBuilder { @@ -4930,18 +6081,21 @@ protected Builder newBuilderForType( getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsResponse_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsResponse_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.Builder.class); } - + // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -4953,7 +6107,7 @@ private void maybeForceBuilderInitialization() { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); if (familyRevisionsBuilder_ == null) { @@ -4964,20 +6118,20 @@ public Builder clear() { } return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.getDescriptor(); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_GetAbortedWriteTransactionsResponse_descriptor; } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse getDefaultInstanceForType() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.getDefaultInstance(); } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse build() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -4985,17 +6139,7 @@ public Builder clone() { } return result; } - - private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse buildPartial() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse(this); int from_bitField0_ = bitField0_; @@ -5011,7 +6155,7 @@ public Builder clone() { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse) { return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse)other); @@ -5020,7 +6164,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { return this; } } - + public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse other) { if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.getDefaultInstance()) return this; if (familyRevisionsBuilder_ == null) { @@ -5052,7 +6196,7 @@ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManager this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { for (int i = 0; i < getFamilyRevisionsCount(); i++) { if (!getFamilyRevisions(i).isInitialized()) { @@ -5062,42 +6206,26 @@ 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: { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder subBuilder = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addFamilyRevisions(subBuilder.buildPartial()); - break; - } + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // repeated .FamilyRevision family_revisions = 1; private java.util.List familyRevisions_ = java.util.Collections.emptyList(); @@ -5107,10 +6235,13 @@ private void ensureFamilyRevisionsIsMutable() { bitField0_ |= 0x00000001; } } - + private com.google.protobuf.RepeatedFieldBuilder< org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevisionOrBuilder> familyRevisionsBuilder_; - + + /** + * repeated .FamilyRevision family_revisions = 1; + */ public java.util.List getFamilyRevisionsList() { if (familyRevisionsBuilder_ == null) { return java.util.Collections.unmodifiableList(familyRevisions_); @@ -5118,6 +6249,9 @@ private void ensureFamilyRevisionsIsMutable() { return familyRevisionsBuilder_.getMessageList(); } } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public int getFamilyRevisionsCount() { if (familyRevisionsBuilder_ == null) { return familyRevisions_.size(); @@ -5125,6 +6259,9 @@ public int getFamilyRevisionsCount() { return familyRevisionsBuilder_.getCount(); } } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision getFamilyRevisions(int index) { if (familyRevisionsBuilder_ == null) { return familyRevisions_.get(index); @@ -5132,6 +6269,9 @@ public int getFamilyRevisionsCount() { return familyRevisionsBuilder_.getMessage(index); } } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public Builder setFamilyRevisions( int index, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision value) { if (familyRevisionsBuilder_ == null) { @@ -5146,6 +6286,9 @@ public Builder setFamilyRevisions( } return this; } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public Builder setFamilyRevisions( int index, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder builderForValue) { if (familyRevisionsBuilder_ == null) { @@ -5157,6 +6300,9 @@ public Builder setFamilyRevisions( } return this; } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public Builder addFamilyRevisions(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision value) { if (familyRevisionsBuilder_ == null) { if (value == null) { @@ -5170,6 +6316,9 @@ public Builder addFamilyRevisions(org.apache.hive.hcatalog.hbase.snapshot.Revisi } return this; } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public Builder addFamilyRevisions( int index, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision value) { if (familyRevisionsBuilder_ == null) { @@ -5184,6 +6333,9 @@ public Builder addFamilyRevisions( } return this; } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public Builder addFamilyRevisions( org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder builderForValue) { if (familyRevisionsBuilder_ == null) { @@ -5195,6 +6347,9 @@ public Builder addFamilyRevisions( } return this; } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public Builder addFamilyRevisions( int index, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder builderForValue) { if (familyRevisionsBuilder_ == null) { @@ -5206,6 +6361,9 @@ public Builder addFamilyRevisions( } return this; } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public Builder addAllFamilyRevisions( java.lang.Iterable values) { if (familyRevisionsBuilder_ == null) { @@ -5217,6 +6375,9 @@ public Builder addAllFamilyRevisions( } return this; } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public Builder clearFamilyRevisions() { if (familyRevisionsBuilder_ == null) { familyRevisions_ = java.util.Collections.emptyList(); @@ -5227,6 +6388,9 @@ public Builder clearFamilyRevisions() { } return this; } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public Builder removeFamilyRevisions(int index) { if (familyRevisionsBuilder_ == null) { ensureFamilyRevisionsIsMutable(); @@ -5237,10 +6401,16 @@ public Builder removeFamilyRevisions(int index) { } return this; } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder getFamilyRevisionsBuilder( int index) { return getFamilyRevisionsFieldBuilder().getBuilder(index); } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevisionOrBuilder getFamilyRevisionsOrBuilder( int index) { if (familyRevisionsBuilder_ == null) { @@ -5248,6 +6418,9 @@ public Builder removeFamilyRevisions(int index) { return familyRevisionsBuilder_.getMessageOrBuilder(index); } } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public java.util.List getFamilyRevisionsOrBuilderList() { if (familyRevisionsBuilder_ != null) { @@ -5256,15 +6429,24 @@ public Builder removeFamilyRevisions(int index) { return java.util.Collections.unmodifiableList(familyRevisions_); } } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder addFamilyRevisionsBuilder() { return getFamilyRevisionsFieldBuilder().addBuilder( org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.getDefaultInstance()); } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder addFamilyRevisionsBuilder( int index) { return getFamilyRevisionsFieldBuilder().addBuilder( index, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.getDefaultInstance()); } + /** + * repeated .FamilyRevision family_revisions = 1; + */ public java.util.List getFamilyRevisionsBuilderList() { return getFamilyRevisionsFieldBuilder().getBuilderList(); @@ -5283,100 +6465,206 @@ public Builder removeFamilyRevisions(int index) { } return familyRevisionsBuilder_; } - + // @@protoc_insertion_point(builder_scope:GetAbortedWriteTransactionsResponse) } - + static { defaultInstance = new GetAbortedWriteTransactionsResponse(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:GetAbortedWriteTransactionsResponse) } - + public interface CreateSnapshotRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string table_name = 1; + /** + * required string table_name = 1; + */ boolean hasTableName(); - String getTableName(); - + /** + * required string table_name = 1; + */ + java.lang.String getTableName(); + /** + * required string table_name = 1; + */ + com.google.protobuf.ByteString + getTableNameBytes(); + // optional int64 revision = 2; + /** + * optional int64 revision = 2; + */ boolean hasRevision(); + /** + * optional int64 revision = 2; + */ long getRevision(); } + /** + * Protobuf type {@code CreateSnapshotRequest} + */ public static final class CreateSnapshotRequest extends com.google.protobuf.GeneratedMessage implements CreateSnapshotRequestOrBuilder { // Use CreateSnapshotRequest.newBuilder() to construct. - private CreateSnapshotRequest(Builder builder) { + private CreateSnapshotRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private CreateSnapshotRequest(boolean noInit) {} - + private CreateSnapshotRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final CreateSnapshotRequest defaultInstance; public static CreateSnapshotRequest getDefaultInstance() { return defaultInstance; } - + public CreateSnapshotRequest getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateSnapshotRequest( + 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; + tableName_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + revision_ = 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotRequest_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotRequest_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public CreateSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateSnapshotRequest(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // required string table_name = 1; public static final int TABLE_NAME_FIELD_NUMBER = 1; private java.lang.Object tableName_; + /** + * required string table_name = 1; + */ public boolean hasTableName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getTableName() { + /** + * required string table_name = 1; + */ + public java.lang.String getTableName() { java.lang.Object ref = tableName_; - 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()) { tableName_ = s; } return s; } } - private com.google.protobuf.ByteString getTableNameBytes() { + /** + * required string table_name = 1; + */ + public com.google.protobuf.ByteString + getTableNameBytes() { java.lang.Object ref = tableName_; - 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); tableName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // optional int64 revision = 2; public static final int REVISION_FIELD_NUMBER = 2; private long revision_; + /** + * optional int64 revision = 2; + */ public boolean hasRevision() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional int64 revision = 2; + */ public long getRevision() { return revision_; } - + private void initFields() { tableName_ = ""; revision_ = 0L; @@ -5385,7 +6673,7 @@ private void initFields() { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasTableName()) { memoizedIsInitialized = 0; return false; @@ -5393,7 +6681,7 @@ public final boolean isInitialized() { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -5405,12 +6693,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) } 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 @@ -5424,14 +6712,14 @@ public int 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) { @@ -5441,7 +6729,7 @@ public boolean equals(final java.lang.Object obj) { return super.equals(obj); } org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest) obj; - + boolean result = true; result = result && (hasTableName() == other.hasTableName()); if (hasTableName()) { @@ -5457,9 +6745,13 @@ public boolean equals(final java.lang.Object obj) { 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()) { @@ -5471,89 +6763,79 @@ public int hashCode() { hash = (53 * hash) + hashLong(getRevision()); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest 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 CreateSnapshotRequest} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequestOrBuilder { @@ -5561,18 +6843,21 @@ protected Builder newBuilderForType( getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotRequest_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotRequest_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest.Builder.class); } - + // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -5583,7 +6868,7 @@ private void maybeForceBuilderInitialization() { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); tableName_ = ""; @@ -5592,20 +6877,20 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest.getDescriptor(); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotRequest_descriptor; } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest getDefaultInstanceForType() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest.getDefaultInstance(); } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest build() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest result = buildPartial(); if (!result.isInitialized()) { @@ -5613,17 +6898,7 @@ public Builder clone() { } return result; } - - private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest buildPartial() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest(this); int from_bitField0_ = bitField0_; @@ -5640,7 +6915,7 @@ public Builder clone() { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest) { return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest)other); @@ -5649,11 +6924,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { return this; } } - + public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest other) { if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest.getDefaultInstance()) return this; if (other.hasTableName()) { - setTableName(other.getTableName()); + bitField0_ |= 0x00000001; + tableName_ = other.tableName_; + onChanged(); } if (other.hasRevision()) { setRevision(other.getRevision()); @@ -5661,7 +6938,7 @@ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManager this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasTableName()) { @@ -5669,62 +6946,69 @@ 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; - tableName_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - revision_ = input.readInt64(); - break; - } + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required string table_name = 1; private java.lang.Object tableName_ = ""; + /** + * required string table_name = 1; + */ public boolean hasTableName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getTableName() { + /** + * required string table_name = 1; + */ + public java.lang.String getTableName() { java.lang.Object ref = tableName_; - 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(); tableName_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } - public Builder setTableName(String value) { + /** + * required string table_name = 1; + */ + public com.google.protobuf.ByteString + getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string table_name = 1; + */ + public Builder setTableName( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -5733,100 +7017,216 @@ public Builder setTableName(String value) { onChanged(); return this; } + /** + * required string table_name = 1; + */ public Builder clearTableName() { bitField0_ = (bitField0_ & ~0x00000001); tableName_ = getDefaultInstance().getTableName(); onChanged(); return this; } - void setTableName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string table_name = 1; + */ + public Builder setTableNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; tableName_ = value; onChanged(); + return this; } - + // optional int64 revision = 2; private long revision_ ; + /** + * optional int64 revision = 2; + */ public boolean hasRevision() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * optional int64 revision = 2; + */ public long getRevision() { return revision_; } + /** + * optional int64 revision = 2; + */ public Builder setRevision(long value) { bitField0_ |= 0x00000002; revision_ = value; onChanged(); return this; } + /** + * optional int64 revision = 2; + */ public Builder clearRevision() { bitField0_ = (bitField0_ & ~0x00000002); revision_ = 0L; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:CreateSnapshotRequest) } - + static { defaultInstance = new CreateSnapshotRequest(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:CreateSnapshotRequest) } - + public interface CreateSnapshotResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required .TableSnapshot table_snapshot = 1; + /** + * required .TableSnapshot table_snapshot = 1; + */ boolean hasTableSnapshot(); + /** + * required .TableSnapshot table_snapshot = 1; + */ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot getTableSnapshot(); + /** + * required .TableSnapshot table_snapshot = 1; + */ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshotOrBuilder getTableSnapshotOrBuilder(); } + /** + * Protobuf type {@code CreateSnapshotResponse} + */ public static final class CreateSnapshotResponse extends com.google.protobuf.GeneratedMessage implements CreateSnapshotResponseOrBuilder { // Use CreateSnapshotResponse.newBuilder() to construct. - private CreateSnapshotResponse(Builder builder) { + private CreateSnapshotResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private CreateSnapshotResponse(boolean noInit) {} - + private CreateSnapshotResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final CreateSnapshotResponse defaultInstance; public static CreateSnapshotResponse getDefaultInstance() { return defaultInstance; } - + public CreateSnapshotResponse getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateSnapshotResponse( + 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = tableSnapshot_.toBuilder(); + } + tableSnapshot_ = input.readMessage(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tableSnapshot_); + tableSnapshot_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotResponse_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotResponse_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public CreateSnapshotResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateSnapshotResponse(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // required .TableSnapshot table_snapshot = 1; public static final int TABLE_SNAPSHOT_FIELD_NUMBER = 1; private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot tableSnapshot_; + /** + * required .TableSnapshot table_snapshot = 1; + */ public boolean hasTableSnapshot() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .TableSnapshot table_snapshot = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot getTableSnapshot() { return tableSnapshot_; } + /** + * required .TableSnapshot table_snapshot = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshotOrBuilder getTableSnapshotOrBuilder() { return tableSnapshot_; } - + private void initFields() { tableSnapshot_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.getDefaultInstance(); } @@ -5834,7 +7234,7 @@ private void initFields() { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasTableSnapshot()) { memoizedIsInitialized = 0; return false; @@ -5846,7 +7246,7 @@ public final boolean isInitialized() { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -5855,12 +7255,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) } 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 @@ -5870,14 +7270,14 @@ public int 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) { @@ -5887,7 +7287,7 @@ public boolean equals(final java.lang.Object obj) { return super.equals(obj); } org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse) obj; - + boolean result = true; result = result && (hasTableSnapshot() == other.hasTableSnapshot()); if (hasTableSnapshot()) { @@ -5898,9 +7298,13 @@ public boolean equals(final java.lang.Object obj) { 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 (hasTableSnapshot()) { @@ -5908,89 +7312,79 @@ public int hashCode() { hash = (53 * hash) + getTableSnapshot().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse 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 CreateSnapshotResponse} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponseOrBuilder { @@ -5998,18 +7392,21 @@ protected Builder newBuilderForType( getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotResponse_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotResponse_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.Builder.class); } - + // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -6021,7 +7418,7 @@ private void maybeForceBuilderInitialization() { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); if (tableSnapshotBuilder_ == null) { @@ -6032,20 +7429,20 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000001); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.getDescriptor(); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_CreateSnapshotResponse_descriptor; } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse getDefaultInstanceForType() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.getDefaultInstance(); } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse build() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse result = buildPartial(); if (!result.isInitialized()) { @@ -6053,17 +7450,7 @@ public Builder clone() { } return result; } - - private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse buildPartial() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse(this); int from_bitField0_ = bitField0_; @@ -6080,7 +7467,7 @@ public Builder clone() { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse) { return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse)other); @@ -6089,7 +7476,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { return this; } } - + public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse other) { if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.getDefaultInstance()) return this; if (other.hasTableSnapshot()) { @@ -6098,7 +7485,7 @@ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManager this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasTableSnapshot()) { @@ -6110,52 +7497,39 @@ 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: { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.Builder subBuilder = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.newBuilder(); - if (hasTableSnapshot()) { - subBuilder.mergeFrom(getTableSnapshot()); - } - input.readMessage(subBuilder, extensionRegistry); - setTableSnapshot(subBuilder.buildPartial()); - break; - } + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required .TableSnapshot table_snapshot = 1; private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot tableSnapshot_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshotOrBuilder> tableSnapshotBuilder_; + /** + * required .TableSnapshot table_snapshot = 1; + */ public boolean hasTableSnapshot() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .TableSnapshot table_snapshot = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot getTableSnapshot() { if (tableSnapshotBuilder_ == null) { return tableSnapshot_; @@ -6163,6 +7537,9 @@ public boolean hasTableSnapshot() { return tableSnapshotBuilder_.getMessage(); } } + /** + * required .TableSnapshot table_snapshot = 1; + */ public Builder setTableSnapshot(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot value) { if (tableSnapshotBuilder_ == null) { if (value == null) { @@ -6176,6 +7553,9 @@ public Builder setTableSnapshot(org.apache.hive.hcatalog.hbase.snapshot.Revision bitField0_ |= 0x00000001; return this; } + /** + * required .TableSnapshot table_snapshot = 1; + */ public Builder setTableSnapshot( org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.Builder builderForValue) { if (tableSnapshotBuilder_ == null) { @@ -6187,6 +7567,9 @@ public Builder setTableSnapshot( bitField0_ |= 0x00000001; return this; } + /** + * required .TableSnapshot table_snapshot = 1; + */ public Builder mergeTableSnapshot(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot value) { if (tableSnapshotBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && @@ -6203,6 +7586,9 @@ public Builder mergeTableSnapshot(org.apache.hive.hcatalog.hbase.snapshot.Revisi bitField0_ |= 0x00000001; return this; } + /** + * required .TableSnapshot table_snapshot = 1; + */ public Builder clearTableSnapshot() { if (tableSnapshotBuilder_ == null) { tableSnapshot_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.getDefaultInstance(); @@ -6213,11 +7599,17 @@ public Builder clearTableSnapshot() { bitField0_ = (bitField0_ & ~0x00000001); return this; } + /** + * required .TableSnapshot table_snapshot = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.Builder getTableSnapshotBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTableSnapshotFieldBuilder().getBuilder(); } + /** + * required .TableSnapshot table_snapshot = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshotOrBuilder getTableSnapshotOrBuilder() { if (tableSnapshotBuilder_ != null) { return tableSnapshotBuilder_.getMessageOrBuilder(); @@ -6225,6 +7617,9 @@ public Builder clearTableSnapshot() { return tableSnapshot_; } } + /** + * required .TableSnapshot table_snapshot = 1; + */ private com.google.protobuf.SingleFieldBuilder< org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshotOrBuilder> getTableSnapshotFieldBuilder() { @@ -6238,68 +7633,161 @@ public Builder clearTableSnapshot() { } return tableSnapshotBuilder_; } - + // @@protoc_insertion_point(builder_scope:CreateSnapshotResponse) } - + static { defaultInstance = new CreateSnapshotResponse(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:CreateSnapshotResponse) } - + public interface KeepAliveTransactionRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required .Transaction transaction = 1; + /** + * required .Transaction transaction = 1; + */ boolean hasTransaction(); + /** + * required .Transaction transaction = 1; + */ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction(); + /** + * required .Transaction transaction = 1; + */ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder(); } + /** + * Protobuf type {@code KeepAliveTransactionRequest} + */ public static final class KeepAliveTransactionRequest extends com.google.protobuf.GeneratedMessage implements KeepAliveTransactionRequestOrBuilder { // Use KeepAliveTransactionRequest.newBuilder() to construct. - private KeepAliveTransactionRequest(Builder builder) { + private KeepAliveTransactionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private KeepAliveTransactionRequest(boolean noInit) {} - + private KeepAliveTransactionRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final KeepAliveTransactionRequest defaultInstance; public static KeepAliveTransactionRequest getDefaultInstance() { return defaultInstance; } - + public KeepAliveTransactionRequest getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private KeepAliveTransactionRequest( + 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = transaction_.toBuilder(); + } + transaction_ = input.readMessage(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(transaction_); + transaction_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionRequest_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionRequest_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public KeepAliveTransactionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeepAliveTransactionRequest(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // required .Transaction transaction = 1; public static final int TRANSACTION_FIELD_NUMBER = 1; private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction transaction_; + /** + * required .Transaction transaction = 1; + */ public boolean hasTransaction() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .Transaction transaction = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction() { return transaction_; } + /** + * required .Transaction transaction = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder() { return transaction_; } - + private void initFields() { transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance(); } @@ -6307,7 +7795,7 @@ private void initFields() { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasTransaction()) { memoizedIsInitialized = 0; return false; @@ -6319,7 +7807,7 @@ public final boolean isInitialized() { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -6328,12 +7816,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) } 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 @@ -6343,14 +7831,14 @@ public int 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) { @@ -6360,7 +7848,7 @@ public boolean equals(final java.lang.Object obj) { return super.equals(obj); } org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest) obj; - + boolean result = true; result = result && (hasTransaction() == other.hasTransaction()); if (hasTransaction()) { @@ -6371,9 +7859,13 @@ public boolean equals(final java.lang.Object obj) { 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 (hasTransaction()) { @@ -6381,89 +7873,79 @@ public int hashCode() { hash = (53 * hash) + getTransaction().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest 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 KeepAliveTransactionRequest} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequestOrBuilder { @@ -6471,18 +7953,21 @@ protected Builder newBuilderForType( getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionRequest_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionRequest_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest.Builder.class); } - + // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -6494,7 +7979,7 @@ private void maybeForceBuilderInitialization() { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); if (transactionBuilder_ == null) { @@ -6505,20 +7990,20 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000001); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest.getDescriptor(); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionRequest_descriptor; } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest getDefaultInstanceForType() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest.getDefaultInstance(); } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest build() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest result = buildPartial(); if (!result.isInitialized()) { @@ -6526,17 +8011,7 @@ public Builder clone() { } return result; } - - private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest buildPartial() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest(this); int from_bitField0_ = bitField0_; @@ -6553,7 +8028,7 @@ public Builder clone() { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest) { return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest)other); @@ -6562,7 +8037,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { return this; } } - + public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest other) { if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest.getDefaultInstance()) return this; if (other.hasTransaction()) { @@ -6571,7 +8046,7 @@ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManager this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasTransaction()) { @@ -6583,52 +8058,39 @@ 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: { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder subBuilder = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.newBuilder(); - if (hasTransaction()) { - subBuilder.mergeFrom(getTransaction()); - } - input.readMessage(subBuilder, extensionRegistry); - setTransaction(subBuilder.buildPartial()); - break; - } + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required .Transaction transaction = 1; private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder> transactionBuilder_; + /** + * required .Transaction transaction = 1; + */ public boolean hasTransaction() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required .Transaction transaction = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getTransaction() { if (transactionBuilder_ == null) { return transaction_; @@ -6636,6 +8098,9 @@ public boolean hasTransaction() { return transactionBuilder_.getMessage(); } } + /** + * required .Transaction transaction = 1; + */ public Builder setTransaction(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { @@ -6649,6 +8114,9 @@ public Builder setTransaction(org.apache.hive.hcatalog.hbase.snapshot.RevisionMa bitField0_ |= 0x00000001; return this; } + /** + * required .Transaction transaction = 1; + */ public Builder setTransaction( org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { @@ -6660,6 +8128,9 @@ public Builder setTransaction( bitField0_ |= 0x00000001; return this; } + /** + * required .Transaction transaction = 1; + */ public Builder mergeTransaction(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction value) { if (transactionBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && @@ -6676,6 +8147,9 @@ public Builder mergeTransaction(org.apache.hive.hcatalog.hbase.snapshot.Revision bitField0_ |= 0x00000001; return this; } + /** + * required .Transaction transaction = 1; + */ public Builder clearTransaction() { if (transactionBuilder_ == null) { transaction_ = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance(); @@ -6686,11 +8160,17 @@ public Builder clearTransaction() { bitField0_ = (bitField0_ & ~0x00000001); return this; } + /** + * required .Transaction transaction = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder getTransactionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTransactionFieldBuilder().getBuilder(); } + /** + * required .Transaction transaction = 1; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); @@ -6698,6 +8178,9 @@ public Builder clearTransaction() { return transaction_; } } + /** + * required .Transaction transaction = 1; + */ private com.google.protobuf.SingleFieldBuilder< org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder> getTransactionFieldBuilder() { @@ -6711,84 +8194,145 @@ public Builder clearTransaction() { } return transactionBuilder_; } - + // @@protoc_insertion_point(builder_scope:KeepAliveTransactionRequest) } - + static { defaultInstance = new KeepAliveTransactionRequest(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:KeepAliveTransactionRequest) } - + public interface KeepAliveTransactionResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { } + /** + * Protobuf type {@code KeepAliveTransactionResponse} + */ public static final class KeepAliveTransactionResponse extends com.google.protobuf.GeneratedMessage implements KeepAliveTransactionResponseOrBuilder { // Use KeepAliveTransactionResponse.newBuilder() to construct. - private KeepAliveTransactionResponse(Builder builder) { + private KeepAliveTransactionResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private KeepAliveTransactionResponse(boolean noInit) {} - + private KeepAliveTransactionResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final KeepAliveTransactionResponse defaultInstance; public static KeepAliveTransactionResponse getDefaultInstance() { return defaultInstance; } - + public KeepAliveTransactionResponse getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private KeepAliveTransactionResponse( + 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionResponse_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionResponse_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public KeepAliveTransactionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeepAliveTransactionResponse(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) { @@ -6798,101 +8342,95 @@ public boolean equals(final java.lang.Object obj) { return super.equals(obj); } org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse) 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse 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 KeepAliveTransactionResponse} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponseOrBuilder { @@ -6900,18 +8438,21 @@ protected Builder newBuilderForType( getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionResponse_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionResponse_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.Builder.class); } - + // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -6922,25 +8463,25 @@ private void maybeForceBuilderInitialization() { 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.getDescriptor(); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_KeepAliveTransactionResponse_descriptor; } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse getDefaultInstanceForType() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.getDefaultInstance(); } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse build() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse result = buildPartial(); if (!result.isInitialized()) { @@ -6948,23 +8489,13 @@ public Builder clone() { } return result; } - - private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse buildPartial() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse(this); onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse) { return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse)other); @@ -6973,116 +8504,202 @@ public Builder mergeFrom(com.google.protobuf.Message other) { return this; } } - + public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse other) { if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - - + // @@protoc_insertion_point(builder_scope:KeepAliveTransactionResponse) } - + static { defaultInstance = new KeepAliveTransactionResponse(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:KeepAliveTransactionResponse) } - + public interface FamilyRevisionOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required int64 revision = 1; + /** + * required int64 revision = 1; + */ boolean hasRevision(); + /** + * required int64 revision = 1; + */ long getRevision(); - + // required int64 timestamp = 2; + /** + * required int64 timestamp = 2; + */ boolean hasTimestamp(); + /** + * required int64 timestamp = 2; + */ long getTimestamp(); } + /** + * Protobuf type {@code FamilyRevision} + */ public static final class FamilyRevision extends com.google.protobuf.GeneratedMessage implements FamilyRevisionOrBuilder { // Use FamilyRevision.newBuilder() to construct. - private FamilyRevision(Builder builder) { + private FamilyRevision(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private FamilyRevision(boolean noInit) {} - + private FamilyRevision(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final FamilyRevision defaultInstance; public static FamilyRevision getDefaultInstance() { return defaultInstance; } - + public FamilyRevision getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FamilyRevision( + 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; + revision_ = input.readInt64(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + timestamp_ = 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_FamilyRevision_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_FamilyRevision_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_FamilyRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public FamilyRevision parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FamilyRevision(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // required int64 revision = 1; public static final int REVISION_FIELD_NUMBER = 1; private long revision_; + /** + * required int64 revision = 1; + */ public boolean hasRevision() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required int64 revision = 1; + */ public long getRevision() { return revision_; } - + // required int64 timestamp = 2; public static final int TIMESTAMP_FIELD_NUMBER = 2; private long timestamp_; + /** + * required int64 timestamp = 2; + */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required int64 timestamp = 2; + */ public long getTimestamp() { return timestamp_; } - + private void initFields() { revision_ = 0L; timestamp_ = 0L; @@ -7091,7 +8708,7 @@ private void initFields() { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasRevision()) { memoizedIsInitialized = 0; return false; @@ -7103,7 +8720,7 @@ public final boolean isInitialized() { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -7115,12 +8732,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) } 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 @@ -7134,14 +8751,14 @@ public int 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) { @@ -7151,7 +8768,7 @@ public boolean equals(final java.lang.Object obj) { return super.equals(obj); } org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision) obj; - + boolean result = true; result = result && (hasRevision() == other.hasRevision()); if (hasRevision()) { @@ -7167,9 +8784,13 @@ public boolean equals(final java.lang.Object obj) { 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 (hasRevision()) { @@ -7181,89 +8802,79 @@ public int hashCode() { hash = (53 * hash) + hashLong(getTimestamp()); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision 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 FamilyRevision} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevisionOrBuilder { @@ -7271,18 +8882,21 @@ protected Builder newBuilderForType( getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_FamilyRevision_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_FamilyRevision_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_FamilyRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder.class); } - + // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -7293,7 +8907,7 @@ private void maybeForceBuilderInitialization() { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); revision_ = 0L; @@ -7302,20 +8916,20 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.getDescriptor(); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_FamilyRevision_descriptor; } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision getDefaultInstanceForType() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.getDefaultInstance(); } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision build() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision result = buildPartial(); if (!result.isInitialized()) { @@ -7323,17 +8937,7 @@ public Builder clone() { } return result; } - - private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision buildPartial() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision(this); int from_bitField0_ = bitField0_; @@ -7350,7 +8954,7 @@ public Builder clone() { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision) { return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision)other); @@ -7359,7 +8963,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { return this; } } - + public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision other) { if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.getDefaultInstance()) return this; if (other.hasRevision()) { @@ -7371,7 +8975,7 @@ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManager this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasRevision()) { @@ -7383,228 +8987,414 @@ 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; - revision_ = input.readInt64(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - timestamp_ = input.readInt64(); - break; - } + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required int64 revision = 1; private long revision_ ; + /** + * required int64 revision = 1; + */ public boolean hasRevision() { return ((bitField0_ & 0x00000001) == 0x00000001); } + /** + * required int64 revision = 1; + */ public long getRevision() { return revision_; } + /** + * required int64 revision = 1; + */ public Builder setRevision(long value) { bitField0_ |= 0x00000001; revision_ = value; onChanged(); return this; } + /** + * required int64 revision = 1; + */ public Builder clearRevision() { bitField0_ = (bitField0_ & ~0x00000001); revision_ = 0L; onChanged(); return this; } - + // required int64 timestamp = 2; private long timestamp_ ; + /** + * required int64 timestamp = 2; + */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required int64 timestamp = 2; + */ public long getTimestamp() { return timestamp_; } + /** + * required int64 timestamp = 2; + */ public Builder setTimestamp(long value) { bitField0_ |= 0x00000002; timestamp_ = value; onChanged(); return this; } + /** + * required int64 timestamp = 2; + */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000002); timestamp_ = 0L; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:FamilyRevision) } - + static { defaultInstance = new FamilyRevision(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:FamilyRevision) } - + public interface TransactionOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string table_name = 1; + /** + * required string table_name = 1; + */ boolean hasTableName(); - String getTableName(); - + /** + * required string table_name = 1; + */ + java.lang.String getTableName(); + /** + * required string table_name = 1; + */ + com.google.protobuf.ByteString + getTableNameBytes(); + // required int64 time_stamp = 2; + /** + * required int64 time_stamp = 2; + */ boolean hasTimeStamp(); + /** + * required int64 time_stamp = 2; + */ long getTimeStamp(); - + // required int64 keep_alive = 3; + /** + * required int64 keep_alive = 3; + */ boolean hasKeepAlive(); + /** + * required int64 keep_alive = 3; + */ long getKeepAlive(); - + // required int64 revision = 4; + /** + * required int64 revision = 4; + */ boolean hasRevision(); + /** + * required int64 revision = 4; + */ long getRevision(); - + // repeated string column_families = 5; - java.util.List getColumnFamiliesList(); + /** + * repeated string column_families = 5; + */ + java.util.List + getColumnFamiliesList(); + /** + * repeated string column_families = 5; + */ int getColumnFamiliesCount(); - String getColumnFamilies(int index); + /** + * repeated string column_families = 5; + */ + java.lang.String getColumnFamilies(int index); + /** + * repeated string column_families = 5; + */ + com.google.protobuf.ByteString + getColumnFamiliesBytes(int index); } + /** + * Protobuf type {@code Transaction} + */ public static final class Transaction extends com.google.protobuf.GeneratedMessage implements TransactionOrBuilder { // Use Transaction.newBuilder() to construct. - private Transaction(Builder builder) { + private Transaction(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private Transaction(boolean noInit) {} - + private Transaction(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final Transaction defaultInstance; public static Transaction getDefaultInstance() { return defaultInstance; } - + public Transaction getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Transaction( + 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; + tableName_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + timeStamp_ = input.readInt64(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + keepAlive_ = input.readInt64(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + revision_ = input.readInt64(); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + columnFamilies_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + columnFamilies_.add(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 { + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + columnFamilies_ = new com.google.protobuf.UnmodifiableLazyStringList(columnFamilies_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_Transaction_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_Transaction_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_Transaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Transaction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Transaction(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + private int bitField0_; // required string table_name = 1; public static final int TABLE_NAME_FIELD_NUMBER = 1; private java.lang.Object tableName_; + /** + * required string table_name = 1; + */ public boolean hasTableName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getTableName() { + /** + * required string table_name = 1; + */ + public java.lang.String getTableName() { java.lang.Object ref = tableName_; - 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()) { tableName_ = s; } return s; } } - private com.google.protobuf.ByteString getTableNameBytes() { + /** + * required string table_name = 1; + */ + public com.google.protobuf.ByteString + getTableNameBytes() { java.lang.Object ref = tableName_; - 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); tableName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // required int64 time_stamp = 2; public static final int TIME_STAMP_FIELD_NUMBER = 2; private long timeStamp_; + /** + * required int64 time_stamp = 2; + */ public boolean hasTimeStamp() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required int64 time_stamp = 2; + */ public long getTimeStamp() { return timeStamp_; } - + // required int64 keep_alive = 3; public static final int KEEP_ALIVE_FIELD_NUMBER = 3; private long keepAlive_; + /** + * required int64 keep_alive = 3; + */ public boolean hasKeepAlive() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * required int64 keep_alive = 3; + */ public long getKeepAlive() { return keepAlive_; } - + // required int64 revision = 4; public static final int REVISION_FIELD_NUMBER = 4; private long revision_; + /** + * required int64 revision = 4; + */ public boolean hasRevision() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** + * required int64 revision = 4; + */ public long getRevision() { return revision_; } - + // repeated string column_families = 5; public static final int COLUMN_FAMILIES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList columnFamilies_; - public java.util.List + /** + * repeated string column_families = 5; + */ + public java.util.List getColumnFamiliesList() { return columnFamilies_; } + /** + * repeated string column_families = 5; + */ public int getColumnFamiliesCount() { return columnFamilies_.size(); } - public String getColumnFamilies(int index) { + /** + * repeated string column_families = 5; + */ + public java.lang.String getColumnFamilies(int index) { return columnFamilies_.get(index); } - + /** + * repeated string column_families = 5; + */ + public com.google.protobuf.ByteString + getColumnFamiliesBytes(int index) { + return columnFamilies_.getByteString(index); + } + private void initFields() { tableName_ = ""; timeStamp_ = 0L; @@ -7616,7 +9406,7 @@ private void initFields() { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasTableName()) { memoizedIsInitialized = 0; return false; @@ -7636,7 +9426,7 @@ public final boolean isInitialized() { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -7657,12 +9447,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) } 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 @@ -7693,14 +9483,14 @@ public int 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) { @@ -7710,7 +9500,7 @@ public boolean equals(final java.lang.Object obj) { return super.equals(obj); } org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction) obj; - + boolean result = true; result = result && (hasTableName() == other.hasTableName()); if (hasTableName()) { @@ -7738,9 +9528,13 @@ public boolean equals(final java.lang.Object obj) { 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()) { @@ -7764,89 +9558,79 @@ public int hashCode() { hash = (53 * hash) + getColumnFamiliesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction 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 Transaction} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TransactionOrBuilder { @@ -7854,18 +9638,21 @@ protected Builder newBuilderForType( getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_Transaction_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_Transaction_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_Transaction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder.class); } - + // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -7876,7 +9663,7 @@ private void maybeForceBuilderInitialization() { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); tableName_ = ""; @@ -7891,20 +9678,20 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000010); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDescriptor(); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_Transaction_descriptor; } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction getDefaultInstanceForType() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance(); } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction build() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction result = buildPartial(); if (!result.isInitialized()) { @@ -7912,17 +9699,7 @@ public Builder clone() { } return result; } - - private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction buildPartial() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction(this); int from_bitField0_ = bitField0_; @@ -7953,7 +9730,7 @@ public Builder clone() { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction) { return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction)other); @@ -7962,11 +9739,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { return this; } } - + public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction other) { if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.getDefaultInstance()) return this; if (other.hasTableName()) { - setTableName(other.getTableName()); + bitField0_ |= 0x00000001; + tableName_ = other.tableName_; + onChanged(); } if (other.hasTimeStamp()) { setTimeStamp(other.getTimeStamp()); @@ -7990,7 +9769,7 @@ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManager this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasTableName()) { @@ -8010,77 +9789,69 @@ 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; - tableName_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - timeStamp_ = input.readInt64(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - keepAlive_ = input.readInt64(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - revision_ = input.readInt64(); - break; - } - case 42: { - ensureColumnFamiliesIsMutable(); - columnFamilies_.add(input.readBytes()); - break; - } + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required string table_name = 1; private java.lang.Object tableName_ = ""; + /** + * required string table_name = 1; + */ public boolean hasTableName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getTableName() { + /** + * required string table_name = 1; + */ + public java.lang.String getTableName() { java.lang.Object ref = tableName_; - 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(); tableName_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; + } + } + /** + * required string table_name = 1; + */ + public com.google.protobuf.ByteString + getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } } - public Builder setTableName(String value) { + /** + * required string table_name = 1; + */ + public Builder setTableName( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -8089,81 +9860,128 @@ public Builder setTableName(String value) { onChanged(); return this; } + /** + * required string table_name = 1; + */ public Builder clearTableName() { bitField0_ = (bitField0_ & ~0x00000001); tableName_ = getDefaultInstance().getTableName(); onChanged(); return this; } - void setTableName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string table_name = 1; + */ + public Builder setTableNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; tableName_ = value; onChanged(); + return this; } - + // required int64 time_stamp = 2; private long timeStamp_ ; + /** + * required int64 time_stamp = 2; + */ public boolean hasTimeStamp() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required int64 time_stamp = 2; + */ public long getTimeStamp() { return timeStamp_; } + /** + * required int64 time_stamp = 2; + */ public Builder setTimeStamp(long value) { bitField0_ |= 0x00000002; timeStamp_ = value; onChanged(); return this; } + /** + * required int64 time_stamp = 2; + */ public Builder clearTimeStamp() { bitField0_ = (bitField0_ & ~0x00000002); timeStamp_ = 0L; onChanged(); return this; } - + // required int64 keep_alive = 3; private long keepAlive_ ; + /** + * required int64 keep_alive = 3; + */ public boolean hasKeepAlive() { return ((bitField0_ & 0x00000004) == 0x00000004); } + /** + * required int64 keep_alive = 3; + */ public long getKeepAlive() { return keepAlive_; } + /** + * required int64 keep_alive = 3; + */ public Builder setKeepAlive(long value) { bitField0_ |= 0x00000004; keepAlive_ = value; onChanged(); return this; } + /** + * required int64 keep_alive = 3; + */ public Builder clearKeepAlive() { bitField0_ = (bitField0_ & ~0x00000004); keepAlive_ = 0L; onChanged(); return this; } - + // required int64 revision = 4; private long revision_ ; + /** + * required int64 revision = 4; + */ public boolean hasRevision() { return ((bitField0_ & 0x00000008) == 0x00000008); } + /** + * required int64 revision = 4; + */ public long getRevision() { return revision_; } + /** + * required int64 revision = 4; + */ public Builder setRevision(long value) { bitField0_ |= 0x00000008; revision_ = value; onChanged(); return this; } + /** + * required int64 revision = 4; + */ public Builder clearRevision() { bitField0_ = (bitField0_ & ~0x00000008); revision_ = 0L; onChanged(); return this; } - + // repeated string column_families = 5; private com.google.protobuf.LazyStringList columnFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureColumnFamiliesIsMutable() { @@ -8172,18 +9990,37 @@ private void ensureColumnFamiliesIsMutable() { bitField0_ |= 0x00000010; } } - public java.util.List + /** + * repeated string column_families = 5; + */ + public java.util.List getColumnFamiliesList() { return java.util.Collections.unmodifiableList(columnFamilies_); } + /** + * repeated string column_families = 5; + */ public int getColumnFamiliesCount() { return columnFamilies_.size(); } - public String getColumnFamilies(int index) { + /** + * repeated string column_families = 5; + */ + public java.lang.String getColumnFamilies(int index) { return columnFamilies_.get(index); } + /** + * repeated string column_families = 5; + */ + public com.google.protobuf.ByteString + getColumnFamiliesBytes(int index) { + return columnFamilies_.getByteString(index); + } + /** + * repeated string column_families = 5; + */ public Builder setColumnFamilies( - int index, String value) { + int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -8192,7 +10029,11 @@ public Builder setColumnFamilies( onChanged(); return this; } - public Builder addColumnFamilies(String value) { + /** + * repeated string column_families = 5; + */ + public Builder addColumnFamilies( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -8201,167 +10042,402 @@ public Builder addColumnFamilies(String value) { onChanged(); return this; } + /** + * repeated string column_families = 5; + */ public Builder addAllColumnFamilies( - java.lang.Iterable values) { + java.lang.Iterable values) { ensureColumnFamiliesIsMutable(); super.addAll(values, columnFamilies_); onChanged(); return this; } + /** + * repeated string column_families = 5; + */ public Builder clearColumnFamilies() { columnFamilies_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } - void addColumnFamilies(com.google.protobuf.ByteString value) { - ensureColumnFamiliesIsMutable(); + /** + * repeated string column_families = 5; + */ + public Builder addColumnFamiliesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnFamiliesIsMutable(); columnFamilies_.add(value); onChanged(); + return this; } - + // @@protoc_insertion_point(builder_scope:Transaction) } - + static { defaultInstance = new Transaction(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:Transaction) } - + public interface TableSnapshotOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string table_name = 1; + /** + * required string table_name = 1; + */ boolean hasTableName(); - String getTableName(); - + /** + * required string table_name = 1; + */ + java.lang.String getTableName(); + /** + * required string table_name = 1; + */ + com.google.protobuf.ByteString + getTableNameBytes(); + // required int64 latest_revision = 2; + /** + * required int64 latest_revision = 2; + */ boolean hasLatestRevision(); + /** + * required int64 latest_revision = 2; + */ long getLatestRevision(); - + // repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ java.util.List getColumnFamilyRevisionList(); + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision getColumnFamilyRevision(int index); + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ int getColumnFamilyRevisionCount(); + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ java.util.List getColumnFamilyRevisionOrBuilderList(); + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevisionOrBuilder getColumnFamilyRevisionOrBuilder( int index); } + /** + * Protobuf type {@code TableSnapshot} + */ public static final class TableSnapshot extends com.google.protobuf.GeneratedMessage implements TableSnapshotOrBuilder { // Use TableSnapshot.newBuilder() to construct. - private TableSnapshot(Builder builder) { + private TableSnapshot(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private TableSnapshot(boolean noInit) {} - + private TableSnapshot(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final TableSnapshot defaultInstance; public static TableSnapshot getDefaultInstance() { return defaultInstance; } - + public TableSnapshot getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TableSnapshot( + 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; + tableName_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + latestRevision_ = input.readInt64(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + columnFamilyRevision_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + columnFamilyRevision_.add(input.readMessage(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.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_ & 0x00000004) == 0x00000004)) { + columnFamilyRevision_ = java.util.Collections.unmodifiableList(columnFamilyRevision_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public TableSnapshot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TableSnapshot(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - + public interface ColumnFamilyRevisionOrBuilder extends com.google.protobuf.MessageOrBuilder { - + // required string key = 1; + /** + * required string key = 1; + */ boolean hasKey(); - String getKey(); - + /** + * required string key = 1; + */ + java.lang.String getKey(); + /** + * required string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + // required int64 value = 2; + /** + * required int64 value = 2; + */ boolean hasValue(); + /** + * required int64 value = 2; + */ long getValue(); } + /** + * Protobuf type {@code TableSnapshot.ColumnFamilyRevision} + */ public static final class ColumnFamilyRevision extends com.google.protobuf.GeneratedMessage implements ColumnFamilyRevisionOrBuilder { // Use ColumnFamilyRevision.newBuilder() to construct. - private ColumnFamilyRevision(Builder builder) { + private ColumnFamilyRevision(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); + this.unknownFields = builder.getUnknownFields(); } - private ColumnFamilyRevision(boolean noInit) {} - + private ColumnFamilyRevision(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private static final ColumnFamilyRevision defaultInstance; public static ColumnFamilyRevision getDefaultInstance() { return defaultInstance; } - + public ColumnFamilyRevision getDefaultInstanceForType() { return defaultInstance; } - + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ColumnFamilyRevision( + 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; + key_ = 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_ColumnFamilyRevision_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_ColumnFamilyRevision_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_ColumnFamilyRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder.class); } - + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public ColumnFamilyRevision parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ColumnFamilyRevision(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + private int bitField0_; // required string key = 1; public static final int KEY_FIELD_NUMBER = 1; private java.lang.Object key_; + /** + * required string key = 1; + */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getKey() { + /** + * required string key = 1; + */ + public java.lang.String getKey() { java.lang.Object ref = key_; - 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()) { key_ = s; } return s; } } - private com.google.protobuf.ByteString getKeyBytes() { + /** + * required string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; - 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); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // required int64 value = 2; public static final int VALUE_FIELD_NUMBER = 2; private long value_; + /** + * required int64 value = 2; + */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required int64 value = 2; + */ public long getValue() { return value_; } - + private void initFields() { key_ = ""; value_ = 0L; @@ -8370,7 +10446,7 @@ private void initFields() { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasKey()) { memoizedIsInitialized = 0; return false; @@ -8382,7 +10458,7 @@ public final boolean isInitialized() { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -8394,12 +10470,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) } 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 @@ -8413,14 +10489,14 @@ public int 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) { @@ -8430,7 +10506,7 @@ public boolean equals(final java.lang.Object obj) { return super.equals(obj); } org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision) obj; - + boolean result = true; result = result && (hasKey() == other.hasKey()); if (hasKey()) { @@ -8446,9 +10522,13 @@ public boolean equals(final java.lang.Object obj) { 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 (hasKey()) { @@ -8460,89 +10540,79 @@ public int hashCode() { hash = (53 * hash) + hashLong(getValue()); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision 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 TableSnapshot.ColumnFamilyRevision} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevisionOrBuilder { @@ -8550,18 +10620,21 @@ protected Builder newBuilderForType( getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_ColumnFamilyRevision_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_ColumnFamilyRevision_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_ColumnFamilyRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder.class); } - + // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -8572,7 +10645,7 @@ private void maybeForceBuilderInitialization() { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); key_ = ""; @@ -8581,20 +10654,20 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000002); return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.getDescriptor(); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_ColumnFamilyRevision_descriptor; } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision getDefaultInstanceForType() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.getDefaultInstance(); } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision build() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision result = buildPartial(); if (!result.isInitialized()) { @@ -8602,17 +10675,7 @@ public Builder clone() { } return result; } - - private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision buildPartial() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision(this); int from_bitField0_ = bitField0_; @@ -8629,7 +10692,7 @@ public Builder clone() { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision) { return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision)other); @@ -8638,11 +10701,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { return this; } } - + public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision other) { if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.getDefaultInstance()) return this; if (other.hasKey()) { - setKey(other.getKey()); + bitField0_ |= 0x00000001; + key_ = other.key_; + onChanged(); } if (other.hasValue()) { setValue(other.getValue()); @@ -8650,7 +10715,7 @@ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManager this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasKey()) { @@ -8662,62 +10727,69 @@ 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; - key_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - value_ = input.readInt64(); - break; - } + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required string key = 1; private java.lang.Object key_ = ""; + /** + * required string key = 1; + */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getKey() { + /** + * required string key = 1; + */ + public java.lang.String getKey() { java.lang.Object ref = key_; - 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(); key_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; + } + } + /** + * required string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } } - public Builder setKey(String value) { + /** + * required string key = 1; + */ + public Builder setKey( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -8726,114 +10798,169 @@ public Builder setKey(String value) { onChanged(); return this; } + /** + * required string key = 1; + */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } - void setKey(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string key = 1; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; key_ = value; onChanged(); + return this; } - + // required int64 value = 2; private long value_ ; + /** + * required int64 value = 2; + */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required int64 value = 2; + */ public long getValue() { return value_; } + /** + * required int64 value = 2; + */ public Builder setValue(long value) { bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } + /** + * required int64 value = 2; + */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = 0L; onChanged(); return this; } - + // @@protoc_insertion_point(builder_scope:TableSnapshot.ColumnFamilyRevision) } - + static { defaultInstance = new ColumnFamilyRevision(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:TableSnapshot.ColumnFamilyRevision) } - + private int bitField0_; // required string table_name = 1; public static final int TABLE_NAME_FIELD_NUMBER = 1; private java.lang.Object tableName_; + /** + * required string table_name = 1; + */ public boolean hasTableName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getTableName() { + /** + * required string table_name = 1; + */ + public java.lang.String getTableName() { java.lang.Object ref = tableName_; - 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()) { tableName_ = s; } return s; } } - private com.google.protobuf.ByteString getTableNameBytes() { + /** + * required string table_name = 1; + */ + public com.google.protobuf.ByteString + getTableNameBytes() { java.lang.Object ref = tableName_; - 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); tableName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - + // required int64 latest_revision = 2; public static final int LATEST_REVISION_FIELD_NUMBER = 2; private long latestRevision_; + /** + * required int64 latest_revision = 2; + */ public boolean hasLatestRevision() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required int64 latest_revision = 2; + */ public long getLatestRevision() { return latestRevision_; } - + // repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; public static final int COLUMN_FAMILY_REVISION_FIELD_NUMBER = 3; private java.util.List columnFamilyRevision_; + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public java.util.List getColumnFamilyRevisionList() { return columnFamilyRevision_; } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public java.util.List getColumnFamilyRevisionOrBuilderList() { return columnFamilyRevision_; } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public int getColumnFamilyRevisionCount() { return columnFamilyRevision_.size(); } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision getColumnFamilyRevision(int index) { return columnFamilyRevision_.get(index); } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevisionOrBuilder getColumnFamilyRevisionOrBuilder( int index) { return columnFamilyRevision_.get(index); } - + private void initFields() { tableName_ = ""; latestRevision_ = 0L; @@ -8843,7 +10970,7 @@ private void initFields() { public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; - + if (!hasTableName()) { memoizedIsInitialized = 0; return false; @@ -8861,7 +10988,7 @@ public final boolean isInitialized() { memoizedIsInitialized = 1; return true; } - + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -8876,12 +11003,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) } 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 @@ -8899,14 +11026,14 @@ public int 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) { @@ -8916,7 +11043,7 @@ public boolean equals(final java.lang.Object obj) { return super.equals(obj); } org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot other = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot) obj; - + boolean result = true; result = result && (hasTableName() == other.hasTableName()); if (hasTableName()) { @@ -8934,9 +11061,13 @@ public boolean equals(final java.lang.Object obj) { 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()) { @@ -8952,89 +11083,79 @@ public int hashCode() { hash = (53 * hash) + getColumnFamilyRevisionList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; return hash; } - + public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); + return PARSER.parseFrom(data); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot parseFrom(java.io.InputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); + return PARSER.parseFrom(input); } public static org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot 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.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot 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 TableSnapshot} + */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshotOrBuilder { @@ -9042,18 +11163,21 @@ protected Builder newBuilderForType( getDescriptor() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_descriptor; } - + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_fieldAccessorTable; + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.Builder.class); } - + // Construct using org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - - private Builder(BuilderParent parent) { + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -9065,7 +11189,7 @@ private void maybeForceBuilderInitialization() { private static Builder create() { return new Builder(); } - + public Builder clear() { super.clear(); tableName_ = ""; @@ -9080,20 +11204,20 @@ public Builder clear() { } return this; } - + public Builder clone() { return create().mergeFrom(buildPartial()); } - + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.getDescriptor(); + return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.internal_static_TableSnapshot_descriptor; } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot getDefaultInstanceForType() { return org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.getDefaultInstance(); } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot build() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot result = buildPartial(); if (!result.isInitialized()) { @@ -9101,17 +11225,7 @@ public Builder clone() { } return result; } - - private org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot buildPartial() { org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot result = new org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot(this); int from_bitField0_ = bitField0_; @@ -9137,7 +11251,7 @@ public Builder clone() { onBuilt(); return result; } - + public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot) { return mergeFrom((org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot)other); @@ -9146,11 +11260,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { return this; } } - + public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot other) { if (other == org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.getDefaultInstance()) return this; if (other.hasTableName()) { - setTableName(other.getTableName()); + bitField0_ |= 0x00000001; + tableName_ = other.tableName_; + onChanged(); } if (other.hasLatestRevision()) { setLatestRevision(other.getLatestRevision()); @@ -9184,7 +11300,7 @@ public Builder mergeFrom(org.apache.hive.hcatalog.hbase.snapshot.RevisionManager this.mergeUnknownFields(other.getUnknownFields()); return this; } - + public final boolean isInitialized() { if (!hasTableName()) { @@ -9202,68 +11318,69 @@ 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; - tableName_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - latestRevision_ = input.readInt64(); - break; - } - case 26: { - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder subBuilder = org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addColumnFamilyRevision(subBuilder.buildPartial()); - break; - } + org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } } + return this; } - private int bitField0_; - + // required string table_name = 1; private java.lang.Object tableName_ = ""; + /** + * required string table_name = 1; + */ public boolean hasTableName() { return ((bitField0_ & 0x00000001) == 0x00000001); } - public String getTableName() { + /** + * required string table_name = 1; + */ + public java.lang.String getTableName() { java.lang.Object ref = tableName_; - 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(); tableName_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; + } + } + /** + * required string table_name = 1; + */ + public com.google.protobuf.ByteString + getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } } - public Builder setTableName(String value) { + /** + * required string table_name = 1; + */ + public Builder setTableName( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -9272,39 +11389,62 @@ public Builder setTableName(String value) { onChanged(); return this; } + /** + * required string table_name = 1; + */ public Builder clearTableName() { bitField0_ = (bitField0_ & ~0x00000001); tableName_ = getDefaultInstance().getTableName(); onChanged(); return this; } - void setTableName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; + /** + * required string table_name = 1; + */ + public Builder setTableNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; tableName_ = value; onChanged(); + return this; } - + // required int64 latest_revision = 2; private long latestRevision_ ; + /** + * required int64 latest_revision = 2; + */ public boolean hasLatestRevision() { return ((bitField0_ & 0x00000002) == 0x00000002); } + /** + * required int64 latest_revision = 2; + */ public long getLatestRevision() { return latestRevision_; } + /** + * required int64 latest_revision = 2; + */ public Builder setLatestRevision(long value) { bitField0_ |= 0x00000002; latestRevision_ = value; onChanged(); return this; } + /** + * required int64 latest_revision = 2; + */ public Builder clearLatestRevision() { bitField0_ = (bitField0_ & ~0x00000002); latestRevision_ = 0L; onChanged(); return this; } - + // repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; private java.util.List columnFamilyRevision_ = java.util.Collections.emptyList(); @@ -9314,10 +11454,13 @@ private void ensureColumnFamilyRevisionIsMutable() { bitField0_ |= 0x00000004; } } - + private com.google.protobuf.RepeatedFieldBuilder< org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevisionOrBuilder> columnFamilyRevisionBuilder_; - + + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public java.util.List getColumnFamilyRevisionList() { if (columnFamilyRevisionBuilder_ == null) { return java.util.Collections.unmodifiableList(columnFamilyRevision_); @@ -9325,6 +11468,9 @@ private void ensureColumnFamilyRevisionIsMutable() { return columnFamilyRevisionBuilder_.getMessageList(); } } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public int getColumnFamilyRevisionCount() { if (columnFamilyRevisionBuilder_ == null) { return columnFamilyRevision_.size(); @@ -9332,6 +11478,9 @@ public int getColumnFamilyRevisionCount() { return columnFamilyRevisionBuilder_.getCount(); } } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision getColumnFamilyRevision(int index) { if (columnFamilyRevisionBuilder_ == null) { return columnFamilyRevision_.get(index); @@ -9339,6 +11488,9 @@ public int getColumnFamilyRevisionCount() { return columnFamilyRevisionBuilder_.getMessage(index); } } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public Builder setColumnFamilyRevision( int index, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision value) { if (columnFamilyRevisionBuilder_ == null) { @@ -9353,6 +11505,9 @@ public Builder setColumnFamilyRevision( } return this; } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public Builder setColumnFamilyRevision( int index, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder builderForValue) { if (columnFamilyRevisionBuilder_ == null) { @@ -9364,6 +11519,9 @@ public Builder setColumnFamilyRevision( } return this; } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public Builder addColumnFamilyRevision(org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision value) { if (columnFamilyRevisionBuilder_ == null) { if (value == null) { @@ -9377,6 +11535,9 @@ public Builder addColumnFamilyRevision(org.apache.hive.hcatalog.hbase.snapshot.R } return this; } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public Builder addColumnFamilyRevision( int index, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision value) { if (columnFamilyRevisionBuilder_ == null) { @@ -9391,6 +11552,9 @@ public Builder addColumnFamilyRevision( } return this; } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public Builder addColumnFamilyRevision( org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder builderForValue) { if (columnFamilyRevisionBuilder_ == null) { @@ -9402,6 +11566,9 @@ public Builder addColumnFamilyRevision( } return this; } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public Builder addColumnFamilyRevision( int index, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder builderForValue) { if (columnFamilyRevisionBuilder_ == null) { @@ -9413,6 +11580,9 @@ public Builder addColumnFamilyRevision( } return this; } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public Builder addAllColumnFamilyRevision( java.lang.Iterable values) { if (columnFamilyRevisionBuilder_ == null) { @@ -9424,6 +11594,9 @@ public Builder addAllColumnFamilyRevision( } return this; } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public Builder clearColumnFamilyRevision() { if (columnFamilyRevisionBuilder_ == null) { columnFamilyRevision_ = java.util.Collections.emptyList(); @@ -9434,6 +11607,9 @@ public Builder clearColumnFamilyRevision() { } return this; } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public Builder removeColumnFamilyRevision(int index) { if (columnFamilyRevisionBuilder_ == null) { ensureColumnFamilyRevisionIsMutable(); @@ -9444,10 +11620,16 @@ public Builder removeColumnFamilyRevision(int index) { } return this; } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder getColumnFamilyRevisionBuilder( int index) { return getColumnFamilyRevisionFieldBuilder().getBuilder(index); } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevisionOrBuilder getColumnFamilyRevisionOrBuilder( int index) { if (columnFamilyRevisionBuilder_ == null) { @@ -9455,6 +11637,9 @@ public Builder removeColumnFamilyRevision(int index) { return columnFamilyRevisionBuilder_.getMessageOrBuilder(index); } } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public java.util.List getColumnFamilyRevisionOrBuilderList() { if (columnFamilyRevisionBuilder_ != null) { @@ -9463,15 +11648,24 @@ public Builder removeColumnFamilyRevision(int index) { return java.util.Collections.unmodifiableList(columnFamilyRevision_); } } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder addColumnFamilyRevisionBuilder() { return getColumnFamilyRevisionFieldBuilder().addBuilder( org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.getDefaultInstance()); } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder addColumnFamilyRevisionBuilder( int index) { return getColumnFamilyRevisionFieldBuilder().addBuilder( index, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.getDefaultInstance()); } + /** + * repeated .TableSnapshot.ColumnFamilyRevision column_family_revision = 3; + */ public java.util.List getColumnFamilyRevisionBuilderList() { return getColumnFamilyRevisionFieldBuilder().getBuilderList(); @@ -9490,65 +11684,92 @@ public Builder removeColumnFamilyRevision(int index) { } return columnFamilyRevisionBuilder_; } - + // @@protoc_insertion_point(builder_scope:TableSnapshot) } - + static { defaultInstance = new TableSnapshot(true); defaultInstance.initFields(); } - + // @@protoc_insertion_point(class_scope:TableSnapshot) } - + + /** + * Protobuf service {@code RevisionManagerEndpointService} + */ public static abstract class RevisionManagerEndpointService implements com.google.protobuf.Service { protected RevisionManagerEndpointService() {} - + public interface Interface { + /** + * rpc createTable(.CreateTableRequest) returns (.CreateTableResponse); + */ public abstract void createTable( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest request, com.google.protobuf.RpcCallback done); - + + /** + * rpc dropTable(.DropTableRequest) returns (.DropTableResponse); + */ public abstract void dropTable( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest request, com.google.protobuf.RpcCallback done); - + + /** + * rpc beginWriteTransaction(.BeginWriteTransactionRequest) returns (.BeginWriteTransactionResponse); + */ public abstract void beginWriteTransaction( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest request, com.google.protobuf.RpcCallback done); - + + /** + * rpc commitWriteTransaction(.CommitWriteTransactionRequest) returns (.CommitWriteTransactionResponse); + */ public abstract void commitWriteTransaction( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest request, com.google.protobuf.RpcCallback done); - + + /** + * rpc abortWriteTransaction(.AbortWriteTransactionRequest) returns (.AbortWriteTransactionResponse); + */ public abstract void abortWriteTransaction( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest request, com.google.protobuf.RpcCallback done); - + + /** + * rpc getAbortedWriteTransactions(.GetAbortedWriteTransactionsRequest) returns (.GetAbortedWriteTransactionsResponse); + */ public abstract void getAbortedWriteTransactions( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest request, com.google.protobuf.RpcCallback done); - + + /** + * rpc createSnapshot(.CreateSnapshotRequest) returns (.CreateSnapshotResponse); + */ public abstract void createSnapshot( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest request, com.google.protobuf.RpcCallback done); - + + /** + * rpc keepAliveTransaction(.KeepAliveTransactionRequest) returns (.KeepAliveTransactionResponse); + */ public abstract void keepAliveTransaction( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest request, com.google.protobuf.RpcCallback done); - + } - + public static com.google.protobuf.Service newReflectiveService( final Interface impl) { return new RevisionManagerEndpointService() { @@ -9559,7 +11780,7 @@ public void createTable( com.google.protobuf.RpcCallback done) { impl.createTable(controller, request, done); } - + @java.lang.Override public void dropTable( com.google.protobuf.RpcController controller, @@ -9567,7 +11788,7 @@ public void dropTable( com.google.protobuf.RpcCallback done) { impl.dropTable(controller, request, done); } - + @java.lang.Override public void beginWriteTransaction( com.google.protobuf.RpcController controller, @@ -9575,7 +11796,7 @@ public void beginWriteTransaction( com.google.protobuf.RpcCallback done) { impl.beginWriteTransaction(controller, request, done); } - + @java.lang.Override public void commitWriteTransaction( com.google.protobuf.RpcController controller, @@ -9583,7 +11804,7 @@ public void commitWriteTransaction( com.google.protobuf.RpcCallback done) { impl.commitWriteTransaction(controller, request, done); } - + @java.lang.Override public void abortWriteTransaction( com.google.protobuf.RpcController controller, @@ -9591,7 +11812,7 @@ public void abortWriteTransaction( com.google.protobuf.RpcCallback done) { impl.abortWriteTransaction(controller, request, done); } - + @java.lang.Override public void getAbortedWriteTransactions( com.google.protobuf.RpcController controller, @@ -9599,7 +11820,7 @@ public void getAbortedWriteTransactions( com.google.protobuf.RpcCallback done) { impl.getAbortedWriteTransactions(controller, request, done); } - + @java.lang.Override public void createSnapshot( com.google.protobuf.RpcController controller, @@ -9607,7 +11828,7 @@ public void createSnapshot( com.google.protobuf.RpcCallback done) { impl.createSnapshot(controller, request, done); } - + @java.lang.Override public void keepAliveTransaction( com.google.protobuf.RpcController controller, @@ -9615,10 +11836,10 @@ public void keepAliveTransaction( com.google.protobuf.RpcCallback done) { impl.keepAliveTransaction(controller, request, done); } - + }; } - + public static com.google.protobuf.BlockingService newReflectiveBlockingService(final BlockingInterface impl) { return new com.google.protobuf.BlockingService() { @@ -9626,7 +11847,7 @@ public void keepAliveTransaction( getDescriptorForType() { return getDescriptor(); } - + public final com.google.protobuf.Message callBlockingMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, @@ -9658,7 +11879,7 @@ public void keepAliveTransaction( throw new java.lang.AssertionError("Can't get here."); } } - + public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { @@ -9688,7 +11909,7 @@ public void keepAliveTransaction( throw new java.lang.AssertionError("Can't get here."); } } - + public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { @@ -9718,50 +11939,74 @@ public void keepAliveTransaction( throw new java.lang.AssertionError("Can't get here."); } } - + }; } - + + /** + * rpc createTable(.CreateTableRequest) returns (.CreateTableResponse); + */ public abstract void createTable( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest request, com.google.protobuf.RpcCallback done); - + + /** + * rpc dropTable(.DropTableRequest) returns (.DropTableResponse); + */ public abstract void dropTable( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest request, com.google.protobuf.RpcCallback done); - + + /** + * rpc beginWriteTransaction(.BeginWriteTransactionRequest) returns (.BeginWriteTransactionResponse); + */ public abstract void beginWriteTransaction( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest request, com.google.protobuf.RpcCallback done); - + + /** + * rpc commitWriteTransaction(.CommitWriteTransactionRequest) returns (.CommitWriteTransactionResponse); + */ public abstract void commitWriteTransaction( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest request, com.google.protobuf.RpcCallback done); - + + /** + * rpc abortWriteTransaction(.AbortWriteTransactionRequest) returns (.AbortWriteTransactionResponse); + */ public abstract void abortWriteTransaction( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest request, com.google.protobuf.RpcCallback done); - + + /** + * rpc getAbortedWriteTransactions(.GetAbortedWriteTransactionsRequest) returns (.GetAbortedWriteTransactionsResponse); + */ public abstract void getAbortedWriteTransactions( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest request, com.google.protobuf.RpcCallback done); - + + /** + * rpc createSnapshot(.CreateSnapshotRequest) returns (.CreateSnapshotResponse); + */ public abstract void createSnapshot( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest request, com.google.protobuf.RpcCallback done); - + + /** + * rpc keepAliveTransaction(.KeepAliveTransactionRequest) returns (.KeepAliveTransactionResponse); + */ public abstract void keepAliveTransaction( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest request, com.google.protobuf.RpcCallback done); - + public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { @@ -9771,7 +12016,7 @@ public abstract void keepAliveTransaction( getDescriptorForType() { return getDescriptor(); } - + public final void callMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, @@ -9828,7 +12073,7 @@ public final void callMethod( throw new java.lang.AssertionError("Can't get here."); } } - + public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { @@ -9858,7 +12103,7 @@ public final void callMethod( throw new java.lang.AssertionError("Can't get here."); } } - + public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { @@ -9888,23 +12133,23 @@ public final void callMethod( throw new java.lang.AssertionError("Can't get here."); } } - + public static Stub newStub( com.google.protobuf.RpcChannel channel) { return new Stub(channel); } - + public static final class Stub extends org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.RevisionManagerEndpointService implements Interface { private Stub(com.google.protobuf.RpcChannel channel) { this.channel = channel; } - + private final com.google.protobuf.RpcChannel channel; - + public com.google.protobuf.RpcChannel getChannel() { return channel; } - + public void createTable( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest request, @@ -9919,7 +12164,7 @@ public void createTable( org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.getDefaultInstance())); } - + public void dropTable( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest request, @@ -9934,7 +12179,7 @@ public void dropTable( org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.getDefaultInstance())); } - + public void beginWriteTransaction( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest request, @@ -9949,7 +12194,7 @@ public void beginWriteTransaction( org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.getDefaultInstance())); } - + public void commitWriteTransaction( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest request, @@ -9964,7 +12209,7 @@ public void commitWriteTransaction( org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.getDefaultInstance())); } - + public void abortWriteTransaction( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest request, @@ -9979,7 +12224,7 @@ public void abortWriteTransaction( org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.getDefaultInstance())); } - + public void getAbortedWriteTransactions( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest request, @@ -9994,7 +12239,7 @@ public void getAbortedWriteTransactions( org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.getDefaultInstance())); } - + public void createSnapshot( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest request, @@ -10009,7 +12254,7 @@ public void createSnapshot( org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.class, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.getDefaultInstance())); } - + public void keepAliveTransaction( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest request, @@ -10025,61 +12270,61 @@ public void keepAliveTransaction( org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.getDefaultInstance())); } } - + public static BlockingInterface newBlockingStub( com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } - + public interface BlockingInterface { public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse createTable( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest request) throws com.google.protobuf.ServiceException; - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse dropTable( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest request) throws com.google.protobuf.ServiceException; - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse beginWriteTransaction( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest request) throws com.google.protobuf.ServiceException; - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse commitWriteTransaction( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest request) throws com.google.protobuf.ServiceException; - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse abortWriteTransaction( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest request) throws com.google.protobuf.ServiceException; - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse getAbortedWriteTransactions( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest request) throws com.google.protobuf.ServiceException; - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse createSnapshot( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest request) throws com.google.protobuf.ServiceException; - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse keepAliveTransaction( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest request) throws com.google.protobuf.ServiceException; } - + private static final class BlockingStub implements BlockingInterface { private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { this.channel = channel; } - + private final com.google.protobuf.BlockingRpcChannel channel; - + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse createTable( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest request) @@ -10090,8 +12335,8 @@ private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { request, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.getDefaultInstance()); } - - + + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse dropTable( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest request) @@ -10102,8 +12347,8 @@ private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { request, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.getDefaultInstance()); } - - + + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse beginWriteTransaction( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest request) @@ -10114,8 +12359,8 @@ private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { request, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.getDefaultInstance()); } - - + + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse commitWriteTransaction( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest request) @@ -10126,8 +12371,8 @@ private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { request, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.getDefaultInstance()); } - - + + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse abortWriteTransaction( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest request) @@ -10138,8 +12383,8 @@ private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { request, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.getDefaultInstance()); } - - + + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse getAbortedWriteTransactions( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest request) @@ -10150,8 +12395,8 @@ private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { request, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.getDefaultInstance()); } - - + + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse createSnapshot( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest request) @@ -10162,8 +12407,8 @@ private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { request, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.getDefaultInstance()); } - - + + public org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse keepAliveTransaction( com.google.protobuf.RpcController controller, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest request) @@ -10174,10 +12419,12 @@ private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { request, org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.getDefaultInstance()); } - + } + + // @@protoc_insertion_point(class_scope:RevisionManagerEndpointService) } - + private static com.google.protobuf.Descriptors.Descriptor internal_static_CreateTableRequest_descriptor; private static @@ -10278,7 +12525,7 @@ private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_TableSnapshot_ColumnFamilyRevision_fieldAccessorTable; - + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -10352,161 +12599,121 @@ private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { internal_static_CreateTableRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_CreateTableRequest_descriptor, - new java.lang.String[] { "TableName", "ColumnFamilies", }, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest.class, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableRequest.Builder.class); + new java.lang.String[] { "TableName", "ColumnFamilies", }); internal_static_CreateTableResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_CreateTableResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_CreateTableResponse_descriptor, - new java.lang.String[] { }, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.class, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateTableResponse.Builder.class); + new java.lang.String[] { }); internal_static_DropTableRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_DropTableRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_DropTableRequest_descriptor, - new java.lang.String[] { "TableName", }, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest.class, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableRequest.Builder.class); + new java.lang.String[] { "TableName", }); internal_static_DropTableResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_DropTableResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_DropTableResponse_descriptor, - new java.lang.String[] { }, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.class, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.DropTableResponse.Builder.class); + new java.lang.String[] { }); internal_static_BeginWriteTransactionRequest_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_BeginWriteTransactionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_BeginWriteTransactionRequest_descriptor, - new java.lang.String[] { "TableName", "KeepAlive", "ColumnFamilies", }, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest.class, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionRequest.Builder.class); + new java.lang.String[] { "TableName", "KeepAlive", "ColumnFamilies", }); internal_static_BeginWriteTransactionResponse_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_BeginWriteTransactionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_BeginWriteTransactionResponse_descriptor, - new java.lang.String[] { "Transaction", }, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.class, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.BeginWriteTransactionResponse.Builder.class); + new java.lang.String[] { "Transaction", }); internal_static_CommitWriteTransactionRequest_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_CommitWriteTransactionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_CommitWriteTransactionRequest_descriptor, - new java.lang.String[] { "Transaction", }, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest.class, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionRequest.Builder.class); + new java.lang.String[] { "Transaction", }); internal_static_CommitWriteTransactionResponse_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_CommitWriteTransactionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_CommitWriteTransactionResponse_descriptor, - new java.lang.String[] { }, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.class, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CommitWriteTransactionResponse.Builder.class); + new java.lang.String[] { }); internal_static_AbortWriteTransactionRequest_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_AbortWriteTransactionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_AbortWriteTransactionRequest_descriptor, - new java.lang.String[] { "Transaction", }, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest.class, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionRequest.Builder.class); + new java.lang.String[] { "Transaction", }); internal_static_AbortWriteTransactionResponse_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_AbortWriteTransactionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_AbortWriteTransactionResponse_descriptor, - new java.lang.String[] { }, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.class, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.AbortWriteTransactionResponse.Builder.class); + new java.lang.String[] { }); internal_static_GetAbortedWriteTransactionsRequest_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_GetAbortedWriteTransactionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_GetAbortedWriteTransactionsRequest_descriptor, - new java.lang.String[] { "TableName", "ColumnFamily", }, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest.class, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsRequest.Builder.class); + new java.lang.String[] { "TableName", "ColumnFamily", }); internal_static_GetAbortedWriteTransactionsResponse_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_GetAbortedWriteTransactionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_GetAbortedWriteTransactionsResponse_descriptor, - new java.lang.String[] { "FamilyRevisions", }, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.class, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.GetAbortedWriteTransactionsResponse.Builder.class); + new java.lang.String[] { "FamilyRevisions", }); internal_static_CreateSnapshotRequest_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_CreateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_CreateSnapshotRequest_descriptor, - new java.lang.String[] { "TableName", "Revision", }, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest.class, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotRequest.Builder.class); + new java.lang.String[] { "TableName", "Revision", }); internal_static_CreateSnapshotResponse_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_CreateSnapshotResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_CreateSnapshotResponse_descriptor, - new java.lang.String[] { "TableSnapshot", }, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.class, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.CreateSnapshotResponse.Builder.class); + new java.lang.String[] { "TableSnapshot", }); internal_static_KeepAliveTransactionRequest_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_KeepAliveTransactionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_KeepAliveTransactionRequest_descriptor, - new java.lang.String[] { "Transaction", }, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest.class, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionRequest.Builder.class); + new java.lang.String[] { "Transaction", }); internal_static_KeepAliveTransactionResponse_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_KeepAliveTransactionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_KeepAliveTransactionResponse_descriptor, - new java.lang.String[] { }, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.class, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.KeepAliveTransactionResponse.Builder.class); + new java.lang.String[] { }); internal_static_FamilyRevision_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_FamilyRevision_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_FamilyRevision_descriptor, - new java.lang.String[] { "Revision", "Timestamp", }, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.class, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.FamilyRevision.Builder.class); + new java.lang.String[] { "Revision", "Timestamp", }); internal_static_Transaction_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_Transaction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Transaction_descriptor, - new java.lang.String[] { "TableName", "TimeStamp", "KeepAlive", "Revision", "ColumnFamilies", }, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.class, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.Transaction.Builder.class); + new java.lang.String[] { "TableName", "TimeStamp", "KeepAlive", "Revision", "ColumnFamilies", }); internal_static_TableSnapshot_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_TableSnapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_TableSnapshot_descriptor, - new java.lang.String[] { "TableName", "LatestRevision", "ColumnFamilyRevision", }, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.class, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.Builder.class); + new java.lang.String[] { "TableName", "LatestRevision", "ColumnFamilyRevision", }); internal_static_TableSnapshot_ColumnFamilyRevision_descriptor = internal_static_TableSnapshot_descriptor.getNestedTypes().get(0); internal_static_TableSnapshot_ColumnFamilyRevision_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_TableSnapshot_ColumnFamilyRevision_descriptor, - new java.lang.String[] { "Key", "Value", }, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.class, - org.apache.hive.hcatalog.hbase.snapshot.RevisionManagerEndpointProtos.TableSnapshot.ColumnFamilyRevision.Builder.class); + new java.lang.String[] { "Key", "Value", }); return null; } }; @@ -10515,6 +12722,6 @@ private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } - + // @@protoc_insertion_point(outer_class_scope) }