diff --git hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/BackupProtos.java hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/BackupProtos.java index c5220cc..93dd0da 100644 --- hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/BackupProtos.java +++ hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/BackupProtos.java @@ -10,1884 +10,110 @@ public final class BackupProtos { } /** * Protobuf enum {@code hbase.pb.BackupType} - * - *
- *enum FullTableBackupState {
- *PRE_SNAPSHOT_TABLE = 1;
- *SNAPSHOT_TABLES = 2;
- *SNAPSHOT_COPY = 3;
- *BACKUP_COMPLETE = 4;
- *}
- *
- *enum IncrementalTableBackupState {
- *PREPARE_INCREMENTAL = 1;
- *INCREMENTAL_COPY = 2;
- *INCR_BACKUP_COMPLETE = 3;
- *}
- *
- *message SnapshotTableStateData {
- *required TableName table = 1;
- *required string snapshotName = 2;
- *}
- *
- */
- public enum BackupType
- implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * FULL = 0;
- */
- FULL(0, 0),
- /**
- * INCREMENTAL = 1;
- */
- INCREMENTAL(1, 1),
- ;
-
- /**
- * FULL = 0;
- */
- public static final int FULL_VALUE = 0;
- /**
- * INCREMENTAL = 1;
- */
- public static final int INCREMENTAL_VALUE = 1;
-
-
- public final int getNumber() { return value; }
-
- public static BackupType valueOf(int value) {
- switch (value) {
- case 0: return FULL;
- case 1: return INCREMENTAL;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMaprequired string backup_id = 1;
- */
- boolean hasBackupId();
- /**
- * required string backup_id = 1;
- */
- java.lang.String getBackupId();
- /**
- * required string backup_id = 1;
- */
- com.google.protobuf.ByteString
- getBackupIdBytes();
-
- // required .hbase.pb.BackupType backup_type = 2;
- /**
- * required .hbase.pb.BackupType backup_type = 2;
- */
- boolean hasBackupType();
- /**
- * required .hbase.pb.BackupType backup_type = 2;
- */
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getBackupType();
-
- // required string root_dir = 3;
- /**
- * required string root_dir = 3;
- */
- boolean hasRootDir();
- /**
- * required string root_dir = 3;
- */
- java.lang.String getRootDir();
- /**
- * required string root_dir = 3;
- */
- com.google.protobuf.ByteString
- getRootDirBytes();
-
- // repeated .hbase.pb.TableName table_list = 4;
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- java.util.Listrepeated .hbase.pb.TableName table_list = 4;
- */
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableList(int index);
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- int getTableListCount();
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- java.util.List extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>
- getTableListOrBuilderList();
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableListOrBuilder(
- int index);
-
- // required uint64 start_ts = 5;
- /**
- * required uint64 start_ts = 5;
- */
- boolean hasStartTs();
- /**
- * required uint64 start_ts = 5;
- */
- long getStartTs();
-
- // required uint64 complete_ts = 6;
- /**
- * required uint64 complete_ts = 6;
- */
- boolean hasCompleteTs();
- /**
- * required uint64 complete_ts = 6;
- */
- long getCompleteTs();
-
- // repeated .hbase.pb.BackupImage ancestors = 7;
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- java.util.Listrepeated .hbase.pb.BackupImage ancestors = 7;
- */
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage getAncestors(int index);
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- int getAncestorsCount();
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder>
- getAncestorsOrBuilderList();
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- 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.ArrayListrequired string backup_id = 1;
- */
- public boolean hasBackupId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required string backup_id = 1;
- */
- 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;
- }
- }
- /**
- * required string backup_id = 1;
- */
- 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_;
- /**
- * required .hbase.pb.BackupType backup_type = 2;
- */
- public boolean hasBackupType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required .hbase.pb.BackupType backup_type = 2;
- */
- 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_;
- /**
- * required string root_dir = 3;
- */
- public boolean hasRootDir() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * required string root_dir = 3;
- */
- 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;
- }
- }
- /**
- * required string root_dir = 3;
- */
- 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.Listrepeated .hbase.pb.TableName table_list = 4;
- */
- public java.util.Listrepeated .hbase.pb.TableName table_list = 4;
- */
- public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>
- getTableListOrBuilderList() {
- return tableList_;
- }
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- public int getTableListCount() {
- return tableList_.size();
- }
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableList(int index) {
- return tableList_.get(index);
- }
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- 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_;
- /**
- * required uint64 start_ts = 5;
- */
- public boolean hasStartTs() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * required uint64 start_ts = 5;
- */
- public long getStartTs() {
- return startTs_;
- }
-
- // required uint64 complete_ts = 6;
- public static final int COMPLETE_TS_FIELD_NUMBER = 6;
- private long completeTs_;
- /**
- * required uint64 complete_ts = 6;
- */
- public boolean hasCompleteTs() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * required uint64 complete_ts = 6;
- */
- public long getCompleteTs() {
- return completeTs_;
- }
-
- // repeated .hbase.pb.BackupImage ancestors = 7;
- public static final int ANCESTORS_FIELD_NUMBER = 7;
- private java.util.Listrepeated .hbase.pb.BackupImage ancestors = 7;
- */
- public java.util.Listrepeated .hbase.pb.BackupImage ancestors = 7;
- */
- public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder>
- getAncestorsOrBuilderList() {
- return ancestors_;
- }
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- public int getAncestorsCount() {
- return ancestors_.size();
- }
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage getAncestors(int index) {
- return ancestors_.get(index);
- }
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- 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();
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized != -1) return isInitialized == 1;
-
- if (!hasBackupId()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasBackupType()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasRootDir()) {
- 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());
- }
- 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));
- }
- 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
- .computeBytesSize(1, getBackupIdBytes());
- }
- 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));
- }
- 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.BackupProtos.BackupImage)) {
- return super.equals(obj);
- }
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage other = (org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage) 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 && (hasCompleteTs() == other.hasCompleteTs());
- if (hasCompleteTs()) {
- result = result && (getCompleteTs()
- == other.getCompleteTs());
- }
- result = result && getAncestorsList()
- .equals(other.getAncestorsList());
- 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 (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 (getAncestorsCount() > 0) {
- hash = (37 * hash) + ANCESTORS_FIELD_NUMBER;
- hash = (53 * hash) + getAncestorsList().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage 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(
- 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)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage 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)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage 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)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage 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(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage 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.BackupProtos.BackupImage 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.BackupImage}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builderrequired string backup_id = 1;
- */
- public boolean hasBackupId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required string backup_id = 1;
- */
- 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;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * required string backup_id = 1;
- */
- 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;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * required string backup_id = 1;
- */
- public Builder setBackupId(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- backupId_ = value;
- onChanged();
- return this;
- }
- /**
- * required string backup_id = 1;
- */
- public Builder clearBackupId() {
- bitField0_ = (bitField0_ & ~0x00000001);
- backupId_ = getDefaultInstance().getBackupId();
- onChanged();
- return this;
- }
- /**
- * required string backup_id = 1;
- */
- public Builder setBackupIdBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- backupId_ = value;
- onChanged();
- 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;
- /**
- * required .hbase.pb.BackupType backup_type = 2;
- */
- public boolean hasBackupType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required .hbase.pb.BackupType backup_type = 2;
- */
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getBackupType() {
- return backupType_;
- }
- /**
- * required .hbase.pb.BackupType backup_type = 2;
- */
- public Builder setBackupType(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- backupType_ = value;
- onChanged();
- return this;
- }
- /**
- * required .hbase.pb.BackupType backup_type = 2;
- */
- public Builder clearBackupType() {
- bitField0_ = (bitField0_ & ~0x00000002);
- backupType_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL;
- onChanged();
- return this;
- }
-
- // required string root_dir = 3;
- private java.lang.Object rootDir_ = "";
- /**
- * required string root_dir = 3;
- */
- public boolean hasRootDir() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * required string root_dir = 3;
- */
- public java.lang.String getRootDir() {
- java.lang.Object ref = rootDir_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- rootDir_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * required string root_dir = 3;
- */
- public com.google.protobuf.ByteString
- getRootDirBytes() {
- java.lang.Object ref = rootDir_;
- if (ref instanceof 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;
- }
- }
- /**
- * required string root_dir = 3;
- */
- public Builder setRootDir(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- rootDir_ = value;
- onChanged();
- return this;
- }
- /**
- * required string root_dir = 3;
- */
- public Builder clearRootDir() {
- bitField0_ = (bitField0_ & ~0x00000004);
- rootDir_ = getDefaultInstance().getRootDir();
- onChanged();
- return this;
- }
- /**
- * required string root_dir = 3;
- */
- public Builder setRootDirBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- rootDir_ = value;
- onChanged();
- return this;
- }
-
- // repeated .hbase.pb.TableName table_list = 4;
- private java.util.Listrepeated .hbase.pb.TableName table_list = 4;
- */
- public java.util.Listrepeated .hbase.pb.TableName table_list = 4;
- */
- public int getTableListCount() {
- if (tableListBuilder_ == null) {
- return tableList_.size();
- } else {
- return tableListBuilder_.getCount();
- }
- }
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableList(int index) {
- if (tableListBuilder_ == null) {
- return tableList_.get(index);
- } else {
- return tableListBuilder_.getMessage(index);
- }
- }
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- 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;
- }
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- 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;
- }
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- 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;
- }
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- 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;
- }
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- 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;
- }
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- 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;
- }
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- 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;
- }
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- public Builder clearTableList() {
- if (tableListBuilder_ == null) {
- tableList_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
- } else {
- tableListBuilder_.clear();
- }
- return this;
- }
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- public Builder removeTableList(int index) {
- if (tableListBuilder_ == null) {
- ensureTableListIsMutable();
- tableList_.remove(index);
- onChanged();
- } else {
- tableListBuilder_.remove(index);
- }
- return this;
- }
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder getTableListBuilder(
- int index) {
- return getTableListFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableListOrBuilder(
- int index) {
- if (tableListBuilder_ == null) {
- return tableList_.get(index); } else {
- return tableListBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- 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_);
- }
- }
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder addTableListBuilder() {
- return getTableListFieldBuilder().addBuilder(
- org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance());
- }
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- 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());
- }
- /**
- * repeated .hbase.pb.TableName table_list = 4;
- */
- public java.util.Listrequired uint64 start_ts = 5;
- */
- public boolean hasStartTs() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * required uint64 start_ts = 5;
- */
- public long getStartTs() {
- return startTs_;
- }
- /**
- * required uint64 start_ts = 5;
- */
- public Builder setStartTs(long value) {
- bitField0_ |= 0x00000010;
- startTs_ = value;
- onChanged();
- return this;
- }
- /**
- * required uint64 start_ts = 5;
- */
- public Builder clearStartTs() {
- bitField0_ = (bitField0_ & ~0x00000010);
- startTs_ = 0L;
- onChanged();
- return this;
- }
-
- // required uint64 complete_ts = 6;
- private long completeTs_ ;
- /**
- * required uint64 complete_ts = 6;
- */
- public boolean hasCompleteTs() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
- }
- /**
- * required uint64 complete_ts = 6;
- */
- public long getCompleteTs() {
- return completeTs_;
- }
- /**
- * required uint64 complete_ts = 6;
- */
- public Builder setCompleteTs(long value) {
- bitField0_ |= 0x00000020;
- completeTs_ = value;
- onChanged();
- return this;
- }
- /**
- * required uint64 complete_ts = 6;
- */
- public Builder clearCompleteTs() {
- bitField0_ = (bitField0_ & ~0x00000020);
- completeTs_ = 0L;
- onChanged();
- return this;
- }
-
- // repeated .hbase.pb.BackupImage ancestors = 7;
- private java.util.Listrepeated .hbase.pb.BackupImage ancestors = 7;
- */
- public java.util.Listrepeated .hbase.pb.BackupImage ancestors = 7;
- */
- public int getAncestorsCount() {
- if (ancestorsBuilder_ == null) {
- return ancestors_.size();
- } else {
- return ancestorsBuilder_.getCount();
- }
- }
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage getAncestors(int index) {
- if (ancestorsBuilder_ == null) {
- return ancestors_.get(index);
- } else {
- return ancestorsBuilder_.getMessage(index);
- }
- }
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- public Builder setAncestors(
- int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage value) {
- if (ancestorsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureAncestorsIsMutable();
- ancestors_.set(index, value);
- onChanged();
- } else {
- ancestorsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- public Builder setAncestors(
- int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder builderForValue) {
- if (ancestorsBuilder_ == null) {
- ensureAncestorsIsMutable();
- ancestors_.set(index, builderForValue.build());
- onChanged();
- } else {
- ancestorsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- public Builder addAncestors(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage value) {
- if (ancestorsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureAncestorsIsMutable();
- ancestors_.add(value);
- onChanged();
- } else {
- ancestorsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- public Builder addAncestors(
- int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage value) {
- if (ancestorsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureAncestorsIsMutable();
- ancestors_.add(index, value);
- onChanged();
- } else {
- ancestorsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- public Builder addAncestors(
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder builderForValue) {
- if (ancestorsBuilder_ == null) {
- ensureAncestorsIsMutable();
- ancestors_.add(builderForValue.build());
- onChanged();
- } else {
- ancestorsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- public Builder addAncestors(
- int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder builderForValue) {
- if (ancestorsBuilder_ == null) {
- ensureAncestorsIsMutable();
- ancestors_.add(index, builderForValue.build());
- onChanged();
- } else {
- ancestorsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- public Builder addAllAncestors(
- java.lang.Iterable extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage> values) {
- if (ancestorsBuilder_ == null) {
- ensureAncestorsIsMutable();
- super.addAll(values, ancestors_);
- onChanged();
- } else {
- ancestorsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- public Builder clearAncestors() {
- if (ancestorsBuilder_ == null) {
- ancestors_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000040);
- onChanged();
- } else {
- ancestorsBuilder_.clear();
- }
- return this;
- }
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- public Builder removeAncestors(int index) {
- if (ancestorsBuilder_ == null) {
- ensureAncestorsIsMutable();
- ancestors_.remove(index);
- onChanged();
- } else {
- ancestorsBuilder_.remove(index);
- }
- return this;
- }
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder getAncestorsBuilder(
- int index) {
- return getAncestorsFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder getAncestorsOrBuilder(
- int index) {
- if (ancestorsBuilder_ == null) {
- return ancestors_.get(index); } else {
- return ancestorsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder>
- getAncestorsOrBuilderList() {
- if (ancestorsBuilder_ != null) {
- return ancestorsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(ancestors_);
- }
- }
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder addAncestorsBuilder() {
- return getAncestorsFieldBuilder().addBuilder(
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.getDefaultInstance());
- }
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder addAncestorsBuilder(
- int index) {
- return getAncestorsFieldBuilder().addBuilder(
- index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.getDefaultInstance());
- }
- /**
- * repeated .hbase.pb.BackupImage ancestors = 7;
- */
- public java.util.ListFULL = 0;
+ */
+ FULL(0, 0),
+ /**
+ * INCREMENTAL = 1;
+ */
+ INCREMENTAL(1, 1),
+ ;
+
+ /**
+ * FULL = 0;
+ */
+ public static final int FULL_VALUE = 0;
+ /**
+ * INCREMENTAL = 1;
+ */
+ public static final int INCREMENTAL_VALUE = 1;
+
+
+ public final int getNumber() { return value; }
+
+ public static BackupType valueOf(int value) {
+ switch (value) {
+ case 0: return FULL;
+ case 1: return INCREMENTAL;
+ default: return null;
}
+ }
- // @@protoc_insertion_point(builder_scope:hbase.pb.BackupImage)
+ public static com.google.protobuf.Internal.EnumLiteMaprequired string server = 1;
+ * optional .hbase.pb.ServerName server = 1;
*/
boolean hasServer();
/**
- * required string server = 1;
+ * optional .hbase.pb.ServerName server = 1;
*/
- java.lang.String getServer();
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName getServer();
/**
- * required string server = 1;
+ * optional .hbase.pb.ServerName server = 1;
*/
- com.google.protobuf.ByteString
- getServerBytes();
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder getServerOrBuilder();
- // required uint64 timestamp = 2;
+ // optional uint64 timestamp = 2;
/**
- * required uint64 timestamp = 2;
+ * optional uint64 timestamp = 2;
*/
boolean hasTimestamp();
/**
- * required uint64 timestamp = 2;
+ * optional uint64 timestamp = 2;
*/
long getTimestamp();
}
@@ -1943,8 +169,16 @@ public final class BackupProtos {
break;
}
case 10: {
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ subBuilder = server_.toBuilder();
+ }
+ server_ = input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(server_);
+ server_ = subBuilder.buildPartial();
+ }
bitField0_ |= 0x00000001;
- server_ = input.readBytes();
break;
}
case 16: {
@@ -1992,67 +226,46 @@ public final class BackupProtos {
}
private int bitField0_;
- // required string server = 1;
+ // optional .hbase.pb.ServerName server = 1;
public static final int SERVER_FIELD_NUMBER = 1;
- private java.lang.Object server_;
+ private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName server_;
/**
- * required string server = 1;
+ * optional .hbase.pb.ServerName server = 1;
*/
public boolean hasServer() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * required string server = 1;
+ * optional .hbase.pb.ServerName server = 1;
*/
- public java.lang.String getServer() {
- java.lang.Object ref = server_;
- 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()) {
- server_ = s;
- }
- return s;
- }
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName getServer() {
+ return server_;
}
/**
- * required string server = 1;
+ * optional .hbase.pb.ServerName server = 1;
*/
- public com.google.protobuf.ByteString
- getServerBytes() {
- java.lang.Object ref = server_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- server_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder getServerOrBuilder() {
+ return server_;
}
- // required uint64 timestamp = 2;
+ // optional uint64 timestamp = 2;
public static final int TIMESTAMP_FIELD_NUMBER = 2;
private long timestamp_;
/**
- * required uint64 timestamp = 2;
+ * optional uint64 timestamp = 2;
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * required uint64 timestamp = 2;
+ * optional uint64 timestamp = 2;
*/
public long getTimestamp() {
return timestamp_;
}
private void initFields() {
- server_ = "";
+ server_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.getDefaultInstance();
timestamp_ = 0L;
}
private byte memoizedIsInitialized = -1;
@@ -2060,13 +273,11 @@ public final class BackupProtos {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
- if (!hasServer()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasTimestamp()) {
- memoizedIsInitialized = 0;
- return false;
+ if (hasServer()) {
+ if (!getServer().isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
}
memoizedIsInitialized = 1;
return true;
@@ -2076,7 +287,7 @@ public final class BackupProtos {
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getServerBytes());
+ output.writeMessage(1, server_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt64(2, timestamp_);
@@ -2092,7 +303,7 @@ public final class BackupProtos {
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getServerBytes());
+ .computeMessageSize(1, server_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
@@ -2253,6 +464,7 @@ public final class BackupProtos {
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getServerFieldBuilder();
}
}
private static Builder create() {
@@ -2261,7 +473,11 @@ public final class BackupProtos {
public Builder clear() {
super.clear();
- server_ = "";
+ if (serverBuilder_ == null) {
+ server_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.getDefaultInstance();
+ } else {
+ serverBuilder_.clear();
+ }
bitField0_ = (bitField0_ & ~0x00000001);
timestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
@@ -2296,7 +512,11 @@ public final class BackupProtos {
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
- result.server_ = server_;
+ if (serverBuilder_ == null) {
+ result.server_ = server_;
+ } else {
+ result.server_ = serverBuilder_.build();
+ }
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
@@ -2318,9 +538,7 @@ public final class BackupProtos {
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.ServerTimestamp other) {
if (other == org.apache.hadoop.hbase.protobuf.generated.BackupProtos.ServerTimestamp.getDefaultInstance()) return this;
if (other.hasServer()) {
- bitField0_ |= 0x00000001;
- server_ = other.server_;
- onChanged();
+ mergeServer(other.getServer());
}
if (other.hasTimestamp()) {
setTimestamp(other.getTimestamp());
@@ -2330,13 +548,11 @@ public final class BackupProtos {
}
public final boolean isInitialized() {
- if (!hasServer()) {
-
- return false;
- }
- if (!hasTimestamp()) {
-
- return false;
+ if (hasServer()) {
+ if (!getServer().isInitialized()) {
+
+ return false;
+ }
}
return true;
}
@@ -2360,96 +576,139 @@ public final class BackupProtos {
}
private int bitField0_;
- // required string server = 1;
- private java.lang.Object server_ = "";
+ // optional .hbase.pb.ServerName server = 1;
+ private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName server_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.getDefaultInstance();
+ private com.google.protobuf.SingleFieldBuilder<
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder> serverBuilder_;
/**
- * required string server = 1;
+ * optional .hbase.pb.ServerName server = 1;
*/
public boolean hasServer() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * required string server = 1;
+ * optional .hbase.pb.ServerName server = 1;
*/
- public java.lang.String getServer() {
- java.lang.Object ref = server_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- server_ = s;
- return s;
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName getServer() {
+ if (serverBuilder_ == null) {
+ return server_;
} else {
- return (java.lang.String) ref;
+ return serverBuilder_.getMessage();
}
}
/**
- * required string server = 1;
+ * optional .hbase.pb.ServerName server = 1;
*/
- public com.google.protobuf.ByteString
- getServerBytes() {
- java.lang.Object ref = server_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- server_ = b;
- return b;
+ public Builder setServer(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName value) {
+ if (serverBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ server_ = value;
+ onChanged();
} else {
- return (com.google.protobuf.ByteString) ref;
+ serverBuilder_.setMessage(value);
}
+ bitField0_ |= 0x00000001;
+ return this;
}
/**
- * required string server = 1;
+ * optional .hbase.pb.ServerName server = 1;
*/
public Builder setServer(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- server_ = value;
- onChanged();
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder builderForValue) {
+ if (serverBuilder_ == null) {
+ server_ = builderForValue.build();
+ onChanged();
+ } else {
+ serverBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * optional .hbase.pb.ServerName server = 1;
+ */
+ public Builder mergeServer(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName value) {
+ if (serverBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ server_ != org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.getDefaultInstance()) {
+ server_ =
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.newBuilder(server_).mergeFrom(value).buildPartial();
+ } else {
+ server_ = value;
+ }
+ onChanged();
+ } else {
+ serverBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ * optional .hbase.pb.ServerName server = 1;
+ */
+ public Builder clearServer() {
+ if (serverBuilder_ == null) {
+ server_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.getDefaultInstance();
+ onChanged();
+ } else {
+ serverBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
- * required string server = 1;
+ * optional .hbase.pb.ServerName server = 1;
*/
- public Builder clearServer() {
- bitField0_ = (bitField0_ & ~0x00000001);
- server_ = getDefaultInstance().getServer();
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder getServerBuilder() {
+ bitField0_ |= 0x00000001;
onChanged();
- return this;
+ return getServerFieldBuilder().getBuilder();
}
/**
- * required string server = 1;
+ * optional .hbase.pb.ServerName server = 1;
*/
- public Builder setServerBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- server_ = value;
- onChanged();
- return this;
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder getServerOrBuilder() {
+ if (serverBuilder_ != null) {
+ return serverBuilder_.getMessageOrBuilder();
+ } else {
+ return server_;
+ }
+ }
+ /**
+ * optional .hbase.pb.ServerName server = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder>
+ getServerFieldBuilder() {
+ if (serverBuilder_ == null) {
+ serverBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder>(
+ server_,
+ getParentForChildren(),
+ isClean());
+ server_ = null;
+ }
+ return serverBuilder_;
}
- // required uint64 timestamp = 2;
+ // optional uint64 timestamp = 2;
private long timestamp_ ;
/**
- * required uint64 timestamp = 2;
+ * optional uint64 timestamp = 2;
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * required uint64 timestamp = 2;
+ * optional uint64 timestamp = 2;
*/
public long getTimestamp() {
return timestamp_;
}
/**
- * required uint64 timestamp = 2;
+ * optional uint64 timestamp = 2;
*/
public Builder setTimestamp(long value) {
bitField0_ |= 0x00000002;
@@ -2458,7 +717,7 @@ public final class BackupProtos {
return this;
}
/**
- * required uint64 timestamp = 2;
+ * optional uint64 timestamp = 2;
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -2481,17 +740,17 @@ public final class BackupProtos {
public interface TableServerTimestampOrBuilder
extends com.google.protobuf.MessageOrBuilder {
- // required .hbase.pb.TableName table = 1;
+ // optional .hbase.pb.TableName table = 1;
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
boolean hasTable();
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTable();
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableOrBuilder();
@@ -2635,23 +894,23 @@ public final class BackupProtos {
}
private int bitField0_;
- // required .hbase.pb.TableName table = 1;
+ // optional .hbase.pb.TableName table = 1;
public static final int TABLE_FIELD_NUMBER = 1;
private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName table_;
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public boolean hasTable() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTable() {
return table_;
}
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableOrBuilder() {
return table_;
@@ -2702,13 +961,11 @@ public final class BackupProtos {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
- if (!hasTable()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!getTable().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
+ if (hasTable()) {
+ if (!getTable().isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
}
for (int i = 0; i < getServerTimestampCount(); i++) {
if (!getServerTimestamp(i).isInitialized()) {
@@ -3015,13 +1272,11 @@ public final class BackupProtos {
}
public final boolean isInitialized() {
- if (!hasTable()) {
-
- return false;
- }
- if (!getTable().isInitialized()) {
-
- return false;
+ if (hasTable()) {
+ if (!getTable().isInitialized()) {
+
+ return false;
+ }
}
for (int i = 0; i < getServerTimestampCount(); i++) {
if (!getServerTimestamp(i).isInitialized()) {
@@ -3051,18 +1306,18 @@ public final class BackupProtos {
}
private int bitField0_;
- // required .hbase.pb.TableName table = 1;
+ // optional .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_;
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public boolean hasTable() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTable() {
if (tableBuilder_ == null) {
@@ -3072,7 +1327,7 @@ public final class BackupProtos {
}
}
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public Builder setTable(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) {
if (tableBuilder_ == null) {
@@ -3088,7 +1343,7 @@ public final class BackupProtos {
return this;
}
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public Builder setTable(
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder builderForValue) {
@@ -3102,7 +1357,7 @@ public final class BackupProtos {
return this;
}
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public Builder mergeTable(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) {
if (tableBuilder_ == null) {
@@ -3121,7 +1376,7 @@ public final class BackupProtos {
return this;
}
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public Builder clearTable() {
if (tableBuilder_ == null) {
@@ -3134,7 +1389,7 @@ public final class BackupProtos {
return this;
}
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder getTableBuilder() {
bitField0_ |= 0x00000001;
@@ -3142,7 +1397,7 @@ public final class BackupProtos {
return getTableFieldBuilder().getBuilder();
}
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableOrBuilder() {
if (tableBuilder_ != null) {
@@ -3152,7 +1407,7 @@ public final class BackupProtos {
}
}
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>
@@ -3419,48 +1674,48 @@ public final class BackupProtos {
// @@protoc_insertion_point(class_scope:hbase.pb.TableServerTimestamp)
}
- public interface BackupManifestOrBuilder
+ public interface BackupImageOrBuilder
extends com.google.protobuf.MessageOrBuilder {
- // required string version = 1;
+ // optional string backup_id = 1;
/**
- * required string version = 1;
+ * optional string backup_id = 1;
*/
- boolean hasVersion();
+ boolean hasBackupId();
/**
- * required string version = 1;
+ * optional string backup_id = 1;
*/
- java.lang.String getVersion();
+ java.lang.String getBackupId();
/**
- * required string version = 1;
+ * optional string backup_id = 1;
*/
com.google.protobuf.ByteString
- getVersionBytes();
+ getBackupIdBytes();
- // required string backup_id = 2;
+ // optional .hbase.pb.BackupType backup_type = 2;
/**
- * required string backup_id = 2;
+ * optional .hbase.pb.BackupType backup_type = 2;
*/
- boolean hasBackupId();
+ boolean hasBackupType();
/**
- * required string backup_id = 2;
+ * optional .hbase.pb.BackupType backup_type = 2;
*/
- java.lang.String getBackupId();
+ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getBackupType();
+
+ // optional string root_dir = 3;
/**
- * required string backup_id = 2;
+ * optional string root_dir = 3;
*/
- com.google.protobuf.ByteString
- getBackupIdBytes();
-
- // required .hbase.pb.BackupType type = 3;
+ boolean hasRootDir();
/**
- * required .hbase.pb.BackupType type = 3;
+ * optional string root_dir = 3;
*/
- boolean hasType();
+ java.lang.String getRootDir();
/**
- * required .hbase.pb.BackupType type = 3;
+ * optional string root_dir = 3;
*/
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getType();
+ com.google.protobuf.ByteString
+ getRootDirBytes();
// repeated .hbase.pb.TableName table_list = 4;
/**
@@ -3487,95 +1742,95 @@ public final class BackupProtos {
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableListOrBuilder(
int index);
- // required uint64 start_ts = 5;
+ // optional uint64 start_ts = 5;
/**
- * required uint64 start_ts = 5;
+ * optional uint64 start_ts = 5;
*/
boolean hasStartTs();
/**
- * required uint64 start_ts = 5;
+ * optional uint64 start_ts = 5;
*/
long getStartTs();
- // required uint64 complete_ts = 6;
+ // optional uint64 complete_ts = 6;
/**
- * required uint64 complete_ts = 6;
+ * optional uint64 complete_ts = 6;
*/
boolean hasCompleteTs();
/**
- * required uint64 complete_ts = 6;
+ * optional uint64 complete_ts = 6;
*/
long getCompleteTs();
- // repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ // repeated .hbase.pb.BackupImage ancestors = 7;
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.BackupImage ancestors = 7;
*/
- java.util.Listrepeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.BackupImage ancestors = 7;
*/
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp getTstMap(int index);
+ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage getAncestors(int index);
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.BackupImage ancestors = 7;
*/
- int getTstMapCount();
+ int getAncestorsCount();
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.BackupImage ancestors = 7;
*/
- java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder>
- getTstMapOrBuilderList();
+ java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder>
+ getAncestorsOrBuilderList();
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.BackupImage ancestors = 7;
*/
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder getTstMapOrBuilder(
+ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder getAncestorsOrBuilder(
int index);
- // repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ // repeated .hbase.pb.TableServerTimestamp tst_map = 8;
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
- java.util.Listrepeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage getDependentBackupImage(int index);
+ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp getTstMap(int index);
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
- int getDependentBackupImageCount();
+ int getTstMapCount();
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
- java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder>
- getDependentBackupImageOrBuilderList();
+ java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder>
+ getTstMapOrBuilderList();
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder getDependentBackupImageOrBuilder(
+ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder getTstMapOrBuilder(
int index);
}
/**
- * Protobuf type {@code hbase.pb.BackupManifest}
+ * Protobuf type {@code hbase.pb.BackupImage}
*/
- public static final class BackupManifest extends
+ public static final class BackupImage extends
com.google.protobuf.GeneratedMessage
- implements BackupManifestOrBuilder {
- // Use BackupManifest.newBuilder() to construct.
- private BackupManifest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ implements BackupImageOrBuilder {
+ // Use BackupImage.newBuilder() to construct.
+ private BackupImage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
- private BackupManifest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+ private BackupImage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
- private static final BackupManifest defaultInstance;
- public static BackupManifest getDefaultInstance() {
+ private static final BackupImage defaultInstance;
+ public static BackupImage getDefaultInstance() {
return defaultInstance;
}
- public BackupManifest getDefaultInstanceForType() {
+ public BackupImage getDefaultInstanceForType() {
return defaultInstance;
}
@@ -3585,7 +1840,7 @@ public final class BackupProtos {
getUnknownFields() {
return this.unknownFields;
}
- private BackupManifest(
+ private BackupImage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -3610,25 +1865,25 @@ public final class BackupProtos {
}
case 10: {
bitField0_ |= 0x00000001;
- version_ = input.readBytes();
- break;
- }
- case 18: {
- bitField0_ |= 0x00000002;
backupId_ = input.readBytes();
break;
}
- case 24: {
+ 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(3, rawValue);
+ unknownFields.mergeVarintField(2, rawValue);
} else {
- bitField0_ |= 0x00000004;
- type_ = value;
+ bitField0_ |= 0x00000002;
+ backupType_ = value;
}
break;
}
+ case 26: {
+ bitField0_ |= 0x00000004;
+ rootDir_ = input.readBytes();
+ break;
+ }
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
tableList_ = new java.util.ArrayListrequired string version = 1;
+ * optional string backup_id = 1;
*/
- public boolean hasVersion() {
+ public boolean hasBackupId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * required string version = 1;
+ * optional string backup_id = 1;
*/
- public java.lang.String getVersion() {
- java.lang.Object ref = version_;
+ public java.lang.String getBackupId() {
+ java.lang.Object ref = backupId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
@@ -3733,42 +1988,58 @@ public final class BackupProtos {
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
- version_ = s;
+ backupId_ = s;
}
return s;
}
}
/**
- * required string version = 1;
+ * optional string backup_id = 1;
*/
public com.google.protobuf.ByteString
- getVersionBytes() {
- java.lang.Object ref = version_;
+ 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);
- version_ = b;
+ backupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
- // required string backup_id = 2;
- public static final int BACKUP_ID_FIELD_NUMBER = 2;
- private java.lang.Object backupId_;
+ // optional .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 backup_id = 2;
+ * optional .hbase.pb.BackupType backup_type = 2;
*/
- public boolean hasBackupId() {
+ public boolean hasBackupType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * required string backup_id = 2;
+ * optional .hbase.pb.BackupType backup_type = 2;
*/
- public java.lang.String getBackupId() {
- java.lang.Object ref = backupId_;
+ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getBackupType() {
+ return backupType_;
+ }
+
+ // optional string root_dir = 3;
+ public static final int ROOT_DIR_FIELD_NUMBER = 3;
+ private java.lang.Object rootDir_;
+ /**
+ * optional string root_dir = 3;
+ */
+ public boolean hasRootDir() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * optional string root_dir = 3;
+ */
+ public java.lang.String getRootDir() {
+ java.lang.Object ref = rootDir_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
@@ -3776,44 +2047,28 @@ public final class BackupProtos {
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
- backupId_ = s;
+ rootDir_ = s;
}
return s;
}
}
/**
- * required string backup_id = 2;
+ * optional string root_dir = 3;
*/
public com.google.protobuf.ByteString
- getBackupIdBytes() {
- java.lang.Object ref = backupId_;
+ 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);
- backupId_ = b;
+ rootDir_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
- // required .hbase.pb.BackupType type = 3;
- public static final int TYPE_FIELD_NUMBER = 3;
- private org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType type_;
- /**
- * required .hbase.pb.BackupType type = 3;
- */
- public boolean hasType() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * required .hbase.pb.BackupType type = 3;
- */
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getType() {
- return type_;
- }
-
// repeated .hbase.pb.TableName table_list = 4;
public static final int TABLE_LIST_FIELD_NUMBER = 4;
private java.util.Listrequired uint64 start_ts = 5;
+ * optional uint64 start_ts = 5;
*/
public boolean hasStartTs() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * required uint64 start_ts = 5;
+ * optional uint64 start_ts = 5;
*/
public long getStartTs() {
return startTs_;
}
- // required uint64 complete_ts = 6;
+ // optional uint64 complete_ts = 6;
public static final int COMPLETE_TS_FIELD_NUMBER = 6;
private long completeTs_;
/**
- * required uint64 complete_ts = 6;
+ * optional uint64 complete_ts = 6;
*/
public boolean hasCompleteTs() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
- * required uint64 complete_ts = 6;
+ * optional uint64 complete_ts = 6;
*/
public long getCompleteTs() {
return completeTs_;
}
- // repeated .hbase.pb.TableServerTimestamp tst_map = 7;
- public static final int TST_MAP_FIELD_NUMBER = 7;
- private java.util.Listrepeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.BackupImage ancestors = 7;
*/
- public java.util.Listrepeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.BackupImage ancestors = 7;
*/
- public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder>
- getTstMapOrBuilderList() {
- return tstMap_;
+ public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder>
+ getAncestorsOrBuilderList() {
+ return ancestors_;
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.BackupImage ancestors = 7;
*/
- public int getTstMapCount() {
- return tstMap_.size();
+ public int getAncestorsCount() {
+ return ancestors_.size();
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.BackupImage ancestors = 7;
*/
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp getTstMap(int index) {
- return tstMap_.get(index);
+ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage getAncestors(int index) {
+ return ancestors_.get(index);
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.BackupImage ancestors = 7;
*/
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder getTstMapOrBuilder(
+ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder getAncestorsOrBuilder(
int index) {
- return tstMap_.get(index);
+ return ancestors_.get(index);
}
- // repeated .hbase.pb.BackupImage dependent_backup_image = 8;
- public static final int DEPENDENT_BACKUP_IMAGE_FIELD_NUMBER = 8;
- private java.util.Listrepeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
- public java.util.Listrepeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
- public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder>
- getDependentBackupImageOrBuilderList() {
- return dependentBackupImage_;
+ public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder>
+ getTstMapOrBuilderList() {
+ return tstMap_;
}
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
- public int getDependentBackupImageCount() {
- return dependentBackupImage_.size();
+ public int getTstMapCount() {
+ return tstMap_.size();
}
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage getDependentBackupImage(int index) {
- return dependentBackupImage_.get(index);
+ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp getTstMap(int index) {
+ return tstMap_.get(index);
}
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder getDependentBackupImageOrBuilder(
+ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder getTstMapOrBuilder(
int index) {
- return dependentBackupImage_.get(index);
+ return tstMap_.get(index);
}
private void initFields() {
- version_ = "";
backupId_ = "";
- type_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL;
+ 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();
tstMap_ = java.util.Collections.emptyList();
- dependentBackupImage_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
- if (!hasVersion()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasBackupId()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasType()) {
- 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 < getTstMapCount(); i++) {
- if (!getTstMap(i).isInitialized()) {
+ for (int i = 0; i < getAncestorsCount(); i++) {
+ if (!getAncestors(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
- for (int i = 0; i < getDependentBackupImageCount(); i++) {
- if (!getDependentBackupImage(i).isInitialized()) {
+ for (int i = 0; i < getTstMapCount(); i++) {
+ if (!getTstMap(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
@@ -4015,13 +2250,13 @@ public final class BackupProtos {
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getVersionBytes());
+ output.writeBytes(1, getBackupIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getBackupIdBytes());
+ output.writeEnum(2, backupType_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeEnum(3, type_.getNumber());
+ output.writeBytes(3, getRootDirBytes());
}
for (int i = 0; i < tableList_.size(); i++) {
output.writeMessage(4, tableList_.get(i));
@@ -4032,11 +2267,11 @@ public final class BackupProtos {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeUInt64(6, completeTs_);
}
- for (int i = 0; i < tstMap_.size(); i++) {
- output.writeMessage(7, tstMap_.get(i));
+ for (int i = 0; i < ancestors_.size(); i++) {
+ output.writeMessage(7, ancestors_.get(i));
}
- for (int i = 0; i < dependentBackupImage_.size(); i++) {
- output.writeMessage(8, dependentBackupImage_.get(i));
+ for (int i = 0; i < tstMap_.size(); i++) {
+ output.writeMessage(8, tstMap_.get(i));
}
getUnknownFields().writeTo(output);
}
@@ -4049,15 +2284,15 @@ public final class BackupProtos {
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getVersionBytes());
+ .computeBytesSize(1, getBackupIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getBackupIdBytes());
+ .computeEnumSize(2, backupType_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(3, type_.getNumber());
+ .computeBytesSize(3, getRootDirBytes());
}
for (int i = 0; i < tableList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
@@ -4071,13 +2306,13 @@ public final class BackupProtos {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, completeTs_);
}
- for (int i = 0; i < tstMap_.size(); i++) {
+ for (int i = 0; i < ancestors_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(7, tstMap_.get(i));
+ .computeMessageSize(7, ancestors_.get(i));
}
- for (int i = 0; i < dependentBackupImage_.size(); i++) {
+ for (int i = 0; i < tstMap_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(8, dependentBackupImage_.get(i));
+ .computeMessageSize(8, tstMap_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
@@ -4096,26 +2331,26 @@ public final class BackupProtos {
if (obj == this) {
return true;
}
- if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupManifest)) {
+ if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage)) {
return super.equals(obj);
}
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupManifest other = (org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupManifest) obj;
+ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage other = (org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage) obj;
boolean result = true;
- result = result && (hasVersion() == other.hasVersion());
- if (hasVersion()) {
- result = result && getVersion()
- .equals(other.getVersion());
- }
result = result && (hasBackupId() == other.hasBackupId());
if (hasBackupId()) {
result = result && getBackupId()
.equals(other.getBackupId());
}
- result = result && (hasType() == other.hasType());
- if (hasType()) {
+ result = result && (hasBackupType() == other.hasBackupType());
+ if (hasBackupType()) {
result = result &&
- (getType() == other.getType());
+ (getBackupType() == other.getBackupType());
+ }
+ result = result && (hasRootDir() == other.hasRootDir());
+ if (hasRootDir()) {
+ result = result && getRootDir()
+ .equals(other.getRootDir());
}
result = result && getTableListList()
.equals(other.getTableListList());
@@ -4129,10 +2364,10 @@ public final class BackupProtos {
result = result && (getCompleteTs()
== other.getCompleteTs());
}
+ result = result && getAncestorsList()
+ .equals(other.getAncestorsList());
result = result && getTstMapList()
.equals(other.getTstMapList());
- result = result && getDependentBackupImageList()
- .equals(other.getDependentBackupImageList());
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
@@ -4146,17 +2381,17 @@ public final class BackupProtos {
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
- if (hasVersion()) {
- hash = (37 * hash) + VERSION_FIELD_NUMBER;
- hash = (53 * hash) + getVersion().hashCode();
- }
if (hasBackupId()) {
hash = (37 * hash) + BACKUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getBackupId().hashCode();
}
- if (hasType()) {
- hash = (37 * hash) + TYPE_FIELD_NUMBER;
- hash = (53 * hash) + hashEnum(getType());
+ 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;
@@ -4170,66 +2405,66 @@ public final class BackupProtos {
hash = (37 * hash) + COMPLETE_TS_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getCompleteTs());
}
+ if (getAncestorsCount() > 0) {
+ hash = (37 * hash) + ANCESTORS_FIELD_NUMBER;
+ hash = (53 * hash) + getAncestorsList().hashCode();
+ }
if (getTstMapCount() > 0) {
hash = (37 * hash) + TST_MAP_FIELD_NUMBER;
hash = (53 * hash) + getTstMapList().hashCode();
}
- if (getDependentBackupImageCount() > 0) {
- hash = (37 * hash) + DEPENDENT_BACKUP_IMAGE_FIELD_NUMBER;
- hash = (53 * hash) + getDependentBackupImageList().hashCode();
- }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
- public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupManifest parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupManifest parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage 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.BackupManifest parseFrom(byte[] data)
+ public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupManifest parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage 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.BackupManifest parseFrom(java.io.InputStream input)
+ public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
- public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupManifest parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage 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.BackupManifest parseDelimitedFrom(java.io.InputStream input)
+ public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
- public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupManifest parseDelimitedFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage 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.BackupManifest parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
- public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupManifest parseFrom(
+ public static org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -4238,7 +2473,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.BackupManifest prototype) {
+ public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@@ -4250,24 +2485,24 @@ public final class BackupProtos {
return builder;
}
/**
- * Protobuf type {@code hbase.pb.BackupManifest}
+ * Protobuf type {@code hbase.pb.BackupImage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builderrequired string version = 1;
+ * optional string backup_id = 1;
*/
- public boolean hasVersion() {
+ public boolean hasBackupId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * required string version = 1;
+ * optional string backup_id = 1;
*/
- public java.lang.String getVersion() {
- java.lang.Object ref = version_;
+ 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();
- version_ = s;
+ backupId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
- * required string version = 1;
+ * optional string backup_id = 1;
*/
public com.google.protobuf.ByteString
- getVersionBytes() {
- java.lang.Object ref = version_;
+ getBackupIdBytes() {
+ java.lang.Object ref = backupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
- version_ = b;
+ backupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
- * required string version = 1;
+ * optional string backup_id = 1;
*/
- public Builder setVersion(
+ public Builder setBackupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
- version_ = value;
+ backupId_ = value;
onChanged();
return this;
}
/**
- * required string version = 1;
+ * optional string backup_id = 1;
*/
- public Builder clearVersion() {
+ public Builder clearBackupId() {
bitField0_ = (bitField0_ & ~0x00000001);
- version_ = getDefaultInstance().getVersion();
+ backupId_ = getDefaultInstance().getBackupId();
onChanged();
return this;
}
/**
- * required string version = 1;
+ * optional string backup_id = 1;
*/
- public Builder setVersionBytes(
+ public Builder setBackupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
- version_ = value;
+ backupId_ = value;
onChanged();
return this;
}
- // required string backup_id = 2;
- private java.lang.Object backupId_ = "";
+ // optional .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;
/**
- * required string backup_id = 2;
+ * optional .hbase.pb.BackupType backup_type = 2;
*/
- public boolean hasBackupId() {
+ public boolean hasBackupType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * required string backup_id = 2;
- */
- 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;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * required string backup_id = 2;
+ * optional .hbase.pb.BackupType backup_type = 2;
*/
- 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;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getBackupType() {
+ return backupType_;
}
/**
- * required string backup_id = 2;
+ * optional .hbase.pb.BackupType backup_type = 2;
*/
- public Builder setBackupId(
- java.lang.String value) {
+ public Builder setBackupType(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- backupId_ = value;
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ backupType_ = value;
onChanged();
return this;
}
/**
- * required string backup_id = 2;
+ * optional .hbase.pb.BackupType backup_type = 2;
*/
- public Builder clearBackupId() {
+ public Builder clearBackupType() {
bitField0_ = (bitField0_ & ~0x00000002);
- backupId_ = getDefaultInstance().getBackupId();
+ backupType_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL;
onChanged();
return this;
}
+
+ // optional string root_dir = 3;
+ private java.lang.Object rootDir_ = "";
/**
- * required string backup_id = 2;
+ * optional string root_dir = 3;
*/
- public Builder setBackupIdBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- backupId_ = value;
- onChanged();
- return this;
+ public boolean hasRootDir() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
}
-
- // required .hbase.pb.BackupType type = 3;
- private org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType type_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL;
/**
- * required .hbase.pb.BackupType type = 3;
+ * optional string root_dir = 3;
*/
- public boolean hasType() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ public java.lang.String getRootDir() {
+ java.lang.Object ref = rootDir_;
+ if (!(ref instanceof java.lang.String)) {
+ java.lang.String s = ((com.google.protobuf.ByteString) ref)
+ .toStringUtf8();
+ rootDir_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
}
/**
- * required .hbase.pb.BackupType type = 3;
+ * optional string root_dir = 3;
*/
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getType() {
- return type_;
+ public com.google.protobuf.ByteString
+ getRootDirBytes() {
+ java.lang.Object ref = rootDir_;
+ if (ref instanceof 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;
+ }
}
/**
- * required .hbase.pb.BackupType type = 3;
+ * optional string root_dir = 3;
*/
- public Builder setType(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType value) {
+ public Builder setRootDir(
+ java.lang.String value) {
if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- type_ = value;
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ rootDir_ = value;
onChanged();
return this;
}
/**
- * required .hbase.pb.BackupType type = 3;
+ * optional string root_dir = 3;
*/
- public Builder clearType() {
+ public Builder clearRootDir() {
bitField0_ = (bitField0_ & ~0x00000004);
- type_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL;
+ rootDir_ = getDefaultInstance().getRootDir();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string root_dir = 3;
+ */
+ public Builder setRootDirBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ rootDir_ = value;
onChanged();
return this;
}
@@ -4995,22 +3210,22 @@ public final class BackupProtos {
return tableListBuilder_;
}
- // required uint64 start_ts = 5;
+ // optional uint64 start_ts = 5;
private long startTs_ ;
/**
- * required uint64 start_ts = 5;
+ * optional uint64 start_ts = 5;
*/
public boolean hasStartTs() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
- * required uint64 start_ts = 5;
+ * optional uint64 start_ts = 5;
*/
public long getStartTs() {
return startTs_;
}
/**
- * required uint64 start_ts = 5;
+ * optional uint64 start_ts = 5;
*/
public Builder setStartTs(long value) {
bitField0_ |= 0x00000010;
@@ -5019,7 +3234,7 @@ public final class BackupProtos {
return this;
}
/**
- * required uint64 start_ts = 5;
+ * optional uint64 start_ts = 5;
*/
public Builder clearStartTs() {
bitField0_ = (bitField0_ & ~0x00000010);
@@ -5027,47 +3242,287 @@ public final class BackupProtos {
onChanged();
return this;
}
-
- // required uint64 complete_ts = 6;
- private long completeTs_ ;
+
+ // optional uint64 complete_ts = 6;
+ private long completeTs_ ;
+ /**
+ * optional uint64 complete_ts = 6;
+ */
+ public boolean hasCompleteTs() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * optional uint64 complete_ts = 6;
+ */
+ public long getCompleteTs() {
+ return completeTs_;
+ }
+ /**
+ * optional uint64 complete_ts = 6;
+ */
+ public Builder setCompleteTs(long value) {
+ bitField0_ |= 0x00000020;
+ completeTs_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional uint64 complete_ts = 6;
+ */
+ public Builder clearCompleteTs() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ completeTs_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ // repeated .hbase.pb.BackupImage ancestors = 7;
+ private java.util.Listrepeated .hbase.pb.BackupImage ancestors = 7;
+ */
+ public java.util.Listrepeated .hbase.pb.BackupImage ancestors = 7;
+ */
+ public int getAncestorsCount() {
+ if (ancestorsBuilder_ == null) {
+ return ancestors_.size();
+ } else {
+ return ancestorsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .hbase.pb.BackupImage ancestors = 7;
+ */
+ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage getAncestors(int index) {
+ if (ancestorsBuilder_ == null) {
+ return ancestors_.get(index);
+ } else {
+ return ancestorsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .hbase.pb.BackupImage ancestors = 7;
+ */
+ public Builder setAncestors(
+ int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage value) {
+ if (ancestorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAncestorsIsMutable();
+ ancestors_.set(index, value);
+ onChanged();
+ } else {
+ ancestorsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .hbase.pb.BackupImage ancestors = 7;
+ */
+ public Builder setAncestors(
+ int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder builderForValue) {
+ if (ancestorsBuilder_ == null) {
+ ensureAncestorsIsMutable();
+ ancestors_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ ancestorsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .hbase.pb.BackupImage ancestors = 7;
+ */
+ public Builder addAncestors(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage value) {
+ if (ancestorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAncestorsIsMutable();
+ ancestors_.add(value);
+ onChanged();
+ } else {
+ ancestorsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .hbase.pb.BackupImage ancestors = 7;
+ */
+ public Builder addAncestors(
+ int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage value) {
+ if (ancestorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAncestorsIsMutable();
+ ancestors_.add(index, value);
+ onChanged();
+ } else {
+ ancestorsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .hbase.pb.BackupImage ancestors = 7;
+ */
+ public Builder addAncestors(
+ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder builderForValue) {
+ if (ancestorsBuilder_ == null) {
+ ensureAncestorsIsMutable();
+ ancestors_.add(builderForValue.build());
+ onChanged();
+ } else {
+ ancestorsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .hbase.pb.BackupImage ancestors = 7;
+ */
+ public Builder addAncestors(
+ int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder builderForValue) {
+ if (ancestorsBuilder_ == null) {
+ ensureAncestorsIsMutable();
+ ancestors_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ ancestorsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .hbase.pb.BackupImage ancestors = 7;
+ */
+ public Builder addAllAncestors(
+ java.lang.Iterable extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage> values) {
+ if (ancestorsBuilder_ == null) {
+ ensureAncestorsIsMutable();
+ super.addAll(values, ancestors_);
+ onChanged();
+ } else {
+ ancestorsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .hbase.pb.BackupImage ancestors = 7;
+ */
+ public Builder clearAncestors() {
+ if (ancestorsBuilder_ == null) {
+ ancestors_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ } else {
+ ancestorsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .hbase.pb.BackupImage ancestors = 7;
+ */
+ public Builder removeAncestors(int index) {
+ if (ancestorsBuilder_ == null) {
+ ensureAncestorsIsMutable();
+ ancestors_.remove(index);
+ onChanged();
+ } else {
+ ancestorsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .hbase.pb.BackupImage ancestors = 7;
+ */
+ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder getAncestorsBuilder(
+ int index) {
+ return getAncestorsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .hbase.pb.BackupImage ancestors = 7;
+ */
+ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder getAncestorsOrBuilder(
+ int index) {
+ if (ancestorsBuilder_ == null) {
+ return ancestors_.get(index); } else {
+ return ancestorsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .hbase.pb.BackupImage ancestors = 7;
+ */
+ public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder>
+ getAncestorsOrBuilderList() {
+ if (ancestorsBuilder_ != null) {
+ return ancestorsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(ancestors_);
+ }
+ }
/**
- * required uint64 complete_ts = 6;
+ * repeated .hbase.pb.BackupImage ancestors = 7;
*/
- public boolean hasCompleteTs() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
+ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder addAncestorsBuilder() {
+ return getAncestorsFieldBuilder().addBuilder(
+ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.getDefaultInstance());
}
/**
- * required uint64 complete_ts = 6;
+ * repeated .hbase.pb.BackupImage ancestors = 7;
*/
- public long getCompleteTs() {
- return completeTs_;
+ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder addAncestorsBuilder(
+ int index) {
+ return getAncestorsFieldBuilder().addBuilder(
+ index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.getDefaultInstance());
}
/**
- * required uint64 complete_ts = 6;
+ * repeated .hbase.pb.BackupImage ancestors = 7;
*/
- public Builder setCompleteTs(long value) {
- bitField0_ |= 0x00000020;
- completeTs_ = value;
- onChanged();
- return this;
+ public java.util.Listrequired uint64 complete_ts = 6;
- */
- public Builder clearCompleteTs() {
- bitField0_ = (bitField0_ & ~0x00000020);
- completeTs_ = 0L;
- onChanged();
- return this;
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder>
+ getAncestorsFieldBuilder() {
+ if (ancestorsBuilder_ == null) {
+ ancestorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder>(
+ ancestors_,
+ ((bitField0_ & 0x00000040) == 0x00000040),
+ getParentForChildren(),
+ isClean());
+ ancestors_ = null;
+ }
+ return ancestorsBuilder_;
}
- // repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ // repeated .hbase.pb.TableServerTimestamp tst_map = 8;
private java.util.Listrepeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
public java.util.Listrepeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
public int getTstMapCount() {
if (tstMapBuilder_ == null) {
@@ -5095,7 +3550,7 @@ public final class BackupProtos {
}
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp getTstMap(int index) {
if (tstMapBuilder_ == null) {
@@ -5105,7 +3560,7 @@ public final class BackupProtos {
}
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
public Builder setTstMap(
int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp value) {
@@ -5122,7 +3577,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
public Builder setTstMap(
int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp.Builder builderForValue) {
@@ -5136,7 +3591,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
public Builder addTstMap(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp value) {
if (tstMapBuilder_ == null) {
@@ -5152,7 +3607,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
public Builder addTstMap(
int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp value) {
@@ -5169,7 +3624,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
public Builder addTstMap(
org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp.Builder builderForValue) {
@@ -5183,7 +3638,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
public Builder addTstMap(
int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp.Builder builderForValue) {
@@ -5197,7 +3652,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
public Builder addAllTstMap(
java.lang.Iterable extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp> values) {
@@ -5211,12 +3666,12 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
public Builder clearTstMap() {
if (tstMapBuilder_ == null) {
tstMap_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
tstMapBuilder_.clear();
@@ -5224,7 +3679,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
public Builder removeTstMap(int index) {
if (tstMapBuilder_ == null) {
@@ -5237,14 +3692,14 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp.Builder getTstMapBuilder(
int index) {
return getTstMapFieldBuilder().getBuilder(index);
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder getTstMapOrBuilder(
int index) {
@@ -5254,7 +3709,7 @@ public final class BackupProtos {
}
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder>
getTstMapOrBuilderList() {
@@ -5265,14 +3720,14 @@ public final class BackupProtos {
}
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp.Builder addTstMapBuilder() {
return getTstMapFieldBuilder().addBuilder(
org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp.getDefaultInstance());
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp.Builder addTstMapBuilder(
int index) {
@@ -5280,7 +3735,7 @@ public final class BackupProtos {
index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp.getDefaultInstance());
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 8;
*/
public java.util.Listrepeated .hbase.pb.BackupImage dependent_backup_image = 8;
- */
- public java.util.Listrepeated .hbase.pb.BackupImage dependent_backup_image = 8;
- */
- public int getDependentBackupImageCount() {
- if (dependentBackupImageBuilder_ == null) {
- return dependentBackupImage_.size();
- } else {
- return dependentBackupImageBuilder_.getCount();
- }
- }
- /**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
- */
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage getDependentBackupImage(int index) {
- if (dependentBackupImageBuilder_ == null) {
- return dependentBackupImage_.get(index);
- } else {
- return dependentBackupImageBuilder_.getMessage(index);
- }
- }
- /**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
- */
- public Builder setDependentBackupImage(
- int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage value) {
- if (dependentBackupImageBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDependentBackupImageIsMutable();
- dependentBackupImage_.set(index, value);
- onChanged();
- } else {
- dependentBackupImageBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
- */
- public Builder setDependentBackupImage(
- int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder builderForValue) {
- if (dependentBackupImageBuilder_ == null) {
- ensureDependentBackupImageIsMutable();
- dependentBackupImage_.set(index, builderForValue.build());
- onChanged();
- } else {
- dependentBackupImageBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
- */
- public Builder addDependentBackupImage(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage value) {
- if (dependentBackupImageBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDependentBackupImageIsMutable();
- dependentBackupImage_.add(value);
- onChanged();
- } else {
- dependentBackupImageBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
- */
- public Builder addDependentBackupImage(
- int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage value) {
- if (dependentBackupImageBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDependentBackupImageIsMutable();
- dependentBackupImage_.add(index, value);
- onChanged();
- } else {
- dependentBackupImageBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
- */
- public Builder addDependentBackupImage(
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder builderForValue) {
- if (dependentBackupImageBuilder_ == null) {
- ensureDependentBackupImageIsMutable();
- dependentBackupImage_.add(builderForValue.build());
- onChanged();
- } else {
- dependentBackupImageBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
- */
- public Builder addDependentBackupImage(
- int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder builderForValue) {
- if (dependentBackupImageBuilder_ == null) {
- ensureDependentBackupImageIsMutable();
- dependentBackupImage_.add(index, builderForValue.build());
- onChanged();
- } else {
- dependentBackupImageBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
- */
- public Builder addAllDependentBackupImage(
- java.lang.Iterable extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage> values) {
- if (dependentBackupImageBuilder_ == null) {
- ensureDependentBackupImageIsMutable();
- super.addAll(values, dependentBackupImage_);
- onChanged();
- } else {
- dependentBackupImageBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
- */
- public Builder clearDependentBackupImage() {
- if (dependentBackupImageBuilder_ == null) {
- dependentBackupImage_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000080);
- onChanged();
- } else {
- dependentBackupImageBuilder_.clear();
- }
- return this;
- }
- /**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
- */
- public Builder removeDependentBackupImage(int index) {
- if (dependentBackupImageBuilder_ == null) {
- ensureDependentBackupImageIsMutable();
- dependentBackupImage_.remove(index);
- onChanged();
- } else {
- dependentBackupImageBuilder_.remove(index);
- }
- return this;
- }
- /**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
- */
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder getDependentBackupImageBuilder(
- int index) {
- return getDependentBackupImageFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
- */
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder getDependentBackupImageOrBuilder(
- int index) {
- if (dependentBackupImageBuilder_ == null) {
- return dependentBackupImage_.get(index); } else {
- return dependentBackupImageBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
- */
- public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder>
- getDependentBackupImageOrBuilderList() {
- if (dependentBackupImageBuilder_ != null) {
- return dependentBackupImageBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(dependentBackupImage_);
- }
- }
- /**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
- */
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder addDependentBackupImageBuilder() {
- return getDependentBackupImageFieldBuilder().addBuilder(
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.getDefaultInstance());
- }
- /**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
- */
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder addDependentBackupImageBuilder(
- int index) {
- return getDependentBackupImageFieldBuilder().addBuilder(
- index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.getDefaultInstance());
- }
- /**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
- */
- public java.util.Listrequired .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
boolean hasTable();
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTable();
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableOrBuilder();
- // required string target_dir = 2;
+ // optional string target_dir = 2;
/**
- * required string target_dir = 2;
+ * optional string target_dir = 2;
*/
boolean hasTargetDir();
/**
- * required string target_dir = 2;
+ * optional string target_dir = 2;
*/
java.lang.String getTargetDir();
/**
- * required string target_dir = 2;
+ * optional string target_dir = 2;
*/
com.google.protobuf.ByteString
getTargetDirBytes();
@@ -5601,6 +3816,14 @@ public final class BackupProtos {
}
/**
* Protobuf type {@code hbase.pb.TableBackupStatus}
+ *
+ *
+ *
+ *message BackupManifest {
+ *repeated TableServerTimestamp tst_map = 1;
+ *repeated BackupImage dependent_backup_image = 2;
+ *}
+ *
*/
public static final class TableBackupStatus extends
com.google.protobuf.GeneratedMessage
@@ -5713,39 +3936,39 @@ public final class BackupProtos {
}
private int bitField0_;
- // required .hbase.pb.TableName table = 1;
+ // optional .hbase.pb.TableName table = 1;
public static final int TABLE_FIELD_NUMBER = 1;
private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName table_;
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public boolean hasTable() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTable() {
return table_;
}
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableOrBuilder() {
return table_;
}
- // required string target_dir = 2;
+ // optional string target_dir = 2;
public static final int TARGET_DIR_FIELD_NUMBER = 2;
private java.lang.Object targetDir_;
/**
- * required string target_dir = 2;
+ * optional string target_dir = 2;
*/
public boolean hasTargetDir() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * required string target_dir = 2;
+ * optional string target_dir = 2;
*/
public java.lang.String getTargetDir() {
java.lang.Object ref = targetDir_;
@@ -5762,7 +3985,7 @@ public final class BackupProtos {
}
}
/**
- * required string target_dir = 2;
+ * optional string target_dir = 2;
*/
public com.google.protobuf.ByteString
getTargetDirBytes() {
@@ -5831,17 +4054,11 @@ public final class BackupProtos {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
- if (!hasTable()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasTargetDir()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!getTable().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
+ if (hasTable()) {
+ if (!getTable().isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
}
memoizedIsInitialized = 1;
return true;
@@ -6016,6 +4233,14 @@ public final class BackupProtos {
}
/**
* Protobuf type {@code hbase.pb.TableBackupStatus}
+ *
+ *
+ *
+ *message BackupManifest {
+ *repeated TableServerTimestamp tst_map = 1;
+ *repeated BackupImage dependent_backup_image = 2;
+ *}
+ *
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builderrequired .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public boolean hasTable() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTable() {
if (tableBuilder_ == null) {
@@ -6196,7 +4415,7 @@ public final class BackupProtos {
}
}
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public Builder setTable(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) {
if (tableBuilder_ == null) {
@@ -6212,7 +4431,7 @@ public final class BackupProtos {
return this;
}
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public Builder setTable(
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder builderForValue) {
@@ -6226,7 +4445,7 @@ public final class BackupProtos {
return this;
}
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public Builder mergeTable(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) {
if (tableBuilder_ == null) {
@@ -6245,7 +4464,7 @@ public final class BackupProtos {
return this;
}
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public Builder clearTable() {
if (tableBuilder_ == null) {
@@ -6258,7 +4477,7 @@ public final class BackupProtos {
return this;
}
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder getTableBuilder() {
bitField0_ |= 0x00000001;
@@ -6266,7 +4485,7 @@ public final class BackupProtos {
return getTableFieldBuilder().getBuilder();
}
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableOrBuilder() {
if (tableBuilder_ != null) {
@@ -6276,7 +4495,7 @@ public final class BackupProtos {
}
}
/**
- * required .hbase.pb.TableName table = 1;
+ * optional .hbase.pb.TableName table = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>
@@ -6292,16 +4511,16 @@ public final class BackupProtos {
return tableBuilder_;
}
- // required string target_dir = 2;
+ // optional string target_dir = 2;
private java.lang.Object targetDir_ = "";
/**
- * required string target_dir = 2;
+ * optional string target_dir = 2;
*/
public boolean hasTargetDir() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * required string target_dir = 2;
+ * optional string target_dir = 2;
*/
public java.lang.String getTargetDir() {
java.lang.Object ref = targetDir_;
@@ -6315,7 +4534,7 @@ public final class BackupProtos {
}
}
/**
- * required string target_dir = 2;
+ * optional string target_dir = 2;
*/
public com.google.protobuf.ByteString
getTargetDirBytes() {
@@ -6331,7 +4550,7 @@ public final class BackupProtos {
}
}
/**
- * required string target_dir = 2;
+ * optional string target_dir = 2;
*/
public Builder setTargetDir(
java.lang.String value) {
@@ -6344,7 +4563,7 @@ public final class BackupProtos {
return this;
}
/**
- * required string target_dir = 2;
+ * optional string target_dir = 2;
*/
public Builder clearTargetDir() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -6353,7 +4572,7 @@ public final class BackupProtos {
return this;
}
/**
- * required string target_dir = 2;
+ * optional string target_dir = 2;
*/
public Builder setTargetDirBytes(
com.google.protobuf.ByteString value) {
@@ -6454,42 +4673,42 @@ public final class BackupProtos {
public interface BackupInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
- // required string backup_id = 1;
+ // optional string backup_id = 1;
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
boolean hasBackupId();
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
java.lang.String getBackupId();
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
com.google.protobuf.ByteString
getBackupIdBytes();
- // required .hbase.pb.BackupType type = 2;
+ // optional .hbase.pb.BackupType type = 2;
/**
- * required .hbase.pb.BackupType type = 2;
+ * optional .hbase.pb.BackupType type = 2;
*/
boolean hasType();
/**
- * required .hbase.pb.BackupType type = 2;
+ * optional .hbase.pb.BackupType type = 2;
*/
org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getType();
- // required string target_root_dir = 3;
+ // optional string target_root_dir = 3;
/**
- * required string target_root_dir = 3;
+ * optional string target_root_dir = 3;
*/
boolean hasTargetRootDir();
/**
- * required string target_root_dir = 3;
+ * optional string target_root_dir = 3;
*/
java.lang.String getTargetRootDir();
/**
- * required string target_root_dir = 3;
+ * optional string target_root_dir = 3;
*/
com.google.protobuf.ByteString
getTargetRootDirBytes();
@@ -6599,23 +4818,23 @@ public final class BackupProtos {
com.google.protobuf.ByteString
getJobIdBytes();
- // required uint32 workers_number = 12;
+ // optional uint32 workers_number = 12;
/**
- * required uint32 workers_number = 12;
+ * optional uint32 workers_number = 12;
*/
boolean hasWorkersNumber();
/**
- * required uint32 workers_number = 12;
+ * optional uint32 workers_number = 12;
*/
int getWorkersNumber();
- // required uint64 bandwidth = 13;
+ // optional uint64 bandwidth = 13;
/**
- * required uint64 bandwidth = 13;
+ * optional uint64 bandwidth = 13;
*/
boolean hasBandwidth();
/**
- * required uint64 bandwidth = 13;
+ * optional uint64 bandwidth = 13;
*/
long getBandwidth();
}
@@ -7026,17 +5245,17 @@ public final class BackupProtos {
}
private int bitField0_;
- // required string backup_id = 1;
+ // optional string backup_id = 1;
public static final int BACKUP_ID_FIELD_NUMBER = 1;
private java.lang.Object backupId_;
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
public boolean hasBackupId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
public java.lang.String getBackupId() {
java.lang.Object ref = backupId_;
@@ -7053,7 +5272,7 @@ public final class BackupProtos {
}
}
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
public com.google.protobuf.ByteString
getBackupIdBytes() {
@@ -7069,33 +5288,33 @@ public final class BackupProtos {
}
}
- // required .hbase.pb.BackupType type = 2;
+ // optional .hbase.pb.BackupType type = 2;
public static final int TYPE_FIELD_NUMBER = 2;
private org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType type_;
/**
- * required .hbase.pb.BackupType type = 2;
+ * optional .hbase.pb.BackupType type = 2;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * required .hbase.pb.BackupType type = 2;
+ * optional .hbase.pb.BackupType type = 2;
*/
public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getType() {
return type_;
}
- // required string target_root_dir = 3;
+ // optional string target_root_dir = 3;
public static final int TARGET_ROOT_DIR_FIELD_NUMBER = 3;
private java.lang.Object targetRootDir_;
/**
- * required string target_root_dir = 3;
+ * optional string target_root_dir = 3;
*/
public boolean hasTargetRootDir() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * required string target_root_dir = 3;
+ * optional string target_root_dir = 3;
*/
public java.lang.String getTargetRootDir() {
java.lang.Object ref = targetRootDir_;
@@ -7112,7 +5331,7 @@ public final class BackupProtos {
}
}
/**
- * required string target_root_dir = 3;
+ * optional string target_root_dir = 3;
*/
public com.google.protobuf.ByteString
getTargetRootDirBytes() {
@@ -7330,33 +5549,33 @@ public final class BackupProtos {
}
}
- // required uint32 workers_number = 12;
+ // optional uint32 workers_number = 12;
public static final int WORKERS_NUMBER_FIELD_NUMBER = 12;
private int workersNumber_;
/**
- * required uint32 workers_number = 12;
+ * optional uint32 workers_number = 12;
*/
public boolean hasWorkersNumber() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
- * required uint32 workers_number = 12;
+ * optional uint32 workers_number = 12;
*/
public int getWorkersNumber() {
return workersNumber_;
}
- // required uint64 bandwidth = 13;
+ // optional uint64 bandwidth = 13;
public static final int BANDWIDTH_FIELD_NUMBER = 13;
private long bandwidth_;
/**
- * required uint64 bandwidth = 13;
+ * optional uint64 bandwidth = 13;
*/
public boolean hasBandwidth() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
- * required uint64 bandwidth = 13;
+ * optional uint64 bandwidth = 13;
*/
public long getBandwidth() {
return bandwidth_;
@@ -7382,26 +5601,6 @@ public final class BackupProtos {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
- if (!hasBackupId()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasType()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasTargetRootDir()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasWorkersNumber()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasBandwidth()) {
- memoizedIsInitialized = 0;
- return false;
- }
for (int i = 0; i < getTableBackupStatusCount(); i++) {
if (!getTableBackupStatus(i).isInitialized()) {
memoizedIsInitialized = 0;
@@ -7981,26 +6180,6 @@ public final class BackupProtos {
}
public final boolean isInitialized() {
- if (!hasBackupId()) {
-
- return false;
- }
- if (!hasType()) {
-
- return false;
- }
- if (!hasTargetRootDir()) {
-
- return false;
- }
- if (!hasWorkersNumber()) {
-
- return false;
- }
- if (!hasBandwidth()) {
-
- return false;
- }
for (int i = 0; i < getTableBackupStatusCount(); i++) {
if (!getTableBackupStatus(i).isInitialized()) {
@@ -8029,16 +6208,16 @@ public final class BackupProtos {
}
private int bitField0_;
- // required string backup_id = 1;
+ // optional string backup_id = 1;
private java.lang.Object backupId_ = "";
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
public boolean hasBackupId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
public java.lang.String getBackupId() {
java.lang.Object ref = backupId_;
@@ -8052,7 +6231,7 @@ public final class BackupProtos {
}
}
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
public com.google.protobuf.ByteString
getBackupIdBytes() {
@@ -8068,7 +6247,7 @@ public final class BackupProtos {
}
}
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
public Builder setBackupId(
java.lang.String value) {
@@ -8081,7 +6260,7 @@ public final class BackupProtos {
return this;
}
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
public Builder clearBackupId() {
bitField0_ = (bitField0_ & ~0x00000001);
@@ -8090,7 +6269,7 @@ public final class BackupProtos {
return this;
}
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
public Builder setBackupIdBytes(
com.google.protobuf.ByteString value) {
@@ -8103,22 +6282,22 @@ public final class BackupProtos {
return this;
}
- // required .hbase.pb.BackupType type = 2;
+ // optional .hbase.pb.BackupType type = 2;
private org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType type_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL;
/**
- * required .hbase.pb.BackupType type = 2;
+ * optional .hbase.pb.BackupType type = 2;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * required .hbase.pb.BackupType type = 2;
+ * optional .hbase.pb.BackupType type = 2;
*/
public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getType() {
return type_;
}
/**
- * required .hbase.pb.BackupType type = 2;
+ * optional .hbase.pb.BackupType type = 2;
*/
public Builder setType(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType value) {
if (value == null) {
@@ -8130,7 +6309,7 @@ public final class BackupProtos {
return this;
}
/**
- * required .hbase.pb.BackupType type = 2;
+ * optional .hbase.pb.BackupType type = 2;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -8139,16 +6318,16 @@ public final class BackupProtos {
return this;
}
- // required string target_root_dir = 3;
+ // optional string target_root_dir = 3;
private java.lang.Object targetRootDir_ = "";
/**
- * required string target_root_dir = 3;
+ * optional string target_root_dir = 3;
*/
public boolean hasTargetRootDir() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * required string target_root_dir = 3;
+ * optional string target_root_dir = 3;
*/
public java.lang.String getTargetRootDir() {
java.lang.Object ref = targetRootDir_;
@@ -8162,7 +6341,7 @@ public final class BackupProtos {
}
}
/**
- * required string target_root_dir = 3;
+ * optional string target_root_dir = 3;
*/
public com.google.protobuf.ByteString
getTargetRootDirBytes() {
@@ -8178,7 +6357,7 @@ public final class BackupProtos {
}
}
/**
- * required string target_root_dir = 3;
+ * optional string target_root_dir = 3;
*/
public Builder setTargetRootDir(
java.lang.String value) {
@@ -8191,7 +6370,7 @@ public final class BackupProtos {
return this;
}
/**
- * required string target_root_dir = 3;
+ * optional string target_root_dir = 3;
*/
public Builder clearTargetRootDir() {
bitField0_ = (bitField0_ & ~0x00000004);
@@ -8200,7 +6379,7 @@ public final class BackupProtos {
return this;
}
/**
- * required string target_root_dir = 3;
+ * optional string target_root_dir = 3;
*/
public Builder setTargetRootDirBytes(
com.google.protobuf.ByteString value) {
@@ -8772,22 +6951,22 @@ public final class BackupProtos {
return this;
}
- // required uint32 workers_number = 12;
+ // optional uint32 workers_number = 12;
private int workersNumber_ ;
/**
- * required uint32 workers_number = 12;
+ * optional uint32 workers_number = 12;
*/
public boolean hasWorkersNumber() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
- * required uint32 workers_number = 12;
+ * optional uint32 workers_number = 12;
*/
public int getWorkersNumber() {
return workersNumber_;
}
/**
- * required uint32 workers_number = 12;
+ * optional uint32 workers_number = 12;
*/
public Builder setWorkersNumber(int value) {
bitField0_ |= 0x00000800;
@@ -8796,7 +6975,7 @@ public final class BackupProtos {
return this;
}
/**
- * required uint32 workers_number = 12;
+ * optional uint32 workers_number = 12;
*/
public Builder clearWorkersNumber() {
bitField0_ = (bitField0_ & ~0x00000800);
@@ -8805,22 +6984,22 @@ public final class BackupProtos {
return this;
}
- // required uint64 bandwidth = 13;
+ // optional uint64 bandwidth = 13;
private long bandwidth_ ;
/**
- * required uint64 bandwidth = 13;
+ * optional uint64 bandwidth = 13;
*/
public boolean hasBandwidth() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
- * required uint64 bandwidth = 13;
+ * optional uint64 bandwidth = 13;
*/
public long getBandwidth() {
return bandwidth_;
}
/**
- * required uint64 bandwidth = 13;
+ * optional uint64 bandwidth = 13;
*/
public Builder setBandwidth(long value) {
bitField0_ |= 0x00001000;
@@ -8829,7 +7008,7 @@ public final class BackupProtos {
return this;
}
/**
- * required uint64 bandwidth = 13;
+ * optional uint64 bandwidth = 13;
*/
public Builder clearBandwidth() {
bitField0_ = (bitField0_ & ~0x00001000);
@@ -8850,11 +7029,6 @@ public final class BackupProtos {
}
private static com.google.protobuf.Descriptors.Descriptor
- internal_static_hbase_pb_BackupImage_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_hbase_pb_BackupImage_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
internal_static_hbase_pb_ServerTimestamp_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -8865,10 +7039,10 @@ public final class BackupProtos {
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_hbase_pb_TableServerTimestamp_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
- internal_static_hbase_pb_BackupManifest_descriptor;
+ internal_static_hbase_pb_BackupImage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_hbase_pb_BackupManifest_fieldAccessorTable;
+ internal_static_hbase_pb_BackupImage_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_hbase_pb_TableBackupStatus_descriptor;
private static
@@ -8888,82 +7062,71 @@ public final class BackupProtos {
descriptor;
static {
java.lang.String[] descriptorData = {
- "\n\014Backup.proto\022\010hbase.pb\032\013HBase.proto\"\327\001" +
- "\n\013BackupImage\022\021\n\tbackup_id\030\001 \002(\t\022)\n\013back" +
- "up_type\030\002 \002(\0162\024.hbase.pb.BackupType\022\020\n\010r" +
- "oot_dir\030\003 \002(\t\022\'\n\ntable_list\030\004 \003(\0132\023.hbas" +
- "e.pb.TableName\022\020\n\010start_ts\030\005 \002(\004\022\023\n\013comp" +
- "lete_ts\030\006 \002(\004\022(\n\tancestors\030\007 \003(\0132\025.hbase" +
- ".pb.BackupImage\"4\n\017ServerTimestamp\022\016\n\006se" +
- "rver\030\001 \002(\t\022\021\n\ttimestamp\030\002 \002(\004\"o\n\024TableSe" +
- "rverTimestamp\022\"\n\005table\030\001 \002(\0132\023.hbase.pb." +
- "TableName\0223\n\020server_timestamp\030\002 \003(\0132\031.hb",
- "ase.pb.ServerTimestamp\"\220\002\n\016BackupManifes" +
- "t\022\017\n\007version\030\001 \002(\t\022\021\n\tbackup_id\030\002 \002(\t\022\"\n" +
- "\004type\030\003 \002(\0162\024.hbase.pb.BackupType\022\'\n\ntab" +
- "le_list\030\004 \003(\0132\023.hbase.pb.TableName\022\020\n\010st" +
- "art_ts\030\005 \002(\004\022\023\n\013complete_ts\030\006 \002(\004\022/\n\007tst" +
- "_map\030\007 \003(\0132\036.hbase.pb.TableServerTimesta" +
- "mp\0225\n\026dependent_backup_image\030\010 \003(\0132\025.hba" +
- "se.pb.BackupImage\"]\n\021TableBackupStatus\022\"" +
- "\n\005table\030\001 \002(\0132\023.hbase.pb.TableName\022\022\n\nta" +
- "rget_dir\030\002 \002(\t\022\020\n\010snapshot\030\003 \001(\t\"\320\004\n\nBac",
- "kupInfo\022\021\n\tbackup_id\030\001 \002(\t\022\"\n\004type\030\002 \002(\016" +
- "2\024.hbase.pb.BackupType\022\027\n\017target_root_di" +
- "r\030\003 \002(\t\022/\n\005state\030\004 \001(\0162 .hbase.pb.Backup" +
- "Info.BackupState\022/\n\005phase\030\005 \001(\0162 .hbase." +
- "pb.BackupInfo.BackupPhase\022\026\n\016failed_mess" +
- "age\030\006 \001(\t\0228\n\023table_backup_status\030\007 \003(\0132\033" +
- ".hbase.pb.TableBackupStatus\022\020\n\010start_ts\030" +
- "\010 \001(\004\022\016\n\006end_ts\030\t \001(\004\022\020\n\010progress\030\n \001(\r\022" +
- "\016\n\006job_id\030\013 \001(\t\022\026\n\016workers_number\030\014 \002(\r\022" +
- "\021\n\tbandwidth\030\r \002(\004\"P\n\013BackupState\022\013\n\007WAI",
- "TING\020\000\022\013\n\007RUNNING\020\001\022\014\n\010COMPLETE\020\002\022\n\n\006FAI" +
- "LED\020\003\022\r\n\tCANCELLED\020\004\"}\n\013BackupPhase\022\013\n\007R" +
- "EQUEST\020\000\022\014\n\010SNAPSHOT\020\001\022\027\n\023PREPARE_INCREM" +
- "ENTAL\020\002\022\020\n\014SNAPSHOTCOPY\020\003\022\024\n\020INCREMENTAL" +
- "_COPY\020\004\022\022\n\016STORE_MANIFEST\020\005*\'\n\nBackupTyp" +
- "e\022\010\n\004FULL\020\000\022\017\n\013INCREMENTAL\020\001BB\n*org.apac" +
- "he.hadoop.hbase.protobuf.generatedB\014Back" +
- "upProtosH\001\210\001\001\240\001\001"
+ "\n\014Backup.proto\022\010hbase.pb\032\013HBase.proto\"J\n" +
+ "\017ServerTimestamp\022$\n\006server\030\001 \001(\0132\024.hbase" +
+ ".pb.ServerName\022\021\n\ttimestamp\030\002 \001(\004\"o\n\024Tab" +
+ "leServerTimestamp\022\"\n\005table\030\001 \001(\0132\023.hbase" +
+ ".pb.TableName\0223\n\020server_timestamp\030\002 \003(\0132" +
+ "\031.hbase.pb.ServerTimestamp\"\210\002\n\013BackupIma" +
+ "ge\022\021\n\tbackup_id\030\001 \001(\t\022)\n\013backup_type\030\002 \001" +
+ "(\0162\024.hbase.pb.BackupType\022\020\n\010root_dir\030\003 \001" +
+ "(\t\022\'\n\ntable_list\030\004 \003(\0132\023.hbase.pb.TableN" +
+ "ame\022\020\n\010start_ts\030\005 \001(\004\022\023\n\013complete_ts\030\006 \001",
+ "(\004\022(\n\tancestors\030\007 \003(\0132\025.hbase.pb.BackupI" +
+ "mage\022/\n\007tst_map\030\010 \003(\0132\036.hbase.pb.TableSe" +
+ "rverTimestamp\"]\n\021TableBackupStatus\022\"\n\005ta" +
+ "ble\030\001 \001(\0132\023.hbase.pb.TableName\022\022\n\ntarget" +
+ "_dir\030\002 \001(\t\022\020\n\010snapshot\030\003 \001(\t\"\320\004\n\nBackupI" +
+ "nfo\022\021\n\tbackup_id\030\001 \001(\t\022\"\n\004type\030\002 \001(\0162\024.h" +
+ "base.pb.BackupType\022\027\n\017target_root_dir\030\003 " +
+ "\001(\t\022/\n\005state\030\004 \001(\0162 .hbase.pb.BackupInfo" +
+ ".BackupState\022/\n\005phase\030\005 \001(\0162 .hbase.pb.B" +
+ "ackupInfo.BackupPhase\022\026\n\016failed_message\030",
+ "\006 \001(\t\0228\n\023table_backup_status\030\007 \003(\0132\033.hba" +
+ "se.pb.TableBackupStatus\022\020\n\010start_ts\030\010 \001(" +
+ "\004\022\016\n\006end_ts\030\t \001(\004\022\020\n\010progress\030\n \001(\r\022\016\n\006j" +
+ "ob_id\030\013 \001(\t\022\026\n\016workers_number\030\014 \001(\r\022\021\n\tb" +
+ "andwidth\030\r \001(\004\"P\n\013BackupState\022\013\n\007WAITING" +
+ "\020\000\022\013\n\007RUNNING\020\001\022\014\n\010COMPLETE\020\002\022\n\n\006FAILED\020" +
+ "\003\022\r\n\tCANCELLED\020\004\"}\n\013BackupPhase\022\013\n\007REQUE" +
+ "ST\020\000\022\014\n\010SNAPSHOT\020\001\022\027\n\023PREPARE_INCREMENTA" +
+ "L\020\002\022\020\n\014SNAPSHOTCOPY\020\003\022\024\n\020INCREMENTAL_COP" +
+ "Y\020\004\022\022\n\016STORE_MANIFEST\020\005*\'\n\nBackupType\022\010\n",
+ "\004FULL\020\000\022\017\n\013INCREMENTAL\020\001BB\n*org.apache.h" +
+ "adoop.hbase.protobuf.generatedB\014BackupPr" +
+ "otosH\001\210\001\001\240\001\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
- internal_static_hbase_pb_BackupImage_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_hbase_pb_BackupImage_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_hbase_pb_BackupImage_descriptor,
- new java.lang.String[] { "BackupId", "BackupType", "RootDir", "TableList", "StartTs", "CompleteTs", "Ancestors", });
internal_static_hbase_pb_ServerTimestamp_descriptor =
- getDescriptor().getMessageTypes().get(1);
+ getDescriptor().getMessageTypes().get(0);
internal_static_hbase_pb_ServerTimestamp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_hbase_pb_ServerTimestamp_descriptor,
new java.lang.String[] { "Server", "Timestamp", });
internal_static_hbase_pb_TableServerTimestamp_descriptor =
- getDescriptor().getMessageTypes().get(2);
+ getDescriptor().getMessageTypes().get(1);
internal_static_hbase_pb_TableServerTimestamp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_hbase_pb_TableServerTimestamp_descriptor,
new java.lang.String[] { "Table", "ServerTimestamp", });
- internal_static_hbase_pb_BackupManifest_descriptor =
- getDescriptor().getMessageTypes().get(3);
- internal_static_hbase_pb_BackupManifest_fieldAccessorTable = new
+ internal_static_hbase_pb_BackupImage_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_hbase_pb_BackupImage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_hbase_pb_BackupManifest_descriptor,
- new java.lang.String[] { "Version", "BackupId", "Type", "TableList", "StartTs", "CompleteTs", "TstMap", "DependentBackupImage", });
+ internal_static_hbase_pb_BackupImage_descriptor,
+ new java.lang.String[] { "BackupId", "BackupType", "RootDir", "TableList", "StartTs", "CompleteTs", "Ancestors", "TstMap", });
internal_static_hbase_pb_TableBackupStatus_descriptor =
- getDescriptor().getMessageTypes().get(4);
+ getDescriptor().getMessageTypes().get(3);
internal_static_hbase_pb_TableBackupStatus_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_hbase_pb_TableBackupStatus_descriptor,
new java.lang.String[] { "Table", "TargetDir", "Snapshot", });
internal_static_hbase_pb_BackupInfo_descriptor =
- getDescriptor().getMessageTypes().get(5);
+ getDescriptor().getMessageTypes().get(4);
internal_static_hbase_pb_BackupInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_hbase_pb_BackupInfo_descriptor,
diff --git hbase-protocol/src/main/protobuf/Backup.proto hbase-protocol/src/main/protobuf/Backup.proto
index 2b3feeb..876626d 100644
--- hbase-protocol/src/main/protobuf/Backup.proto
+++ hbase-protocol/src/main/protobuf/Backup.proto
@@ -9,7 +9,7 @@
*
* http://www.apache.org/licenses/LICENSE-2.0
*
- * Unless required by applicable law or agreed to in writing, software
+ * Unless optional by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
@@ -27,70 +27,42 @@ option optimize_for = SPEED;
import "HBase.proto";
-/*enum FullTableBackupState {
- PRE_SNAPSHOT_TABLE = 1;
- SNAPSHOT_TABLES = 2;
- SNAPSHOT_COPY = 3;
- BACKUP_COMPLETE = 4;
-}
-
-enum IncrementalTableBackupState {
- PREPARE_INCREMENTAL = 1;
- INCREMENTAL_COPY = 2;
- INCR_BACKUP_COMPLETE = 3;
-}
-
-message SnapshotTableStateData {
- required TableName table = 1;
- required string snapshotName = 2;
-}
-*/
enum BackupType {
FULL = 0;
INCREMENTAL = 1;
}
-message BackupImage {
- required string backup_id = 1;
- required BackupType backup_type = 2;
- required string root_dir = 3;
- repeated TableName table_list = 4;
- required uint64 start_ts = 5;
- required uint64 complete_ts = 6;
- repeated BackupImage ancestors = 7;
-}
-
message ServerTimestamp {
- required string server = 1;
- required uint64 timestamp = 2;
+ optional ServerName server = 1;
+ optional uint64 timestamp = 2;
}
message TableServerTimestamp {
- required TableName table = 1;
+ optional TableName table = 1;
repeated ServerTimestamp server_timestamp = 2;
}
-message BackupManifest {
- required string version = 1;
- required string backup_id = 2;
- required BackupType type = 3;
+message BackupImage {
+ optional string backup_id = 1;
+ optional BackupType backup_type = 2;
+ optional string root_dir = 3;
repeated TableName table_list = 4;
- required uint64 start_ts = 5;
- required uint64 complete_ts = 6;
- repeated TableServerTimestamp tst_map = 7;
- repeated BackupImage dependent_backup_image = 8;
+ optional uint64 start_ts = 5;
+ optional uint64 complete_ts = 6;
+ repeated BackupImage ancestors = 7;
+ repeated TableServerTimestamp tst_map = 8;
}
message TableBackupStatus {
- required TableName table = 1;
- required string target_dir = 2;
+ optional TableName table = 1;
+ optional string target_dir = 2;
optional string snapshot = 3;
}
message BackupInfo {
- required string backup_id = 1;
- required BackupType type = 2;
- required string target_root_dir = 3;
+ optional string backup_id = 1;
+ optional BackupType type = 2;
+ optional string target_root_dir = 3;
optional BackupState state = 4;
optional BackupPhase phase = 5;
optional string failed_message = 6;
@@ -99,8 +71,8 @@ message BackupInfo {
optional uint64 end_ts = 9;
optional uint32 progress = 10;
optional string job_id = 11;
- required uint32 workers_number = 12;
- required uint64 bandwidth = 13;
+ optional uint32 workers_number = 12;
+ optional uint64 bandwidth = 13;
enum BackupState {
WAITING = 0;
@@ -119,9 +91,3 @@ message BackupInfo {
STORE_MANIFEST = 5;
}
}
-/*
-message BackupProcContext {
- required BackupInfo ctx = 1;
- repeated ServerTimestamp server_timestamp = 2;
-}
-*/
diff --git hbase-server/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupManifest.java hbase-server/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupManifest.java
index 878d23b..9ea9f9d 100644
--- hbase-server/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupManifest.java
+++ hbase-server/src/main/java/org/apache/hadoop/hbase/backup/impl/BackupManifest.java
@@ -36,19 +36,17 @@ import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hbase.HConstants;
+import org.apache.hadoop.hbase.ServerName;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.backup.BackupInfo;
import org.apache.hadoop.hbase.backup.BackupType;
import org.apache.hadoop.hbase.backup.util.BackupClientUtil;
import org.apache.hadoop.hbase.classification.InterfaceAudience;
import org.apache.hadoop.hbase.classification.InterfaceStability;
-import org.apache.hadoop.hbase.exceptions.DeserializationException;
import org.apache.hadoop.hbase.protobuf.ProtobufUtil;
import org.apache.hadoop.hbase.protobuf.generated.BackupProtos;
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos;
-import com.google.protobuf.InvalidProtocolBufferException;
-
/**
* Backup manifest Contains all the meta data of a backup image. The manifest info will be bundled
@@ -64,9 +62,6 @@ public class BackupManifest {
// manifest file name
public static final String MANIFEST_FILE_NAME = ".backup.manifest";
- // manifest file version, current is 1.0
- public static final String MANIFEST_VERSION = "1.0";
-
// backup image, the dependency graph is made up by series of backup images
public static class BackupImage implements Comparablebytes
- * @throws DeserializationException
- */
- private static BackupProtos.BackupManifest parseFrom(final byte[] pbBytes)
- throws DeserializationException {
- BackupProtos.BackupManifest proto;
- try {
- proto = BackupProtos.BackupManifest.parseFrom(pbBytes);
- } catch (InvalidProtocolBufferException e) {
- throw new DeserializationException(e);
- }
- return proto;
- }
-
- /**
- * Get manifest file version
- * @return version
- */
- public String getVersion() {
- return version;
- }
-
- /**
* Get this backup image.
* @return the backup image.
*/
public BackupImage getBackupImage() {
- return this.getDependency().get(this.backupId);
+ return backupImage;
}
/**
@@ -605,25 +540,7 @@ public class BackupManifest {
* @param image The direct dependent backup image
*/
public void addDependentImage(BackupImage image) {
- this.getDependency().get(this.backupId).addAncestor(image);
- this.setDependencyMap(this.getDependency(), image);
- }
-
-
-
- /**
- * Get all dependent backup images. The image of this backup is also contained.
- * @return The dependent backup images map
- */
- public Map