You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2016/10/05 23:30:12 UTC
[06/10] hbase git commit: HBASE-16727 Backup refactoring: remove MR
dependencies from HMaster (Vladimir Rodionov)
http://git-wip-us.apache.org/repos/asf/hbase/blob/b14e2ab1/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/MasterProtos.java
----------------------------------------------------------------------
diff --git a/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/MasterProtos.java b/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/MasterProtos.java
index 4562a7c..d495e84 100644
--- a/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/MasterProtos.java
+++ b/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/MasterProtos.java
@@ -90,88 +90,6 @@ public final class MasterProtos {
// @@protoc_insertion_point(enum_scope:hbase.pb.MasterSwitchType)
}
- /**
- * Protobuf enum {@code hbase.pb.RestoreTablesState}
- */
- public enum RestoreTablesState
- implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * <code>VALIDATION = 1;</code>
- */
- VALIDATION(0, 1),
- /**
- * <code>RESTORE_IMAGES = 2;</code>
- */
- RESTORE_IMAGES(1, 2),
- ;
-
- /**
- * <code>VALIDATION = 1;</code>
- */
- public static final int VALIDATION_VALUE = 1;
- /**
- * <code>RESTORE_IMAGES = 2;</code>
- */
- public static final int RESTORE_IMAGES_VALUE = 2;
-
-
- public final int getNumber() { return value; }
-
- public static RestoreTablesState valueOf(int value) {
- switch (value) {
- case 1: return VALIDATION;
- case 2: return RESTORE_IMAGES;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap<RestoreTablesState>
- internalGetValueMap() {
- return internalValueMap;
- }
- private static com.google.protobuf.Internal.EnumLiteMap<RestoreTablesState>
- internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<RestoreTablesState>() {
- public RestoreTablesState findValueByNumber(int number) {
- return RestoreTablesState.valueOf(number);
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
- getValueDescriptor() {
- return getDescriptor().getValues().get(index);
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.getDescriptor().getEnumTypes().get(1);
- }
-
- private static final RestoreTablesState[] VALUES = values();
-
- public static RestoreTablesState valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
-
- private final int index;
- private final int value;
-
- private RestoreTablesState(int index, int value) {
- this.index = index;
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:hbase.pb.RestoreTablesState)
- }
-
public interface AddColumnRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
@@ -58736,4572 +58654,36 @@ public final class MasterProtos {
break;
}
case 8: {
- int rawValue = input.readEnum();
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.Capability value = org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.Capability.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(1, rawValue);
- } else {
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- capabilities_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.Capability>();
- mutable_bitField0_ |= 0x00000001;
- }
- capabilities_.add(value);
- }
- break;
- }
- case 10: {
- int length = input.readRawVarint32();
- int oldLimit = input.pushLimit(length);
- while(input.getBytesUntilLimit() > 0) {
- int rawValue = input.readEnum();
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.Capability value = org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.Capability.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(1, rawValue);
- } else {
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- capabilities_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.Capability>();
- mutable_bitField0_ |= 0x00000001;
- }
- capabilities_.add(value);
- }
- }
- input.popLimit(oldLimit);
- 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)) {
- capabilities_ = java.util.Collections.unmodifiableList(capabilities_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_SecurityCapabilitiesResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_SecurityCapabilitiesResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.class, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.Builder.class);
- }
-
- public static com.google.protobuf.Parser<SecurityCapabilitiesResponse> PARSER =
- new com.google.protobuf.AbstractParser<SecurityCapabilitiesResponse>() {
- public SecurityCapabilitiesResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new SecurityCapabilitiesResponse(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<SecurityCapabilitiesResponse> getParserForType() {
- return PARSER;
- }
-
- /**
- * Protobuf enum {@code hbase.pb.SecurityCapabilitiesResponse.Capability}
- */
- public enum Capability
- implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * <code>SIMPLE_AUTHENTICATION = 0;</code>
- */
- SIMPLE_AUTHENTICATION(0, 0),
- /**
- * <code>SECURE_AUTHENTICATION = 1;</code>
- */
- SECURE_AUTHENTICATION(1, 1),
- /**
- * <code>AUTHORIZATION = 2;</code>
- */
- AUTHORIZATION(2, 2),
- /**
- * <code>CELL_AUTHORIZATION = 3;</code>
- */
- CELL_AUTHORIZATION(3, 3),
- /**
- * <code>CELL_VISIBILITY = 4;</code>
- */
- CELL_VISIBILITY(4, 4),
- ;
-
- /**
- * <code>SIMPLE_AUTHENTICATION = 0;</code>
- */
- public static final int SIMPLE_AUTHENTICATION_VALUE = 0;
- /**
- * <code>SECURE_AUTHENTICATION = 1;</code>
- */
- public static final int SECURE_AUTHENTICATION_VALUE = 1;
- /**
- * <code>AUTHORIZATION = 2;</code>
- */
- public static final int AUTHORIZATION_VALUE = 2;
- /**
- * <code>CELL_AUTHORIZATION = 3;</code>
- */
- public static final int CELL_AUTHORIZATION_VALUE = 3;
- /**
- * <code>CELL_VISIBILITY = 4;</code>
- */
- public static final int CELL_VISIBILITY_VALUE = 4;
-
-
- public final int getNumber() { return value; }
-
- public static Capability valueOf(int value) {
- switch (value) {
- case 0: return SIMPLE_AUTHENTICATION;
- case 1: return SECURE_AUTHENTICATION;
- case 2: return AUTHORIZATION;
- case 3: return CELL_AUTHORIZATION;
- case 4: return CELL_VISIBILITY;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap<Capability>
- internalGetValueMap() {
- return internalValueMap;
- }
- private static com.google.protobuf.Internal.EnumLiteMap<Capability>
- internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap<Capability>() {
- public Capability findValueByNumber(int number) {
- return Capability.valueOf(number);
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor
- getValueDescriptor() {
- return getDescriptor().getValues().get(index);
- }
- public final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptorForType() {
- return getDescriptor();
- }
- public static final com.google.protobuf.Descriptors.EnumDescriptor
- getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.getDescriptor().getEnumTypes().get(0);
- }
-
- private static final Capability[] VALUES = values();
-
- public static Capability valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
-
- private final int index;
- private final int value;
-
- private Capability(int index, int value) {
- this.index = index;
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:hbase.pb.SecurityCapabilitiesResponse.Capability)
- }
-
- // repeated .hbase.pb.SecurityCapabilitiesResponse.Capability capabilities = 1;
- public static final int CAPABILITIES_FIELD_NUMBER = 1;
- private java.util.List<org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.Capability> capabilities_;
- /**
- * <code>repeated .hbase.pb.SecurityCapabilitiesResponse.Capability capabilities = 1;</code>
- */
- public java.util.List<org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.Capability> getCapabilitiesList() {
- return capabilities_;
- }
- /**
- * <code>repeated .hbase.pb.SecurityCapabilitiesResponse.Capability capabilities = 1;</code>
- */
- public int getCapabilitiesCount() {
- return capabilities_.size();
- }
- /**
- * <code>repeated .hbase.pb.SecurityCapabilitiesResponse.Capability capabilities = 1;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.Capability getCapabilities(int index) {
- return capabilities_.get(index);
- }
-
- private void initFields() {
- capabilities_ = java.util.Collections.emptyList();
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- for (int i = 0; i < capabilities_.size(); i++) {
- output.writeEnum(1, capabilities_.get(i).getNumber());
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- {
- int dataSize = 0;
- for (int i = 0; i < capabilities_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeEnumSizeNoTag(capabilities_.get(i).getNumber());
- }
- size += dataSize;
- size += 1 * capabilities_.size();
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse)) {
- return super.equals(obj);
- }
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse other = (org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse) obj;
-
- boolean result = true;
- result = result && getCapabilitiesList()
- .equals(other.getCapabilitiesList());
- result = result &&
- getUnknownFields().equals(other.getUnknownFields());
- return result;
- }
-
- private int memoizedHashCode = 0;
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptorForType().hashCode();
- if (getCapabilitiesCount() > 0) {
- hash = (37 * hash) + CAPABILITIES_FIELD_NUMBER;
- hash = (53 * hash) + hashEnumList(getCapabilitiesList());
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse 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 hbase.pb.SecurityCapabilitiesResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_SecurityCapabilitiesResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_SecurityCapabilitiesResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.class, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.Builder.class);
- }
-
- // Construct using org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- capabilities_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_SecurityCapabilitiesResponse_descriptor;
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse getDefaultInstanceForType() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.getDefaultInstance();
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse build() {
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse buildPartial() {
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse result = new org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse(this);
- int from_bitField0_ = bitField0_;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- capabilities_ = java.util.Collections.unmodifiableList(capabilities_);
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.capabilities_ = capabilities_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse) {
- return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse other) {
- if (other == org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.getDefaultInstance()) return this;
- if (!other.capabilities_.isEmpty()) {
- if (capabilities_.isEmpty()) {
- capabilities_ = other.capabilities_;
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- ensureCapabilitiesIsMutable();
- capabilities_.addAll(other.capabilities_);
- }
- onChanged();
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- // repeated .hbase.pb.SecurityCapabilitiesResponse.Capability capabilities = 1;
- private java.util.List<org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.Capability> capabilities_ =
- java.util.Collections.emptyList();
- private void ensureCapabilitiesIsMutable() {
- if (!((bitField0_ & 0x00000001) == 0x00000001)) {
- capabilities_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.Capability>(capabilities_);
- bitField0_ |= 0x00000001;
- }
- }
- /**
- * <code>repeated .hbase.pb.SecurityCapabilitiesResponse.Capability capabilities = 1;</code>
- */
- public java.util.List<org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.Capability> getCapabilitiesList() {
- return java.util.Collections.unmodifiableList(capabilities_);
- }
- /**
- * <code>repeated .hbase.pb.SecurityCapabilitiesResponse.Capability capabilities = 1;</code>
- */
- public int getCapabilitiesCount() {
- return capabilities_.size();
- }
- /**
- * <code>repeated .hbase.pb.SecurityCapabilitiesResponse.Capability capabilities = 1;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.Capability getCapabilities(int index) {
- return capabilities_.get(index);
- }
- /**
- * <code>repeated .hbase.pb.SecurityCapabilitiesResponse.Capability capabilities = 1;</code>
- */
- public Builder setCapabilities(
- int index, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.Capability value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureCapabilitiesIsMutable();
- capabilities_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * <code>repeated .hbase.pb.SecurityCapabilitiesResponse.Capability capabilities = 1;</code>
- */
- public Builder addCapabilities(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.Capability value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureCapabilitiesIsMutable();
- capabilities_.add(value);
- onChanged();
- return this;
- }
- /**
- * <code>repeated .hbase.pb.SecurityCapabilitiesResponse.Capability capabilities = 1;</code>
- */
- public Builder addAllCapabilities(
- java.lang.Iterable<? extends org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SecurityCapabilitiesResponse.Capability> values) {
- ensureCapabilitiesIsMutable();
- super.addAll(values, capabilities_);
- onChanged();
- return this;
- }
- /**
- * <code>repeated .hbase.pb.SecurityCapabilitiesResponse.Capability capabilities = 1;</code>
- */
- public Builder clearCapabilities() {
- capabilities_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:hbase.pb.SecurityCapabilitiesResponse)
- }
-
- static {
- defaultInstance = new SecurityCapabilitiesResponse(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:hbase.pb.SecurityCapabilitiesResponse)
- }
-
- public interface BackupTablesRequestOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // required .hbase.pb.BackupType type = 1;
- /**
- * <code>required .hbase.pb.BackupType type = 1;</code>
- */
- boolean hasType();
- /**
- * <code>required .hbase.pb.BackupType type = 1;</code>
- */
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getType();
-
- // repeated .hbase.pb.TableName tables = 2;
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName>
- getTablesList();
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTables(int index);
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- int getTablesCount();
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>
- getTablesOrBuilderList();
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTablesOrBuilder(
- int index);
-
- // required string target_root_dir = 3;
- /**
- * <code>required string target_root_dir = 3;</code>
- */
- boolean hasTargetRootDir();
- /**
- * <code>required string target_root_dir = 3;</code>
- */
- java.lang.String getTargetRootDir();
- /**
- * <code>required string target_root_dir = 3;</code>
- */
- com.google.protobuf.ByteString
- getTargetRootDirBytes();
-
- // optional int64 workers = 4;
- /**
- * <code>optional int64 workers = 4;</code>
- */
- boolean hasWorkers();
- /**
- * <code>optional int64 workers = 4;</code>
- */
- long getWorkers();
-
- // optional int64 bandwidth = 5;
- /**
- * <code>optional int64 bandwidth = 5;</code>
- */
- boolean hasBandwidth();
- /**
- * <code>optional int64 bandwidth = 5;</code>
- */
- long getBandwidth();
-
- // optional string backup_set_name = 6;
- /**
- * <code>optional string backup_set_name = 6;</code>
- */
- boolean hasBackupSetName();
- /**
- * <code>optional string backup_set_name = 6;</code>
- */
- java.lang.String getBackupSetName();
- /**
- * <code>optional string backup_set_name = 6;</code>
- */
- com.google.protobuf.ByteString
- getBackupSetNameBytes();
-
- // optional uint64 nonce_group = 7 [default = 0];
- /**
- * <code>optional uint64 nonce_group = 7 [default = 0];</code>
- */
- boolean hasNonceGroup();
- /**
- * <code>optional uint64 nonce_group = 7 [default = 0];</code>
- */
- long getNonceGroup();
-
- // optional uint64 nonce = 8 [default = 0];
- /**
- * <code>optional uint64 nonce = 8 [default = 0];</code>
- */
- boolean hasNonce();
- /**
- * <code>optional uint64 nonce = 8 [default = 0];</code>
- */
- long getNonce();
- }
- /**
- * Protobuf type {@code hbase.pb.BackupTablesRequest}
- */
- public static final class BackupTablesRequest extends
- com.google.protobuf.GeneratedMessage
- implements BackupTablesRequestOrBuilder {
- // Use BackupTablesRequest.newBuilder() to construct.
- private BackupTablesRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private BackupTablesRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final BackupTablesRequest defaultInstance;
- public static BackupTablesRequest getDefaultInstance() {
- return defaultInstance;
- }
-
- public BackupTablesRequest getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private BackupTablesRequest(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 8: {
- int rawValue = input.readEnum();
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType value = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(1, rawValue);
- } else {
- bitField0_ |= 0x00000001;
- type_ = value;
- }
- break;
- }
- case 18: {
- if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- tables_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName>();
- mutable_bitField0_ |= 0x00000002;
- }
- tables_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.PARSER, extensionRegistry));
- break;
- }
- case 26: {
- bitField0_ |= 0x00000002;
- targetRootDir_ = input.readBytes();
- break;
- }
- case 32: {
- bitField0_ |= 0x00000004;
- workers_ = input.readInt64();
- break;
- }
- case 40: {
- bitField0_ |= 0x00000008;
- bandwidth_ = input.readInt64();
- break;
- }
- case 50: {
- bitField0_ |= 0x00000010;
- backupSetName_ = input.readBytes();
- break;
- }
- case 56: {
- bitField0_ |= 0x00000020;
- nonceGroup_ = input.readUInt64();
- break;
- }
- case 64: {
- bitField0_ |= 0x00000040;
- nonce_ = input.readUInt64();
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- tables_ = java.util.Collections.unmodifiableList(tables_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_BackupTablesRequest_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_BackupTablesRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest.class, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest.Builder.class);
- }
-
- public static com.google.protobuf.Parser<BackupTablesRequest> PARSER =
- new com.google.protobuf.AbstractParser<BackupTablesRequest>() {
- public BackupTablesRequest parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new BackupTablesRequest(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<BackupTablesRequest> getParserForType() {
- return PARSER;
- }
-
- private int bitField0_;
- // required .hbase.pb.BackupType type = 1;
- public static final int TYPE_FIELD_NUMBER = 1;
- private org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType type_;
- /**
- * <code>required .hbase.pb.BackupType type = 1;</code>
- */
- public boolean hasType() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>required .hbase.pb.BackupType type = 1;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getType() {
- return type_;
- }
-
- // repeated .hbase.pb.TableName tables = 2;
- public static final int TABLES_FIELD_NUMBER = 2;
- private java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName> tables_;
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName> getTablesList() {
- return tables_;
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>
- getTablesOrBuilderList() {
- return tables_;
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public int getTablesCount() {
- return tables_.size();
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTables(int index) {
- return tables_.get(index);
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTablesOrBuilder(
- int index) {
- return tables_.get(index);
- }
-
- // required string target_root_dir = 3;
- public static final int TARGET_ROOT_DIR_FIELD_NUMBER = 3;
- private java.lang.Object targetRootDir_;
- /**
- * <code>required string target_root_dir = 3;</code>
- */
- public boolean hasTargetRootDir() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>required string target_root_dir = 3;</code>
- */
- public java.lang.String getTargetRootDir() {
- java.lang.Object ref = targetRootDir_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- targetRootDir_ = s;
- }
- return s;
- }
- }
- /**
- * <code>required string target_root_dir = 3;</code>
- */
- public com.google.protobuf.ByteString
- getTargetRootDirBytes() {
- java.lang.Object ref = targetRootDir_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- targetRootDir_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional int64 workers = 4;
- public static final int WORKERS_FIELD_NUMBER = 4;
- private long workers_;
- /**
- * <code>optional int64 workers = 4;</code>
- */
- public boolean hasWorkers() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional int64 workers = 4;</code>
- */
- public long getWorkers() {
- return workers_;
- }
-
- // optional int64 bandwidth = 5;
- public static final int BANDWIDTH_FIELD_NUMBER = 5;
- private long bandwidth_;
- /**
- * <code>optional int64 bandwidth = 5;</code>
- */
- public boolean hasBandwidth() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional int64 bandwidth = 5;</code>
- */
- public long getBandwidth() {
- return bandwidth_;
- }
-
- // optional string backup_set_name = 6;
- public static final int BACKUP_SET_NAME_FIELD_NUMBER = 6;
- private java.lang.Object backupSetName_;
- /**
- * <code>optional string backup_set_name = 6;</code>
- */
- public boolean hasBackupSetName() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * <code>optional string backup_set_name = 6;</code>
- */
- public java.lang.String getBackupSetName() {
- java.lang.Object ref = backupSetName_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- backupSetName_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string backup_set_name = 6;</code>
- */
- public com.google.protobuf.ByteString
- getBackupSetNameBytes() {
- java.lang.Object ref = backupSetName_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- backupSetName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // optional uint64 nonce_group = 7 [default = 0];
- public static final int NONCE_GROUP_FIELD_NUMBER = 7;
- private long nonceGroup_;
- /**
- * <code>optional uint64 nonce_group = 7 [default = 0];</code>
- */
- public boolean hasNonceGroup() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
- }
- /**
- * <code>optional uint64 nonce_group = 7 [default = 0];</code>
- */
- public long getNonceGroup() {
- return nonceGroup_;
- }
-
- // optional uint64 nonce = 8 [default = 0];
- public static final int NONCE_FIELD_NUMBER = 8;
- private long nonce_;
- /**
- * <code>optional uint64 nonce = 8 [default = 0];</code>
- */
- public boolean hasNonce() {
- return ((bitField0_ & 0x00000040) == 0x00000040);
- }
- /**
- * <code>optional uint64 nonce = 8 [default = 0];</code>
- */
- public long getNonce() {
- return nonce_;
- }
-
- private void initFields() {
- type_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL;
- tables_ = java.util.Collections.emptyList();
- targetRootDir_ = "";
- workers_ = 0L;
- bandwidth_ = 0L;
- backupSetName_ = "";
- nonceGroup_ = 0L;
- nonce_ = 0L;
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasType()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasTargetRootDir()) {
- memoizedIsInitialized = 0;
- return false;
- }
- for (int i = 0; i < getTablesCount(); i++) {
- if (!getTables(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeEnum(1, type_.getNumber());
- }
- for (int i = 0; i < tables_.size(); i++) {
- output.writeMessage(2, tables_.get(i));
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(3, getTargetRootDirBytes());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeInt64(4, workers_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeInt64(5, bandwidth_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeBytes(6, getBackupSetNameBytes());
- }
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- output.writeUInt64(7, nonceGroup_);
- }
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- output.writeUInt64(8, nonce_);
- }
- 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
- .computeEnumSize(1, type_.getNumber());
- }
- for (int i = 0; i < tables_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, tables_.get(i));
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getTargetRootDirBytes());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(4, workers_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(5, bandwidth_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(6, getBackupSetNameBytes());
- }
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(7, nonceGroup_);
- }
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(8, nonce_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest)) {
- return super.equals(obj);
- }
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest other = (org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest) obj;
-
- boolean result = true;
- result = result && (hasType() == other.hasType());
- if (hasType()) {
- result = result &&
- (getType() == other.getType());
- }
- result = result && getTablesList()
- .equals(other.getTablesList());
- result = result && (hasTargetRootDir() == other.hasTargetRootDir());
- if (hasTargetRootDir()) {
- result = result && getTargetRootDir()
- .equals(other.getTargetRootDir());
- }
- result = result && (hasWorkers() == other.hasWorkers());
- if (hasWorkers()) {
- result = result && (getWorkers()
- == other.getWorkers());
- }
- result = result && (hasBandwidth() == other.hasBandwidth());
- if (hasBandwidth()) {
- result = result && (getBandwidth()
- == other.getBandwidth());
- }
- result = result && (hasBackupSetName() == other.hasBackupSetName());
- if (hasBackupSetName()) {
- result = result && getBackupSetName()
- .equals(other.getBackupSetName());
- }
- result = result && (hasNonceGroup() == other.hasNonceGroup());
- if (hasNonceGroup()) {
- result = result && (getNonceGroup()
- == other.getNonceGroup());
- }
- result = result && (hasNonce() == other.hasNonce());
- if (hasNonce()) {
- result = result && (getNonce()
- == other.getNonce());
- }
- result = result &&
- getUnknownFields().equals(other.getUnknownFields());
- return result;
- }
-
- private int memoizedHashCode = 0;
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptorForType().hashCode();
- if (hasType()) {
- hash = (37 * hash) + TYPE_FIELD_NUMBER;
- hash = (53 * hash) + hashEnum(getType());
- }
- if (getTablesCount() > 0) {
- hash = (37 * hash) + TABLES_FIELD_NUMBER;
- hash = (53 * hash) + getTablesList().hashCode();
- }
- if (hasTargetRootDir()) {
- hash = (37 * hash) + TARGET_ROOT_DIR_FIELD_NUMBER;
- hash = (53 * hash) + getTargetRootDir().hashCode();
- }
- if (hasWorkers()) {
- hash = (37 * hash) + WORKERS_FIELD_NUMBER;
- hash = (53 * hash) + hashLong(getWorkers());
- }
- if (hasBandwidth()) {
- hash = (37 * hash) + BANDWIDTH_FIELD_NUMBER;
- hash = (53 * hash) + hashLong(getBandwidth());
- }
- if (hasBackupSetName()) {
- hash = (37 * hash) + BACKUP_SET_NAME_FIELD_NUMBER;
- hash = (53 * hash) + getBackupSetName().hashCode();
- }
- if (hasNonceGroup()) {
- hash = (37 * hash) + NONCE_GROUP_FIELD_NUMBER;
- hash = (53 * hash) + hashLong(getNonceGroup());
- }
- if (hasNonce()) {
- hash = (37 * hash) + NONCE_FIELD_NUMBER;
- hash = (53 * hash) + hashLong(getNonce());
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest 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 hbase.pb.BackupTablesRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequestOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_BackupTablesRequest_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_BackupTablesRequest_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest.class, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest.Builder.class);
- }
-
- // Construct using org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getTablesFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- type_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL;
- bitField0_ = (bitField0_ & ~0x00000001);
- if (tablesBuilder_ == null) {
- tables_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- tablesBuilder_.clear();
- }
- targetRootDir_ = "";
- bitField0_ = (bitField0_ & ~0x00000004);
- workers_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000008);
- bandwidth_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000010);
- backupSetName_ = "";
- bitField0_ = (bitField0_ & ~0x00000020);
- nonceGroup_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000040);
- nonce_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000080);
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_BackupTablesRequest_descriptor;
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest getDefaultInstanceForType() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest.getDefaultInstance();
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest build() {
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest buildPartial() {
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest result = new org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.type_ = type_;
- if (tablesBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- tables_ = java.util.Collections.unmodifiableList(tables_);
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.tables_ = tables_;
- } else {
- result.tables_ = tablesBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000002;
- }
- result.targetRootDir_ = targetRootDir_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000004;
- }
- result.workers_ = workers_;
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
- to_bitField0_ |= 0x00000008;
- }
- result.bandwidth_ = bandwidth_;
- if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
- to_bitField0_ |= 0x00000010;
- }
- result.backupSetName_ = backupSetName_;
- if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
- to_bitField0_ |= 0x00000020;
- }
- result.nonceGroup_ = nonceGroup_;
- if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
- to_bitField0_ |= 0x00000040;
- }
- result.nonce_ = nonce_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest) {
- return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest other) {
- if (other == org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest.getDefaultInstance()) return this;
- if (other.hasType()) {
- setType(other.getType());
- }
- if (tablesBuilder_ == null) {
- if (!other.tables_.isEmpty()) {
- if (tables_.isEmpty()) {
- tables_ = other.tables_;
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- ensureTablesIsMutable();
- tables_.addAll(other.tables_);
- }
- onChanged();
- }
- } else {
- if (!other.tables_.isEmpty()) {
- if (tablesBuilder_.isEmpty()) {
- tablesBuilder_.dispose();
- tablesBuilder_ = null;
- tables_ = other.tables_;
- bitField0_ = (bitField0_ & ~0x00000002);
- tablesBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getTablesFieldBuilder() : null;
- } else {
- tablesBuilder_.addAllMessages(other.tables_);
- }
- }
- }
- if (other.hasTargetRootDir()) {
- bitField0_ |= 0x00000004;
- targetRootDir_ = other.targetRootDir_;
- onChanged();
- }
- if (other.hasWorkers()) {
- setWorkers(other.getWorkers());
- }
- if (other.hasBandwidth()) {
- setBandwidth(other.getBandwidth());
- }
- if (other.hasBackupSetName()) {
- bitField0_ |= 0x00000020;
- backupSetName_ = other.backupSetName_;
- onChanged();
- }
- if (other.hasNonceGroup()) {
- setNonceGroup(other.getNonceGroup());
- }
- if (other.hasNonce()) {
- setNonce(other.getNonce());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public final boolean isInitialized() {
- if (!hasType()) {
-
- return false;
- }
- if (!hasTargetRootDir()) {
-
- return false;
- }
- for (int i = 0; i < getTablesCount(); i++) {
- if (!getTables(i).isInitialized()) {
-
- return false;
- }
- }
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesRequest) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- // required .hbase.pb.BackupType type = 1;
- private org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType type_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL;
- /**
- * <code>required .hbase.pb.BackupType type = 1;</code>
- */
- public boolean hasType() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>required .hbase.pb.BackupType type = 1;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getType() {
- return type_;
- }
- /**
- * <code>required .hbase.pb.BackupType type = 1;</code>
- */
- public Builder setType(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- type_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>required .hbase.pb.BackupType type = 1;</code>
- */
- public Builder clearType() {
- bitField0_ = (bitField0_ & ~0x00000001);
- type_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL;
- onChanged();
- return this;
- }
-
- // repeated .hbase.pb.TableName tables = 2;
- private java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName> tables_ =
- java.util.Collections.emptyList();
- private void ensureTablesIsMutable() {
- if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- tables_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName>(tables_);
- bitField0_ |= 0x00000002;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder> tablesBuilder_;
-
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName> getTablesList() {
- if (tablesBuilder_ == null) {
- return java.util.Collections.unmodifiableList(tables_);
- } else {
- return tablesBuilder_.getMessageList();
- }
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public int getTablesCount() {
- if (tablesBuilder_ == null) {
- return tables_.size();
- } else {
- return tablesBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTables(int index) {
- if (tablesBuilder_ == null) {
- return tables_.get(index);
- } else {
- return tablesBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public Builder setTables(
- int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) {
- if (tablesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTablesIsMutable();
- tables_.set(index, value);
- onChanged();
- } else {
- tablesBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public Builder setTables(
- int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder builderForValue) {
- if (tablesBuilder_ == null) {
- ensureTablesIsMutable();
- tables_.set(index, builderForValue.build());
- onChanged();
- } else {
- tablesBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public Builder addTables(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) {
- if (tablesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTablesIsMutable();
- tables_.add(value);
- onChanged();
- } else {
- tablesBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public Builder addTables(
- int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) {
- if (tablesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTablesIsMutable();
- tables_.add(index, value);
- onChanged();
- } else {
- tablesBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public Builder addTables(
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder builderForValue) {
- if (tablesBuilder_ == null) {
- ensureTablesIsMutable();
- tables_.add(builderForValue.build());
- onChanged();
- } else {
- tablesBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public Builder addTables(
- int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder builderForValue) {
- if (tablesBuilder_ == null) {
- ensureTablesIsMutable();
- tables_.add(index, builderForValue.build());
- onChanged();
- } else {
- tablesBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public Builder addAllTables(
- java.lang.Iterable<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName> values) {
- if (tablesBuilder_ == null) {
- ensureTablesIsMutable();
- super.addAll(values, tables_);
- onChanged();
- } else {
- tablesBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public Builder clearTables() {
- if (tablesBuilder_ == null) {
- tables_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- } else {
- tablesBuilder_.clear();
- }
- return this;
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public Builder removeTables(int index) {
- if (tablesBuilder_ == null) {
- ensureTablesIsMutable();
- tables_.remove(index);
- onChanged();
- } else {
- tablesBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder getTablesBuilder(
- int index) {
- return getTablesFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTablesOrBuilder(
- int index) {
- if (tablesBuilder_ == null) {
- return tables_.get(index); } else {
- return tablesBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>
- getTablesOrBuilderList() {
- if (tablesBuilder_ != null) {
- return tablesBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(tables_);
- }
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder addTablesBuilder() {
- return getTablesFieldBuilder().addBuilder(
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance());
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder addTablesBuilder(
- int index) {
- return getTablesFieldBuilder().addBuilder(
- index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance());
- }
- /**
- * <code>repeated .hbase.pb.TableName tables = 2;</code>
- */
- public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder>
- getTablesBuilderList() {
- return getTablesFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>
- getTablesFieldBuilder() {
- if (tablesBuilder_ == null) {
- tablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>(
- tables_,
- ((bitField0_ & 0x00000002) == 0x00000002),
- getParentForChildren(),
- isClean());
- tables_ = null;
- }
- return tablesBuilder_;
- }
-
- // required string target_root_dir = 3;
- private java.lang.Object targetRootDir_ = "";
- /**
- * <code>required string target_root_dir = 3;</code>
- */
- public boolean hasTargetRootDir() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>required string target_root_dir = 3;</code>
- */
- public java.lang.String getTargetRootDir() {
- java.lang.Object ref = targetRootDir_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- targetRootDir_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>required string target_root_dir = 3;</code>
- */
- public com.google.protobuf.ByteString
- getTargetRootDirBytes() {
- java.lang.Object ref = targetRootDir_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- targetRootDir_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>required string target_root_dir = 3;</code>
- */
- public Builder setTargetRootDir(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- targetRootDir_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>required string target_root_dir = 3;</code>
- */
- public Builder clearTargetRootDir() {
- bitField0_ = (bitField0_ & ~0x00000004);
- targetRootDir_ = getDefaultInstance().getTargetRootDir();
- onChanged();
- return this;
- }
- /**
- * <code>required string target_root_dir = 3;</code>
- */
- public Builder setTargetRootDirBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- targetRootDir_ = value;
- onChanged();
- return this;
- }
-
- // optional int64 workers = 4;
- private long workers_ ;
- /**
- * <code>optional int64 workers = 4;</code>
- */
- public boolean hasWorkers() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional int64 workers = 4;</code>
- */
- public long getWorkers() {
- return workers_;
- }
- /**
- * <code>optional int64 workers = 4;</code>
- */
- public Builder setWorkers(long value) {
- bitField0_ |= 0x00000008;
- workers_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional int64 workers = 4;</code>
- */
- public Builder clearWorkers() {
- bitField0_ = (bitField0_ & ~0x00000008);
- workers_ = 0L;
- onChanged();
- return this;
- }
-
- // optional int64 bandwidth = 5;
- private long bandwidth_ ;
- /**
- * <code>optional int64 bandwidth = 5;</code>
- */
- public boolean hasBandwidth() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * <code>optional int64 bandwidth = 5;</code>
- */
- public long getBandwidth() {
- return bandwidth_;
- }
- /**
- * <code>optional int64 bandwidth = 5;</code>
- */
- public Builder setBandwidth(long value) {
- bitField0_ |= 0x00000010;
- bandwidth_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional int64 bandwidth = 5;</code>
- */
- public Builder clearBandwidth() {
- bitField0_ = (bitField0_ & ~0x00000010);
- bandwidth_ = 0L;
- onChanged();
- return this;
- }
-
- // optional string backup_set_name = 6;
- private java.lang.Object backupSetName_ = "";
- /**
- * <code>optional string backup_set_name = 6;</code>
- */
- public boolean hasBackupSetName() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
- }
- /**
- * <code>optional string backup_set_name = 6;</code>
- */
- public java.lang.String getBackupSetName() {
- java.lang.Object ref = backupSetName_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- backupSetName_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string backup_set_name = 6;</code>
- */
- public com.google.protobuf.ByteString
- getBackupSetNameBytes() {
- java.lang.Object ref = backupSetName_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- backupSetName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string backup_set_name = 6;</code>
- */
- public Builder setBackupSetName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000020;
- backupSetName_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string backup_set_name = 6;</code>
- */
- public Builder clearBackupSetName() {
- bitField0_ = (bitField0_ & ~0x00000020);
- backupSetName_ = getDefaultInstance().getBackupSetName();
- onChanged();
- return this;
- }
- /**
- * <code>optional string backup_set_name = 6;</code>
- */
- public Builder setBackupSetNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000020;
- backupSetName_ = value;
- onChanged();
- return this;
- }
-
- // optional uint64 nonce_group = 7 [default = 0];
- private long nonceGroup_ ;
- /**
- * <code>optional uint64 nonce_group = 7 [default = 0];</code>
- */
- public boolean hasNonceGroup() {
- return ((bitField0_ & 0x00000040) == 0x00000040);
- }
- /**
- * <code>optional uint64 nonce_group = 7 [default = 0];</code>
- */
- public long getNonceGroup() {
- return nonceGroup_;
- }
- /**
- * <code>optional uint64 nonce_group = 7 [default = 0];</code>
- */
- public Builder setNonceGroup(long value) {
- bitField0_ |= 0x00000040;
- nonceGroup_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional uint64 nonce_group = 7 [default = 0];</code>
- */
- public Builder clearNonceGroup() {
- bitField0_ = (bitField0_ & ~0x00000040);
- nonceGroup_ = 0L;
- onChanged();
- return this;
- }
-
- // optional uint64 nonce = 8 [default = 0];
- private long nonce_ ;
- /**
- * <code>optional uint64 nonce = 8 [default = 0];</code>
- */
- public boolean hasNonce() {
- return ((bitField0_ & 0x00000080) == 0x00000080);
- }
- /**
- * <code>optional uint64 nonce = 8 [default = 0];</code>
- */
- public long getNonce() {
- return nonce_;
- }
- /**
- * <code>optional uint64 nonce = 8 [default = 0];</code>
- */
- public Builder setNonce(long value) {
- bitField0_ |= 0x00000080;
- nonce_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional uint64 nonce = 8 [default = 0];</code>
- */
- public Builder clearNonce() {
- bitField0_ = (bitField0_ & ~0x00000080);
- nonce_ = 0L;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:hbase.pb.BackupTablesRequest)
- }
-
- static {
- defaultInstance = new BackupTablesRequest(true);
- defaultInstance.initFields();
- }
-
- // @@protoc_insertion_point(class_scope:hbase.pb.BackupTablesRequest)
- }
-
- public interface BackupTablesResponseOrBuilder
- extends com.google.protobuf.MessageOrBuilder {
-
- // optional uint64 proc_id = 1;
- /**
- * <code>optional uint64 proc_id = 1;</code>
- */
- boolean hasProcId();
- /**
- * <code>optional uint64 proc_id = 1;</code>
- */
- long getProcId();
-
- // optional string backup_id = 2;
- /**
- * <code>optional string backup_id = 2;</code>
- */
- boolean hasBackupId();
- /**
- * <code>optional string backup_id = 2;</code>
- */
- java.lang.String getBackupId();
- /**
- * <code>optional string backup_id = 2;</code>
- */
- com.google.protobuf.ByteString
- getBackupIdBytes();
- }
- /**
- * Protobuf type {@code hbase.pb.BackupTablesResponse}
- */
- public static final class BackupTablesResponse extends
- com.google.protobuf.GeneratedMessage
- implements BackupTablesResponseOrBuilder {
- // Use BackupTablesResponse.newBuilder() to construct.
- private BackupTablesResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private BackupTablesResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final BackupTablesResponse defaultInstance;
- public static BackupTablesResponse getDefaultInstance() {
- return defaultInstance;
- }
-
- public BackupTablesResponse getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private BackupTablesResponse(
- 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;
- procId_ = input.readUInt64();
- break;
- }
- case 18: {
- bitField0_ |= 0x00000002;
- backupId_ = input.readBytes();
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_BackupTablesResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.MasterProtos.internal_static_hbase_pb_BackupTablesResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesResponse.class, org.apache.hadoop.hbase.protobuf.generated.MasterProtos.BackupTablesResponse.Builder.class);
- }
-
- public static com.google.protobuf.Parser<BackupTablesResponse> PARSER =
- new com.google.protobuf.AbstractParser<BackupTablesResponse>() {
- public BackupTablesResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new BackupTablesResponse(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<BackupTablesResponse> getParserForType() {
- return PARSER;
- }
-
- private int bitField0_;
- // optional uint64 proc_id = 1;
- public static final int PROC_ID_FIELD_NUMBER = 1;
- private long procId_;
- /**
- * <code>optional uint64 proc_id = 1;</code>
- */
- public boolean hasProcId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional uint64 proc_id = 1;</code>
- */
- public long getProcId() {
- return procId_;
- }
-
- // optional string backup_id = 2;
- public static final int BACKUP_ID_FIELD_NUMBER = 2;
- private java.lang.Object backupId_;
- /**
- * <code>optional string backup_id = 2;</code>
- */
- public boolean hasBackupId() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional string backup_id = 2;</code>
- */
- public java.lang.String getBackupId() {
- java.lang.Object ref = backupId_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- backupId_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string backup_id = 2;</code>
- */
- public com.google.protobuf.ByteString
- getBackupIdBytes() {
- java.lang.Object ref = backupId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- backupId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private void initFields() {
- procId_ = 0L;
- backupId_ = "";
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeUInt64(1, procId_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getBackupIdBytes());
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSi
<TRUNCATED>