hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From syuanji...@apache.org
Subject [4/5] hbase git commit: HBASE-15521 Procedure V2 - RestoreSnapshot and CloneSnapshot (Stephen Yuan Jiang)
Date Fri, 01 Apr 2016 04:49:39 GMT
http://git-wip-us.apache.org/repos/asf/hbase/blob/e1d5c3d2/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/MasterProcedureProtos.java
----------------------------------------------------------------------
diff --git a/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/MasterProcedureProtos.java b/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/MasterProcedureProtos.java
index d40c1f7..9ed9d7a 100644
--- a/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/MasterProcedureProtos.java
+++ b/hbase-protocol/src/main/java/org/apache/hadoop/hbase/protobuf/generated/MasterProcedureProtos.java
@@ -1380,6 +1380,224 @@ public final class MasterProcedureProtos {
   }
 
   /**
+   * Protobuf enum {@code hbase.pb.CloneSnapshotState}
+   */
+  public enum CloneSnapshotState
+      implements com.google.protobuf.ProtocolMessageEnum {
+    /**
+     * <code>CLONE_SNAPSHOT_PRE_OPERATION = 1;</code>
+     */
+    CLONE_SNAPSHOT_PRE_OPERATION(0, 1),
+    /**
+     * <code>CLONE_SNAPSHOT_WRITE_FS_LAYOUT = 2;</code>
+     */
+    CLONE_SNAPSHOT_WRITE_FS_LAYOUT(1, 2),
+    /**
+     * <code>CLONE_SNAPSHOT_ADD_TO_META = 3;</code>
+     */
+    CLONE_SNAPSHOT_ADD_TO_META(2, 3),
+    /**
+     * <code>CLONE_SNAPSHOT_ASSIGN_REGIONS = 4;</code>
+     */
+    CLONE_SNAPSHOT_ASSIGN_REGIONS(3, 4),
+    /**
+     * <code>CLONE_SNAPSHOT_UPDATE_DESC_CACHE = 5;</code>
+     */
+    CLONE_SNAPSHOT_UPDATE_DESC_CACHE(4, 5),
+    /**
+     * <code>CLONE_SNAPSHOT_POST_OPERATION = 6;</code>
+     */
+    CLONE_SNAPSHOT_POST_OPERATION(5, 6),
+    ;
+
+    /**
+     * <code>CLONE_SNAPSHOT_PRE_OPERATION = 1;</code>
+     */
+    public static final int CLONE_SNAPSHOT_PRE_OPERATION_VALUE = 1;
+    /**
+     * <code>CLONE_SNAPSHOT_WRITE_FS_LAYOUT = 2;</code>
+     */
+    public static final int CLONE_SNAPSHOT_WRITE_FS_LAYOUT_VALUE = 2;
+    /**
+     * <code>CLONE_SNAPSHOT_ADD_TO_META = 3;</code>
+     */
+    public static final int CLONE_SNAPSHOT_ADD_TO_META_VALUE = 3;
+    /**
+     * <code>CLONE_SNAPSHOT_ASSIGN_REGIONS = 4;</code>
+     */
+    public static final int CLONE_SNAPSHOT_ASSIGN_REGIONS_VALUE = 4;
+    /**
+     * <code>CLONE_SNAPSHOT_UPDATE_DESC_CACHE = 5;</code>
+     */
+    public static final int CLONE_SNAPSHOT_UPDATE_DESC_CACHE_VALUE = 5;
+    /**
+     * <code>CLONE_SNAPSHOT_POST_OPERATION = 6;</code>
+     */
+    public static final int CLONE_SNAPSHOT_POST_OPERATION_VALUE = 6;
+
+
+    public final int getNumber() { return value; }
+
+    public static CloneSnapshotState valueOf(int value) {
+      switch (value) {
+        case 1: return CLONE_SNAPSHOT_PRE_OPERATION;
+        case 2: return CLONE_SNAPSHOT_WRITE_FS_LAYOUT;
+        case 3: return CLONE_SNAPSHOT_ADD_TO_META;
+        case 4: return CLONE_SNAPSHOT_ASSIGN_REGIONS;
+        case 5: return CLONE_SNAPSHOT_UPDATE_DESC_CACHE;
+        case 6: return CLONE_SNAPSHOT_POST_OPERATION;
+        default: return null;
+      }
+    }
+
+    public static com.google.protobuf.Internal.EnumLiteMap<CloneSnapshotState>
+        internalGetValueMap() {
+      return internalValueMap;
+    }
+    private static com.google.protobuf.Internal.EnumLiteMap<CloneSnapshotState>
+        internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap<CloneSnapshotState>() {
+            public CloneSnapshotState findValueByNumber(int number) {
+              return CloneSnapshotState.valueOf(number);
+            }
+          };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
+      return getDescriptor().getValues().get(index);
+    }
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
+      return getDescriptor();
+    }
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.getDescriptor().getEnumTypes().get(12);
+    }
+
+    private static final CloneSnapshotState[] VALUES = values();
+
+    public static CloneSnapshotState valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      if (desc.getType() != getDescriptor()) {
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
+      }
+      return VALUES[desc.getIndex()];
+    }
+
+    private final int index;
+    private final int value;
+
+    private CloneSnapshotState(int index, int value) {
+      this.index = index;
+      this.value = value;
+    }
+
+    // @@protoc_insertion_point(enum_scope:hbase.pb.CloneSnapshotState)
+  }
+
+  /**
+   * Protobuf enum {@code hbase.pb.RestoreSnapshotState}
+   */
+  public enum RestoreSnapshotState
+      implements com.google.protobuf.ProtocolMessageEnum {
+    /**
+     * <code>RESTORE_SNAPSHOT_PRE_OPERATION = 1;</code>
+     */
+    RESTORE_SNAPSHOT_PRE_OPERATION(0, 1),
+    /**
+     * <code>RESTORE_SNAPSHOT_UPDATE_TABLE_DESCRIPTOR = 2;</code>
+     */
+    RESTORE_SNAPSHOT_UPDATE_TABLE_DESCRIPTOR(1, 2),
+    /**
+     * <code>RESTORE_SNAPSHOT_WRITE_FS_LAYOUT = 3;</code>
+     */
+    RESTORE_SNAPSHOT_WRITE_FS_LAYOUT(2, 3),
+    /**
+     * <code>RESTORE_SNAPSHOT_UPDATE_META = 4;</code>
+     */
+    RESTORE_SNAPSHOT_UPDATE_META(3, 4),
+    ;
+
+    /**
+     * <code>RESTORE_SNAPSHOT_PRE_OPERATION = 1;</code>
+     */
+    public static final int RESTORE_SNAPSHOT_PRE_OPERATION_VALUE = 1;
+    /**
+     * <code>RESTORE_SNAPSHOT_UPDATE_TABLE_DESCRIPTOR = 2;</code>
+     */
+    public static final int RESTORE_SNAPSHOT_UPDATE_TABLE_DESCRIPTOR_VALUE = 2;
+    /**
+     * <code>RESTORE_SNAPSHOT_WRITE_FS_LAYOUT = 3;</code>
+     */
+    public static final int RESTORE_SNAPSHOT_WRITE_FS_LAYOUT_VALUE = 3;
+    /**
+     * <code>RESTORE_SNAPSHOT_UPDATE_META = 4;</code>
+     */
+    public static final int RESTORE_SNAPSHOT_UPDATE_META_VALUE = 4;
+
+
+    public final int getNumber() { return value; }
+
+    public static RestoreSnapshotState valueOf(int value) {
+      switch (value) {
+        case 1: return RESTORE_SNAPSHOT_PRE_OPERATION;
+        case 2: return RESTORE_SNAPSHOT_UPDATE_TABLE_DESCRIPTOR;
+        case 3: return RESTORE_SNAPSHOT_WRITE_FS_LAYOUT;
+        case 4: return RESTORE_SNAPSHOT_UPDATE_META;
+        default: return null;
+      }
+    }
+
+    public static com.google.protobuf.Internal.EnumLiteMap<RestoreSnapshotState>
+        internalGetValueMap() {
+      return internalValueMap;
+    }
+    private static com.google.protobuf.Internal.EnumLiteMap<RestoreSnapshotState>
+        internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap<RestoreSnapshotState>() {
+            public RestoreSnapshotState findValueByNumber(int number) {
+              return RestoreSnapshotState.valueOf(number);
+            }
+          };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
+      return getDescriptor().getValues().get(index);
+    }
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
+      return getDescriptor();
+    }
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.getDescriptor().getEnumTypes().get(13);
+    }
+
+    private static final RestoreSnapshotState[] VALUES = values();
+
+    public static RestoreSnapshotState valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      if (desc.getType() != getDescriptor()) {
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
+      }
+      return VALUES[desc.getIndex()];
+    }
+
+    private final int index;
+    private final int value;
+
+    private RestoreSnapshotState(int index, int value) {
+      this.index = index;
+      this.value = value;
+    }
+
+    // @@protoc_insertion_point(enum_scope:hbase.pb.RestoreSnapshotState)
+  }
+
+  /**
    * Protobuf enum {@code hbase.pb.ServerCrashState}
    */
   public enum ServerCrashState
@@ -1507,7 +1725,7 @@ public final class MasterProcedureProtos {
     }
     public static final com.google.protobuf.Descriptors.EnumDescriptor
         getDescriptor() {
-      return org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.getDescriptor().getEnumTypes().get(12);
+      return org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.getDescriptor().getEnumTypes().get(14);
     }
 
     private static final ServerCrashState[] VALUES = values();
@@ -13727,122 +13945,73 @@ public final class MasterProcedureProtos {
     // @@protoc_insertion_point(class_scope:hbase.pb.DisableTableStateData)
   }
 
-  public interface ServerCrashStateDataOrBuilder
+  public interface RestoreParentToChildRegionsPairOrBuilder
       extends com.google.protobuf.MessageOrBuilder {
 
-    // required .hbase.pb.ServerName server_name = 1;
-    /**
-     * <code>required .hbase.pb.ServerName server_name = 1;</code>
-     */
-    boolean hasServerName();
-    /**
-     * <code>required .hbase.pb.ServerName server_name = 1;</code>
-     */
-    org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName getServerName();
-    /**
-     * <code>required .hbase.pb.ServerName server_name = 1;</code>
-     */
-    org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder getServerNameOrBuilder();
-
-    // optional bool distributed_log_replay = 2;
-    /**
-     * <code>optional bool distributed_log_replay = 2;</code>
-     */
-    boolean hasDistributedLogReplay();
-    /**
-     * <code>optional bool distributed_log_replay = 2;</code>
-     */
-    boolean getDistributedLogReplay();
-
-    // repeated .hbase.pb.RegionInfo regions_on_crashed_server = 3;
-    /**
-     * <code>repeated .hbase.pb.RegionInfo regions_on_crashed_server = 3;</code>
-     */
-    java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo> 
-        getRegionsOnCrashedServerList();
-    /**
-     * <code>repeated .hbase.pb.RegionInfo regions_on_crashed_server = 3;</code>
-     */
-    org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo getRegionsOnCrashedServer(int index);
+    // required string parent_region_name = 1;
     /**
-     * <code>repeated .hbase.pb.RegionInfo regions_on_crashed_server = 3;</code>
+     * <code>required string parent_region_name = 1;</code>
      */
-    int getRegionsOnCrashedServerCount();
+    boolean hasParentRegionName();
     /**
-     * <code>repeated .hbase.pb.RegionInfo regions_on_crashed_server = 3;</code>
+     * <code>required string parent_region_name = 1;</code>
      */
-    java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder> 
-        getRegionsOnCrashedServerOrBuilderList();
+    java.lang.String getParentRegionName();
     /**
-     * <code>repeated .hbase.pb.RegionInfo regions_on_crashed_server = 3;</code>
+     * <code>required string parent_region_name = 1;</code>
      */
-    org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder getRegionsOnCrashedServerOrBuilder(
-        int index);
+    com.google.protobuf.ByteString
+        getParentRegionNameBytes();
 
-    // repeated .hbase.pb.RegionInfo regions_assigned = 4;
-    /**
-     * <code>repeated .hbase.pb.RegionInfo regions_assigned = 4;</code>
-     */
-    java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo> 
-        getRegionsAssignedList();
-    /**
-     * <code>repeated .hbase.pb.RegionInfo regions_assigned = 4;</code>
-     */
-    org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo getRegionsAssigned(int index);
+    // required string child1_region_name = 2;
     /**
-     * <code>repeated .hbase.pb.RegionInfo regions_assigned = 4;</code>
+     * <code>required string child1_region_name = 2;</code>
      */
-    int getRegionsAssignedCount();
+    boolean hasChild1RegionName();
     /**
-     * <code>repeated .hbase.pb.RegionInfo regions_assigned = 4;</code>
+     * <code>required string child1_region_name = 2;</code>
      */
-    java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder> 
-        getRegionsAssignedOrBuilderList();
+    java.lang.String getChild1RegionName();
     /**
-     * <code>repeated .hbase.pb.RegionInfo regions_assigned = 4;</code>
+     * <code>required string child1_region_name = 2;</code>
      */
-    org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder getRegionsAssignedOrBuilder(
-        int index);
+    com.google.protobuf.ByteString
+        getChild1RegionNameBytes();
 
-    // optional bool carrying_meta = 5;
+    // required string child2_region_name = 3;
     /**
-     * <code>optional bool carrying_meta = 5;</code>
-     */
-    boolean hasCarryingMeta();
-    /**
-     * <code>optional bool carrying_meta = 5;</code>
+     * <code>required string child2_region_name = 3;</code>
      */
-    boolean getCarryingMeta();
-
-    // optional bool should_split_wal = 6 [default = true];
+    boolean hasChild2RegionName();
     /**
-     * <code>optional bool should_split_wal = 6 [default = true];</code>
+     * <code>required string child2_region_name = 3;</code>
      */
-    boolean hasShouldSplitWal();
+    java.lang.String getChild2RegionName();
     /**
-     * <code>optional bool should_split_wal = 6 [default = true];</code>
+     * <code>required string child2_region_name = 3;</code>
      */
-    boolean getShouldSplitWal();
+    com.google.protobuf.ByteString
+        getChild2RegionNameBytes();
   }
   /**
-   * Protobuf type {@code hbase.pb.ServerCrashStateData}
+   * Protobuf type {@code hbase.pb.RestoreParentToChildRegionsPair}
    */
-  public static final class ServerCrashStateData extends
+  public static final class RestoreParentToChildRegionsPair extends
       com.google.protobuf.GeneratedMessage
-      implements ServerCrashStateDataOrBuilder {
-    // Use ServerCrashStateData.newBuilder() to construct.
-    private ServerCrashStateData(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+      implements RestoreParentToChildRegionsPairOrBuilder {
+    // Use RestoreParentToChildRegionsPair.newBuilder() to construct.
+    private RestoreParentToChildRegionsPair(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
       super(builder);
       this.unknownFields = builder.getUnknownFields();
     }
-    private ServerCrashStateData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+    private RestoreParentToChildRegionsPair(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
 
-    private static final ServerCrashStateData defaultInstance;
-    public static ServerCrashStateData getDefaultInstance() {
+    private static final RestoreParentToChildRegionsPair defaultInstance;
+    public static RestoreParentToChildRegionsPair getDefaultInstance() {
       return defaultInstance;
     }
 
-    public ServerCrashStateData getDefaultInstanceForType() {
+    public RestoreParentToChildRegionsPair getDefaultInstanceForType() {
       return defaultInstance;
     }
 
@@ -13852,7 +14021,7 @@ public final class MasterProcedureProtos {
         getUnknownFields() {
       return this.unknownFields;
     }
-    private ServerCrashStateData(
+    private RestoreParentToChildRegionsPair(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
@@ -13876,38 +14045,5220 @@ public final class MasterProcedureProtos {
               break;
             }
             case 10: {
-              org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder subBuilder = null;
-              if (((bitField0_ & 0x00000001) == 0x00000001)) {
-                subBuilder = serverName_.toBuilder();
-              }
-              serverName_ = input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.PARSER, extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(serverName_);
-                serverName_ = subBuilder.buildPartial();
-              }
               bitField0_ |= 0x00000001;
+              parentRegionName_ = input.readBytes();
               break;
             }
-            case 16: {
+            case 18: {
               bitField0_ |= 0x00000002;
-              distributedLogReplay_ = input.readBool();
+              child1RegionName_ = input.readBytes();
               break;
             }
             case 26: {
-              if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
-                regionsOnCrashedServer_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo>();
-                mutable_bitField0_ |= 0x00000004;
-              }
-              regionsOnCrashedServer_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.PARSER, extensionRegistry));
+              bitField0_ |= 0x00000004;
+              child2RegionName_ = input.readBytes();
               break;
             }
-            case 34: {
-              if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
-                regionsAssigned_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo>();
-                mutable_bitField0_ |= 0x00000008;
-              }
-              regionsAssigned_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.PARSER, extensionRegistry));
-              break;
+          }
+        }
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(this);
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e.getMessage()).setUnfinishedMessage(this);
+      } finally {
+        this.unknownFields = unknownFields.build();
+        makeExtensionsImmutable();
+      }
+    }
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.internal_static_hbase_pb_RestoreParentToChildRegionsPair_descriptor;
+    }
+
+    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+        internalGetFieldAccessorTable() {
+      return org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.internal_static_hbase_pb_RestoreParentToChildRegionsPair_fieldAccessorTable
+          .ensureFieldAccessorsInitialized(
+              org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair.class, org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair.Builder.class);
+    }
+
+    public static com.google.protobuf.Parser<RestoreParentToChildRegionsPair> PARSER =
+        new com.google.protobuf.AbstractParser<RestoreParentToChildRegionsPair>() {
+      public RestoreParentToChildRegionsPair parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        return new RestoreParentToChildRegionsPair(input, extensionRegistry);
+      }
+    };
+
+    @java.lang.Override
+    public com.google.protobuf.Parser<RestoreParentToChildRegionsPair> getParserForType() {
+      return PARSER;
+    }
+
+    private int bitField0_;
+    // required string parent_region_name = 1;
+    public static final int PARENT_REGION_NAME_FIELD_NUMBER = 1;
+    private java.lang.Object parentRegionName_;
+    /**
+     * <code>required string parent_region_name = 1;</code>
+     */
+    public boolean hasParentRegionName() {
+      return ((bitField0_ & 0x00000001) == 0x00000001);
+    }
+    /**
+     * <code>required string parent_region_name = 1;</code>
+     */
+    public java.lang.String getParentRegionName() {
+      java.lang.Object ref = parentRegionName_;
+      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()) {
+          parentRegionName_ = s;
+        }
+        return s;
+      }
+    }
+    /**
+     * <code>required string parent_region_name = 1;</code>
+     */
+    public com.google.protobuf.ByteString
+        getParentRegionNameBytes() {
+      java.lang.Object ref = parentRegionName_;
+      if (ref instanceof java.lang.String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        parentRegionName_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+
+    // required string child1_region_name = 2;
+    public static final int CHILD1_REGION_NAME_FIELD_NUMBER = 2;
+    private java.lang.Object child1RegionName_;
+    /**
+     * <code>required string child1_region_name = 2;</code>
+     */
+    public boolean hasChild1RegionName() {
+      return ((bitField0_ & 0x00000002) == 0x00000002);
+    }
+    /**
+     * <code>required string child1_region_name = 2;</code>
+     */
+    public java.lang.String getChild1RegionName() {
+      java.lang.Object ref = child1RegionName_;
+      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()) {
+          child1RegionName_ = s;
+        }
+        return s;
+      }
+    }
+    /**
+     * <code>required string child1_region_name = 2;</code>
+     */
+    public com.google.protobuf.ByteString
+        getChild1RegionNameBytes() {
+      java.lang.Object ref = child1RegionName_;
+      if (ref instanceof java.lang.String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        child1RegionName_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+
+    // required string child2_region_name = 3;
+    public static final int CHILD2_REGION_NAME_FIELD_NUMBER = 3;
+    private java.lang.Object child2RegionName_;
+    /**
+     * <code>required string child2_region_name = 3;</code>
+     */
+    public boolean hasChild2RegionName() {
+      return ((bitField0_ & 0x00000004) == 0x00000004);
+    }
+    /**
+     * <code>required string child2_region_name = 3;</code>
+     */
+    public java.lang.String getChild2RegionName() {
+      java.lang.Object ref = child2RegionName_;
+      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()) {
+          child2RegionName_ = s;
+        }
+        return s;
+      }
+    }
+    /**
+     * <code>required string child2_region_name = 3;</code>
+     */
+    public com.google.protobuf.ByteString
+        getChild2RegionNameBytes() {
+      java.lang.Object ref = child2RegionName_;
+      if (ref instanceof java.lang.String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        child2RegionName_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+
+    private void initFields() {
+      parentRegionName_ = "";
+      child1RegionName_ = "";
+      child2RegionName_ = "";
+    }
+    private byte memoizedIsInitialized = -1;
+    public final boolean isInitialized() {
+      byte isInitialized = memoizedIsInitialized;
+      if (isInitialized != -1) return isInitialized == 1;
+
+      if (!hasParentRegionName()) {
+        memoizedIsInitialized = 0;
+        return false;
+      }
+      if (!hasChild1RegionName()) {
+        memoizedIsInitialized = 0;
+        return false;
+      }
+      if (!hasChild2RegionName()) {
+        memoizedIsInitialized = 0;
+        return false;
+      }
+      memoizedIsInitialized = 1;
+      return true;
+    }
+
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
+      getSerializedSize();
+      if (((bitField0_ & 0x00000001) == 0x00000001)) {
+        output.writeBytes(1, getParentRegionNameBytes());
+      }
+      if (((bitField0_ & 0x00000002) == 0x00000002)) {
+        output.writeBytes(2, getChild1RegionNameBytes());
+      }
+      if (((bitField0_ & 0x00000004) == 0x00000004)) {
+        output.writeBytes(3, getChild2RegionNameBytes());
+      }
+      getUnknownFields().writeTo(output);
+    }
+
+    private int memoizedSerializedSize = -1;
+    public int getSerializedSize() {
+      int size = memoizedSerializedSize;
+      if (size != -1) return size;
+
+      size = 0;
+      if (((bitField0_ & 0x00000001) == 0x00000001)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeBytesSize(1, getParentRegionNameBytes());
+      }
+      if (((bitField0_ & 0x00000002) == 0x00000002)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeBytesSize(2, getChild1RegionNameBytes());
+      }
+      if (((bitField0_ & 0x00000004) == 0x00000004)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeBytesSize(3, getChild2RegionNameBytes());
+      }
+      size += getUnknownFields().getSerializedSize();
+      memoizedSerializedSize = size;
+      return size;
+    }
+
+    private static final long serialVersionUID = 0L;
+    @java.lang.Override
+    protected java.lang.Object writeReplace()
+        throws java.io.ObjectStreamException {
+      return super.writeReplace();
+    }
+
+    @java.lang.Override
+    public boolean equals(final java.lang.Object obj) {
+      if (obj == this) {
+       return true;
+      }
+      if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair)) {
+        return super.equals(obj);
+      }
+      org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair other = (org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair) obj;
+
+      boolean result = true;
+      result = result && (hasParentRegionName() == other.hasParentRegionName());
+      if (hasParentRegionName()) {
+        result = result && getParentRegionName()
+            .equals(other.getParentRegionName());
+      }
+      result = result && (hasChild1RegionName() == other.hasChild1RegionName());
+      if (hasChild1RegionName()) {
+        result = result && getChild1RegionName()
+            .equals(other.getChild1RegionName());
+      }
+      result = result && (hasChild2RegionName() == other.hasChild2RegionName());
+      if (hasChild2RegionName()) {
+        result = result && getChild2RegionName()
+            .equals(other.getChild2RegionName());
+      }
+      result = result &&
+          getUnknownFields().equals(other.getUnknownFields());
+      return result;
+    }
+
+    private int memoizedHashCode = 0;
+    @java.lang.Override
+    public int hashCode() {
+      if (memoizedHashCode != 0) {
+        return memoizedHashCode;
+      }
+      int hash = 41;
+      hash = (19 * hash) + getDescriptorForType().hashCode();
+      if (hasParentRegionName()) {
+        hash = (37 * hash) + PARENT_REGION_NAME_FIELD_NUMBER;
+        hash = (53 * hash) + getParentRegionName().hashCode();
+      }
+      if (hasChild1RegionName()) {
+        hash = (37 * hash) + CHILD1_REGION_NAME_FIELD_NUMBER;
+        hash = (53 * hash) + getChild1RegionName().hashCode();
+      }
+      if (hasChild2RegionName()) {
+        hash = (37 * hash) + CHILD2_REGION_NAME_FIELD_NUMBER;
+        hash = (53 * hash) + getChild2RegionName().hashCode();
+      }
+      hash = (29 * hash) + getUnknownFields().hashCode();
+      memoizedHashCode = hash;
+      return hash;
+    }
+
+    public static org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair parseFrom(
+        com.google.protobuf.ByteString data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return PARSER.parseFrom(data);
+    }
+    public static org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair parseFrom(
+        com.google.protobuf.ByteString data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return PARSER.parseFrom(data, extensionRegistry);
+    }
+    public static org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return PARSER.parseFrom(data);
+    }
+    public static org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair parseFrom(
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return PARSER.parseFrom(data, extensionRegistry);
+    }
+    public static org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return PARSER.parseFrom(input);
+    }
+    public static org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair parseFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return PARSER.parseFrom(input, extensionRegistry);
+    }
+    public static org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return PARSER.parseDelimitedFrom(input);
+    }
+    public static org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair parseDelimitedFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return PARSER.parseDelimitedFrom(input, extensionRegistry);
+    }
+    public static org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair parseFrom(
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return PARSER.parseFrom(input);
+    }
+    public static org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair parseFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return PARSER.parseFrom(input, extensionRegistry);
+    }
+
+    public static Builder newBuilder() { return Builder.create(); }
+    public Builder newBuilderForType() { return newBuilder(); }
+    public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair prototype) {
+      return newBuilder().mergeFrom(prototype);
+    }
+    public Builder toBuilder() { return newBuilder(this); }
+
+    @java.lang.Override
+    protected Builder newBuilderForType(
+        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+      Builder builder = new Builder(parent);
+      return builder;
+    }
+    /**
+     * Protobuf type {@code hbase.pb.RestoreParentToChildRegionsPair}
+     */
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessage.Builder<Builder>
+       implements org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPairOrBuilder {
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.internal_static_hbase_pb_RestoreParentToChildRegionsPair_descriptor;
+      }
+
+      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+          internalGetFieldAccessorTable() {
+        return org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.internal_static_hbase_pb_RestoreParentToChildRegionsPair_fieldAccessorTable
+            .ensureFieldAccessorsInitialized(
+                org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair.class, org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair.Builder.class);
+      }
+
+      // Construct using org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair.newBuilder()
+      private Builder() {
+        maybeForceBuilderInitialization();
+      }
+
+      private Builder(
+          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+        super(parent);
+        maybeForceBuilderInitialization();
+      }
+      private void maybeForceBuilderInitialization() {
+        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+        }
+      }
+      private static Builder create() {
+        return new Builder();
+      }
+
+      public Builder clear() {
+        super.clear();
+        parentRegionName_ = "";
+        bitField0_ = (bitField0_ & ~0x00000001);
+        child1RegionName_ = "";
+        bitField0_ = (bitField0_ & ~0x00000002);
+        child2RegionName_ = "";
+        bitField0_ = (bitField0_ & ~0x00000004);
+        return this;
+      }
+
+      public Builder clone() {
+        return create().mergeFrom(buildPartial());
+      }
+
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.internal_static_hbase_pb_RestoreParentToChildRegionsPair_descriptor;
+      }
+
+      public org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair getDefaultInstanceForType() {
+        return org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair.getDefaultInstance();
+      }
+
+      public org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair build() {
+        org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair result = buildPartial();
+        if (!result.isInitialized()) {
+          throw newUninitializedMessageException(result);
+        }
+        return result;
+      }
+
+      public org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair buildPartial() {
+        org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair result = new org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair(this);
+        int from_bitField0_ = bitField0_;
+        int to_bitField0_ = 0;
+        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+          to_bitField0_ |= 0x00000001;
+        }
+        result.parentRegionName_ = parentRegionName_;
+        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+          to_bitField0_ |= 0x00000002;
+        }
+        result.child1RegionName_ = child1RegionName_;
+        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+          to_bitField0_ |= 0x00000004;
+        }
+        result.child2RegionName_ = child2RegionName_;
+        result.bitField0_ = to_bitField0_;
+        onBuilt();
+        return result;
+      }
+
+      public Builder mergeFrom(com.google.protobuf.Message other) {
+        if (other instanceof org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair) {
+          return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair)other);
+        } else {
+          super.mergeFrom(other);
+          return this;
+        }
+      }
+
+      public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair other) {
+        if (other == org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair.getDefaultInstance()) return this;
+        if (other.hasParentRegionName()) {
+          bitField0_ |= 0x00000001;
+          parentRegionName_ = other.parentRegionName_;
+          onChanged();
+        }
+        if (other.hasChild1RegionName()) {
+          bitField0_ |= 0x00000002;
+          child1RegionName_ = other.child1RegionName_;
+          onChanged();
+        }
+        if (other.hasChild2RegionName()) {
+          bitField0_ |= 0x00000004;
+          child2RegionName_ = other.child2RegionName_;
+          onChanged();
+        }
+        this.mergeUnknownFields(other.getUnknownFields());
+        return this;
+      }
+
+      public final boolean isInitialized() {
+        if (!hasParentRegionName()) {
+          
+          return false;
+        }
+        if (!hasChild1RegionName()) {
+          
+          return false;
+        }
+        if (!hasChild2RegionName()) {
+          
+          return false;
+        }
+        return true;
+      }
+
+      public Builder mergeFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+        org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair parsedMessage = null;
+        try {
+          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair) e.getUnfinishedMessage();
+          throw e;
+        } finally {
+          if (parsedMessage != null) {
+            mergeFrom(parsedMessage);
+          }
+        }
+        return this;
+      }
+      private int bitField0_;
+
+      // required string parent_region_name = 1;
+      private java.lang.Object parentRegionName_ = "";
+      /**
+       * <code>required string parent_region_name = 1;</code>
+       */
+      public boolean hasParentRegionName() {
+        return ((bitField0_ & 0x00000001) == 0x00000001);
+      }
+      /**
+       * <code>required string parent_region_name = 1;</code>
+       */
+      public java.lang.String getParentRegionName() {
+        java.lang.Object ref = parentRegionName_;
+        if (!(ref instanceof java.lang.String)) {
+          java.lang.String s = ((com.google.protobuf.ByteString) ref)
+              .toStringUtf8();
+          parentRegionName_ = s;
+          return s;
+        } else {
+          return (java.lang.String) ref;
+        }
+      }
+      /**
+       * <code>required string parent_region_name = 1;</code>
+       */
+      public com.google.protobuf.ByteString
+          getParentRegionNameBytes() {
+        java.lang.Object ref = parentRegionName_;
+        if (ref instanceof String) {
+          com.google.protobuf.ByteString b = 
+              com.google.protobuf.ByteString.copyFromUtf8(
+                  (java.lang.String) ref);
+          parentRegionName_ = b;
+          return b;
+        } else {
+          return (com.google.protobuf.ByteString) ref;
+        }
+      }
+      /**
+       * <code>required string parent_region_name = 1;</code>
+       */
+      public Builder setParentRegionName(
+          java.lang.String value) {
+        if (value == null) {
+    throw new NullPointerException();
+  }
+  bitField0_ |= 0x00000001;
+        parentRegionName_ = value;
+        onChanged();
+        return this;
+      }
+      /**
+       * <code>required string parent_region_name = 1;</code>
+       */
+      public Builder clearParentRegionName() {
+        bitField0_ = (bitField0_ & ~0x00000001);
+        parentRegionName_ = getDefaultInstance().getParentRegionName();
+        onChanged();
+        return this;
+      }
+      /**
+       * <code>required string parent_region_name = 1;</code>
+       */
+      public Builder setParentRegionNameBytes(
+          com.google.protobuf.ByteString value) {
+        if (value == null) {
+    throw new NullPointerException();
+  }
+  bitField0_ |= 0x00000001;
+        parentRegionName_ = value;
+        onChanged();
+        return this;
+      }
+
+      // required string child1_region_name = 2;
+      private java.lang.Object child1RegionName_ = "";
+      /**
+       * <code>required string child1_region_name = 2;</code>
+       */
+      public boolean hasChild1RegionName() {
+        return ((bitField0_ & 0x00000002) == 0x00000002);
+      }
+      /**
+       * <code>required string child1_region_name = 2;</code>
+       */
+      public java.lang.String getChild1RegionName() {
+        java.lang.Object ref = child1RegionName_;
+        if (!(ref instanceof java.lang.String)) {
+          java.lang.String s = ((com.google.protobuf.ByteString) ref)
+              .toStringUtf8();
+          child1RegionName_ = s;
+          return s;
+        } else {
+          return (java.lang.String) ref;
+        }
+      }
+      /**
+       * <code>required string child1_region_name = 2;</code>
+       */
+      public com.google.protobuf.ByteString
+          getChild1RegionNameBytes() {
+        java.lang.Object ref = child1RegionName_;
+        if (ref instanceof String) {
+          com.google.protobuf.ByteString b = 
+              com.google.protobuf.ByteString.copyFromUtf8(
+                  (java.lang.String) ref);
+          child1RegionName_ = b;
+          return b;
+        } else {
+          return (com.google.protobuf.ByteString) ref;
+        }
+      }
+      /**
+       * <code>required string child1_region_name = 2;</code>
+       */
+      public Builder setChild1RegionName(
+          java.lang.String value) {
+        if (value == null) {
+    throw new NullPointerException();
+  }
+  bitField0_ |= 0x00000002;
+        child1RegionName_ = value;
+        onChanged();
+        return this;
+      }
+      /**
+       * <code>required string child1_region_name = 2;</code>
+       */
+      public Builder clearChild1RegionName() {
+        bitField0_ = (bitField0_ & ~0x00000002);
+        child1RegionName_ = getDefaultInstance().getChild1RegionName();
+        onChanged();
+        return this;
+      }
+      /**
+       * <code>required string child1_region_name = 2;</code>
+       */
+      public Builder setChild1RegionNameBytes(
+          com.google.protobuf.ByteString value) {
+        if (value == null) {
+    throw new NullPointerException();
+  }
+  bitField0_ |= 0x00000002;
+        child1RegionName_ = value;
+        onChanged();
+        return this;
+      }
+
+      // required string child2_region_name = 3;
+      private java.lang.Object child2RegionName_ = "";
+      /**
+       * <code>required string child2_region_name = 3;</code>
+       */
+      public boolean hasChild2RegionName() {
+        return ((bitField0_ & 0x00000004) == 0x00000004);
+      }
+      /**
+       * <code>required string child2_region_name = 3;</code>
+       */
+      public java.lang.String getChild2RegionName() {
+        java.lang.Object ref = child2RegionName_;
+        if (!(ref instanceof java.lang.String)) {
+          java.lang.String s = ((com.google.protobuf.ByteString) ref)
+              .toStringUtf8();
+          child2RegionName_ = s;
+          return s;
+        } else {
+          return (java.lang.String) ref;
+        }
+      }
+      /**
+       * <code>required string child2_region_name = 3;</code>
+       */
+      public com.google.protobuf.ByteString
+          getChild2RegionNameBytes() {
+        java.lang.Object ref = child2RegionName_;
+        if (ref instanceof String) {
+          com.google.protobuf.ByteString b = 
+              com.google.protobuf.ByteString.copyFromUtf8(
+                  (java.lang.String) ref);
+          child2RegionName_ = b;
+          return b;
+        } else {
+          return (com.google.protobuf.ByteString) ref;
+        }
+      }
+      /**
+       * <code>required string child2_region_name = 3;</code>
+       */
+      public Builder setChild2RegionName(
+          java.lang.String value) {
+        if (value == null) {
+    throw new NullPointerException();
+  }
+  bitField0_ |= 0x00000004;
+        child2RegionName_ = value;
+        onChanged();
+        return this;
+      }
+      /**
+       * <code>required string child2_region_name = 3;</code>
+       */
+      public Builder clearChild2RegionName() {
+        bitField0_ = (bitField0_ & ~0x00000004);
+        child2RegionName_ = getDefaultInstance().getChild2RegionName();
+        onChanged();
+        return this;
+      }
+      /**
+       * <code>required string child2_region_name = 3;</code>
+       */
+      public Builder setChild2RegionNameBytes(
+          com.google.protobuf.ByteString value) {
+        if (value == null) {
+    throw new NullPointerException();
+  }
+  bitField0_ |= 0x00000004;
+        child2RegionName_ = value;
+        onChanged();
+        return this;
+      }
+
+      // @@protoc_insertion_point(builder_scope:hbase.pb.RestoreParentToChildRegionsPair)
+    }
+
+    static {
+      defaultInstance = new RestoreParentToChildRegionsPair(true);
+      defaultInstance.initFields();
+    }
+
+    // @@protoc_insertion_point(class_scope:hbase.pb.RestoreParentToChildRegionsPair)
+  }
+
+  public interface CloneSnapshotStateDataOrBuilder
+      extends com.google.protobuf.MessageOrBuilder {
+
+    // required .hbase.pb.UserInformation user_info = 1;
+    /**
+     * <code>required .hbase.pb.UserInformation user_info = 1;</code>
+     */
+    boolean hasUserInfo();
+    /**
+     * <code>required .hbase.pb.UserInformation user_info = 1;</code>
+     */
+    org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation getUserInfo();
+    /**
+     * <code>required .hbase.pb.UserInformation user_info = 1;</code>
+     */
+    org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder();
+
+    // required .hbase.pb.SnapshotDescription snapshot = 2;
+    /**
+     * <code>required .hbase.pb.SnapshotDescription snapshot = 2;</code>
+     */
+    boolean hasSnapshot();
+    /**
+     * <code>required .hbase.pb.SnapshotDescription snapshot = 2;</code>
+     */
+    org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription getSnapshot();
+    /**
+     * <code>required .hbase.pb.SnapshotDescription snapshot = 2;</code>
+     */
+    org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescriptionOrBuilder getSnapshotOrBuilder();
+
+    // required .hbase.pb.TableSchema table_schema = 3;
+    /**
+     * <code>required .hbase.pb.TableSchema table_schema = 3;</code>
+     */
+    boolean hasTableSchema();
+    /**
+     * <code>required .hbase.pb.TableSchema table_schema = 3;</code>
+     */
+    org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema getTableSchema();
+    /**
+     * <code>required .hbase.pb.TableSchema table_schema = 3;</code>
+     */
+    org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchemaOrBuilder getTableSchemaOrBuilder();
+
+    // repeated .hbase.pb.RegionInfo region_info = 4;
+    /**
+     * <code>repeated .hbase.pb.RegionInfo region_info = 4;</code>
+     */
+    java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo> 
+        getRegionInfoList();
+    /**
+     * <code>repeated .hbase.pb.RegionInfo region_info = 4;</code>
+     */
+    org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo getRegionInfo(int index);
+    /**
+     * <code>repeated .hbase.pb.RegionInfo region_info = 4;</code>
+     */
+    int getRegionInfoCount();
+    /**
+     * <code>repeated .hbase.pb.RegionInfo region_info = 4;</code>
+     */
+    java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder> 
+        getRegionInfoOrBuilderList();
+    /**
+     * <code>repeated .hbase.pb.RegionInfo region_info = 4;</code>
+     */
+    org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder getRegionInfoOrBuilder(
+        int index);
+
+    // repeated .hbase.pb.RestoreParentToChildRegionsPair parent_to_child_regions_pair_list = 5;
+    /**
+     * <code>repeated .hbase.pb.RestoreParentToChildRegionsPair parent_to_child_regions_pair_list = 5;</code>
+     */
+    java.util.List<org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair> 
+        getParentToChildRegionsPairListList();
+    /**
+     * <code>repeated .hbase.pb.RestoreParentToChildRegionsPair parent_to_child_regions_pair_list = 5;</code>
+     */
+    org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair getParentToChildRegionsPairList(int index);
+    /**
+     * <code>repeated .hbase.pb.RestoreParentToChildRegionsPair parent_to_child_regions_pair_list = 5;</code>
+     */
+    int getParentToChildRegionsPairListCount();
+    /**
+     * <code>repeated .hbase.pb.RestoreParentToChildRegionsPair parent_to_child_regions_pair_list = 5;</code>
+     */
+    java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPairOrBuilder> 
+        getParentToChildRegionsPairListOrBuilderList();
+    /**
+     * <code>repeated .hbase.pb.RestoreParentToChildRegionsPair parent_to_child_regions_pair_list = 5;</code>
+     */
+    org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPairOrBuilder getParentToChildRegionsPairListOrBuilder(
+        int index);
+  }
+  /**
+   * Protobuf type {@code hbase.pb.CloneSnapshotStateData}
+   */
+  public static final class CloneSnapshotStateData extends
+      com.google.protobuf.GeneratedMessage
+      implements CloneSnapshotStateDataOrBuilder {
+    // Use CloneSnapshotStateData.newBuilder() to construct.
+    private CloneSnapshotStateData(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+      super(builder);
+      this.unknownFields = builder.getUnknownFields();
+    }
+    private CloneSnapshotStateData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+    private static final CloneSnapshotStateData defaultInstance;
+    public static CloneSnapshotStateData getDefaultInstance() {
+      return defaultInstance;
+    }
+
+    public CloneSnapshotStateData getDefaultInstanceForType() {
+      return defaultInstance;
+    }
+
+    private final com.google.protobuf.UnknownFieldSet unknownFields;
+    @java.lang.Override
+    public final com.google.protobuf.UnknownFieldSet
+        getUnknownFields() {
+      return this.unknownFields;
+    }
+    private CloneSnapshotStateData(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      initFields();
+      int mutable_bitField0_ = 0;
+      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+          com.google.protobuf.UnknownFieldSet.newBuilder();
+      try {
+        boolean done = false;
+        while (!done) {
+          int tag = input.readTag();
+          switch (tag) {
+            case 0:
+              done = true;
+              break;
+            default: {
+              if (!parseUnknownField(input, unknownFields,
+                                     extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
+            }
+            case 10: {
+              org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.Builder subBuilder = null;
+              if (((bitField0_ & 0x00000001) == 0x00000001)) {
+                subBuilder = userInfo_.toBuilder();
+              }
+              userInfo_ = input.readMessage(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.PARSER, extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(userInfo_);
+                userInfo_ = subBuilder.buildPartial();
+              }
+              bitField0_ |= 0x00000001;
+              break;
+            }
+            case 18: {
+              org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Builder subBuilder = null;
+              if (((bitField0_ & 0x00000002) == 0x00000002)) {
+                subBuilder = snapshot_.toBuilder();
+              }
+              snapshot_ = input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.PARSER, extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(snapshot_);
+                snapshot_ = subBuilder.buildPartial();
+              }
+              bitField0_ |= 0x00000002;
+              break;
+            }
+            case 26: {
+              org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.Builder subBuilder = null;
+              if (((bitField0_ & 0x00000004) == 0x00000004)) {
+                subBuilder = tableSchema_.toBuilder();
+              }
+              tableSchema_ = input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.PARSER, extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(tableSchema_);
+                tableSchema_ = subBuilder.buildPartial();
+              }
+              bitField0_ |= 0x00000004;
+              break;
+            }
+            case 34: {
+              if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
+                regionInfo_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo>();
+                mutable_bitField0_ |= 0x00000008;
+              }
+              regionInfo_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo.PARSER, extensionRegistry));
+              break;
+            }
+            case 42: {
+              if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
+                parentToChildRegionsPairList_ = new java.util.ArrayList<org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair>();
+                mutable_bitField0_ |= 0x00000010;
+              }
+              parentToChildRegionsPairList_.add(input.readMessage(org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair.PARSER, extensionRegistry));
+              break;
+            }
+          }
+        }
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(this);
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e.getMessage()).setUnfinishedMessage(this);
+      } finally {
+        if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
+          regionInfo_ = java.util.Collections.unmodifiableList(regionInfo_);
+        }
+        if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
+          parentToChildRegionsPairList_ = java.util.Collections.unmodifiableList(parentToChildRegionsPairList_);
+        }
+        this.unknownFields = unknownFields.build();
+        makeExtensionsImmutable();
+      }
+    }
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.internal_static_hbase_pb_CloneSnapshotStateData_descriptor;
+    }
+
+    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+        internalGetFieldAccessorTable() {
+      return org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.internal_static_hbase_pb_CloneSnapshotStateData_fieldAccessorTable
+          .ensureFieldAccessorsInitialized(
+              org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData.class, org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData.Builder.class);
+    }
+
+    public static com.google.protobuf.Parser<CloneSnapshotStateData> PARSER =
+        new com.google.protobuf.AbstractParser<CloneSnapshotStateData>() {
+      public CloneSnapshotStateData parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        return new CloneSnapshotStateData(input, extensionRegistry);
+      }
+    };
+
+    @java.lang.Override
+    public com.google.protobuf.Parser<CloneSnapshotStateData> getParserForType() {
+      return PARSER;
+    }
+
+    private int bitField0_;
+    // required .hbase.pb.UserInformation user_info = 1;
+    public static final int USER_INFO_FIELD_NUMBER = 1;
+    private org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation userInfo_;
+    /**
+     * <code>required .hbase.pb.UserInformation user_info = 1;</code>
+     */
+    public boolean hasUserInfo() {
+      return ((bitField0_ & 0x00000001) == 0x00000001);
+    }
+    /**
+     * <code>required .hbase.pb.UserInformation user_info = 1;</code>
+     */
+    public org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation getUserInfo() {
+      return userInfo_;
+    }
+    /**
+     * <code>required .hbase.pb.UserInformation user_info = 1;</code>
+     */
+    public org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformationOrBuilder getUserInfoOrBuilder() {
+      return userInfo_;
+    }
+
+    // required .hbase.pb.SnapshotDescription snapshot = 2;
+    public static final int SNAPSHOT_FIELD_NUMBER = 2;
+    private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot_;
+    /**
+     * <code>required .hbase.pb.SnapshotDescription snapshot = 2;</code>
+     */
+    public boolean hasSnapshot() {
+      return ((bitField0_ & 0x00000002) == 0x00000002);
+    }
+    /**
+     * <code>required .hbase.pb.SnapshotDescription snapshot = 2;</code>
+     */
+    public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription getSnapshot() {
+      return snapshot_;
+    }
+    /**
+     * <code>required .hbase.pb.SnapshotDescription snapshot = 2;</code>
+     */
+    public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescriptionOrBuilder getSnapshotOrBuilder() {
+      return snapshot_;
+    }
+
+    // required .hbase.pb.TableSchema table_schema = 3;
+    public static final int TABLE_SCHEMA_FIELD_NUMBER = 3;
+    private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema tableSchema_;
+    /**
+     * <code>required .hbase.pb.TableSchema table_schema = 3;</code>
+     */
+    public boolean hasTableSchema() {
+      return ((bitField0_ & 0x00000004) == 0x00000004);
+    }
+    /**
+     * <code>required .hbase.pb.TableSchema table_schema = 3;</code>
+     */
+    public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema getTableSchema() {
+      return tableSchema_;
+    }
+    /**
+     * <code>required .hbase.pb.TableSchema table_schema = 3;</code>
+     */
+    public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchemaOrBuilder getTableSchemaOrBuilder() {
+      return tableSchema_;
+    }
+
+    // repeated .hbase.pb.RegionInfo region_info = 4;
+    public static final int REGION_INFO_FIELD_NUMBER = 4;
+    private java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo> regionInfo_;
+    /**
+     * <code>repeated .hbase.pb.RegionInfo region_info = 4;</code>
+     */
+    public java.util.List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo> getRegionInfoList() {
+      return regionInfo_;
+    }
+    /**
+     * <code>repeated .hbase.pb.RegionInfo region_info = 4;</code>
+     */
+    public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder> 
+        getRegionInfoOrBuilderList() {
+      return regionInfo_;
+    }
+    /**
+     * <code>repeated .hbase.pb.RegionInfo region_info = 4;</code>
+     */
+    public int getRegionInfoCount() {
+      return regionInfo_.size();
+    }
+    /**
+     * <code>repeated .hbase.pb.RegionInfo region_info = 4;</code>
+     */
+    public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfo getRegionInfo(int index) {
+      return regionInfo_.get(index);
+    }
+    /**
+     * <code>repeated .hbase.pb.RegionInfo region_info = 4;</code>
+     */
+    public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.RegionInfoOrBuilder getRegionInfoOrBuilder(
+        int index) {
+      return regionInfo_.get(index);
+    }
+
+    // repeated .hbase.pb.RestoreParentToChildRegionsPair parent_to_child_regions_pair_list = 5;
+    public static final int PARENT_TO_CHILD_REGIONS_PAIR_LIST_FIELD_NUMBER = 5;
+    private java.util.List<org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair> parentToChildRegionsPairList_;
+    /**
+     * <code>repeated .hbase.pb.RestoreParentToChildRegionsPair parent_to_child_regions_pair_list = 5;</code>
+     */
+    public java.util.List<org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair> getParentToChildRegionsPairListList() {
+      return parentToChildRegionsPairList_;
+    }
+    /**
+     * <code>repeated .hbase.pb.RestoreParentToChildRegionsPair parent_to_child_regions_pair_list = 5;</code>
+     */
+    public java.util.List<? extends org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPairOrBuilder> 
+        getParentToChildRegionsPairListOrBuilderList() {
+      return parentToChildRegionsPairList_;
+    }
+    /**
+     * <code>repeated .hbase.pb.RestoreParentToChildRegionsPair parent_to_child_regions_pair_list = 5;</code>
+     */
+    public int getParentToChildRegionsPairListCount() {
+      return parentToChildRegionsPairList_.size();
+    }
+    /**
+     * <code>repeated .hbase.pb.RestoreParentToChildRegionsPair parent_to_child_regions_pair_list = 5;</code>
+     */
+    public org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPair getParentToChildRegionsPairList(int index) {
+      return parentToChildRegionsPairList_.get(index);
+    }
+    /**
+     * <code>repeated .hbase.pb.RestoreParentToChildRegionsPair parent_to_child_regions_pair_list = 5;</code>
+     */
+    public org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.RestoreParentToChildRegionsPairOrBuilder getParentToChildRegionsPairListOrBuilder(
+        int index) {
+      return parentToChildRegionsPairList_.get(index);
+    }
+
+    private void initFields() {
+      userInfo_ = org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.getDefaultInstance();
+      snapshot_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.getDefaultInstance();
+      tableSchema_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.getDefaultInstance();
+      regionInfo_ = java.util.Collections.emptyList();
+      parentToChildRegionsPairList_ = java.util.Collections.emptyList();
+    }
+    private byte memoizedIsInitialized = -1;
+    public final boolean isInitialized() {
+      byte isInitialized = memoizedIsInitialized;
+      if (isInitialized != -1) return isInitialized == 1;
+
+      if (!hasUserInfo()) {
+        memoizedIsInitialized = 0;
+        return false;
+      }
+      if (!hasSnapshot()) {
+        memoizedIsInitialized = 0;
+        return false;
+      }
+      if (!hasTableSchema()) {
+        memoizedIsInitialized = 0;
+        return false;
+      }
+      if (!getUserInfo().isInitialized()) {
+        memoizedIsInitialized = 0;
+        return false;
+      }
+      if (!getSnapshot().isInitialized()) {
+        memoizedIsInitialized = 0;
+        return false;
+      }
+      if (!getTableSchema().isInitialized()) {
+        memoizedIsInitialized = 0;
+        return false;
+      }
+      for (int i = 0; i < getRegionInfoCount(); i++) {
+        if (!getRegionInfo(i).isInitialized()) {
+          memoizedIsInitialized = 0;
+          return false;
+        }
+      }
+      for (int i = 0; i < getParentToChildRegionsPairListCount(); i++) {
+        if (!getParentToChildRegionsPairList(i).isInitialized()) {
+          memoizedIsInitialized = 0;
+          return false;
+        }
+      }
+      memoizedIsInitialized = 1;
+      return true;
+    }
+
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
+      getSerializedSize();
+      if (((bitField0_ & 0x00000001) == 0x00000001)) {
+        output.writeMessage(1, userInfo_);
+      }
+      if (((bitField0_ & 0x00000002) == 0x00000002)) {
+        output.writeMessage(2, snapshot_);
+      }
+      if (((bitField0_ & 0x00000004) == 0x00000004)) {
+        output.writeMessage(3, tableSchema_);
+      }
+      for (int i = 0; i < regionInfo_.size(); i++) {
+        output.writeMessage(4, regionInfo_.get(i));
+      }
+      for (int i = 0; i < parentToChildRegionsPairList_.size(); i++) {
+        output.writeMessage(5, parentToChildRegionsPairList_.get(i));
+      }
+      getUnknownFields().writeTo(output);
+    }
+
+    private int memoizedSerializedSize = -1;
+    public int getSerializedSize() {
+      int size = memoizedSerializedSize;
+      if (size != -1) return size;
+
+      size = 0;
+      if (((bitField0_ & 0x00000001) == 0x00000001)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, userInfo_);
+      }
+      if (((bitField0_ & 0x00000002) == 0x00000002)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, snapshot_);
+      }
+      if (((bitField0_ & 0x00000004) == 0x00000004)) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(3, tableSchema_);
+      }
+      for (int i = 0; i < regionInfo_.size(); i++) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(4, regionInfo_.get(i));
+      }
+      for (int i = 0; i < parentToChildRegionsPairList_.size(); i++) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(5, parentToChildRegionsPairList_.get(i));
+      }
+      size += getUnknownFields().getSerializedSize();
+      memoizedSerializedSize = size;
+      return size;
+    }
+
+    private static final long serialVersionUID = 0L;
+    @java.lang.Override
+    protected java.lang.Object writeReplace()
+        throws java.io.ObjectStreamException {
+      return super.writeReplace();
+    }
+
+    @java.lang.Override
+    public boolean equals(final java.lang.Object obj) {
+      if (obj == this) {
+       return true;
+      }
+      if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData)) {
+        return super.equals(obj);
+      }
+      org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData other = (org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData) obj;
+
+      boolean result = true;
+      result = result && (hasUserInfo() == other.hasUserInfo());
+      if (hasUserInfo()) {
+        result = result && getUserInfo()
+            .equals(other.getUserInfo());
+      }
+      result = result && (hasSnapshot() == other.hasSnapshot());
+      if (hasSnapshot()) {
+        result = result && getSnapshot()
+            .equals(other.getSnapshot());
+      }
+      result = result && (hasTableSchema() == other.hasTableSchema());
+      if (hasTableSchema()) {
+        result = result && getTableSchema()
+            .equals(other.getTableSchema());
+      }
+      result = result && getRegionInfoList()
+          .equals(other.getRegionInfoList());
+      result = result && getParentToChildRegionsPairListList()
+          .equals(other.getParentToChildRegionsPairListList());
+      result = result &&
+          getUnknownFields().equals(other.getUnknownFields());
+      return result;
+    }
+
+    private int memoizedHashCode = 0;
+    @java.lang.Override
+    public int hashCode() {
+      if (memoizedHashCode != 0) {
+        return memoizedHashCode;
+      }
+      int hash = 41;
+      hash = (19 * hash) + getDescriptorForType().hashCode();
+      if (hasUserInfo()) {
+        hash = (37 * hash) + USER_INFO_FIELD_NUMBER;
+        hash = (53 * hash) + getUserInfo().hashCode();
+      }
+      if (hasSnapshot()) {
+        hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER;
+        hash = (53 * hash) + getSnapshot().hashCode();
+      }
+      if (hasTableSchema()) {
+        hash = (37 * hash) + TABLE_SCHEMA_FIELD_NUMBER;
+        hash = (53 * hash) + getTableSchema().hashCode();
+      }
+      if (getRegionInfoCount() > 0) {
+        hash = (37 * hash) + REGION_INFO_FIELD_NUMBER;
+        hash = (53 * hash) + getRegionInfoList().hashCode();
+      }
+      if (getParentToChildRegionsPairListCount() > 0) {
+        hash = (37 * hash) + PARENT_TO_CHILD_REGIONS_PAIR_LIST_FIELD_NUMBER;
+        hash = (53 * hash) + getParentToChildRegionsPairListList().hashCode();
+      }
+      hash = (29 * hash) + getUnknownFields().hashCode();
+      memoizedHashCode = hash;
+      return hash;
+    }
+
+    public static org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData parseFrom(
+        com.google.protobuf.ByteString data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return PARSER.parseFrom(data);
+    }
+    public static org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData parseFrom(
+        com.google.protobuf.ByteString data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return PARSER.parseFrom(data, extensionRegistry);
+    }
+    public static org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return PARSER.parseFrom(data);
+    }
+    public static org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData parseFrom(
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return PARSER.parseFrom(data, extensionRegistry);
+    }
+    public static org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return PARSER.parseFrom(input);
+    }
+    public static org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData parseFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return PARSER.parseFrom(input, extensionRegistry);
+    }
+    public static org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return PARSER.parseDelimitedFrom(input);
+    }
+    public static org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData parseDelimitedFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return PARSER.parseDelimitedFrom(input, extensionRegistry);
+    }
+    public static org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData parseFrom(
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return PARSER.parseFrom(input);
+    }
+    public static org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData parseFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return PARSER.parseFrom(input, extensionRegistry);
+    }
+
+    public static Builder newBuilder() { return Builder.create(); }
+    public Builder newBuilderForType() { return newBuilder(); }
+    public static Builder newBuilder(org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData prototype) {
+      return newBuilder().mergeFrom(prototype);
+    }
+    public Builder toBuilder() { return newBuilder(this); }
+
+    @java.lang.Override
+    protected Builder newBuilderForType(
+        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+      Builder builder = new Builder(parent);
+      return builder;
+    }
+    /**
+     * Protobuf type {@code hbase.pb.CloneSnapshotStateData}
+     */
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessage.Builder<Builder>
+       implements org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateDataOrBuilder {
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.internal_static_hbase_pb_CloneSnapshotStateData_descriptor;
+      }
+
+      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+          internalGetFieldAccessorTable() {
+        return org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.internal_static_hbase_pb_CloneSnapshotStateData_fieldAccessorTable
+            .ensureFieldAccessorsInitialized(
+                org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData.class, org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData.Builder.class);
+      }
+
+      // Construct using org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData.newBuilder()
+      private Builder() {
+        maybeForceBuilderInitialization();
+      }
+
+      private Builder(
+          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+        super(parent);
+        maybeForceBuilderInitialization();
+      }
+      private void maybeForceBuilderInitialization() {
+        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+          getUserInfoFieldBuilder();
+          getSnapshotFieldBuilder();
+          getTableSchemaFieldBuilder();
+          getRegionInfoFieldBuilder();
+          getParentToChildRegionsPairListFieldBuilder();
+        }
+      }
+      private static Builder create() {
+        return new Builder();
+      }
+
+      public Builder clear() {
+        super.clear();
+        if (userInfoBuilder_ == null) {
+          userInfo_ = org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.getDefaultInstance();
+        } else {
+          userInfoBuilder_.clear();
+        }
+        bitField0_ = (bitField0_ & ~0x00000001);
+        if (snapshotBuilder_ == null) {
+          snapshot_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.getDefaultInstance();
+        } else {
+          snapshotBuilder_.clear();
+        }
+        bitField0_ = (bitField0_ & ~0x00000002);
+        if (tableSchemaBuilder_ == null) {
+          tableSchema_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema.getDefaultInstance();
+        } else {
+          tableSchemaBuilder_.clear();
+        }
+        bitField0_ = (bitField0_ & ~0x00000004);
+        if (regionInfoBuilder_ == null) {
+          regionInfo_ = java.util.Collections.emptyList();
+          bitField0_ = (bitField0_ & ~0x00000008);
+        } else {
+          regionInfoBuilder_.clear();
+        }
+        if (parentToChildRegionsPairListBuilder_ == null) {
+          parentToChildRegionsPairList_ = java.util.Collections.emptyList();
+          bitField0_ = (bitField0_ & ~0x00000010);
+        } else {
+          parentToChildRegionsPairListBuilder_.clear();
+        }
+        return this;
+      }
+
+      public Builder clone() {
+        return create().mergeFrom(buildPartial());
+      }
+
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.internal_static_hbase_pb_CloneSnapshotStateData_descriptor;
+      }
+
+      public org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData getDefaultInstanceForType() {
+        return org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData.getDefaultInstance();
+      }
+
+      public org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData build() {
+        org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData result = buildPartial();
+        if (!result.isInitialized()) {
+          throw newUninitializedMessageException(result);
+        }
+        return result;
+      }
+
+      public org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData buildPartial() {
+        org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData result = new org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData(this);
+        int from_bitField0_ = bitField0_;
+        int to_bitField0_ = 0;
+        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+          to_bitField0_ |= 0x00000001;
+        }
+        if (userInfoBuilder_ == null) {
+          result.userInfo_ = userInfo_;
+        } else {
+          result.userInfo_ = userInfoBuilder_.build();
+        }
+        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+          to_bitField0_ |= 0x00000002;
+        }
+        if (snapshotBuilder_ == null) {
+          result.snapshot_ = snapshot_;
+        } else {
+          result.snapshot_ = snapshotBuilder_.build();
+        }
+        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+          to_bitField0_ |= 0x00000004;
+        }
+        if (tableSchemaBuilder_ == null) {
+          result.tableSchema_ = tableSchema_;
+        } else {
+          result.tableSchema_ = tableSchemaBuilder_.build();
+        }
+        if (regionInfoBuilder_ == null) {
+          if (((bitField0_ & 0x00000008) == 0x00000008)) {
+            regionInfo_ = java.util.Collections.unmodifiableList(regionInfo_);
+            bitField0_ = (bitField0_ & ~0x00000008);
+          }
+          result.regionInfo_ = regionInfo_;
+        } else {
+          result.regionInfo_ = regionInfoBuilder_.build();
+        }
+        if (parentToChildRegionsPairListBuilder_ == null) {
+          if (((bitField0_ & 0x00000010) == 0x00000010)) {
+            parentToChildRegionsPairList_ = java.util.Collections.unmodifiableList(parentToChildRegionsPairList_);
+            bitField0_ = (bitField0_ & ~0x00000010);
+          }
+          result.parentToChildRegionsPairList_ = parentToChildRegionsPairList_;
+        } else {
+          result.parentToChildRegionsPairList_ = parentToChildRegionsPairListBuilder_.build();
+        }
+        result.bitField0_ = to_bitField0_;
+        onBuilt();
+        return result;
+      }
+
+      public Builder mergeFrom(com.google.protobuf.Message other) {
+        if (other instanceof org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData) {
+          return mergeFrom((org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData)other);
+        } else {
+          super.mergeFrom(other);
+          return this;
+        }
+      }
+
+      public Builder mergeFrom(org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData other) {
+        if (other == org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData.getDefaultInstance()) return this;
+        if (other.hasUserInfo()) {
+          mergeUserInfo(other.getUserInfo());
+        }
+        if (other.hasSnapshot()) {
+          mergeSnapshot(other.getSnapshot());
+        }
+        if (other.hasTableSchema()) {
+          mergeTableSchema(other.getTableSchema());
+        }
+        if (regionInfoBuilder_ == null) {
+          if (!other.regionInfo_.isEmpty()) {
+            if (regionInfo_.isEmpty()) {
+              regionInfo_ = other.regionInfo_;
+              bitField0_ = (bitField0_ & ~0x00000008);
+            } else {
+              ensureRegionInfoIsMutable();
+              regionInfo_.addAll(other.regionInfo_);
+            }
+            onChanged();
+          }
+        } else {
+          if (!other.regionInfo_.isEmpty()) {
+            if (regionInfoBuilder_.isEmpty()) {
+              regionInfoBuilder_.dispose();
+              regionInfoBuilder_ = null;
+              regionInfo_ = other.regionInfo_;
+              bitField0_ = (bitField0_ & ~0x00000008);
+              regionInfoBuilder_ = 
+                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+                   getRegionInfoFieldBuilder() : null;
+            } else {
+              regionInfoBuilder_.addAllMessages(other.regionInfo_);
+            }
+          }
+        }
+        if (parentToChildRegionsPairListBuilder_ == null) {
+          if (!other.parentToChildRegionsPairList_.isEmpty()) {
+            if (parentToChildRegionsPairList_.isEmpty()) {
+              parentToChildRegionsPairList_ = other.parentToChildRegionsPairList_;
+              bitField0_ = (bitField0_ & ~0x00000010);
+            } else {
+              ensureParentToChildRegionsPairListIsMutable();
+              parentToChildRegionsPairList_.addAll(other.parentToChildRegionsPairList_);
+            }
+            onChanged();
+          }
+        } else {
+          if (!other.parentToChildRegionsPairList_.isEmpty()) {
+            if (parentToChildRegionsPairListBuilder_.isEmpty()) {
+              parentToChildRegionsPairListBuilder_.dispose();
+              parentToChildRegionsPairListBuilder_ = null;
+              parentToChildRegionsPairList_ = other.parentToChildRegionsPairList_;
+              bitField0_ = (bitField0_ & ~0x00000010);
+              parentToChildRegionsPairListBuilder_ = 
+                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+                   getParentToChildRegionsPairListFieldBuilder() : null;
+            } else {
+              parentToChildRegionsPairListBuilder_.addAllMessages(other.parentToChildRegionsPairList_);
+            }
+          }
+        }
+        this.mergeUnknownFields(other.getUnknownFields());
+        return this;
+      }
+
+      public final boolean isInitialized() {
+        if (!hasUserInfo()) {
+          
+          return false;
+        }
+        if (!hasSnapshot()) {
+          
+          return false;
+        }
+        if (!hasTableSchema()) {
+          
+          return false;
+        }
+        if (!getUserInfo().isInitialized()) {
+          
+          return false;
+        }
+        if (!getSnapshot().isInitialized()) {
+          
+          return false;
+        }
+        if (!getTableSchema().isInitialized()) {
+          
+          return false;
+        }
+        for (int i = 0; i < getRegionInfoCount(); i++) {
+          if (!getRegionInfo(i).isInitialized()) {
+            
+            return false;
+          }
+        }
+        for (int i = 0; i < getParentToChildRegionsPairListCount(); i++) {
+          if (!getParentToChildRegionsPairList(i).isInitialized()) {
+            
+            return false;
+          }
+        }
+        return true;
+      }
+
+      public Builder mergeFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+        org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData parsedMessage = null;
+        try {
+          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          parsedMessage = (org.apache.hadoop.hbase.protobuf.generated.MasterProcedureProtos.CloneSnapshotStateData) e.getUnfinishedMessage();
+          throw e;
+        } finally {
+          if (parsedMessage != null) {
+            mergeFrom(parsedMessage);
+          }
+        }
+        return this;
+      }
+      private int bitField0_;
+
+      // required .hbase.pb.UserInformation user_info = 1;
+      private org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation userInfo_ = org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.getDefaultInstance();
+      private com.google.protobuf.SingleFieldBuilder<
+          org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation, org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.Builder, org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformationOrBuilder> userInfoBuilder_;
+      /**
+       * <code>required .hbase.pb.UserInformation user_info = 1;</code>
+       */
+      public boolean hasUserInfo() {
+        return ((bitField0_ & 0x00000001) == 0x00000001);
+      }
+      /**
+       * <code>required .hbase.pb.UserInformation user_info = 1;</code>
+       */
+      public org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation getUserInfo() {
+        if (userInfoBuilder_ == null) {
+          return userInfo_;
+        } else {
+          return userInfoBuilder_.getMessage();
+        }
+      }
+      /**
+       * <code>required .hbase.pb.UserInformation user_info = 1;</code>
+       */
+      public Builder setUserInfo(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation value) {
+        if (userInfoBuilder_ == null) {
+          if (value == null) {
+            throw new NullPointerException();
+          }
+          userInfo_ = value;
+          onChanged();
+        } else {
+          userInfoBuilder_.setMessage(value);
+        }
+        bitField0_ |= 0x00000001;
+        return this;
+      }
+      /**
+       * <code>required .hbase.pb.UserInformation user_info = 1;</code>
+       */
+      public Builder setUserInfo(
+          org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.Builder builderForValue) {
+        if (userInfoBuilder_ == null) {
+          userInfo_ = builderForValue.build();
+          onChanged();
+        } else {
+          userInfoBuilder_.setMessage(builderForValue.build());
+        }
+        bitField0_ |= 0x00000001;
+        return this;
+      }
+      /**
+       * <code>required .hbase.pb.UserInformation user_info = 1;</code>
+       */
+      public Builder mergeUserInfo(org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation value) {
+        if (userInfoBuilder_ == null) {
+          if (((bitField0_ & 0x00000001) == 0x00000001) &&
+              userInfo_ != org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.getDefaultInstance()) {
+            userInfo_ =
+              org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation.newBuilder(userInfo_).mergeFrom(value).buildPartial();
+          } else {
+            userInfo_ = value;
+          }
+          onChanged();
+        } else {
+          userInfoBuilder_.mergeFrom(value);
+        }
+        bitField0_ |= 0x00000001;
+        return this;
+      }
+      /**
+       * <code>required .hbase.pb.UserInformation user_info = 1;</code>
+       */
+      public Builder clearUserInfo() {
+        if (userInfoBuilder_ == null) {
+          userInfo_ = org.apache.hadoop.hbase.protobuf.generated.RPCPr

<TRUNCATED>

Mime
View raw message