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/04/02 00:02:27 UTC
[5/6] hbase git commit: HBASE-15411 Rewrite backup with Procedure V2
- phase 1
http://git-wip-us.apache.org/repos/asf/hbase/blob/b37cc760/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/BackupProtos.java
----------------------------------------------------------------------
diff --git a/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/BackupProtos.java b/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/BackupProtos.java
index 1a7a1ba..a1a1a78 100644
--- a/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/BackupProtos.java
+++ b/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/BackupProtos.java
@@ -9,6 +9,197 @@ public final class BackupProtos {
com.google.protobuf.ExtensionRegistry registry) {
}
/**
+ * Protobuf enum {@code hbase.pb.FullTableBackupState}
+ */
+ public enum FullTableBackupState
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>PRE_SNAPSHOT_TABLE = 1;</code>
+ */
+ PRE_SNAPSHOT_TABLE(0, 1),
+ /**
+ * <code>SNAPSHOT_TABLES = 2;</code>
+ */
+ SNAPSHOT_TABLES(1, 2),
+ /**
+ * <code>SNAPSHOT_COPY = 3;</code>
+ */
+ SNAPSHOT_COPY(2, 3),
+ /**
+ * <code>BACKUP_COMPLETE = 4;</code>
+ */
+ BACKUP_COMPLETE(3, 4),
+ ;
+
+ /**
+ * <code>PRE_SNAPSHOT_TABLE = 1;</code>
+ */
+ public static final int PRE_SNAPSHOT_TABLE_VALUE = 1;
+ /**
+ * <code>SNAPSHOT_TABLES = 2;</code>
+ */
+ public static final int SNAPSHOT_TABLES_VALUE = 2;
+ /**
+ * <code>SNAPSHOT_COPY = 3;</code>
+ */
+ public static final int SNAPSHOT_COPY_VALUE = 3;
+ /**
+ * <code>BACKUP_COMPLETE = 4;</code>
+ */
+ public static final int BACKUP_COMPLETE_VALUE = 4;
+
+
+ public final int getNumber() { return value; }
+
+ public static FullTableBackupState valueOf(int value) {
+ switch (value) {
+ case 1: return PRE_SNAPSHOT_TABLE;
+ case 2: return SNAPSHOT_TABLES;
+ case 3: return SNAPSHOT_COPY;
+ case 4: return BACKUP_COMPLETE;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<FullTableBackupState>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static com.google.protobuf.Internal.EnumLiteMap<FullTableBackupState>
+ internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<FullTableBackupState>() {
+ public FullTableBackupState findValueByNumber(int number) {
+ return FullTableBackupState.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.BackupProtos.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final FullTableBackupState[] VALUES = values();
+
+ public static FullTableBackupState 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 FullTableBackupState(int index, int value) {
+ this.index = index;
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:hbase.pb.FullTableBackupState)
+ }
+
+ /**
+ * Protobuf enum {@code hbase.pb.IncrementalTableBackupState}
+ */
+ public enum IncrementalTableBackupState
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * <code>PREPARE_INCREMENTAL = 1;</code>
+ */
+ PREPARE_INCREMENTAL(0, 1),
+ /**
+ * <code>INCREMENTAL_COPY = 2;</code>
+ */
+ INCREMENTAL_COPY(1, 2),
+ /**
+ * <code>INCR_BACKUP_COMPLETE = 3;</code>
+ */
+ INCR_BACKUP_COMPLETE(2, 3),
+ ;
+
+ /**
+ * <code>PREPARE_INCREMENTAL = 1;</code>
+ */
+ public static final int PREPARE_INCREMENTAL_VALUE = 1;
+ /**
+ * <code>INCREMENTAL_COPY = 2;</code>
+ */
+ public static final int INCREMENTAL_COPY_VALUE = 2;
+ /**
+ * <code>INCR_BACKUP_COMPLETE = 3;</code>
+ */
+ public static final int INCR_BACKUP_COMPLETE_VALUE = 3;
+
+
+ public final int getNumber() { return value; }
+
+ public static IncrementalTableBackupState valueOf(int value) {
+ switch (value) {
+ case 1: return PREPARE_INCREMENTAL;
+ case 2: return INCREMENTAL_COPY;
+ case 3: return INCR_BACKUP_COMPLETE;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap<IncrementalTableBackupState>
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static com.google.protobuf.Internal.EnumLiteMap<IncrementalTableBackupState>
+ internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap<IncrementalTableBackupState>() {
+ public IncrementalTableBackupState findValueByNumber(int number) {
+ return IncrementalTableBackupState.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.BackupProtos.getDescriptor().getEnumTypes().get(1);
+ }
+
+ private static final IncrementalTableBackupState[] VALUES = values();
+
+ public static IncrementalTableBackupState 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 IncrementalTableBackupState(int index, int value) {
+ this.index = index;
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:hbase.pb.IncrementalTableBackupState)
+ }
+
+ /**
* Protobuf enum {@code hbase.pb.BackupType}
*/
public enum BackupType
@@ -65,7 +256,7 @@ public final class BackupProtos {
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.BackupProtos.getDescriptor().getEnumTypes().get(0);
+ return org.apache.hadoop.hbase.protobuf.generated.BackupProtos.getDescriptor().getEnumTypes().get(2);
}
private static final BackupType[] VALUES = values();
@@ -90,138 +281,57 @@ public final class BackupProtos {
// @@protoc_insertion_point(enum_scope:hbase.pb.BackupType)
}
- public interface BackupImageOrBuilder
+ public interface SnapshotTableStateDataOrBuilder
extends com.google.protobuf.MessageOrBuilder {
- // required string backup_id = 1;
- /**
- * <code>required string backup_id = 1;</code>
- */
- boolean hasBackupId();
- /**
- * <code>required string backup_id = 1;</code>
- */
- java.lang.String getBackupId();
+ // required .hbase.pb.TableName table = 1;
/**
- * <code>required string backup_id = 1;</code>
+ * <code>required .hbase.pb.TableName table = 1;</code>
*/
- com.google.protobuf.ByteString
- getBackupIdBytes();
-
- // required .hbase.pb.BackupType backup_type = 2;
+ boolean hasTable();
/**
- * <code>required .hbase.pb.BackupType backup_type = 2;</code>
+ * <code>required .hbase.pb.TableName table = 1;</code>
*/
- boolean hasBackupType();
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTable();
/**
- * <code>required .hbase.pb.BackupType backup_type = 2;</code>
+ * <code>required .hbase.pb.TableName table = 1;</code>
*/
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getBackupType();
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableOrBuilder();
- // required string root_dir = 3;
+ // required string snapshotName = 2;
/**
- * <code>required string root_dir = 3;</code>
+ * <code>required string snapshotName = 2;</code>
*/
- boolean hasRootDir();
+ boolean hasSnapshotName();
/**
- * <code>required string root_dir = 3;</code>
+ * <code>required string snapshotName = 2;</code>
*/
- java.lang.String getRootDir();
+ java.lang.String getSnapshotName();
/**
- * <code>required string root_dir = 3;</code>
+ * <code>required string snapshotName = 2;</code>
*/
com.google.protobuf.ByteString
- getRootDirBytes();
-
- // repeated .hbase.pb.TableName table_list = 4;
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName>
- getTableListList();
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableList(int index);
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- int getTableListCount();
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>
- getTableListOrBuilderList();
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableListOrBuilder(
- int index);
-
- // required uint64 start_ts = 5;
- /**
- * <code>required uint64 start_ts = 5;</code>
- */
- boolean hasStartTs();
- /**
- * <code>required uint64 start_ts = 5;</code>
- */
- long getStartTs();
-
- // required uint64 complete_ts = 6;
- /**
- * <code>required uint64 complete_ts = 6;</code>
- */
- boolean hasCompleteTs();
- /**
- * <code>required uint64 complete_ts = 6;</code>
- */
- long getCompleteTs();
-
- // repeated .hbase.pb.BackupImage ancestors = 7;
- /**
- * <code>repeated .hbase.pb.BackupImage ancestors = 7;</code>
- */
- java.util.List<org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage>
- getAncestorsList();
- /**
- * <code>repeated .hbase.pb.BackupImage ancestors = 7;</code>
- */
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage getAncestors(int index);
- /**
- * <code>repeated .hbase.pb.BackupImage ancestors = 7;</code>
- */
- int getAncestorsCount();
- /**
- * <code>repeated .hbase.pb.BackupImage ancestors = 7;</code>
- */
- java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder>
- getAncestorsOrBuilderList();
- /**
- * <code>repeated .hbase.pb.BackupImage ancestors = 7;</code>
- */
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder getAncestorsOrBuilder(
- int index);
+ getSnapshotNameBytes();
}
/**
- * Protobuf type {@code hbase.pb.BackupImage}
+ * Protobuf type {@code hbase.pb.SnapshotTableStateData}
*/
- public static final class BackupImage extends
+ public static final class SnapshotTableStateData extends
com.google.protobuf.GeneratedMessage
- implements BackupImageOrBuilder {
- // Use BackupImage.newBuilder() to construct.
- private BackupImage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ implements SnapshotTableStateDataOrBuilder {
+ // Use SnapshotTableStateData.newBuilder() to construct.
+ private SnapshotTableStateData(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
- private BackupImage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+ private SnapshotTableStateData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
- private static final BackupImage defaultInstance;
- public static BackupImage getDefaultInstance() {
+ private static final SnapshotTableStateData defaultInstance;
+ public static SnapshotTableStateData getDefaultInstance() {
return defaultInstance;
}
- public BackupImage getDefaultInstanceForType() {
+ public SnapshotTableStateData getDefaultInstanceForType() {
return defaultInstance;
}
@@ -231,7 +341,7 @@ public final class BackupProtos {
getUnknownFields() {
return this.unknownFields;
}
- private BackupImage(
+ private SnapshotTableStateData(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -255,50 +365,21 @@ public final class BackupProtos {
break;
}
case 10: {
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ subBuilder = table_.toBuilder();
+ }
+ table_ = input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(table_);
+ table_ = subBuilder.buildPartial();
+ }
bitField0_ |= 0x00000001;
- backupId_ = input.readBytes();
break;
}
- case 16: {
- 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(2, rawValue);
- } else {
- bitField0_ |= 0x00000002;
- backupType_ = value;
- }
- break;
- }
- case 26: {
- bitField0_ |= 0x00000004;
- rootDir_ = input.readBytes();
- break;
- }
- case 34: {
- if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
- tableList_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName>();
- mutable_bitField0_ |= 0x00000008;
- }
- tableList_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.PARSER, extensionRegistry));
- break;
- }
- case 40: {
- bitField0_ |= 0x00000008;
- startTs_ = input.readUInt64();
- break;
- }
- case 48: {
- bitField0_ |= 0x00000010;
- completeTs_ = input.readUInt64();
- break;
- }
- case 58: {
- if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
- ancestors_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage>();
- mutable_bitField0_ |= 0x00000040;
- }
- ancestors_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.PARSER, extensionRegistry));
+ case 18: {
+ bitField0_ |= 0x00000002;
+ snapshotName_ = input.readBytes();
break;
}
}
@@ -309,117 +390,74 @@ public final class BackupProtos {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
- if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
- tableList_ = java.util.Collections.unmodifiableList(tableList_);
- }
- if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
- ancestors_ = java.util.Collections.unmodifiableList(ancestors_);
- }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.BackupProtos.internal_static_hbase_pb_BackupImage_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.BackupProtos.internal_static_hbase_pb_SnapshotTableStateData_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.BackupProtos.internal_static_hbase_pb_BackupImage_fieldAccessorTable
+ return org.apache.hadoop.hbase.protobuf.generated.BackupProtos.internal_static_hbase_pb_SnapshotTableStateData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.class, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder.class);
+ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData.class, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData.Builder.class);
}
- public static com.google.protobuf.Parser<BackupImage> PARSER =
- new com.google.protobuf.AbstractParser<BackupImage>() {
- public BackupImage parsePartialFrom(
+ public static com.google.protobuf.Parser<SnapshotTableStateData> PARSER =
+ new com.google.protobuf.AbstractParser<SnapshotTableStateData>() {
+ public SnapshotTableStateData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new BackupImage(input, extensionRegistry);
+ return new SnapshotTableStateData(input, extensionRegistry);
}
};
@java.lang.Override
- public com.google.protobuf.Parser<BackupImage> getParserForType() {
+ public com.google.protobuf.Parser<SnapshotTableStateData> getParserForType() {
return PARSER;
}
private int bitField0_;
- // required string backup_id = 1;
- public static final int BACKUP_ID_FIELD_NUMBER = 1;
- private java.lang.Object backupId_;
+ // required .hbase.pb.TableName table = 1;
+ public static final int TABLE_FIELD_NUMBER = 1;
+ private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName table_;
/**
- * <code>required string backup_id = 1;</code>
+ * <code>required .hbase.pb.TableName table = 1;</code>
*/
- public boolean hasBackupId() {
+ public boolean hasTable() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>required string backup_id = 1;</code>
+ * <code>required .hbase.pb.TableName table = 1;</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;
- }
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTable() {
+ return table_;
}
/**
- * <code>required string backup_id = 1;</code>
+ * <code>required .hbase.pb.TableName table = 1;</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;
- }
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableOrBuilder() {
+ return table_;
}
- // required .hbase.pb.BackupType backup_type = 2;
- public static final int BACKUP_TYPE_FIELD_NUMBER = 2;
- private org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType backupType_;
+ // required string snapshotName = 2;
+ public static final int SNAPSHOTNAME_FIELD_NUMBER = 2;
+ private java.lang.Object snapshotName_;
/**
- * <code>required .hbase.pb.BackupType backup_type = 2;</code>
+ * <code>required string snapshotName = 2;</code>
*/
- public boolean hasBackupType() {
+ public boolean hasSnapshotName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>required .hbase.pb.BackupType backup_type = 2;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getBackupType() {
- return backupType_;
- }
-
- // required string root_dir = 3;
- public static final int ROOT_DIR_FIELD_NUMBER = 3;
- private java.lang.Object rootDir_;
- /**
- * <code>required string root_dir = 3;</code>
- */
- public boolean hasRootDir() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>required string root_dir = 3;</code>
+ * <code>required string snapshotName = 2;</code>
*/
- public java.lang.String getRootDir() {
- java.lang.Object ref = rootDir_;
+ public java.lang.String getSnapshotName() {
+ java.lang.Object ref = snapshotName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
@@ -427,205 +465,61 @@ public final class BackupProtos {
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
- rootDir_ = s;
+ snapshotName_ = s;
}
return s;
}
}
/**
- * <code>required string root_dir = 3;</code>
+ * <code>required string snapshotName = 2;</code>
*/
public com.google.protobuf.ByteString
- getRootDirBytes() {
- java.lang.Object ref = rootDir_;
+ getSnapshotNameBytes() {
+ java.lang.Object ref = snapshotName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
- rootDir_ = b;
+ snapshotName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
- // repeated .hbase.pb.TableName table_list = 4;
- public static final int TABLE_LIST_FIELD_NUMBER = 4;
- private java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName> tableList_;
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName> getTableListList() {
- return tableList_;
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>
- getTableListOrBuilderList() {
- return tableList_;
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public int getTableListCount() {
- return tableList_.size();
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableList(int index) {
- return tableList_.get(index);
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableListOrBuilder(
- int index) {
- return tableList_.get(index);
- }
-
- // required uint64 start_ts = 5;
- public static final int START_TS_FIELD_NUMBER = 5;
- private long startTs_;
- /**
- * <code>required uint64 start_ts = 5;</code>
- */
- public boolean hasStartTs() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>required uint64 start_ts = 5;</code>
- */
- public long getStartTs() {
- return startTs_;
- }
-
- // required uint64 complete_ts = 6;
- public static final int COMPLETE_TS_FIELD_NUMBER = 6;
- private long completeTs_;
- /**
- * <code>required uint64 complete_ts = 6;</code>
- */
- public boolean hasCompleteTs() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * <code>required uint64 complete_ts = 6;</code>
- */
- public long getCompleteTs() {
- return completeTs_;
- }
-
- // repeated .hbase.pb.BackupImage ancestors = 7;
- public static final int ANCESTORS_FIELD_NUMBER = 7;
- private java.util.List<org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage> ancestors_;
- /**
- * <code>repeated .hbase.pb.BackupImage ancestors = 7;</code>
- */
- public java.util.List<org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage> getAncestorsList() {
- return ancestors_;
- }
- /**
- * <code>repeated .hbase.pb.BackupImage ancestors = 7;</code>
- */
- public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder>
- getAncestorsOrBuilderList() {
- return ancestors_;
- }
- /**
- * <code>repeated .hbase.pb.BackupImage ancestors = 7;</code>
- */
- public int getAncestorsCount() {
- return ancestors_.size();
- }
- /**
- * <code>repeated .hbase.pb.BackupImage ancestors = 7;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage getAncestors(int index) {
- return ancestors_.get(index);
- }
- /**
- * <code>repeated .hbase.pb.BackupImage ancestors = 7;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder getAncestorsOrBuilder(
- int index) {
- return ancestors_.get(index);
- }
-
private void initFields() {
- backupId_ = "";
- backupType_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL;
- rootDir_ = "";
- tableList_ = java.util.Collections.emptyList();
- startTs_ = 0L;
- completeTs_ = 0L;
- ancestors_ = java.util.Collections.emptyList();
+ table_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance();
+ snapshotName_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
- if (!hasBackupId()) {
+ if (!hasTable()) {
memoizedIsInitialized = 0;
return false;
}
- if (!hasBackupType()) {
+ if (!hasSnapshotName()) {
memoizedIsInitialized = 0;
return false;
}
- if (!hasRootDir()) {
+ if (!getTable().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
- if (!hasStartTs()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasCompleteTs()) {
- memoizedIsInitialized = 0;
- return false;
- }
- for (int i = 0; i < getTableListCount(); i++) {
- if (!getTableList(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- for (int i = 0; i < getAncestorsCount(); i++) {
- if (!getAncestors(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.writeBytes(1, getBackupIdBytes());
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeMessage(1, table_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(2, backupType_.getNumber());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getRootDirBytes());
- }
- for (int i = 0; i < tableList_.size(); i++) {
- output.writeMessage(4, tableList_.get(i));
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeUInt64(5, startTs_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeUInt64(6, completeTs_);
- }
- for (int i = 0; i < ancestors_.size(); i++) {
- output.writeMessage(7, ancestors_.get(i));
+ output.writeBytes(2, getSnapshotNameBytes());
}
getUnknownFields().writeTo(output);
}
@@ -638,31 +532,11 @@ public final class BackupProtos {
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getBackupIdBytes());
+ .computeMessageSize(1, table_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, backupType_.getNumber());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getRootDirBytes());
- }
- for (int i = 0; i < tableList_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, tableList_.get(i));
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(5, startTs_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(6, completeTs_);
- }
- for (int i = 0; i < ancestors_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(7, ancestors_.get(i));
+ .computeBytesSize(2, getSnapshotNameBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
@@ -681,41 +555,22 @@ public final class BackupProtos {
if (obj == this) {
return true;
}
- if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage)) {
+ if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData)) {
return super.equals(obj);
}
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage other = (org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage) obj;
+ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData other = (org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData) obj;
boolean result = true;
- result = result && (hasBackupId() == other.hasBackupId());
- if (hasBackupId()) {
- result = result && getBackupId()
- .equals(other.getBackupId());
- }
- result = result && (hasBackupType() == other.hasBackupType());
- if (hasBackupType()) {
- result = result &&
- (getBackupType() == other.getBackupType());
- }
- result = result && (hasRootDir() == other.hasRootDir());
- if (hasRootDir()) {
- result = result && getRootDir()
- .equals(other.getRootDir());
- }
- result = result && getTableListList()
- .equals(other.getTableListList());
- result = result && (hasStartTs() == other.hasStartTs());
- if (hasStartTs()) {
- result = result && (getStartTs()
- == other.getStartTs());
+ result = result && (hasTable() == other.hasTable());
+ if (hasTable()) {
+ result = result && getTable()
+ .equals(other.getTable());
}
- result = result && (hasCompleteTs() == other.hasCompleteTs());
- if (hasCompleteTs()) {
- result = result && (getCompleteTs()
- == other.getCompleteTs());
+ result = result && (hasSnapshotName() == other.hasSnapshotName());
+ if (hasSnapshotName()) {
+ result = result && getSnapshotName()
+ .equals(other.getSnapshotName());
}
- result = result && getAncestorsList()
- .equals(other.getAncestorsList());
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
@@ -729,86 +584,66 @@ public final class BackupProtos {
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
- if (hasBackupId()) {
- hash = (37 * hash) + BACKUP_ID_FIELD_NUMBER;
- hash = (53 * hash) + getBackupId().hashCode();
- }
- if (hasBackupType()) {
- hash = (37 * hash) + BACKUP_TYPE_FIELD_NUMBER;
- hash = (53 * hash) + hashEnum(getBackupType());
- }
- if (hasRootDir()) {
- hash = (37 * hash) + ROOT_DIR_FIELD_NUMBER;
- hash = (53 * hash) + getRootDir().hashCode();
- }
- if (getTableListCount() > 0) {
- hash = (37 * hash) + TABLE_LIST_FIELD_NUMBER;
- hash = (53 * hash) + getTableListList().hashCode();
- }
- if (hasStartTs()) {
- hash = (37 * hash) + START_TS_FIELD_NUMBER;
- hash = (53 * hash) + hashLong(getStartTs());
- }
- if (hasCompleteTs()) {
- hash = (37 * hash) + COMPLETE_TS_FIELD_NUMBER;
- hash = (53 * hash) + hashLong(getCompleteTs());
+ if (hasTable()) {
+ hash = (37 * hash) + TABLE_FIELD_NUMBER;
+ hash = (53 * hash) + getTable().hashCode();
}
- if (getAncestorsCount() > 0) {
- hash = (37 * hash) + ANCESTORS_FIELD_NUMBER;
- hash = (53 * hash) + getAncestorsList().hashCode();
+ if (hasSnapshotName()) {
+ hash = (37 * hash) + SNAPSHOTNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getSnapshotName().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
- public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData 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.BackupProtos.BackupImage parseFrom(byte[] data)
+ public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData 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.BackupProtos.BackupImage parseFrom(java.io.InputStream input)
+ public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
- public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData 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.BackupProtos.BackupImage parseDelimitedFrom(java.io.InputStream input)
+ public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
- public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage parseDelimitedFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData 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.BackupProtos.BackupImage parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
- public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -817,7 +652,7 @@ public final class BackupProtos {
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage prototype) {
+ public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@@ -829,24 +664,24 @@ public final class BackupProtos {
return builder;
}
/**
- * Protobuf type {@code hbase.pb.BackupImage}
+ * Protobuf type {@code hbase.pb.SnapshotTableStateData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
- implements org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder {
+ implements org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.apache.hadoop.hbase.protobuf.generated.BackupProtos.internal_static_hbase_pb_BackupImage_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.BackupProtos.internal_static_hbase_pb_SnapshotTableStateData_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.apache.hadoop.hbase.protobuf.generated.BackupProtos.internal_static_hbase_pb_BackupImage_fieldAccessorTable
+ return org.apache.hadoop.hbase.protobuf.generated.BackupProtos.internal_static_hbase_pb_SnapshotTableStateData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.class, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder.class);
+ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData.class, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData.Builder.class);
}
- // Construct using org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.newBuilder()
+ // Construct using org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
@@ -858,8 +693,7 @@ public final class BackupProtos {
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getTableListFieldBuilder();
- getAncestorsFieldBuilder();
+ getTableFieldBuilder();
}
}
private static Builder create() {
@@ -868,28 +702,14 @@ public final class BackupProtos {
public Builder clear() {
super.clear();
- backupId_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- backupType_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL;
- bitField0_ = (bitField0_ & ~0x00000002);
- rootDir_ = "";
- bitField0_ = (bitField0_ & ~0x00000004);
- if (tableListBuilder_ == null) {
- tableList_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
- } else {
- tableListBuilder_.clear();
- }
- startTs_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000010);
- completeTs_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000020);
- if (ancestorsBuilder_ == null) {
- ancestors_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000040);
+ if (tableBuilder_ == null) {
+ table_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance();
} else {
- ancestorsBuilder_.clear();
+ tableBuilder_.clear();
}
+ bitField0_ = (bitField0_ & ~0x00000001);
+ snapshotName_ = "";
+ bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@@ -899,187 +719,78 @@ public final class BackupProtos {
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
- return org.apache.hadoop.hbase.protobuf.generated.BackupProtos.internal_static_hbase_pb_BackupImage_descriptor;
+ return org.apache.hadoop.hbase.protobuf.generated.BackupProtos.internal_static_hbase_pb_SnapshotTableStateData_descriptor;
}
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage getDefaultInstanceForType() {
- return org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.getDefaultInstance();
+ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData getDefaultInstanceForType() {
+ return org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData.getDefaultInstance();
}
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage build() {
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage result = buildPartial();
+ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData build() {
+ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage buildPartial() {
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage result = new org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage(this);
+ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData buildPartial() {
+ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData result = new org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
- result.backupId_ = backupId_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.backupType_ = backupType_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.rootDir_ = rootDir_;
- if (tableListBuilder_ == null) {
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- tableList_ = java.util.Collections.unmodifiableList(tableList_);
- bitField0_ = (bitField0_ & ~0x00000008);
- }
- result.tableList_ = tableList_;
+ if (tableBuilder_ == null) {
+ result.table_ = table_;
} else {
- result.tableList_ = tableListBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
- to_bitField0_ |= 0x00000008;
- }
- result.startTs_ = startTs_;
- if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
- to_bitField0_ |= 0x00000010;
+ result.table_ = tableBuilder_.build();
}
- result.completeTs_ = completeTs_;
- if (ancestorsBuilder_ == null) {
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- ancestors_ = java.util.Collections.unmodifiableList(ancestors_);
- bitField0_ = (bitField0_ & ~0x00000040);
- }
- result.ancestors_ = ancestors_;
- } else {
- result.ancestors_ = ancestorsBuilder_.build();
+ if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ to_bitField0_ |= 0x00000002;
}
+ result.snapshotName_ = snapshotName_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage) {
- return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage)other);
+ if (other instanceof org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData) {
+ return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData)other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage other) {
- if (other == org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.getDefaultInstance()) return this;
- if (other.hasBackupId()) {
- bitField0_ |= 0x00000001;
- backupId_ = other.backupId_;
+ public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData other) {
+ if (other == org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData.getDefaultInstance()) return this;
+ if (other.hasTable()) {
+ mergeTable(other.getTable());
+ }
+ if (other.hasSnapshotName()) {
+ bitField0_ |= 0x00000002;
+ snapshotName_ = other.snapshotName_;
onChanged();
}
- if (other.hasBackupType()) {
- setBackupType(other.getBackupType());
+ this.mergeUnknownFields(other.getUnknownFields());
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ if (!hasTable()) {
+
+ return false;
}
- if (other.hasRootDir()) {
- bitField0_ |= 0x00000004;
- rootDir_ = other.rootDir_;
- onChanged();
+ if (!hasSnapshotName()) {
+
+ return false;
}
- if (tableListBuilder_ == null) {
- if (!other.tableList_.isEmpty()) {
- if (tableList_.isEmpty()) {
- tableList_ = other.tableList_;
- bitField0_ = (bitField0_ & ~0x00000008);
- } else {
- ensureTableListIsMutable();
- tableList_.addAll(other.tableList_);
- }
- onChanged();
- }
- } else {
- if (!other.tableList_.isEmpty()) {
- if (tableListBuilder_.isEmpty()) {
- tableListBuilder_.dispose();
- tableListBuilder_ = null;
- tableList_ = other.tableList_;
- bitField0_ = (bitField0_ & ~0x00000008);
- tableListBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getTableListFieldBuilder() : null;
- } else {
- tableListBuilder_.addAllMessages(other.tableList_);
- }
- }
- }
- if (other.hasStartTs()) {
- setStartTs(other.getStartTs());
- }
- if (other.hasCompleteTs()) {
- setCompleteTs(other.getCompleteTs());
- }
- if (ancestorsBuilder_ == null) {
- if (!other.ancestors_.isEmpty()) {
- if (ancestors_.isEmpty()) {
- ancestors_ = other.ancestors_;
- bitField0_ = (bitField0_ & ~0x00000040);
- } else {
- ensureAncestorsIsMutable();
- ancestors_.addAll(other.ancestors_);
- }
- onChanged();
- }
- } else {
- if (!other.ancestors_.isEmpty()) {
- if (ancestorsBuilder_.isEmpty()) {
- ancestorsBuilder_.dispose();
- ancestorsBuilder_ = null;
- ancestors_ = other.ancestors_;
- bitField0_ = (bitField0_ & ~0x00000040);
- ancestorsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getAncestorsFieldBuilder() : null;
- } else {
- ancestorsBuilder_.addAllMessages(other.ancestors_);
- }
- }
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public final boolean isInitialized() {
- if (!hasBackupId()) {
-
- return false;
- }
- if (!hasBackupType()) {
-
- return false;
- }
- if (!hasRootDir()) {
-
- return false;
- }
- if (!hasStartTs()) {
-
- return false;
- }
- if (!hasCompleteTs()) {
+ if (!getTable().isInitialized()) {
return false;
}
- for (int i = 0; i < getTableListCount(); i++) {
- if (!getTableList(i).isInitialized()) {
-
- return false;
- }
- }
- for (int i = 0; i < getAncestorsCount(); i++) {
- if (!getAncestors(i).isInitialized()) {
-
- return false;
- }
- }
return true;
}
@@ -1087,11 +798,11 @@ public final class BackupProtos {
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage parsedMessage = null;
+ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage) e.getUnfinishedMessage();
+ parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.BackupProtos.SnapshotTableStateData) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
@@ -1102,436 +813,1650 @@ public final class BackupProtos {
}
private int bitField0_;
- // required string backup_id = 1;
- private java.lang.Object backupId_ = "";
+ // required .hbase.pb.TableName table = 1;
+ private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName table_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance();
+ private com.google.protobuf.SingleFieldBuilder<
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder> tableBuilder_;
/**
- * <code>required string backup_id = 1;</code>
+ * <code>required .hbase.pb.TableName table = 1;</code>
*/
- public boolean hasBackupId() {
+ public boolean hasTable() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * <code>required string backup_id = 1;</code>
+ * <code>required .hbase.pb.TableName table = 1;</code>
*/
- public java.lang.String getBackupId() {
- java.lang.Object ref = backupId_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- backupId_ = s;
- return s;
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTable() {
+ if (tableBuilder_ == null) {
+ return table_;
} else {
- return (java.lang.String) ref;
+ return tableBuilder_.getMessage();
}
}
/**
- * <code>required string backup_id = 1;</code>
+ * <code>required .hbase.pb.TableName table = 1;</code>
*/
- public com.google.protobuf.ByteString
- getBackupIdBytes() {
- java.lang.Object ref = backupId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- backupId_ = b;
- return b;
+ public Builder setTable(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) {
+ if (tableBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ table_ = value;
+ onChanged();
} else {
- return (com.google.protobuf.ByteString) ref;
+ tableBuilder_.setMessage(value);
}
- }
- /**
- * <code>required string backup_id = 1;</code>
- */
- public Builder setBackupId(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- backupId_ = value;
- onChanged();
+ bitField0_ |= 0x00000001;
return this;
}
/**
- * <code>required string backup_id = 1;</code>
+ * <code>required .hbase.pb.TableName table = 1;</code>
*/
- public Builder clearBackupId() {
- bitField0_ = (bitField0_ & ~0x00000001);
- backupId_ = getDefaultInstance().getBackupId();
- onChanged();
+ public Builder setTable(
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder builderForValue) {
+ if (tableBuilder_ == null) {
+ table_ = builderForValue.build();
+ onChanged();
+ } else {
+ tableBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
return this;
}
/**
- * <code>required string backup_id = 1;</code>
+ * <code>required .hbase.pb.TableName table = 1;</code>
*/
- public Builder setBackupIdBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- backupId_ = value;
- onChanged();
+ public Builder mergeTable(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) {
+ if (tableBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ table_ != org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance()) {
+ table_ =
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.newBuilder(table_).mergeFrom(value).buildPartial();
+ } else {
+ table_ = value;
+ }
+ onChanged();
+ } else {
+ tableBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
return this;
}
-
- // required .hbase.pb.BackupType backup_type = 2;
- private org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType backupType_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL;
/**
- * <code>required .hbase.pb.BackupType backup_type = 2;</code>
+ * <code>required .hbase.pb.TableName table = 1;</code>
*/
- public boolean hasBackupType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ public Builder clearTable() {
+ if (tableBuilder_ == null) {
+ table_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance();
+ onChanged();
+ } else {
+ tableBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
}
/**
- * <code>required .hbase.pb.BackupType backup_type = 2;</code>
+ * <code>required .hbase.pb.TableName table = 1;</code>
*/
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getBackupType() {
- return backupType_;
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder getTableBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getTableFieldBuilder().getBuilder();
}
/**
- * <code>required .hbase.pb.BackupType backup_type = 2;</code>
+ * <code>required .hbase.pb.TableName table = 1;</code>
*/
- public Builder setBackupType(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType value) {
- if (value == null) {
- throw new NullPointerException();
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableOrBuilder() {
+ if (tableBuilder_ != null) {
+ return tableBuilder_.getMessageOrBuilder();
+ } else {
+ return table_;
}
- bitField0_ |= 0x00000002;
- backupType_ = value;
- onChanged();
- return this;
}
/**
- * <code>required .hbase.pb.BackupType backup_type = 2;</code>
+ * <code>required .hbase.pb.TableName table = 1;</code>
*/
- public Builder clearBackupType() {
- bitField0_ = (bitField0_ & ~0x00000002);
- backupType_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL;
- onChanged();
- return this;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>
+ getTableFieldBuilder() {
+ if (tableBuilder_ == null) {
+ tableBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>(
+ table_,
+ getParentForChildren(),
+ isClean());
+ table_ = null;
+ }
+ return tableBuilder_;
}
- // required string root_dir = 3;
- private java.lang.Object rootDir_ = "";
+ // required string snapshotName = 2;
+ private java.lang.Object snapshotName_ = "";
/**
- * <code>required string root_dir = 3;</code>
+ * <code>required string snapshotName = 2;</code>
*/
- public boolean hasRootDir() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ public boolean hasSnapshotName() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * <code>required string root_dir = 3;</code>
+ * <code>required string snapshotName = 2;</code>
*/
- public java.lang.String getRootDir() {
- java.lang.Object ref = rootDir_;
+ public java.lang.String getSnapshotName() {
+ java.lang.Object ref = snapshotName_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
- rootDir_ = s;
+ snapshotName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * <code>required string root_dir = 3;</code>
+ * <code>required string snapshotName = 2;</code>
*/
public com.google.protobuf.ByteString
- getRootDirBytes() {
- java.lang.Object ref = rootDir_;
+ getSnapshotNameBytes() {
+ java.lang.Object ref = snapshotName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
- rootDir_ = b;
+ snapshotName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
- * <code>required string root_dir = 3;</code>
+ * <code>required string snapshotName = 2;</code>
*/
- public Builder setRootDir(
+ public Builder setSnapshotName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000004;
- rootDir_ = value;
+ bitField0_ |= 0x00000002;
+ snapshotName_ = value;
onChanged();
return this;
}
/**
- * <code>required string root_dir = 3;</code>
+ * <code>required string snapshotName = 2;</code>
*/
- public Builder clearRootDir() {
- bitField0_ = (bitField0_ & ~0x00000004);
- rootDir_ = getDefaultInstance().getRootDir();
+ public Builder clearSnapshotName() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ snapshotName_ = getDefaultInstance().getSnapshotName();
onChanged();
return this;
}
/**
- * <code>required string root_dir = 3;</code>
+ * <code>required string snapshotName = 2;</code>
*/
- public Builder setRootDirBytes(
+ public Builder setSnapshotNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000004;
- rootDir_ = value;
+ bitField0_ |= 0x00000002;
+ snapshotName_ = value;
onChanged();
return this;
}
- // repeated .hbase.pb.TableName table_list = 4;
- private java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName> tableList_ =
- java.util.Collections.emptyList();
- private void ensureTableListIsMutable() {
- if (!((bitField0_ & 0x00000008) == 0x00000008)) {
- tableList_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName>(tableList_);
- bitField0_ |= 0x00000008;
- }
- }
+ // @@protoc_insertion_point(builder_scope:hbase.pb.SnapshotTableStateData)
+ }
- 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> tableListBuilder_;
+ static {
+ defaultInstance = new SnapshotTableStateData(true);
+ defaultInstance.initFields();
+ }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName> getTableListList() {
- if (tableListBuilder_ == null) {
- return java.util.Collections.unmodifiableList(tableList_);
- } else {
- return tableListBuilder_.getMessageList();
- }
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public int getTableListCount() {
- if (tableListBuilder_ == null) {
- return tableList_.size();
- } else {
- return tableListBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableList(int index) {
- if (tableListBuilder_ == null) {
- return tableList_.get(index);
- } else {
- return tableListBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public Builder setTableList(
- int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) {
- if (tableListBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTableListIsMutable();
- tableList_.set(index, value);
- onChanged();
- } else {
- tableListBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public Builder setTableList(
- int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder builderForValue) {
- if (tableListBuilder_ == null) {
- ensureTableListIsMutable();
- tableList_.set(index, builderForValue.build());
- onChanged();
- } else {
- tableListBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public Builder addTableList(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) {
- if (tableListBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTableListIsMutable();
- tableList_.add(value);
- onChanged();
- } else {
- tableListBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public Builder addTableList(
- int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) {
- if (tableListBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTableListIsMutable();
- tableList_.add(index, value);
- onChanged();
- } else {
- tableListBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public Builder addTableList(
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder builderForValue) {
- if (tableListBuilder_ == null) {
- ensureTableListIsMutable();
- tableList_.add(builderForValue.build());
- onChanged();
- } else {
- tableListBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public Builder addTableList(
- int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder builderForValue) {
- if (tableListBuilder_ == null) {
- ensureTableListIsMutable();
- tableList_.add(index, builderForValue.build());
- onChanged();
- } else {
- tableListBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public Builder addAllTableList(
- java.lang.Iterable<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName> values) {
- if (tableListBuilder_ == null) {
- ensureTableListIsMutable();
- super.addAll(values, tableList_);
- onChanged();
- } else {
- tableListBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public Builder clearTableList() {
- if (tableListBuilder_ == null) {
- tableList_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
- } else {
- tableListBuilder_.clear();
- }
- return this;
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public Builder removeTableList(int index) {
- if (tableListBuilder_ == null) {
- ensureTableListIsMutable();
- tableList_.remove(index);
- onChanged();
- } else {
- tableListBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder getTableListBuilder(
- int index) {
- return getTableListFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableListOrBuilder(
- int index) {
- if (tableListBuilder_ == null) {
- return tableList_.get(index); } else {
- return tableListBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>
- getTableListOrBuilderList() {
- if (tableListBuilder_ != null) {
- return tableListBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(tableList_);
- }
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder addTableListBuilder() {
- return getTableListFieldBuilder().addBuilder(
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance());
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder addTableListBuilder(
- int index) {
- return getTableListFieldBuilder().addBuilder(
- index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance());
- }
- /**
- * <code>repeated .hbase.pb.TableName table_list = 4;</code>
- */
- public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder>
- getTableListBuilderList() {
- return getTableListFieldBuilder().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>
- getTableListFieldBuilder() {
- if (tableListBuilder_ == null) {
- tableListBuilder_ = 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>(
- tableList_,
- ((bitField0_ & 0x00000008) == 0x00000008),
- getParentForChildren(),
- isClean());
- tableList_ = null;
- }
- return tableListBuilder_;
- }
+ // @@protoc_insertion_point(class_scope:hbase.pb.SnapshotTableStateData)
+ }
- // required uint64 start_ts = 5;
- private long startTs_ ;
- /**
- * <code>required uint64 start_ts = 5;</code>
- */
- public boolean hasStartTs() {
+ public interface BackupImageOrBuilder
+ extends com.google.protobuf.MessageOrBuilder {
+
+ // required string backup_id = 1;
+ /**
+ * <code>required string backup_id = 1;</code>
+ */
+ boolean hasBackupId();
+ /**
+ * <code>required string backup_id = 1;</code>
+ */
+ java.lang.String getBackupId();
+ /**
+ * <code>required string backup_id = 1;</code>
+ */
+ com.google.protobuf.ByteString
+ getBackupIdBytes();
+
+ // required .hbase.pb.BackupType backup_type = 2;
+ /**
+ * <code>required .hbase.pb.BackupType backup_type = 2;</code>
+ */
+ boolean hasBackupType();
+ /**
+ * <code>required .hbase.pb.BackupType backup_type = 2;</code>
+ */
+ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getBackupType();
+
+ // required string root_dir = 3;
+ /**
+ * <code>required string root_dir = 3;</code>
+ */
+ boolean hasRootDir();
+ /**
+ * <code>required string root_dir = 3;</code>
+ */
+ java.lang.String getRootDir();
+ /**
+ * <code>required string root_dir = 3;</code>
+ */
+ com.google.protobuf.ByteString
+ getRootDirBytes();
+
+ // repeated .hbase.pb.TableName table_list = 4;
+ /**
+ * <code>repeated .hbase.pb.TableName table_list = 4;</code>
+ */
+ java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName>
+ getTableListList();
+ /**
+ * <code>repeated .hbase.pb.TableName table_list = 4;</code>
+ */
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableList(int index);
+ /**
+ * <code>repeated .hbase.pb.TableName table_list = 4;</code>
+ */
+ int getTableListCount();
+ /**
+ * <code>repeated .hbase.pb.TableName table_list = 4;</code>
+ */
+ java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>
+ getTableListOrBuilderList();
+ /**
+ * <code>repeated .hbase.pb.TableName table_list = 4;</code>
+ */
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableListOrBuilder(
+ int index);
+
+ // required uint64 start_ts = 5;
+ /**
+ * <code>required uint64 start_ts = 5;</code>
+ */
+ boolean hasStartTs();
+ /**
+ * <code>required uint64 start_ts = 5;</code>
+ */
+ long getStartTs();
+
+ // required uint64 complete_ts = 6;
+ /**
+ * <code>required uint64 complete_ts = 6;</code>
+ */
+ boolean hasCompleteTs();
+ /**
+ * <code>required uint64 complete_ts = 6;</code>
+ */
+ long getCompleteTs();
+
+ // repeated .hbase.pb.BackupImage ancestors = 7;
+ /**
+ * <code>repeated .hbase.pb.BackupImage ancestors = 7;</code>
+ */
+ java.util.List<org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage>
+ getAncestorsList();
+ /**
+ * <code>repeated .hbase.pb.BackupImage ancestors = 7;</code>
+ */
+ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage getAncestors(int index);
+ /**
+ * <code>repeated .hbase.pb.BackupImage ancestors = 7;</code>
+ */
+ int getAncestorsCount();
+ /**
+ * <code>repeated .hbase.pb.BackupImage ancestors = 7;</code>
+ */
+ java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder>
+ getAncestorsOrBuilderList();
+ /**
+ * <code>repeated .hbase.pb.BackupImage ancestors = 7;</code>
+ */
+ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder getAncestorsOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code hbase.pb.BackupImage}
+ */
+ public static final class BackupImage extends
+ com.google.protobuf.GeneratedMessage
+ implements BackupImageOrBuilder {
+ // Use BackupImage.newBuilder() to construct.
+ private BackupImage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+ private BackupImage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+ private static final BackupImage defaultInstance;
+ public static BackupImage getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public BackupImage getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private BackupImage(
+ 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;
+ backupId_ = input.readBytes();
+ break;
+ }
+ case 16: {
+ 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(2, rawValue);
+ } else {
+ bitField0_ |= 0x00000002;
+ backupType_ = value;
+ }
+ break;
+ }
+ case 26: {
+ bitField0_ |= 0x00000004;
+ rootDir_ = input.readBytes();
+ break;
+ }
+ case 34: {
+ if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
+ tableList_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName>();
+ mutable_bitField0_ |= 0x00000008;
+ }
+ tableList_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.PARSER, extensionRegistry));
+ break;
+ }
+ case 40: {
+ bitField0_ |= 0x00000008;
+ startTs_ = input.readUInt64();
+ break;
+ }
+ case 48: {
+ bitField0_ |= 0x00000010;
+ completeTs_ = input.readUInt64();
+ break;
+ }
+ case 58: {
+ if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
+ ancestors_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage>();
+ mutable_bitField0_ |= 0x00000040;
+ }
+ ancestors_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.PARSER, extensionRegistry));
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
+ tableList_ = java.util.Collections.unmodifiableList(tableList_);
+ }
+ if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
+ ancestors_ = java.util.Collections.unmodifiableList(ancestors_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.apache.hadoop.hbase.protobuf.generated.BackupProtos.internal_static_hbase_pb_BackupImage_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.apache.hadoop.hbase.protobuf.generated.BackupProtos.internal_static_hbase_pb_BackupImage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.class, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder.class);
+ }
+
+ public static com.google.protobuf.Parser<BackupImage> PARSER =
+ new com.google.protobuf.AbstractParser<BackupImage>() {
+ public BackupImage parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new BackupImage(input, extensionRegistry);
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<BackupImage> getParserForType() {
+ return PARSER;
+ }
+
+ private int bitField0_;
+ // required string backup_id = 1;
+ public static final int BACKUP_ID_FIELD_NUMBER = 1;
+ private java.lang.Object backupId_;
+ /**
+ * <code>required string backup_id = 1;</code>
+ */
+ public boolean hasBackupId() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>required string backup_id = 1;</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>required string backup_id = 1;</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;
+ }
+ }
+
+ // required .hbase.pb.BackupType backup_type = 2;
+ public static final int BACKUP_TYPE_FIELD_NUMBER = 2;
+ private org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType backupType_;
+ /**
+ * <code>required .hbase.pb.BackupType backup_type = 2;</code>
+ */
+ public boolean hasBackupType() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * <code>required .hbase.pb.BackupType backup_type = 2;</code>
+ */
+ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getBackupType() {
+ return backupType_;
+ }
+
+ // required string root_dir = 3;
+ public static final int ROOT_DIR_FIELD_NUMBER = 3;
+ private java.lang.Object rootDir_;
+ /**
+ * <code>required string root_dir = 3;</code>
+ */
+ public boolean hasRootDir() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * <code>required string root_dir = 3;</code>
+ */
+ public java.lang.String getRootDir() {
+ java.lang.Object ref = rootDir_;
+ 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()) {
+ rootDir_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * <code>required string root_dir = 3;</code>
+ */
+ public com.google.protobuf.ByteString
+ getRootDirBytes() {
+ java.lang.Object ref = rootDir_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ rootDir_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ // repeated .hbase.pb.TableName table_list = 4;
+ public static final int TABLE_LIST_FIELD_NUMBER = 4;
+ private java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName> tableList_;
+ /**
+ * <code>repeated .hbase.pb.TableName table_list = 4;</code>
+ */
+ public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName> getTableListList() {
+ return tableList_;
+ }
+ /**
+ * <code>repeated .hbase.pb.TableName table_list = 4;</code>
+ */
+ public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>
+ getTableListOrBuilderList() {
+ return tableList_;
+ }
+ /**
+ * <code>repeated .hbase.pb.TableName table_list = 4;</code>
+ */
+ public int getTableListCount() {
+ return tableList_.size();
+ }
+ /**
+ * <code>repeated .hbase.pb.TableName table_list = 4;</code>
+ */
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableList(int index) {
+ return tableList_.get(index);
+ }
+ /**
+ * <code>repeated .hbase.pb.TableName table_list = 4;</code>
+ */
<TRUNCATED>