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..a3589f6 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,112 +3390,107 @@ 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;
- /**
- * required string backup_id = 2;
- */
- boolean hasBackupId();
- /**
- * required string backup_id = 2;
- */
- java.lang.String getBackupId();
- /**
- * required string backup_id = 2;
- */
- com.google.protobuf.ByteString
- getBackupIdBytes();
-
- // required .hbase.pb.BackupType type = 3;
- /**
- * required .hbase.pb.BackupType type = 3;
- */
- boolean hasType();
- /**
- * required .hbase.pb.BackupType type = 3;
- */
- org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getType();
-
// repeated .hbase.pb.TableName table_list = 4;
/**
* repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ java.util.List
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableList(int index); /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ int getTableListCount(); /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ java.util.List extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder> getTableListOrBuilderList(); /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableListOrBuilder( int index); - // required uint64 start_ts = 5; - /** - *
required uint64 start_ts = 5;
- */
- boolean hasStartTs();
- /**
- * required uint64 start_ts = 5;
- */
- long getStartTs();
-
- // required uint64 complete_ts = 6;
- /**
- * required uint64 complete_ts = 6;
- */
- boolean hasCompleteTs();
- /**
- * required uint64 complete_ts = 6;
- */
- long getCompleteTs();
-
// repeated .hbase.pb.TableServerTimestamp tst_map = 7;
/**
* repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ java.util.List
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp getTstMap(int index); /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ int getTstMapCount(); /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder> getTstMapOrBuilderList(); /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder getTstMapOrBuilder( int index); @@ -3608,57 +3571,26 @@ public final class BackupProtos { } break; } - case 10: { - bitField0_ |= 0x00000001; - version_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - backupId_ = input.readBytes(); - break; - } - case 24: { - 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); - } else { - bitField0_ |= 0x00000004; - type_ = value; - } - break; - } case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { tableList_ = new java.util.ArrayList
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) {
- 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;
- private java.lang.Object backupId_;
- /**
- * required string backup_id = 2;
- */
- public boolean hasBackupId() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required string backup_id = 2;
- */
- public java.lang.String getBackupId() {
- java.lang.Object ref = backupId_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- backupId_ = s;
- }
- return s;
- }
- }
- /**
- * required string backup_id = 2;
- */
- public com.google.protobuf.ByteString
- getBackupIdBytes() {
- java.lang.Object ref = backupId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- backupId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- // required .hbase.pb.BackupType type = 3;
- public static final int TYPE_FIELD_NUMBER = 3;
- private org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType type_;
- /**
- * required .hbase.pb.BackupType type = 3;
- */
- public boolean hasType() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * required .hbase.pb.BackupType type = 3;
- */
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getType() {
- return type_;
- }
-
// repeated .hbase.pb.TableName table_list = 4;
public static final int TABLE_LIST_FIELD_NUMBER = 4;
private java.util.Listrepeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public java.util.List
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder> getTableListOrBuilderList() { @@ -3832,67 +3673,63 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public int getTableListCount() { return tableList_.size(); } /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableList(int index) { return tableList_.get(index); } /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 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; - private long startTs_; - /** - *
required uint64 start_ts = 5;
- */
- public boolean hasStartTs() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * required uint64 start_ts = 5;
- */
- public long getStartTs() {
- return startTs_;
- }
-
- // required uint64 complete_ts = 6;
- public static final int COMPLETE_TS_FIELD_NUMBER = 6;
- private long completeTs_;
- /**
- * required uint64 complete_ts = 6;
- */
- public boolean hasCompleteTs() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * required uint64 complete_ts = 6;
- */
- public long getCompleteTs() {
- return completeTs_;
- }
-
// repeated .hbase.pb.TableServerTimestamp tst_map = 7;
public static final int TST_MAP_FIELD_NUMBER = 7;
private java.util.Listrepeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public java.util.List
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder> getTstMapOrBuilderList() { @@ -3900,18 +3737,33 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public int getTstMapCount() { return tstMap_.size(); } /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp getTstMap(int index) { return tstMap_.get(index); } /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder getTstMapOrBuilder( int index) { @@ -3955,12 +3807,7 @@ public final class BackupProtos { } private void initFields() { - version_ = ""; - backupId_ = ""; - type_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL; tableList_ = java.util.Collections.emptyList(); - startTs_ = 0L; - completeTs_ = 0L; tstMap_ = java.util.Collections.emptyList(); dependentBackupImage_ = java.util.Collections.emptyList(); } @@ -3969,26 +3816,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; @@ -4014,24 +3841,9 @@ public final class BackupProtos { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getVersionBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getBackupIdBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, type_.getNumber()); - } for (int i = 0; i < tableList_.size(); i++) { output.writeMessage(4, tableList_.get(i)); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeUInt64(5, startTs_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeUInt64(6, completeTs_); - } for (int i = 0; i < tstMap_.size(); i++) { output.writeMessage(7, tstMap_.get(i)); } @@ -4047,30 +3859,10 @@ public final class BackupProtos { if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getVersionBytes()); - } - 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()); - } for (int i = 0; i < tableList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, tableList_.get(i)); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, startTs_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, completeTs_); - } for (int i = 0; i < tstMap_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, tstMap_.get(i)); @@ -4102,33 +3894,8 @@ 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() - .equals(other.getBackupId()); - } - result = result && (hasType() == other.hasType()); - if (hasType()) { - result = result && - (getType() == other.getType()); - } result = result && getTableListList() .equals(other.getTableListList()); - result = result && (hasStartTs() == other.hasStartTs()); - if (hasStartTs()) { - result = result && (getStartTs() - == other.getStartTs()); - } - result = result && (hasCompleteTs() == other.hasCompleteTs()); - if (hasCompleteTs()) { - result = result && (getCompleteTs() - == other.getCompleteTs()); - } result = result && getTstMapList() .equals(other.getTstMapList()); result = result && getDependentBackupImageList() @@ -4146,30 +3913,10 @@ public final class BackupProtos { } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); - if (hasVersion()) { - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - } - if (hasBackupId()) { - hash = (37 * hash) + BACKUP_ID_FIELD_NUMBER; - hash = (53 * hash) + getBackupId().hashCode(); - } - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + hashEnum(getType()); - } if (getTableListCount() > 0) { hash = (37 * hash) + TABLE_LIST_FIELD_NUMBER; hash = (53 * hash) + getTableListList().hashCode(); } - if (hasStartTs()) { - hash = (37 * hash) + START_TS_FIELD_NUMBER; - hash = (53 * hash) + hashLong(getStartTs()); - } - if (hasCompleteTs()) { - hash = (37 * hash) + COMPLETE_TS_FIELD_NUMBER; - hash = (53 * hash) + hashLong(getCompleteTs()); - } if (getTstMapCount() > 0) { hash = (37 * hash) + TST_MAP_FIELD_NUMBER; hash = (53 * hash) + getTstMapList().hashCode(); @@ -4290,31 +4037,21 @@ public final class BackupProtos { public Builder clear() { super.clear(); - version_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - backupId_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - type_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL; - bitField0_ = (bitField0_ & ~0x00000004); if (tableListBuilder_ == null) { tableList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); } else { tableListBuilder_.clear(); } - startTs_ = 0L; - bitField0_ = (bitField0_ & ~0x00000010); - completeTs_ = 0L; - bitField0_ = (bitField0_ & ~0x00000020); if (tstMapBuilder_ == null) { tstMap_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000002); } else { tstMapBuilder_.clear(); } if (dependentBackupImageBuilder_ == null) { dependentBackupImage_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000004); } else { dependentBackupImageBuilder_.clear(); } @@ -4345,55 +4082,33 @@ public final class BackupProtos { public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupManifest buildPartial() { org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupManifest result = new org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupManifest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.version_ = version_; - 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_ & 0x00000001) == 0x00000001)) { tableList_ = java.util.Collections.unmodifiableList(tableList_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); } result.tableList_ = tableList_; } else { result.tableList_ = tableListBuilder_.build(); } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000008; - } - result.startTs_ = startTs_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000010; - } - result.completeTs_ = completeTs_; if (tstMapBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { tstMap_ = java.util.Collections.unmodifiableList(tstMap_); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000002); } result.tstMap_ = tstMap_; } else { result.tstMap_ = tstMapBuilder_.build(); } if (dependentBackupImageBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { dependentBackupImage_ = java.util.Collections.unmodifiableList(dependentBackupImage_); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000004); } result.dependentBackupImage_ = dependentBackupImage_; } else { result.dependentBackupImage_ = dependentBackupImageBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -4409,24 +4124,11 @@ 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; - backupId_ = other.backupId_; - onChanged(); - } - if (other.hasType()) { - setType(other.getType()); - } if (tableListBuilder_ == null) { if (!other.tableList_.isEmpty()) { if (tableList_.isEmpty()) { tableList_ = other.tableList_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTableListIsMutable(); tableList_.addAll(other.tableList_); @@ -4439,7 +4141,7 @@ public final class BackupProtos { tableListBuilder_.dispose(); tableListBuilder_ = null; tableList_ = other.tableList_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); tableListBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getTableListFieldBuilder() : null; @@ -4448,17 +4150,11 @@ public final class BackupProtos { } } } - if (other.hasStartTs()) { - setStartTs(other.getStartTs()); - } - if (other.hasCompleteTs()) { - setCompleteTs(other.getCompleteTs()); - } if (tstMapBuilder_ == null) { if (!other.tstMap_.isEmpty()) { if (tstMap_.isEmpty()) { tstMap_ = other.tstMap_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTstMapIsMutable(); tstMap_.addAll(other.tstMap_); @@ -4471,7 +4167,7 @@ public final class BackupProtos { tstMapBuilder_.dispose(); tstMapBuilder_ = null; tstMap_ = other.tstMap_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000002); tstMapBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getTstMapFieldBuilder() : null; @@ -4484,7 +4180,7 @@ public final class BackupProtos { if (!other.dependentBackupImage_.isEmpty()) { if (dependentBackupImage_.isEmpty()) { dependentBackupImage_ = other.dependentBackupImage_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDependentBackupImageIsMutable(); dependentBackupImage_.addAll(other.dependentBackupImage_); @@ -4497,7 +4193,7 @@ public final class BackupProtos { dependentBackupImageBuilder_.dispose(); dependentBackupImageBuilder_ = null; dependentBackupImage_ = other.dependentBackupImage_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000004); dependentBackupImageBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getDependentBackupImageFieldBuilder() : null; @@ -4506,31 +4202,11 @@ public final class BackupProtos { } } } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasVersion()) { - - return false; - } - if (!hasBackupId()) { - - return false; - } - if (!hasType()) { - - return false; - } - if (!hasStartTs()) { - - return false; - } - if (!hasCompleteTs()) { - - return false; - } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { for (int i = 0; i < getTableListCount(); i++) { if (!getTableList(i).isInitialized()) { @@ -4571,197 +4247,13 @@ 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;
- private java.lang.Object backupId_ = "";
- /**
- * required string backup_id = 2;
- */
- public boolean hasBackupId() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * required string backup_id = 2;
- */
- public java.lang.String getBackupId() {
- java.lang.Object ref = backupId_;
- if (!(ref instanceof java.lang.String)) {
- java.lang.String s = ((com.google.protobuf.ByteString) ref)
- .toStringUtf8();
- backupId_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * required string backup_id = 2;
- */
- public com.google.protobuf.ByteString
- getBackupIdBytes() {
- java.lang.Object ref = backupId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- backupId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * required string backup_id = 2;
- */
- public Builder setBackupId(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- backupId_ = value;
- onChanged();
- return this;
- }
- /**
- * required string backup_id = 2;
- */
- public Builder clearBackupId() {
- bitField0_ = (bitField0_ & ~0x00000002);
- backupId_ = getDefaultInstance().getBackupId();
- onChanged();
- return this;
- }
- /**
- * required string backup_id = 2;
- */
- public Builder setBackupIdBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- backupId_ = value;
- onChanged();
- return this;
- }
-
- // required .hbase.pb.BackupType type = 3;
- private org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType type_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL;
- /**
- * required .hbase.pb.BackupType type = 3;
- */
- public boolean hasType() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * required .hbase.pb.BackupType type = 3;
- */
- public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType getType() {
- return type_;
- }
- /**
- * required .hbase.pb.BackupType type = 3;
- */
- public Builder setType(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- type_ = value;
- onChanged();
- return this;
- }
- /**
- * required .hbase.pb.BackupType type = 3;
- */
- public Builder clearType() {
- bitField0_ = (bitField0_ & ~0x00000004);
- type_ = org.apache.hadoop.hbase.protobuf.generated.BackupProtos.BackupType.FULL;
- onChanged();
- return this;
- }
-
// repeated .hbase.pb.TableName table_list = 4;
private java.util.Listrepeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public java.util.List
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public int getTableListCount() { if (tableListBuilder_ == null) { @@ -4790,6 +4294,12 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName getTableList(int index) { if (tableListBuilder_ == null) { @@ -4800,6 +4310,12 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public Builder setTableList( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) { @@ -4817,6 +4333,12 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public Builder setTableList( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder builderForValue) { @@ -4831,6 +4353,12 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public Builder addTableList(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) { if (tableListBuilder_ == null) { @@ -4847,6 +4375,12 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public Builder addTableList( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName value) { @@ -4864,6 +4398,12 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public Builder addTableList( org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder builderForValue) { @@ -4878,6 +4418,12 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public Builder addTableList( int index, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder builderForValue) { @@ -4892,6 +4438,12 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public Builder addAllTableList( java.lang.Iterable extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName> values) { @@ -4906,11 +4458,17 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public Builder clearTableList() { if (tableListBuilder_ == null) { tableList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { tableListBuilder_.clear(); @@ -4919,6 +4477,12 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public Builder removeTableList(int index) { if (tableListBuilder_ == null) { @@ -4932,6 +4496,12 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder getTableListBuilder( int index) { @@ -4939,6 +4509,12 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder getTableListOrBuilder( int index) { @@ -4949,6 +4525,12 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableNameOrBuilder> getTableListOrBuilderList() { @@ -4960,6 +4542,12 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder addTableListBuilder() { return getTableListFieldBuilder().addBuilder( @@ -4967,6 +4555,12 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableName.Builder addTableListBuilder( int index) { @@ -4975,6 +4569,12 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableName table_list = 4;
+ *
+ * + *optional string version = 1; + *optional string backup_id = 2; + *optional BackupType type = 3; + **/ public java.util.List
required uint64 start_ts = 5;
- */
- public boolean hasStartTs() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * required uint64 start_ts = 5;
- */
- public long getStartTs() {
- return startTs_;
- }
- /**
- * required uint64 start_ts = 5;
- */
- public Builder setStartTs(long value) {
- bitField0_ |= 0x00000010;
- startTs_ = value;
- onChanged();
- return this;
- }
- /**
- * required uint64 start_ts = 5;
- */
- public Builder clearStartTs() {
- bitField0_ = (bitField0_ & ~0x00000010);
- startTs_ = 0L;
- onChanged();
- return this;
- }
-
- // required uint64 complete_ts = 6;
- private long completeTs_ ;
- /**
- * required uint64 complete_ts = 6;
- */
- public boolean hasCompleteTs() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
- }
- /**
- * required uint64 complete_ts = 6;
- */
- public long getCompleteTs() {
- return completeTs_;
- }
- /**
- * required uint64 complete_ts = 6;
- */
- public Builder setCompleteTs(long value) {
- bitField0_ |= 0x00000020;
- completeTs_ = value;
- onChanged();
- return this;
- }
- /**
- * required uint64 complete_ts = 6;
- */
- public Builder clearCompleteTs() {
- bitField0_ = (bitField0_ & ~0x00000020);
- completeTs_ = 0L;
- onChanged();
- return this;
- }
-
// repeated .hbase.pb.TableServerTimestamp tst_map = 7;
private java.util.Listrepeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public java.util.List
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public int getTstMapCount() { if (tstMapBuilder_ == null) { @@ -5096,6 +4640,11 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp getTstMap(int index) { if (tstMapBuilder_ == null) { @@ -5106,6 +4655,11 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public Builder setTstMap( int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp value) { @@ -5123,6 +4677,11 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public Builder setTstMap( int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp.Builder builderForValue) { @@ -5137,6 +4696,11 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public Builder addTstMap(org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp value) { if (tstMapBuilder_ == null) { @@ -5153,6 +4717,11 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public Builder addTstMap( int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp value) { @@ -5170,6 +4739,11 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public Builder addTstMap( org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp.Builder builderForValue) { @@ -5184,6 +4758,11 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public Builder addTstMap( int index, org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp.Builder builderForValue) { @@ -5198,6 +4777,11 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public Builder addAllTstMap( java.lang.Iterable extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp> values) { @@ -5212,11 +4796,16 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public Builder clearTstMap() { if (tstMapBuilder_ == null) { tstMap_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { tstMapBuilder_.clear(); @@ -5225,6 +4814,11 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public Builder removeTstMap(int index) { if (tstMapBuilder_ == null) { @@ -5238,6 +4832,11 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp.Builder getTstMapBuilder( int index) { @@ -5245,6 +4844,11 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder getTstMapOrBuilder( int index) { @@ -5255,6 +4859,11 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public java.util.List extends org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestampOrBuilder> getTstMapOrBuilderList() { @@ -5266,6 +4875,11 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp.Builder addTstMapBuilder() { return getTstMapFieldBuilder().addBuilder( @@ -5273,6 +4887,11 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public org.apache.hadoop.hbase.protobuf.generated.BackupProtos.TableServerTimestamp.Builder addTstMapBuilder( int index) { @@ -5281,6 +4900,11 @@ public final class BackupProtos { } /** *
repeated .hbase.pb.TableServerTimestamp tst_map = 7;
+ *
+ * + *optional uint64 start_ts = 5; + *optional uint64 complete_ts = 6; + **/ public java.util.List
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();
- // 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 +5337,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 +5386,7 @@ public final class BackupProtos {
}
}
/**
- * required string target_dir = 2;
+ * optional string target_dir = 2;
*/
public com.google.protobuf.ByteString
getTargetDirBytes() {
@@ -5831,17 +5455,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 +5759,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 +5787,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 +5808,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 +5824,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 +5838,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 +5857,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 +5870,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 +5878,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 +5888,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 +5904,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 +5927,7 @@ public final class BackupProtos {
}
}
/**
- * required string target_dir = 2;
+ * optional string target_dir = 2;
*/
public com.google.protobuf.ByteString
getTargetDirBytes() {
@@ -6331,7 +5943,7 @@ public final class BackupProtos {
}
}
/**
- * required string target_dir = 2;
+ * optional string target_dir = 2;
*/
public Builder setTargetDir(
java.lang.String value) {
@@ -6344,7 +5956,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 +5965,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 +6066,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 +6211,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 +6638,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 +6665,7 @@ public final class BackupProtos {
}
}
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
public com.google.protobuf.ByteString
getBackupIdBytes() {
@@ -7069,33 +6681,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 +6724,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 +6942,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 +6994,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 +7573,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 +7601,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 +7624,7 @@ public final class BackupProtos {
}
}
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
public com.google.protobuf.ByteString
getBackupIdBytes() {
@@ -8068,7 +7640,7 @@ public final class BackupProtos {
}
}
/**
- * required string backup_id = 1;
+ * optional string backup_id = 1;
*/
public Builder setBackupId(
java.lang.String value) {
@@ -8081,7 +7653,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 +7662,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 +7675,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 +7702,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 +7711,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 +7734,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 +7750,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 +7763,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 +7772,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 +8344,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 +8368,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 +8377,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 +8401,7 @@ public final class BackupProtos {
return this;
}
/**
- * required uint64 bandwidth = 13;
+ * optional uint64 bandwidth = 13;
*/
public Builder clearBandwidth() {
bitField0_ = (bitField0_ & ~0x00001000);
@@ -8889,43 +8461,41 @@ 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\"\241\001\n\016BackupManifest\022\'\n\ntable_list\030\004 " +
+ "\003(\0132\023.hbase.pb.TableName\022/\n\007tst_map\030\007 \003(" +
+ "\0132\036.hbase.pb.TableServerTimestamp\0225\n\026dep" +
+ "endent_backup_image\030\010 \003(\0132\025.hbase.pb.Bac" +
+ "kupImage\"]\n\021TableBackupStatus\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_root_dir\030\003 \001(\t\022/",
+ "\n\005state\030\004 \001(\0162 .hbase.pb.BackupInfo.Back" +
+ "upState\022/\n\005phase\030\005 \001(\0162 .hbase.pb.Backup" +
+ "Info.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\010start_ts\030\010 \001(\004\022\016\n\006" +
+ "end_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\tbandwi" +
+ "dth\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\t" +
+ "CANCELLED\020\004\"}\n\013BackupPhase\022\013\n\007REQUEST\020\000\022",
+ "\014\n\010SNAPSHOT\020\001\022\027\n\023PREPARE_INCREMENTAL\020\002\022\020" +
+ "\n\014SNAPSHOTCOPY\020\003\022\024\n\020INCREMENTAL_COPY\020\004\022\022" +
+ "\n\016STORE_MANIFEST\020\005*\'\n\nBackupType\022\010\n\004FULL" +
+ "\020\000\022\017\n\013INCREMENTAL\020\001BB\n*org.apache.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 +8525,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[] { "TableList", "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..9f7330b 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,52 @@ 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;
+ //optional string version = 1;
+ //optional string backup_id = 2;
+ //optional BackupType type = 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 TableServerTimestamp tst_map = 7;
repeated BackupImage dependent_backup_image = 8;
}
message TableBackupStatus {
- required TableName table = 1;
- required string target_dir = 2;
+ optional TableName table = 1;
+ optional string target_dir = 2;
optional string snapshot = 3;
}
message BackupInfo {
- required string backup_id = 1;
- required BackupType type = 2;
- required string target_root_dir = 3;
+ optional string backup_id = 1;
+ optional BackupType type = 2;
+ optional string target_root_dir = 3;
optional BackupState state = 4;
optional BackupPhase phase = 5;
optional string failed_message = 6;
@@ -99,8 +81,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 +101,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/BackupInfo.java hbase-server/src/main/java/org/apache/hadoop/hbase/backup/BackupInfo.java
index be5ffea..6d31f23 100644
--- hbase-server/src/main/java/org/apache/hadoop/hbase/backup/BackupInfo.java
+++ hbase-server/src/main/java/org/apache/hadoop/hbase/backup/BackupInfo.java
@@ -479,7 +479,7 @@ public class BackupInfo implements Comparable