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..12a2759 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,26 +10,6 @@ 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 {
@@ -113,42 +93,42 @@ public final class BackupProtos {
public interface BackupImageOrBuilder
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 backup_type = 2;
+ // optional .hbase.pb.BackupType backup_type = 2;
/**
- * required .hbase.pb.BackupType backup_type = 2;
+ * optional .hbase.pb.BackupType backup_type = 2;
*/
boolean hasBackupType();
/**
- * required .hbase.pb.BackupType backup_type = 2;
+ * optional .hbase.pb.BackupType backup_type = 2;
*/
org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getBackupType();
- // required string root_dir = 3;
+ // optional string root_dir = 3;
/**
- * required string root_dir = 3;
+ * optional string root_dir = 3;
*/
boolean hasRootDir();
/**
- * required string root_dir = 3;
+ * optional string root_dir = 3;
*/
java.lang.String getRootDir();
/**
- * required string root_dir = 3;
+ * optional string root_dir = 3;
*/
com.google.protobuf.ByteString
getRootDirBytes();
@@ -178,23 +158,23 @@ 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();
@@ -367,17 +347,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_;
@@ -394,7 +374,7 @@ public final class BackupProtos {
}
}
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
public com.google.protobuf.ByteString
getBackupIdBytes() {
@@ -410,33 +390,33 @@ public final class BackupProtos {
}
}
- // required .hbase.pb.BackupType backup_type = 2;
+ // 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 .hbase.pb.BackupType backup_type = 2;
+ * optional .hbase.pb.BackupType backup_type = 2;
*/
public boolean hasBackupType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * required .hbase.pb.BackupType backup_type = 2;
+ * optional .hbase.pb.BackupType backup_type = 2;
*/
public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getBackupType() {
return backupType_;
}
- // required string root_dir = 3;
+ // optional string root_dir = 3;
public static final int ROOT_DIR_FIELD_NUMBER = 3;
private java.lang.Object rootDir_;
/**
- * required string root_dir = 3;
+ * optional string root_dir = 3;
*/
public boolean hasRootDir() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * required string root_dir = 3;
+ * optional string root_dir = 3;
*/
public java.lang.String getRootDir() {
java.lang.Object ref = rootDir_;
@@ -453,7 +433,7 @@ public final class BackupProtos {
}
}
/**
- * required string root_dir = 3;
+ * optional string root_dir = 3;
*/
public com.google.protobuf.ByteString
getRootDirBytes() {
@@ -505,33 +485,33 @@ public final class BackupProtos {
return tableList_.get(index);
}
- // required uint64 start_ts = 5;
+ // optional uint64 start_ts = 5;
public static final int START_TS_FIELD_NUMBER = 5;
private long startTs_;
/**
- * required 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_;
@@ -587,26 +567,6 @@ public final class BackupProtos {
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;
@@ -1068,26 +1028,6 @@ public final class BackupProtos {
}
public final boolean isInitialized() {
- if (!hasBackupId()) {
-
- return false;
- }
- if (!hasBackupType()) {
-
- return false;
- }
- if (!hasRootDir()) {
-
- return false;
- }
- if (!hasStartTs()) {
-
- return false;
- }
- if (!hasCompleteTs()) {
-
- return false;
- }
for (int i = 0; i < getTableListCount(); i++) {
if (!getTableList(i).isInitialized()) {
@@ -1122,16 +1062,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_;
@@ -1145,7 +1085,7 @@ public final class BackupProtos {
}
}
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
public com.google.protobuf.ByteString
getBackupIdBytes() {
@@ -1161,7 +1101,7 @@ public final class BackupProtos {
}
}
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
public Builder setBackupId(
java.lang.String value) {
@@ -1174,7 +1114,7 @@ public final class BackupProtos {
return this;
}
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
public Builder clearBackupId() {
bitField0_ = (bitField0_ & ~0x00000001);
@@ -1183,7 +1123,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) {
@@ -1196,22 +1136,22 @@ public final class BackupProtos {
return this;
}
- // required .hbase.pb.BackupType backup_type = 2;
+ // 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 .hbase.pb.BackupType backup_type = 2;
+ * optional .hbase.pb.BackupType backup_type = 2;
*/
public boolean hasBackupType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * required .hbase.pb.BackupType backup_type = 2;
+ * optional .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;
+ * optional .hbase.pb.BackupType backup_type = 2;
*/
public Builder setBackupType(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType value) {
if (value == null) {
@@ -1223,7 +1163,7 @@ public final class BackupProtos {
return this;
}
/**
- * required .hbase.pb.BackupType backup_type = 2;
+ * optional .hbase.pb.BackupType backup_type = 2;
*/
public Builder clearBackupType() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -1232,16 +1172,16 @@ public final class BackupProtos {
return this;
}
- // required string root_dir = 3;
+ // optional string root_dir = 3;
private java.lang.Object rootDir_ = "";
/**
- * required string root_dir = 3;
+ * optional string root_dir = 3;
*/
public boolean hasRootDir() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * required string root_dir = 3;
+ * optional string root_dir = 3;
*/
public java.lang.String getRootDir() {
java.lang.Object ref = rootDir_;
@@ -1255,7 +1195,7 @@ public final class BackupProtos {
}
}
/**
- * required string root_dir = 3;
+ * optional string root_dir = 3;
*/
public com.google.protobuf.ByteString
getRootDirBytes() {
@@ -1271,7 +1211,7 @@ public final class BackupProtos {
}
}
/**
- * required string root_dir = 3;
+ * optional string root_dir = 3;
*/
public Builder setRootDir(
java.lang.String value) {
@@ -1284,7 +1224,7 @@ public final class BackupProtos {
return this;
}
/**
- * required string root_dir = 3;
+ * optional string root_dir = 3;
*/
public Builder clearRootDir() {
bitField0_ = (bitField0_ & ~0x00000004);
@@ -1293,7 +1233,7 @@ public final class BackupProtos {
return this;
}
/**
- * required string root_dir = 3;
+ * optional string root_dir = 3;
*/
public Builder setRootDirBytes(
com.google.protobuf.ByteString value) {
@@ -1546,22 +1486,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;
@@ -1570,7 +1510,7 @@ public final class BackupProtos {
return this;
}
/**
- * required uint64 start_ts = 5;
+ * optional uint64 start_ts = 5;
*/
public Builder clearStartTs() {
bitField0_ = (bitField0_ & ~0x00000010);
@@ -1579,22 +1519,22 @@ public final class BackupProtos {
return this;
}
- // required uint64 complete_ts = 6;
+ // optional uint64 complete_ts = 6;
private long completeTs_ ;
/**
- * required uint64 complete_ts = 6;
+ * optional uint64 complete_ts = 6;
*/
public boolean hasCompleteTs() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
- * required uint64 complete_ts = 6;
+ * optional uint64 complete_ts = 6;
*/
public long getCompleteTs() {
return completeTs_;
}
/**
- * required uint64 complete_ts = 6;
+ * optional uint64 complete_ts = 6;
*/
public Builder setCompleteTs(long value) {
bitField0_ |= 0x00000020;
@@ -1603,7 +1543,7 @@ public final class BackupProtos {
return this;
}
/**
- * required uint64 complete_ts = 6;
+ * optional uint64 complete_ts = 6;
*/
public Builder clearCompleteTs() {
bitField0_ = (bitField0_ & ~0x00000020);
@@ -1866,28 +1806,27 @@ public final class BackupProtos {
public interface ServerTimestampOrBuilder
extends com.google.protobuf.MessageOrBuilder {
- // required string server = 1;
+ // optional .hbase.pb.ServerName server = 1;
/**
- * required 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 +1882,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 +1939,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 +1986,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 +2000,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 +2016,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 +2177,7 @@ public final class BackupProtos {
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getServerFieldBuilder();
}
}
private static Builder create() {
@@ -2261,7 +2186,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 +2225,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 +2251,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 +2261,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 +2289,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;
}
/**
- * required string server = 1;
+ * 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);
- server_ = getDefaultInstance().getServer();
- onChanged();
return this;
}
/**
- * 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;
+ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder getServerBuilder() {
+ bitField0_ |= 0x00000001;
onChanged();
- return this;
+ return getServerFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .hbase.pb.ServerName server = 1;
+ */
+ 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 +2430,7 @@ public final class BackupProtos {
return this;
}
/**
- * required uint64 timestamp = 2;
+ * optional uint64 timestamp = 2;
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -2481,17 +2453,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 +2607,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 +2674,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 +2985,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 +3019,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 +3040,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 +3056,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 +3070,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 +3089,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 +3102,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 +3110,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 +3120,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>
@@ -3422,137 +3390,122 @@ public final class BackupProtos {
public interface BackupManifestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
- // required string version = 1;
- /**
- * required string version = 1;
- */
- boolean hasVersion();
- /**
- * required string version = 1;
- */
- java.lang.String getVersion();
- /**
- * required string version = 1;
- */
- com.google.protobuf.ByteString
- getVersionBytes();
-
- // required string backup_id = 2;
+ // optional string backup_id = 1;
/**
- * required string backup_id = 2;
+ * optional string backup_id = 1;
*/
boolean hasBackupId();
/**
- * required string backup_id = 2;
+ * optional string backup_id = 1;
*/
java.lang.String getBackupId();
/**
- * required string backup_id = 2;
+ * optional string backup_id = 1;
*/
com.google.protobuf.ByteString
getBackupIdBytes();
- // required .hbase.pb.BackupType type = 3;
+ // optional .hbase.pb.BackupType type = 2;
/**
- * required .hbase.pb.BackupType type = 3;
+ * optional .hbase.pb.BackupType type = 2;
*/
boolean hasType();
/**
- * required .hbase.pb.BackupType type = 3;
+ * optional .hbase.pb.BackupType type = 2;
*/
org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getType();
- // repeated .hbase.pb.TableName table_list = 4;
+ // repeated .hbase.pb.TableName table_list = 3;
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
java.util.Listrepeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableList(int index);
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
int getTableListCount();
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
java.util.List extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>
getTableListOrBuilderList();
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableListOrBuilder(
int index);
- // required uint64 start_ts = 5;
+ // optional uint64 start_ts = 4;
/**
- * required uint64 start_ts = 5;
+ * optional uint64 start_ts = 4;
*/
boolean hasStartTs();
/**
- * required uint64 start_ts = 5;
+ * optional uint64 start_ts = 4;
*/
long getStartTs();
- // required uint64 complete_ts = 6;
+ // optional uint64 complete_ts = 5;
/**
- * required uint64 complete_ts = 6;
+ * optional uint64 complete_ts = 5;
*/
boolean hasCompleteTs();
/**
- * required uint64 complete_ts = 6;
+ * optional uint64 complete_ts = 5;
*/
long getCompleteTs();
- // repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ // repeated .hbase.pb.TableServerTimestamp tst_map = 6;
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
java.util.Listrepeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp getTstMap(int index);
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
int getTstMapCount();
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder>
getTstMapOrBuilderList();
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder getTstMapOrBuilder(
int index);
- // repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ // repeated .hbase.pb.BackupImage dependent_backup_image = 7;
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
java.util.Listrepeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage getDependentBackupImage(int index);
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
int getDependentBackupImageCount();
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder>
getDependentBackupImageOrBuilderList();
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder getDependentBackupImageOrBuilder(
int index);
@@ -3610,55 +3563,50 @@ 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;
+ bitField0_ |= 0x00000002;
type_ = value;
}
break;
}
- case 34: {
- if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
+ case 26: {
+ if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
tableList_ = new java.util.ArrayListrequired string version = 1;
- */
- public boolean hasVersion() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required string version = 1;
- */
- public java.lang.String getVersion() {
- java.lang.Object ref = version_;
- 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()) {
- version_ = s;
- }
- return s;
- }
- }
- /**
- * required string version = 1;
- */
- public com.google.protobuf.ByteString
- getVersionBytes() {
- java.lang.Object ref = version_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- version_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // required string backup_id = 2;
- public static final int BACKUP_ID_FIELD_NUMBER = 2;
+ // optional string backup_id = 1;
+ public static final int BACKUP_ID_FIELD_NUMBER = 1;
private java.lang.Object backupId_;
/**
- * required string backup_id = 2;
+ * optional string backup_id = 1;
*/
public boolean hasBackupId() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * required string backup_id = 2;
+ * optional string backup_id = 1;
*/
public java.lang.String getBackupId() {
java.lang.Object ref = backupId_;
@@ -3782,7 +3687,7 @@ public final class BackupProtos {
}
}
/**
- * required string backup_id = 2;
+ * optional string backup_id = 1;
*/
public com.google.protobuf.ByteString
getBackupIdBytes() {
@@ -3798,156 +3703,156 @@ public final class BackupProtos {
}
}
- // required .hbase.pb.BackupType type = 3;
- public static final int TYPE_FIELD_NUMBER = 3;
+ // 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 = 3;
+ * optional .hbase.pb.BackupType type = 2;
*/
public boolean hasType() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * required .hbase.pb.BackupType type = 3;
+ * optional .hbase.pb.BackupType type = 2;
*/
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;
+ // repeated .hbase.pb.TableName table_list = 3;
+ public static final int TABLE_LIST_FIELD_NUMBER = 3;
private java.util.Listrepeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public java.util.Listrepeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>
getTableListOrBuilderList() {
return tableList_;
}
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public int getTableListCount() {
return tableList_.size();
}
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableList(int index) {
return tableList_.get(index);
}
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
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;
+ // optional uint64 start_ts = 4;
+ public static final int START_TS_FIELD_NUMBER = 4;
private long startTs_;
/**
- * required uint64 start_ts = 5;
+ * optional uint64 start_ts = 4;
*/
public boolean hasStartTs() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
- * required uint64 start_ts = 5;
+ * optional uint64 start_ts = 4;
*/
public long getStartTs() {
return startTs_;
}
- // required uint64 complete_ts = 6;
- public static final int COMPLETE_TS_FIELD_NUMBER = 6;
+ // optional uint64 complete_ts = 5;
+ public static final int COMPLETE_TS_FIELD_NUMBER = 5;
private long completeTs_;
/**
- * required uint64 complete_ts = 6;
+ * optional uint64 complete_ts = 5;
*/
public boolean hasCompleteTs() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
+ return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * required uint64 complete_ts = 6;
+ * optional uint64 complete_ts = 5;
*/
public long getCompleteTs() {
return completeTs_;
}
- // repeated .hbase.pb.TableServerTimestamp tst_map = 7;
- public static final int TST_MAP_FIELD_NUMBER = 7;
+ // repeated .hbase.pb.TableServerTimestamp tst_map = 6;
+ public static final int TST_MAP_FIELD_NUMBER = 6;
private java.util.Listrepeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
public java.util.Listrepeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder>
getTstMapOrBuilderList() {
return tstMap_;
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
public int getTstMapCount() {
return tstMap_.size();
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp getTstMap(int index) {
return tstMap_.get(index);
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder getTstMapOrBuilder(
int index) {
return tstMap_.get(index);
}
- // repeated .hbase.pb.BackupImage dependent_backup_image = 8;
- public static final int DEPENDENT_BACKUP_IMAGE_FIELD_NUMBER = 8;
+ // repeated .hbase.pb.BackupImage dependent_backup_image = 7;
+ public static final int DEPENDENT_BACKUP_IMAGE_FIELD_NUMBER = 7;
private java.util.Listrepeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
public java.util.Listrepeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder>
getDependentBackupImageOrBuilderList() {
return dependentBackupImage_;
}
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
public int getDependentBackupImageCount() {
return dependentBackupImage_.size();
}
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage getDependentBackupImage(int index) {
return dependentBackupImage_.get(index);
}
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder getDependentBackupImageOrBuilder(
int index) {
@@ -3955,7 +3860,6 @@ public final class BackupProtos {
}
private void initFields() {
- version_ = "";
backupId_ = "";
type_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL;
tableList_ = java.util.Collections.emptyList();
@@ -3969,26 +3873,6 @@ public final class BackupProtos {
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;
@@ -4015,28 +3899,25 @@ 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());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeEnum(3, type_.getNumber());
+ output.writeEnum(2, type_.getNumber());
}
for (int i = 0; i < tableList_.size(); i++) {
- output.writeMessage(4, tableList_.get(i));
+ output.writeMessage(3, tableList_.get(i));
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeUInt64(5, startTs_);
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeUInt64(4, startTs_);
}
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeUInt64(6, completeTs_);
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeUInt64(5, completeTs_);
}
for (int i = 0; i < tstMap_.size(); i++) {
- output.writeMessage(7, tstMap_.get(i));
+ output.writeMessage(6, tstMap_.get(i));
}
for (int i = 0; i < dependentBackupImage_.size(); i++) {
- output.writeMessage(8, dependentBackupImage_.get(i));
+ output.writeMessage(7, dependentBackupImage_.get(i));
}
getUnknownFields().writeTo(output);
}
@@ -4049,35 +3930,31 @@ 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());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(3, type_.getNumber());
+ .computeEnumSize(2, type_.getNumber());
}
for (int i = 0; i < tableList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, tableList_.get(i));
+ .computeMessageSize(3, tableList_.get(i));
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(5, startTs_);
+ .computeUInt64Size(4, startTs_);
}
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(6, completeTs_);
+ .computeUInt64Size(5, completeTs_);
}
for (int i = 0; i < tstMap_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(7, tstMap_.get(i));
+ .computeMessageSize(6, tstMap_.get(i));
}
for (int i = 0; i < dependentBackupImage_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(8, dependentBackupImage_.get(i));
+ .computeMessageSize(7, dependentBackupImage_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
@@ -4102,11 +3979,6 @@ public final class BackupProtos {
org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupManifest other = (org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupManifest) 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()
@@ -4146,10 +4018,6 @@ 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();
@@ -4290,31 +4158,29 @@ public final class BackupProtos {
public Builder clear() {
super.clear();
- version_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
backupId_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
type_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000002);
if (tableListBuilder_ == null) {
tableList_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000004);
} else {
tableListBuilder_.clear();
}
startTs_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000008);
completeTs_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000010);
if (tstMapBuilder_ == null) {
tstMap_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000020);
} else {
tstMapBuilder_.clear();
}
if (dependentBackupImageBuilder_ == null) {
dependentBackupImage_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000040);
} else {
dependentBackupImageBuilder_.clear();
}
@@ -4349,45 +4215,41 @@ public final class BackupProtos {
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
- result.version_ = version_;
+ result.backupId_ = backupId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
- result.backupId_ = backupId_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
result.type_ = type_;
if (tableListBuilder_ == null) {
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
tableList_ = java.util.Collections.unmodifiableList(tableList_);
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000004);
}
result.tableList_ = tableList_;
} else {
result.tableList_ = tableListBuilder_.build();
}
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
- to_bitField0_ |= 0x00000008;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000004;
}
result.startTs_ = startTs_;
- if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
- to_bitField0_ |= 0x00000010;
+ if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
+ to_bitField0_ |= 0x00000008;
}
result.completeTs_ = completeTs_;
if (tstMapBuilder_ == null) {
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
tstMap_ = java.util.Collections.unmodifiableList(tstMap_);
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000020);
}
result.tstMap_ = tstMap_;
} else {
result.tstMap_ = tstMapBuilder_.build();
}
if (dependentBackupImageBuilder_ == null) {
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
+ if (((bitField0_ & 0x00000040) == 0x00000040)) {
dependentBackupImage_ = java.util.Collections.unmodifiableList(dependentBackupImage_);
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000040);
}
result.dependentBackupImage_ = dependentBackupImage_;
} else {
@@ -4409,13 +4271,8 @@ public final class BackupProtos {
public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupManifest other) {
if (other == org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupManifest.getDefaultInstance()) return this;
- if (other.hasVersion()) {
- bitField0_ |= 0x00000001;
- version_ = other.version_;
- onChanged();
- }
if (other.hasBackupId()) {
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000001;
backupId_ = other.backupId_;
onChanged();
}
@@ -4426,7 +4283,7 @@ public final class BackupProtos {
if (!other.tableList_.isEmpty()) {
if (tableList_.isEmpty()) {
tableList_ = other.tableList_;
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureTableListIsMutable();
tableList_.addAll(other.tableList_);
@@ -4439,7 +4296,7 @@ public final class BackupProtos {
tableListBuilder_.dispose();
tableListBuilder_ = null;
tableList_ = other.tableList_;
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000004);
tableListBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getTableListFieldBuilder() : null;
@@ -4458,7 +4315,7 @@ public final class BackupProtos {
if (!other.tstMap_.isEmpty()) {
if (tstMap_.isEmpty()) {
tstMap_ = other.tstMap_;
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureTstMapIsMutable();
tstMap_.addAll(other.tstMap_);
@@ -4471,7 +4328,7 @@ public final class BackupProtos {
tstMapBuilder_.dispose();
tstMapBuilder_ = null;
tstMap_ = other.tstMap_;
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000020);
tstMapBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getTstMapFieldBuilder() : null;
@@ -4484,7 +4341,7 @@ public final class BackupProtos {
if (!other.dependentBackupImage_.isEmpty()) {
if (dependentBackupImage_.isEmpty()) {
dependentBackupImage_ = other.dependentBackupImage_;
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureDependentBackupImageIsMutable();
dependentBackupImage_.addAll(other.dependentBackupImage_);
@@ -4497,7 +4354,7 @@ public final class BackupProtos {
dependentBackupImageBuilder_.dispose();
dependentBackupImageBuilder_ = null;
dependentBackupImage_ = other.dependentBackupImage_;
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000040);
dependentBackupImageBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getDependentBackupImageFieldBuilder() : null;
@@ -4511,26 +4368,6 @@ public final class BackupProtos {
}
public final boolean isInitialized() {
- if (!hasVersion()) {
-
- return false;
- }
- if (!hasBackupId()) {
-
- return false;
- }
- if (!hasType()) {
-
- return false;
- }
- if (!hasStartTs()) {
-
- return false;
- }
- if (!hasCompleteTs()) {
-
- return false;
- }
for (int i = 0; i < getTableListCount(); i++) {
if (!getTableList(i).isInitialized()) {
@@ -4571,90 +4408,16 @@ public final class BackupProtos {
}
private int bitField0_;
- // required string version = 1;
- private java.lang.Object version_ = "";
- /**
- * required string version = 1;
- */
- public boolean hasVersion() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * required string version = 1;
- */
- public java.lang.String getVersion() {
- java.lang.Object ref = version_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- version_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * required string version = 1;
- */
- public com.google.protobuf.ByteString
- getVersionBytes() {
- java.lang.Object ref = version_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- version_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * required string version = 1;
- */
- public Builder setVersion(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- version_ = value;
- onChanged();
- return this;
- }
- /**
- * required string version = 1;
- */
- public Builder clearVersion() {
- bitField0_ = (bitField0_ & ~0x00000001);
- version_ = getDefaultInstance().getVersion();
- onChanged();
- return this;
- }
- /**
- * required string version = 1;
- */
- public Builder setVersionBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- version_ = value;
- onChanged();
- return this;
- }
-
- // required string backup_id = 2;
+ // optional string backup_id = 1;
private java.lang.Object backupId_ = "";
/**
- * required string backup_id = 2;
+ * optional string backup_id = 1;
*/
public boolean hasBackupId() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
- * required string backup_id = 2;
+ * optional string backup_id = 1;
*/
public java.lang.String getBackupId() {
java.lang.Object ref = backupId_;
@@ -4668,7 +4431,7 @@ public final class BackupProtos {
}
}
/**
- * required string backup_id = 2;
+ * optional string backup_id = 1;
*/
public com.google.protobuf.ByteString
getBackupIdBytes() {
@@ -4684,84 +4447,84 @@ public final class BackupProtos {
}
}
/**
- * required string backup_id = 2;
+ * optional string backup_id = 1;
*/
public Builder setBackupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000001;
backupId_ = value;
onChanged();
return this;
}
/**
- * required string backup_id = 2;
+ * optional string backup_id = 1;
*/
public Builder clearBackupId() {
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
backupId_ = getDefaultInstance().getBackupId();
onChanged();
return this;
}
/**
- * required string backup_id = 2;
+ * optional string backup_id = 1;
*/
public Builder setBackupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000002;
+ bitField0_ |= 0x00000001;
backupId_ = value;
onChanged();
return this;
}
- // required .hbase.pb.BackupType type = 3;
+ // 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 = 3;
+ * optional .hbase.pb.BackupType type = 2;
*/
public boolean hasType() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
- * required .hbase.pb.BackupType type = 3;
+ * optional .hbase.pb.BackupType type = 2;
*/
public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getType() {
return type_;
}
/**
- * required .hbase.pb.BackupType type = 3;
+ * optional .hbase.pb.BackupType type = 2;
*/
public Builder setType(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000002;
type_ = value;
onChanged();
return this;
}
/**
- * required .hbase.pb.BackupType type = 3;
+ * optional .hbase.pb.BackupType type = 2;
*/
public Builder clearType() {
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000002);
type_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL;
onChanged();
return this;
}
- // repeated .hbase.pb.TableName table_list = 4;
+ // repeated .hbase.pb.TableName table_list = 3;
private java.util.Listrepeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public java.util.Listrepeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public int getTableListCount() {
if (tableListBuilder_ == null) {
@@ -4789,7 +4552,7 @@ public final class BackupProtos {
}
}
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableList(int index) {
if (tableListBuilder_ == null) {
@@ -4799,7 +4562,7 @@ public final class BackupProtos {
}
}
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public Builder setTableList(
int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) {
@@ -4816,7 +4579,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public Builder setTableList(
int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder builderForValue) {
@@ -4830,7 +4593,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public Builder addTableList(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) {
if (tableListBuilder_ == null) {
@@ -4846,7 +4609,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public Builder addTableList(
int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) {
@@ -4863,7 +4626,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public Builder addTableList(
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder builderForValue) {
@@ -4877,7 +4640,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public Builder addTableList(
int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder builderForValue) {
@@ -4891,7 +4654,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public Builder addAllTableList(
java.lang.Iterable extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName> values) {
@@ -4905,12 +4668,12 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public Builder clearTableList() {
if (tableListBuilder_ == null) {
tableList_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
tableListBuilder_.clear();
@@ -4918,7 +4681,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public Builder removeTableList(int index) {
if (tableListBuilder_ == null) {
@@ -4931,14 +4694,14 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder getTableListBuilder(
int index) {
return getTableListFieldBuilder().getBuilder(index);
}
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableListOrBuilder(
int index) {
@@ -4948,7 +4711,7 @@ public final class BackupProtos {
}
}
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder>
getTableListOrBuilderList() {
@@ -4959,14 +4722,14 @@ public final class BackupProtos {
}
}
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
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;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder addTableListBuilder(
int index) {
@@ -4974,7 +4737,7 @@ public final class BackupProtos {
index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.getDefaultInstance());
}
/**
- * repeated .hbase.pb.TableName table_list = 4;
+ * repeated .hbase.pb.TableName table_list = 3;
*/
public java.util.Listrequired uint64 start_ts = 5;
+ * optional uint64 start_ts = 4;
*/
public boolean hasStartTs() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
+ return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
- * required uint64 start_ts = 5;
+ * optional uint64 start_ts = 4;
*/
public long getStartTs() {
return startTs_;
}
/**
- * required uint64 start_ts = 5;
+ * optional uint64 start_ts = 4;
*/
public Builder setStartTs(long value) {
- bitField0_ |= 0x00000010;
+ bitField0_ |= 0x00000008;
startTs_ = value;
onChanged();
return this;
}
/**
- * required uint64 start_ts = 5;
+ * optional uint64 start_ts = 4;
*/
public Builder clearStartTs() {
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000008);
startTs_ = 0L;
onChanged();
return this;
}
- // required uint64 complete_ts = 6;
+ // optional uint64 complete_ts = 5;
private long completeTs_ ;
/**
- * required uint64 complete_ts = 6;
+ * optional uint64 complete_ts = 5;
*/
public boolean hasCompleteTs() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
+ return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
- * required uint64 complete_ts = 6;
+ * optional uint64 complete_ts = 5;
*/
public long getCompleteTs() {
return completeTs_;
}
/**
- * required uint64 complete_ts = 6;
+ * optional uint64 complete_ts = 5;
*/
public Builder setCompleteTs(long value) {
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00000010;
completeTs_ = value;
onChanged();
return this;
}
/**
- * required uint64 complete_ts = 6;
+ * optional uint64 complete_ts = 5;
*/
public Builder clearCompleteTs() {
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000010);
completeTs_ = 0L;
onChanged();
return this;
}
- // repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ // repeated .hbase.pb.TableServerTimestamp tst_map = 6;
private java.util.Listrepeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
public java.util.Listrepeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
public int getTstMapCount() {
if (tstMapBuilder_ == null) {
@@ -5095,7 +4858,7 @@ public final class BackupProtos {
}
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp getTstMap(int index) {
if (tstMapBuilder_ == null) {
@@ -5105,7 +4868,7 @@ public final class BackupProtos {
}
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
public Builder setTstMap(
int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp value) {
@@ -5122,7 +4885,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
public Builder setTstMap(
int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp.Builder builderForValue) {
@@ -5136,7 +4899,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
public Builder addTstMap(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp value) {
if (tstMapBuilder_ == null) {
@@ -5152,7 +4915,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
public Builder addTstMap(
int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp value) {
@@ -5169,7 +4932,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
public Builder addTstMap(
org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp.Builder builderForValue) {
@@ -5183,7 +4946,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
public Builder addTstMap(
int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp.Builder builderForValue) {
@@ -5197,7 +4960,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
public Builder addAllTstMap(
java.lang.Iterable extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp> values) {
@@ -5211,12 +4974,12 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
public Builder clearTstMap() {
if (tstMapBuilder_ == null) {
tstMap_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000040);
+ bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
tstMapBuilder_.clear();
@@ -5224,7 +4987,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
public Builder removeTstMap(int index) {
if (tstMapBuilder_ == null) {
@@ -5237,14 +5000,14 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
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 = 6;
*/
public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder getTstMapOrBuilder(
int index) {
@@ -5254,7 +5017,7 @@ public final class BackupProtos {
}
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder>
getTstMapOrBuilderList() {
@@ -5265,14 +5028,14 @@ public final class BackupProtos {
}
}
/**
- * repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ * repeated .hbase.pb.TableServerTimestamp tst_map = 6;
*/
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 = 6;
*/
public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp.Builder addTstMapBuilder(
int index) {
@@ -5280,7 +5043,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 = 6;
*/
public java.util.Listrepeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
public java.util.Listrepeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
public int getDependentBackupImageCount() {
if (dependentBackupImageBuilder_ == null) {
@@ -5335,7 +5098,7 @@ public final class BackupProtos {
}
}
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage getDependentBackupImage(int index) {
if (dependentBackupImageBuilder_ == null) {
@@ -5345,7 +5108,7 @@ public final class BackupProtos {
}
}
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
public Builder setDependentBackupImage(
int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage value) {
@@ -5362,7 +5125,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
public Builder setDependentBackupImage(
int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder builderForValue) {
@@ -5376,7 +5139,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
public Builder addDependentBackupImage(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage value) {
if (dependentBackupImageBuilder_ == null) {
@@ -5392,7 +5155,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
public Builder addDependentBackupImage(
int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage value) {
@@ -5409,7 +5172,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
public Builder addDependentBackupImage(
org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder builderForValue) {
@@ -5423,7 +5186,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
public Builder addDependentBackupImage(
int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder builderForValue) {
@@ -5437,7 +5200,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
public Builder addAllDependentBackupImage(
java.lang.Iterable extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage> values) {
@@ -5451,12 +5214,12 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
public Builder clearDependentBackupImage() {
if (dependentBackupImageBuilder_ == null) {
dependentBackupImage_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
dependentBackupImageBuilder_.clear();
@@ -5464,7 +5227,7 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
public Builder removeDependentBackupImage(int index) {
if (dependentBackupImageBuilder_ == null) {
@@ -5477,14 +5240,14 @@ public final class BackupProtos {
return this;
}
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
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;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder getDependentBackupImageOrBuilder(
int index) {
@@ -5494,7 +5257,7 @@ public final class BackupProtos {
}
}
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImageOrBuilder>
getDependentBackupImageOrBuilderList() {
@@ -5505,14 +5268,14 @@ public final class BackupProtos {
}
}
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
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;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.Builder addDependentBackupImageBuilder(
int index) {
@@ -5520,7 +5283,7 @@ public final class BackupProtos {
index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupImage.getDefaultInstance());
}
/**
- * repeated .hbase.pb.BackupImage dependent_backup_image = 8;
+ * repeated .hbase.pb.BackupImage dependent_backup_image = 7;
*/
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();
@@ -5713,39 +5476,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 +5525,7 @@ public final class BackupProtos {
}
}
/**
- * required string target_dir = 2;
+ * optional string target_dir = 2;
*/
public com.google.protobuf.ByteString
getTargetDirBytes() {
@@ -5831,17 +5594,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;
@@ -6141,17 +5898,11 @@ public final class BackupProtos {
}
public final boolean isInitialized() {
- if (!hasTable()) {
-
- return false;
- }
- if (!hasTargetDir()) {
-
- return false;
- }
- if (!getTable().isInitialized()) {
-
- return false;
+ if (hasTable()) {
+ if (!getTable().isInitialized()) {
+
+ return false;
+ }
}
return true;
}
@@ -6175,18 +5926,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) {
@@ -6196,7 +5947,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 +5963,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 +5977,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 +5996,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 +6009,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 +6017,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 +6027,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 +6043,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 +6066,7 @@ public final class BackupProtos {
}
}
/**
- * required string target_dir = 2;
+ * optional string target_dir = 2;
*/
public com.google.protobuf.ByteString
getTargetDirBytes() {
@@ -6331,7 +6082,7 @@ public final class BackupProtos {
}
}
/**
- * required string target_dir = 2;
+ * optional string target_dir = 2;
*/
public Builder setTargetDir(
java.lang.String value) {
@@ -6344,7 +6095,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 +6104,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 +6205,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 +6350,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 +6777,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 +6804,7 @@ public final class BackupProtos {
}
}
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
public com.google.protobuf.ByteString
getBackupIdBytes() {
@@ -7069,33 +6820,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 +6863,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 +7081,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 +7133,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 +7712,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 +7740,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 +7763,7 @@ public final class BackupProtos {
}
}
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
public com.google.protobuf.ByteString
getBackupIdBytes() {
@@ -8068,7 +7779,7 @@ public final class BackupProtos {
}
}
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
public Builder setBackupId(
java.lang.String value) {
@@ -8081,7 +7792,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 +7801,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 +7814,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 +7841,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 +7850,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 +7873,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 +7889,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 +7902,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 +7911,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 +8483,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 +8507,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 +8516,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 +8540,7 @@ public final class BackupProtos {
return this;
}
/**
- * required uint64 bandwidth = 13;
+ * optional uint64 bandwidth = 13;
*/
public Builder clearBandwidth() {
bitField0_ = (bitField0_ & ~0x00001000);
@@ -8889,43 +8600,43 @@ public final class BackupProtos {
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\013BackupImage\022\021\n\tbackup_id\030\001 \001(\t\022)\n\013back" +
+ "up_type\030\002 \001(\0162\024.hbase.pb.BackupType\022\020\n\010r" +
+ "oot_dir\030\003 \001(\t\022\'\n\ntable_list\030\004 \003(\0132\023.hbas" +
+ "e.pb.TableName\022\020\n\010start_ts\030\005 \001(\004\022\023\n\013comp" +
+ "lete_ts\030\006 \001(\004\022(\n\tancestors\030\007 \003(\0132\025.hbase" +
+ ".pb.BackupImage\"J\n\017ServerTimestamp\022$\n\006se" +
+ "rver\030\001 \001(\0132\024.hbase.pb.ServerName\022\021\n\ttime" +
+ "stamp\030\002 \001(\004\"o\n\024TableServerTimestamp\022\"\n\005t" +
+ "able\030\001 \001(\0132\023.hbase.pb.TableName\0223\n\020serve",
+ "r_timestamp\030\002 \003(\0132\031.hbase.pb.ServerTimes" +
+ "tamp\"\377\001\n\016BackupManifest\022\021\n\tbackup_id\030\001 \001" +
+ "(\t\022\"\n\004type\030\002 \001(\0162\024.hbase.pb.BackupType\022\'" +
+ "\n\ntable_list\030\003 \003(\0132\023.hbase.pb.TableName\022" +
+ "\020\n\010start_ts\030\004 \001(\004\022\023\n\013complete_ts\030\005 \001(\004\022/" +
+ "\n\007tst_map\030\006 \003(\0132\036.hbase.pb.TableServerTi" +
+ "mestamp\0225\n\026dependent_backup_image\030\007 \003(\0132" +
+ "\025.hbase.pb.BackupImage\"]\n\021TableBackupSta" +
+ "tus\022\"\n\005table\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\nBackupInfo\022\021\n\tbackup_id\030\001 \001(\t\022\"\n\004type\030" +
+ "\002 \001(\0162\024.hbase.pb.BackupType\022\027\n\017target_ro" +
+ "ot_dir\030\003 \001(\t\022/\n\005state\030\004 \001(\0162 .hbase.pb.B" +
+ "ackupInfo.BackupState\022/\n\005phase\030\005 \001(\0162 .h" +
+ "base.pb.BackupInfo.BackupPhase\022\026\n\016failed" +
+ "_message\030\006 \001(\t\0228\n\023table_backup_status\030\007 " +
+ "\003(\0132\033.hbase.pb.TableBackupStatus\022\020\n\010star" +
+ "t_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" +
+ " \001(\r\022\021\n\tbandwidth\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\007REQUEST\020\000\022\014\n\010SNAPSHOT\020\001\022\027\n\023PREPARE_I" +
+ "NCREMENTAL\020\002\022\020\n\014SNAPSHOTCOPY\020\003\022\024\n\020INCREM" +
+ "ENTAL_COPY\020\004\022\022\n\016STORE_MANIFEST\020\005*\'\n\nBack" +
+ "upType\022\010\n\004FULL\020\000\022\017\n\013INCREMENTAL\020\001BB\n*org" +
+ ".apache.hadoop.hbase.protobuf.generatedB" +
+ "\014BackupProtosH\001\210\001\001\240\001\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -8955,7 +8666,7 @@ public final class BackupProtos {
internal_static_hbase_pb_BackupManifest_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", });
+ new java.lang.String[] { "BackupId", "Type", "TableList", "StartTs", "CompleteTs", "TstMap", "DependentBackupImage", });
internal_static_hbase_pb_TableBackupStatus_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_hbase_pb_TableBackupStatus_fieldAccessorTable = new
diff --git hbase-protocol/src/main/protobuf/Backup.proto hbase-protocol/src/main/protobuf/Backup.proto
index 2b3feeb..3af1fea 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,51 @@ 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;
+ 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;
+ optional uint64 start_ts = 5;
+ optional 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;
- 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 string backup_id = 1;
+ optional BackupType type = 2;
+ repeated TableName table_list = 3;
+ optional uint64 start_ts = 4;
+ optional uint64 complete_ts = 5;
+ repeated TableServerTimestamp tst_map = 6;
+ repeated BackupImage dependent_backup_image = 7;
}
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 +80,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 +100,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..1c5aaa8 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
@@ -25,6 +25,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
+import java.util.Set;
import java.util.TreeMap;
import org.apache.commons.logging.Log;
@@ -36,6 +37,7 @@ 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;
@@ -255,9 +257,6 @@ public class BackupManifest {
}
}
- // manifest version
- private String version = MANIFEST_VERSION;
-
// hadoop hbase configuration
protected Configuration config = null;
@@ -378,8 +377,6 @@ public class BackupManifest {
} catch(Exception e){
throw new BackupException(e);
}
- this.version = proto.getVersion();
- this.backupId = proto.getBackupId();
this.type = BackupType.valueOf(proto.getType().name());
// Here the parameter backupDir is where the manifest file is.
// There should always be a manifest file under:
@@ -398,7 +395,7 @@ public class BackupManifest {
this.completeTs = proto.getCompleteTs();
loadIncrementalTimestampMap(proto);
loadDependency(proto);
- //TODO: merge will be implemented by future jira
+ this.backupId = proto.getBackupId();
LOG.debug("Loaded manifest instance from manifest file: "
+ BackupClientUtil.getPath(subFile.getPath()));
return;
@@ -425,7 +422,7 @@ public class BackupManifest {
}
List