/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required 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
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/vmmigration/v1/vmmigration.proto

package com.google.cloud.vmmigration.v1;

/**
 *
 *
 * <pre>
 * MigratingVm describes the VM that will be migrated from a Source environment
 * and its replication state.
 * </pre>
 *
 * Protobuf type {@code google.cloud.vmmigration.v1.MigratingVm}
 */
public final class MigratingVm extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.MigratingVm)
    MigratingVmOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use MigratingVm.newBuilder() to construct.
  private MigratingVm(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private MigratingVm() {
    name_ = "";
    sourceVmId_ = "";
    displayName_ = "";
    description_ = "";
    state_ = 0;
    group_ = "";
    recentCloneJobs_ = java.util.Collections.emptyList();
    recentCutoverJobs_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new MigratingVm();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.vmmigration.v1.VmMigrationProto
        .internal_static_google_cloud_vmmigration_v1_MigratingVm_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(int number) {
    switch (number) {
      case 16:
        return internalGetLabels();
      default:
        throw new RuntimeException("Invalid map field number: " + number);
    }
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.vmmigration.v1.VmMigrationProto
        .internal_static_google_cloud_vmmigration_v1_MigratingVm_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.vmmigration.v1.MigratingVm.class,
            com.google.cloud.vmmigration.v1.MigratingVm.Builder.class);
  }

  /**
   *
   *
   * <pre>
   * The possible values of the state/health of source VM.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.vmmigration.v1.MigratingVm.State}
   */
  public enum State implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * The state was not sampled by the health checks yet.
     * </pre>
     *
     * <code>STATE_UNSPECIFIED = 0;</code>
     */
    STATE_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * The VM in the source is being verified.
     * </pre>
     *
     * <code>PENDING = 1;</code>
     */
    PENDING(1),
    /**
     *
     *
     * <pre>
     * The source VM was verified, and it's ready to start replication.
     * </pre>
     *
     * <code>READY = 2;</code>
     */
    READY(2),
    /**
     *
     *
     * <pre>
     * Migration is going through the first sync cycle.
     * </pre>
     *
     * <code>FIRST_SYNC = 3;</code>
     */
    FIRST_SYNC(3),
    /**
     *
     *
     * <pre>
     * The replication is active, and it's running or scheduled to run.
     * </pre>
     *
     * <code>ACTIVE = 4;</code>
     */
    ACTIVE(4),
    /**
     *
     *
     * <pre>
     * The source VM is being turned off, and a final replication is currently
     * running.
     * </pre>
     *
     * <code>CUTTING_OVER = 7;</code>
     */
    CUTTING_OVER(7),
    /**
     *
     *
     * <pre>
     * The source VM was stopped and replicated. The replication is currently
     * paused.
     * </pre>
     *
     * <code>CUTOVER = 8;</code>
     */
    CUTOVER(8),
    /**
     *
     *
     * <pre>
     * A cutover job is active and replication cycle is running the final sync.
     * </pre>
     *
     * <code>FINAL_SYNC = 9;</code>
     */
    FINAL_SYNC(9),
    /**
     *
     *
     * <pre>
     * The replication was paused by the user and no cycles are scheduled to
     * run.
     * </pre>
     *
     * <code>PAUSED = 10;</code>
     */
    PAUSED(10),
    /**
     *
     *
     * <pre>
     * The migrating VM is being finalized and migration resources are being
     * removed.
     * </pre>
     *
     * <code>FINALIZING = 11;</code>
     */
    FINALIZING(11),
    /**
     *
     *
     * <pre>
     * The replication process is done. The migrating VM is finalized and no
     * longer consumes billable resources.
     * </pre>
     *
     * <code>FINALIZED = 12;</code>
     */
    FINALIZED(12),
    /**
     *
     *
     * <pre>
     * The replication process encountered an unrecoverable error and was
     * aborted.
     * </pre>
     *
     * <code>ERROR = 13;</code>
     */
    ERROR(13),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * The state was not sampled by the health checks yet.
     * </pre>
     *
     * <code>STATE_UNSPECIFIED = 0;</code>
     */
    public static final int STATE_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * The VM in the source is being verified.
     * </pre>
     *
     * <code>PENDING = 1;</code>
     */
    public static final int PENDING_VALUE = 1;
    /**
     *
     *
     * <pre>
     * The source VM was verified, and it's ready to start replication.
     * </pre>
     *
     * <code>READY = 2;</code>
     */
    public static final int READY_VALUE = 2;
    /**
     *
     *
     * <pre>
     * Migration is going through the first sync cycle.
     * </pre>
     *
     * <code>FIRST_SYNC = 3;</code>
     */
    public static final int FIRST_SYNC_VALUE = 3;
    /**
     *
     *
     * <pre>
     * The replication is active, and it's running or scheduled to run.
     * </pre>
     *
     * <code>ACTIVE = 4;</code>
     */
    public static final int ACTIVE_VALUE = 4;
    /**
     *
     *
     * <pre>
     * The source VM is being turned off, and a final replication is currently
     * running.
     * </pre>
     *
     * <code>CUTTING_OVER = 7;</code>
     */
    public static final int CUTTING_OVER_VALUE = 7;
    /**
     *
     *
     * <pre>
     * The source VM was stopped and replicated. The replication is currently
     * paused.
     * </pre>
     *
     * <code>CUTOVER = 8;</code>
     */
    public static final int CUTOVER_VALUE = 8;
    /**
     *
     *
     * <pre>
     * A cutover job is active and replication cycle is running the final sync.
     * </pre>
     *
     * <code>FINAL_SYNC = 9;</code>
     */
    public static final int FINAL_SYNC_VALUE = 9;
    /**
     *
     *
     * <pre>
     * The replication was paused by the user and no cycles are scheduled to
     * run.
     * </pre>
     *
     * <code>PAUSED = 10;</code>
     */
    public static final int PAUSED_VALUE = 10;
    /**
     *
     *
     * <pre>
     * The migrating VM is being finalized and migration resources are being
     * removed.
     * </pre>
     *
     * <code>FINALIZING = 11;</code>
     */
    public static final int FINALIZING_VALUE = 11;
    /**
     *
     *
     * <pre>
     * The replication process is done. The migrating VM is finalized and no
     * longer consumes billable resources.
     * </pre>
     *
     * <code>FINALIZED = 12;</code>
     */
    public static final int FINALIZED_VALUE = 12;
    /**
     *
     *
     * <pre>
     * The replication process encountered an unrecoverable error and was
     * aborted.
     * </pre>
     *
     * <code>ERROR = 13;</code>
     */
    public static final int ERROR_VALUE = 13;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static State valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static State forNumber(int value) {
      switch (value) {
        case 0:
          return STATE_UNSPECIFIED;
        case 1:
          return PENDING;
        case 2:
          return READY;
        case 3:
          return FIRST_SYNC;
        case 4:
          return ACTIVE;
        case 7:
          return CUTTING_OVER;
        case 8:
          return CUTOVER;
        case 9:
          return FINAL_SYNC;
        case 10:
          return PAUSED;
        case 11:
          return FINALIZING;
        case 12:
          return FINALIZED;
        case 13:
          return ERROR;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<State>() {
          public State findValueByNumber(int number) {
            return State.forNumber(number);
          }
        };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.vmmigration.v1.MigratingVm.getDescriptor().getEnumTypes().get(0);
    }

    private static final State[] VALUES = values();

    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private State(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.MigratingVm.State)
  }

  private int targetVmDefaultsCase_ = 0;
  private java.lang.Object targetVmDefaults_;

  public enum TargetVmDefaultsCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    COMPUTE_ENGINE_TARGET_DEFAULTS(26),
    TARGETVMDEFAULTS_NOT_SET(0);
    private final int value;

    private TargetVmDefaultsCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static TargetVmDefaultsCase valueOf(int value) {
      return forNumber(value);
    }

    public static TargetVmDefaultsCase forNumber(int value) {
      switch (value) {
        case 26:
          return COMPUTE_ENGINE_TARGET_DEFAULTS;
        case 0:
          return TARGETVMDEFAULTS_NOT_SET;
        default:
          return null;
      }
    }

    public int getNumber() {
      return this.value;
    }
  };

  public TargetVmDefaultsCase getTargetVmDefaultsCase() {
    return TargetVmDefaultsCase.forNumber(targetVmDefaultsCase_);
  }

  private int sourceVmDetailsCase_ = 0;
  private java.lang.Object sourceVmDetails_;

  public enum SourceVmDetailsCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    AWS_SOURCE_VM_DETAILS(29),
    SOURCEVMDETAILS_NOT_SET(0);
    private final int value;

    private SourceVmDetailsCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static SourceVmDetailsCase valueOf(int value) {
      return forNumber(value);
    }

    public static SourceVmDetailsCase forNumber(int value) {
      switch (value) {
        case 29:
          return AWS_SOURCE_VM_DETAILS;
        case 0:
          return SOURCEVMDETAILS_NOT_SET;
        default:
          return null;
      }
    }

    public int getNumber() {
      return this.value;
    }
  };

  public SourceVmDetailsCase getSourceVmDetailsCase() {
    return SourceVmDetailsCase.forNumber(sourceVmDetailsCase_);
  }

  public static final int COMPUTE_ENGINE_TARGET_DEFAULTS_FIELD_NUMBER = 26;
  /**
   *
   *
   * <pre>
   * Details of the target VM in Compute Engine.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
   * </code>
   *
   * @return Whether the computeEngineTargetDefaults field is set.
   */
  @java.lang.Override
  public boolean hasComputeEngineTargetDefaults() {
    return targetVmDefaultsCase_ == 26;
  }
  /**
   *
   *
   * <pre>
   * Details of the target VM in Compute Engine.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
   * </code>
   *
   * @return The computeEngineTargetDefaults.
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults
      getComputeEngineTargetDefaults() {
    if (targetVmDefaultsCase_ == 26) {
      return (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_;
    }
    return com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Details of the target VM in Compute Engine.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder
      getComputeEngineTargetDefaultsOrBuilder() {
    if (targetVmDefaultsCase_ == 26) {
      return (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_;
    }
    return com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance();
  }

  public static final int AWS_SOURCE_VM_DETAILS_FIELD_NUMBER = 29;
  /**
   *
   *
   * <pre>
   * Output only. Details of the VM from an AWS source.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the awsSourceVmDetails field is set.
   */
  @java.lang.Override
  public boolean hasAwsSourceVmDetails() {
    return sourceVmDetailsCase_ == 29;
  }
  /**
   *
   *
   * <pre>
   * Output only. Details of the VM from an AWS source.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The awsSourceVmDetails.
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.AwsSourceVmDetails getAwsSourceVmDetails() {
    if (sourceVmDetailsCase_ == 29) {
      return (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_;
    }
    return com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Output only. Details of the VM from an AWS source.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.AwsSourceVmDetailsOrBuilder
      getAwsSourceVmDetailsOrBuilder() {
    if (sourceVmDetailsCase_ == 29) {
      return (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_;
    }
    return com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance();
  }

  public static final int NAME_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object name_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The identifier of the MigratingVm.
   * </pre>
   *
   * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The name.
   */
  @java.lang.Override
  public java.lang.String getName() {
    java.lang.Object ref = name_;
    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();
      name_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The identifier of the MigratingVm.
   * </pre>
   *
   * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for name.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SOURCE_VM_ID_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private volatile java.lang.Object sourceVmId_ = "";
  /**
   *
   *
   * <pre>
   * The unique ID of the VM in the source.
   * The VM's name in vSphere can be changed, so this is not the VM's name but
   * rather its moRef id. This id is of the form vm-&lt;num&gt;.
   * </pre>
   *
   * <code>string source_vm_id = 2;</code>
   *
   * @return The sourceVmId.
   */
  @java.lang.Override
  public java.lang.String getSourceVmId() {
    java.lang.Object ref = sourceVmId_;
    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();
      sourceVmId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The unique ID of the VM in the source.
   * The VM's name in vSphere can be changed, so this is not the VM's name but
   * rather its moRef id. This id is of the form vm-&lt;num&gt;.
   * </pre>
   *
   * <code>string source_vm_id = 2;</code>
   *
   * @return The bytes for sourceVmId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getSourceVmIdBytes() {
    java.lang.Object ref = sourceVmId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      sourceVmId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DISPLAY_NAME_FIELD_NUMBER = 18;

  @SuppressWarnings("serial")
  private volatile java.lang.Object displayName_ = "";
  /**
   *
   *
   * <pre>
   * The display name attached to the MigratingVm by the user.
   * </pre>
   *
   * <code>string display_name = 18;</code>
   *
   * @return The displayName.
   */
  @java.lang.Override
  public java.lang.String getDisplayName() {
    java.lang.Object ref = displayName_;
    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();
      displayName_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The display name attached to the MigratingVm by the user.
   * </pre>
   *
   * <code>string display_name = 18;</code>
   *
   * @return The bytes for displayName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getDisplayNameBytes() {
    java.lang.Object ref = displayName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      displayName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DESCRIPTION_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private volatile java.lang.Object description_ = "";
  /**
   *
   *
   * <pre>
   * The description attached to the migrating VM by the user.
   * </pre>
   *
   * <code>string description = 3;</code>
   *
   * @return The description.
   */
  @java.lang.Override
  public java.lang.String getDescription() {
    java.lang.Object ref = description_;
    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();
      description_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The description attached to the migrating VM by the user.
   * </pre>
   *
   * <code>string description = 3;</code>
   *
   * @return The bytes for description.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getDescriptionBytes() {
    java.lang.Object ref = description_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      description_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int POLICY_FIELD_NUMBER = 8;
  private com.google.cloud.vmmigration.v1.SchedulePolicy policy_;
  /**
   *
   *
   * <pre>
   * The replication schedule policy.
   * </pre>
   *
   * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
   *
   * @return Whether the policy field is set.
   */
  @java.lang.Override
  public boolean hasPolicy() {
    return policy_ != null;
  }
  /**
   *
   *
   * <pre>
   * The replication schedule policy.
   * </pre>
   *
   * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
   *
   * @return The policy.
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.SchedulePolicy getPolicy() {
    return policy_ == null
        ? com.google.cloud.vmmigration.v1.SchedulePolicy.getDefaultInstance()
        : policy_;
  }
  /**
   *
   *
   * <pre>
   * The replication schedule policy.
   * </pre>
   *
   * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.SchedulePolicyOrBuilder getPolicyOrBuilder() {
    return policy_ == null
        ? com.google.cloud.vmmigration.v1.SchedulePolicy.getDefaultInstance()
        : policy_;
  }

  public static final int CREATE_TIME_FIELD_NUMBER = 9;
  private com.google.protobuf.Timestamp createTime_;
  /**
   *
   *
   * <pre>
   * Output only. The time the migrating VM was created (this refers to this
   * resource and not to the time it was installed in the source).
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the createTime field is set.
   */
  @java.lang.Override
  public boolean hasCreateTime() {
    return createTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. The time the migrating VM was created (this refers to this
   * resource and not to the time it was installed in the source).
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The createTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getCreateTime() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The time the migrating VM was created (this refers to this
   * resource and not to the time it was installed in the source).
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
  }

  public static final int UPDATE_TIME_FIELD_NUMBER = 10;
  private com.google.protobuf.Timestamp updateTime_;
  /**
   *
   *
   * <pre>
   * Output only. The last time the migrating VM resource was updated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the updateTime field is set.
   */
  @java.lang.Override
  public boolean hasUpdateTime() {
    return updateTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. The last time the migrating VM resource was updated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The updateTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getUpdateTime() {
    return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The last time the migrating VM resource was updated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
  }

  public static final int LAST_SYNC_FIELD_NUMBER = 11;
  private com.google.cloud.vmmigration.v1.ReplicationSync lastSync_;
  /**
   *
   *
   * <pre>
   * Output only. The most updated snapshot created time in the source that
   * finished replication.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the lastSync field is set.
   */
  @java.lang.Override
  public boolean hasLastSync() {
    return lastSync_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. The most updated snapshot created time in the source that
   * finished replication.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The lastSync.
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.ReplicationSync getLastSync() {
    return lastSync_ == null
        ? com.google.cloud.vmmigration.v1.ReplicationSync.getDefaultInstance()
        : lastSync_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The most updated snapshot created time in the source that
   * finished replication.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.ReplicationSyncOrBuilder getLastSyncOrBuilder() {
    return lastSync_ == null
        ? com.google.cloud.vmmigration.v1.ReplicationSync.getDefaultInstance()
        : lastSync_;
  }

  public static final int STATE_FIELD_NUMBER = 23;
  private int state_ = 0;
  /**
   *
   *
   * <pre>
   * Output only. State of the MigratingVm.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.MigratingVm.State state = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The enum numeric value on the wire for state.
   */
  @java.lang.Override
  public int getStateValue() {
    return state_;
  }
  /**
   *
   *
   * <pre>
   * Output only. State of the MigratingVm.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.MigratingVm.State state = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The state.
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.MigratingVm.State getState() {
    com.google.cloud.vmmigration.v1.MigratingVm.State result =
        com.google.cloud.vmmigration.v1.MigratingVm.State.forNumber(state_);
    return result == null ? com.google.cloud.vmmigration.v1.MigratingVm.State.UNRECOGNIZED : result;
  }

  public static final int STATE_TIME_FIELD_NUMBER = 22;
  private com.google.protobuf.Timestamp stateTime_;
  /**
   *
   *
   * <pre>
   * Output only. The last time the migrating VM state was updated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the stateTime field is set.
   */
  @java.lang.Override
  public boolean hasStateTime() {
    return stateTime_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. The last time the migrating VM state was updated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The stateTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getStateTime() {
    return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The last time the migrating VM state was updated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() {
    return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_;
  }

  public static final int CURRENT_SYNC_INFO_FIELD_NUMBER = 13;
  private com.google.cloud.vmmigration.v1.ReplicationCycle currentSyncInfo_;
  /**
   *
   *
   * <pre>
   * Output only. The percentage progress of the current running replication
   * cycle.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the currentSyncInfo field is set.
   */
  @java.lang.Override
  public boolean hasCurrentSyncInfo() {
    return currentSyncInfo_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. The percentage progress of the current running replication
   * cycle.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The currentSyncInfo.
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.ReplicationCycle getCurrentSyncInfo() {
    return currentSyncInfo_ == null
        ? com.google.cloud.vmmigration.v1.ReplicationCycle.getDefaultInstance()
        : currentSyncInfo_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The percentage progress of the current running replication
   * cycle.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder getCurrentSyncInfoOrBuilder() {
    return currentSyncInfo_ == null
        ? com.google.cloud.vmmigration.v1.ReplicationCycle.getDefaultInstance()
        : currentSyncInfo_;
  }

  public static final int GROUP_FIELD_NUMBER = 15;

  @SuppressWarnings("serial")
  private volatile java.lang.Object group_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The group this migrating vm is included in, if any. The group
   * is represented by the full path of the appropriate
   * [Group][google.cloud.vmmigration.v1.Group] resource.
   * </pre>
   *
   * <code>
   * string group = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The group.
   */
  @java.lang.Override
  public java.lang.String getGroup() {
    java.lang.Object ref = group_;
    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();
      group_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The group this migrating vm is included in, if any. The group
   * is represented by the full path of the appropriate
   * [Group][google.cloud.vmmigration.v1.Group] resource.
   * </pre>
   *
   * <code>
   * string group = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The bytes for group.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getGroupBytes() {
    java.lang.Object ref = group_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      group_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int LABELS_FIELD_NUMBER = 16;

  private static final class LabelsDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
        com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
            com.google.cloud.vmmigration.v1.VmMigrationProto
                .internal_static_google_cloud_vmmigration_v1_MigratingVm_LabelsEntry_descriptor,
            com.google.protobuf.WireFormat.FieldType.STRING,
            "",
            com.google.protobuf.WireFormat.FieldType.STRING,
            "");
  }

  @SuppressWarnings("serial")
  private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;

  private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
    if (labels_ == null) {
      return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
    }
    return labels_;
  }

  public int getLabelsCount() {
    return internalGetLabels().getMap().size();
  }
  /**
   *
   *
   * <pre>
   * The labels of the migrating VM.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 16;</code>
   */
  @java.lang.Override
  public boolean containsLabels(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    return internalGetLabels().getMap().containsKey(key);
  }
  /** Use {@link #getLabelsMap()} instead. */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getLabels() {
    return getLabelsMap();
  }
  /**
   *
   *
   * <pre>
   * The labels of the migrating VM.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 16;</code>
   */
  @java.lang.Override
  public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
    return internalGetLabels().getMap();
  }
  /**
   *
   *
   * <pre>
   * The labels of the migrating VM.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 16;</code>
   */
  @java.lang.Override
  public /* nullable */ java.lang.String getLabelsOrDefault(
      java.lang.String key,
      /* nullable */
      java.lang.String defaultValue) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   *
   *
   * <pre>
   * The labels of the migrating VM.
   * </pre>
   *
   * <code>map&lt;string, string&gt; labels = 16;</code>
   */
  @java.lang.Override
  public java.lang.String getLabelsOrThrow(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int RECENT_CLONE_JOBS_FIELD_NUMBER = 17;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.vmmigration.v1.CloneJob> recentCloneJobs_;
  /**
   *
   *
   * <pre>
   * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
   * performed on the migrating VM. This field holds the vm's last completed
   * clone job and the vm's running clone job, if one exists.
   * Note: To have this field populated you need to explicitly request it via
   * the "view" parameter of the Get/List request.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.vmmigration.v1.CloneJob> getRecentCloneJobsList() {
    return recentCloneJobs_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
   * performed on the migrating VM. This field holds the vm's last completed
   * clone job and the vm's running clone job, if one exists.
   * Note: To have this field populated you need to explicitly request it via
   * the "view" parameter of the Get/List request.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.vmmigration.v1.CloneJobOrBuilder>
      getRecentCloneJobsOrBuilderList() {
    return recentCloneJobs_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
   * performed on the migrating VM. This field holds the vm's last completed
   * clone job and the vm's running clone job, if one exists.
   * Note: To have this field populated you need to explicitly request it via
   * the "view" parameter of the Get/List request.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public int getRecentCloneJobsCount() {
    return recentCloneJobs_.size();
  }
  /**
   *
   *
   * <pre>
   * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
   * performed on the migrating VM. This field holds the vm's last completed
   * clone job and the vm's running clone job, if one exists.
   * Note: To have this field populated you need to explicitly request it via
   * the "view" parameter of the Get/List request.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.CloneJob getRecentCloneJobs(int index) {
    return recentCloneJobs_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
   * performed on the migrating VM. This field holds the vm's last completed
   * clone job and the vm's running clone job, if one exists.
   * Note: To have this field populated you need to explicitly request it via
   * the "view" parameter of the Get/List request.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.CloneJobOrBuilder getRecentCloneJobsOrBuilder(int index) {
    return recentCloneJobs_.get(index);
  }

  public static final int ERROR_FIELD_NUMBER = 19;
  private com.google.rpc.Status error_;
  /**
   *
   *
   * <pre>
   * Output only. Provides details on the state of the Migrating VM in case of
   * an error in replication.
   * </pre>
   *
   * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return Whether the error field is set.
   */
  @java.lang.Override
  public boolean hasError() {
    return error_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. Provides details on the state of the Migrating VM in case of
   * an error in replication.
   * </pre>
   *
   * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The error.
   */
  @java.lang.Override
  public com.google.rpc.Status getError() {
    return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Provides details on the state of the Migrating VM in case of
   * an error in replication.
   * </pre>
   *
   * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   */
  @java.lang.Override
  public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
    return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
  }

  public static final int RECENT_CUTOVER_JOBS_FIELD_NUMBER = 20;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.vmmigration.v1.CutoverJob> recentCutoverJobs_;
  /**
   *
   *
   * <pre>
   * Output only. The recent cutover jobs performed on the migrating VM.
   * This field holds the vm's last completed cutover job and the vm's
   * running cutover job, if one exists.
   * Note: To have this field populated you need to explicitly request it via
   * the "view" parameter of the Get/List request.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.vmmigration.v1.CutoverJob> getRecentCutoverJobsList() {
    return recentCutoverJobs_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The recent cutover jobs performed on the migrating VM.
   * This field holds the vm's last completed cutover job and the vm's
   * running cutover job, if one exists.
   * Note: To have this field populated you need to explicitly request it via
   * the "view" parameter of the Get/List request.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.vmmigration.v1.CutoverJobOrBuilder>
      getRecentCutoverJobsOrBuilderList() {
    return recentCutoverJobs_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The recent cutover jobs performed on the migrating VM.
   * This field holds the vm's last completed cutover job and the vm's
   * running cutover job, if one exists.
   * Note: To have this field populated you need to explicitly request it via
   * the "view" parameter of the Get/List request.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public int getRecentCutoverJobsCount() {
    return recentCutoverJobs_.size();
  }
  /**
   *
   *
   * <pre>
   * Output only. The recent cutover jobs performed on the migrating VM.
   * This field holds the vm's last completed cutover job and the vm's
   * running cutover job, if one exists.
   * Note: To have this field populated you need to explicitly request it via
   * the "view" parameter of the Get/List request.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.CutoverJob getRecentCutoverJobs(int index) {
    return recentCutoverJobs_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Output only. The recent cutover jobs performed on the migrating VM.
   * This field holds the vm's last completed cutover job and the vm's
   * running cutover job, if one exists.
   * Note: To have this field populated you need to explicitly request it via
   * the "view" parameter of the Get/List request.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.CutoverJobOrBuilder getRecentCutoverJobsOrBuilder(
      int index) {
    return recentCutoverJobs_.get(index);
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceVmId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceVmId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
    }
    if (policy_ != null) {
      output.writeMessage(8, getPolicy());
    }
    if (createTime_ != null) {
      output.writeMessage(9, getCreateTime());
    }
    if (updateTime_ != null) {
      output.writeMessage(10, getUpdateTime());
    }
    if (lastSync_ != null) {
      output.writeMessage(11, getLastSync());
    }
    if (currentSyncInfo_ != null) {
      output.writeMessage(13, getCurrentSyncInfo());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, group_);
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 16);
    for (int i = 0; i < recentCloneJobs_.size(); i++) {
      output.writeMessage(17, recentCloneJobs_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 18, displayName_);
    }
    if (error_ != null) {
      output.writeMessage(19, getError());
    }
    for (int i = 0; i < recentCutoverJobs_.size(); i++) {
      output.writeMessage(20, recentCutoverJobs_.get(i));
    }
    if (stateTime_ != null) {
      output.writeMessage(22, getStateTime());
    }
    if (state_ != com.google.cloud.vmmigration.v1.MigratingVm.State.STATE_UNSPECIFIED.getNumber()) {
      output.writeEnum(23, state_);
    }
    if (targetVmDefaultsCase_ == 26) {
      output.writeMessage(
          26, (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_);
    }
    if (sourceVmDetailsCase_ == 29) {
      output.writeMessage(
          29, (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_);
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceVmId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceVmId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
    }
    if (policy_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getPolicy());
    }
    if (createTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime());
    }
    if (updateTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime());
    }
    if (lastSync_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getLastSync());
    }
    if (currentSyncInfo_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCurrentSyncInfo());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, group_);
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
        internalGetLabels().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
          LabelsDefaultEntryHolder.defaultEntry
              .newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, labels__);
    }
    for (int i = 0; i < recentCloneJobs_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, recentCloneJobs_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, displayName_);
    }
    if (error_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getError());
    }
    for (int i = 0; i < recentCutoverJobs_.size(); i++) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(20, recentCutoverJobs_.get(i));
    }
    if (stateTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getStateTime());
    }
    if (state_ != com.google.cloud.vmmigration.v1.MigratingVm.State.STATE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(23, state_);
    }
    if (targetVmDefaultsCase_ == 26) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              26, (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_);
    }
    if (sourceVmDetailsCase_ == 29) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              29, (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.vmmigration.v1.MigratingVm)) {
      return super.equals(obj);
    }
    com.google.cloud.vmmigration.v1.MigratingVm other =
        (com.google.cloud.vmmigration.v1.MigratingVm) obj;

    if (!getName().equals(other.getName())) return false;
    if (!getSourceVmId().equals(other.getSourceVmId())) return false;
    if (!getDisplayName().equals(other.getDisplayName())) return false;
    if (!getDescription().equals(other.getDescription())) return false;
    if (hasPolicy() != other.hasPolicy()) return false;
    if (hasPolicy()) {
      if (!getPolicy().equals(other.getPolicy())) return false;
    }
    if (hasCreateTime() != other.hasCreateTime()) return false;
    if (hasCreateTime()) {
      if (!getCreateTime().equals(other.getCreateTime())) return false;
    }
    if (hasUpdateTime() != other.hasUpdateTime()) return false;
    if (hasUpdateTime()) {
      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
    }
    if (hasLastSync() != other.hasLastSync()) return false;
    if (hasLastSync()) {
      if (!getLastSync().equals(other.getLastSync())) return false;
    }
    if (state_ != other.state_) return false;
    if (hasStateTime() != other.hasStateTime()) return false;
    if (hasStateTime()) {
      if (!getStateTime().equals(other.getStateTime())) return false;
    }
    if (hasCurrentSyncInfo() != other.hasCurrentSyncInfo()) return false;
    if (hasCurrentSyncInfo()) {
      if (!getCurrentSyncInfo().equals(other.getCurrentSyncInfo())) return false;
    }
    if (!getGroup().equals(other.getGroup())) return false;
    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
    if (!getRecentCloneJobsList().equals(other.getRecentCloneJobsList())) return false;
    if (hasError() != other.hasError()) return false;
    if (hasError()) {
      if (!getError().equals(other.getError())) return false;
    }
    if (!getRecentCutoverJobsList().equals(other.getRecentCutoverJobsList())) return false;
    if (!getTargetVmDefaultsCase().equals(other.getTargetVmDefaultsCase())) return false;
    switch (targetVmDefaultsCase_) {
      case 26:
        if (!getComputeEngineTargetDefaults().equals(other.getComputeEngineTargetDefaults()))
          return false;
        break;
      case 0:
      default:
    }
    if (!getSourceVmDetailsCase().equals(other.getSourceVmDetailsCase())) return false;
    switch (sourceVmDetailsCase_) {
      case 29:
        if (!getAwsSourceVmDetails().equals(other.getAwsSourceVmDetails())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + SOURCE_VM_ID_FIELD_NUMBER;
    hash = (53 * hash) + getSourceVmId().hashCode();
    hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getDisplayName().hashCode();
    hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
    hash = (53 * hash) + getDescription().hashCode();
    if (hasPolicy()) {
      hash = (37 * hash) + POLICY_FIELD_NUMBER;
      hash = (53 * hash) + getPolicy().hashCode();
    }
    if (hasCreateTime()) {
      hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getCreateTime().hashCode();
    }
    if (hasUpdateTime()) {
      hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getUpdateTime().hashCode();
    }
    if (hasLastSync()) {
      hash = (37 * hash) + LAST_SYNC_FIELD_NUMBER;
      hash = (53 * hash) + getLastSync().hashCode();
    }
    hash = (37 * hash) + STATE_FIELD_NUMBER;
    hash = (53 * hash) + state_;
    if (hasStateTime()) {
      hash = (37 * hash) + STATE_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getStateTime().hashCode();
    }
    if (hasCurrentSyncInfo()) {
      hash = (37 * hash) + CURRENT_SYNC_INFO_FIELD_NUMBER;
      hash = (53 * hash) + getCurrentSyncInfo().hashCode();
    }
    hash = (37 * hash) + GROUP_FIELD_NUMBER;
    hash = (53 * hash) + getGroup().hashCode();
    if (!internalGetLabels().getMap().isEmpty()) {
      hash = (37 * hash) + LABELS_FIELD_NUMBER;
      hash = (53 * hash) + internalGetLabels().hashCode();
    }
    if (getRecentCloneJobsCount() > 0) {
      hash = (37 * hash) + RECENT_CLONE_JOBS_FIELD_NUMBER;
      hash = (53 * hash) + getRecentCloneJobsList().hashCode();
    }
    if (hasError()) {
      hash = (37 * hash) + ERROR_FIELD_NUMBER;
      hash = (53 * hash) + getError().hashCode();
    }
    if (getRecentCutoverJobsCount() > 0) {
      hash = (37 * hash) + RECENT_CUTOVER_JOBS_FIELD_NUMBER;
      hash = (53 * hash) + getRecentCutoverJobsList().hashCode();
    }
    switch (targetVmDefaultsCase_) {
      case 26:
        hash = (37 * hash) + COMPUTE_ENGINE_TARGET_DEFAULTS_FIELD_NUMBER;
        hash = (53 * hash) + getComputeEngineTargetDefaults().hashCode();
        break;
      case 0:
      default:
    }
    switch (sourceVmDetailsCase_) {
      case 29:
        hash = (37 * hash) + AWS_SOURCE_VM_DETAILS_FIELD_NUMBER;
        hash = (53 * hash) + getAwsSourceVmDetails().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.vmmigration.v1.MigratingVm parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.vmmigration.v1.MigratingVm parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.vmmigration.v1.MigratingVm parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.vmmigration.v1.MigratingVm parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.vmmigration.v1.MigratingVm parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.vmmigration.v1.MigratingVm parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.vmmigration.v1.MigratingVm parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.vmmigration.v1.MigratingVm parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.vmmigration.v1.MigratingVm parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.vmmigration.v1.MigratingVm parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.vmmigration.v1.MigratingVm parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.vmmigration.v1.MigratingVm parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(com.google.cloud.vmmigration.v1.MigratingVm prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   *
   *
   * <pre>
   * MigratingVm describes the VM that will be migrated from a Source environment
   * and its replication state.
   * </pre>
   *
   * Protobuf type {@code google.cloud.vmmigration.v1.MigratingVm}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.MigratingVm)
      com.google.cloud.vmmigration.v1.MigratingVmOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.vmmigration.v1.VmMigrationProto
          .internal_static_google_cloud_vmmigration_v1_MigratingVm_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(int number) {
      switch (number) {
        case 16:
          return internalGetLabels();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
      switch (number) {
        case 16:
          return internalGetMutableLabels();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.vmmigration.v1.VmMigrationProto
          .internal_static_google_cloud_vmmigration_v1_MigratingVm_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.vmmigration.v1.MigratingVm.class,
              com.google.cloud.vmmigration.v1.MigratingVm.Builder.class);
    }

    // Construct using com.google.cloud.vmmigration.v1.MigratingVm.newBuilder()
    private Builder() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (computeEngineTargetDefaultsBuilder_ != null) {
        computeEngineTargetDefaultsBuilder_.clear();
      }
      if (awsSourceVmDetailsBuilder_ != null) {
        awsSourceVmDetailsBuilder_.clear();
      }
      name_ = "";
      sourceVmId_ = "";
      displayName_ = "";
      description_ = "";
      policy_ = null;
      if (policyBuilder_ != null) {
        policyBuilder_.dispose();
        policyBuilder_ = null;
      }
      createTime_ = null;
      if (createTimeBuilder_ != null) {
        createTimeBuilder_.dispose();
        createTimeBuilder_ = null;
      }
      updateTime_ = null;
      if (updateTimeBuilder_ != null) {
        updateTimeBuilder_.dispose();
        updateTimeBuilder_ = null;
      }
      lastSync_ = null;
      if (lastSyncBuilder_ != null) {
        lastSyncBuilder_.dispose();
        lastSyncBuilder_ = null;
      }
      state_ = 0;
      stateTime_ = null;
      if (stateTimeBuilder_ != null) {
        stateTimeBuilder_.dispose();
        stateTimeBuilder_ = null;
      }
      currentSyncInfo_ = null;
      if (currentSyncInfoBuilder_ != null) {
        currentSyncInfoBuilder_.dispose();
        currentSyncInfoBuilder_ = null;
      }
      group_ = "";
      internalGetMutableLabels().clear();
      if (recentCloneJobsBuilder_ == null) {
        recentCloneJobs_ = java.util.Collections.emptyList();
      } else {
        recentCloneJobs_ = null;
        recentCloneJobsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00008000);
      error_ = null;
      if (errorBuilder_ != null) {
        errorBuilder_.dispose();
        errorBuilder_ = null;
      }
      if (recentCutoverJobsBuilder_ == null) {
        recentCutoverJobs_ = java.util.Collections.emptyList();
      } else {
        recentCutoverJobs_ = null;
        recentCutoverJobsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00020000);
      targetVmDefaultsCase_ = 0;
      targetVmDefaults_ = null;
      sourceVmDetailsCase_ = 0;
      sourceVmDetails_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.vmmigration.v1.VmMigrationProto
          .internal_static_google_cloud_vmmigration_v1_MigratingVm_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.vmmigration.v1.MigratingVm getDefaultInstanceForType() {
      return com.google.cloud.vmmigration.v1.MigratingVm.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.vmmigration.v1.MigratingVm build() {
      com.google.cloud.vmmigration.v1.MigratingVm result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.vmmigration.v1.MigratingVm buildPartial() {
      com.google.cloud.vmmigration.v1.MigratingVm result =
          new com.google.cloud.vmmigration.v1.MigratingVm(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      buildPartialOneofs(result);
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(com.google.cloud.vmmigration.v1.MigratingVm result) {
      if (recentCloneJobsBuilder_ == null) {
        if (((bitField0_ & 0x00008000) != 0)) {
          recentCloneJobs_ = java.util.Collections.unmodifiableList(recentCloneJobs_);
          bitField0_ = (bitField0_ & ~0x00008000);
        }
        result.recentCloneJobs_ = recentCloneJobs_;
      } else {
        result.recentCloneJobs_ = recentCloneJobsBuilder_.build();
      }
      if (recentCutoverJobsBuilder_ == null) {
        if (((bitField0_ & 0x00020000) != 0)) {
          recentCutoverJobs_ = java.util.Collections.unmodifiableList(recentCutoverJobs_);
          bitField0_ = (bitField0_ & ~0x00020000);
        }
        result.recentCutoverJobs_ = recentCutoverJobs_;
      } else {
        result.recentCutoverJobs_ = recentCutoverJobsBuilder_.build();
      }
    }

    private void buildPartial0(com.google.cloud.vmmigration.v1.MigratingVm result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.name_ = name_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.sourceVmId_ = sourceVmId_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.displayName_ = displayName_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.description_ = description_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.lastSync_ = lastSyncBuilder_ == null ? lastSync_ : lastSyncBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000400) != 0)) {
        result.state_ = state_;
      }
      if (((from_bitField0_ & 0x00000800) != 0)) {
        result.stateTime_ = stateTimeBuilder_ == null ? stateTime_ : stateTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00001000) != 0)) {
        result.currentSyncInfo_ =
            currentSyncInfoBuilder_ == null ? currentSyncInfo_ : currentSyncInfoBuilder_.build();
      }
      if (((from_bitField0_ & 0x00002000) != 0)) {
        result.group_ = group_;
      }
      if (((from_bitField0_ & 0x00004000) != 0)) {
        result.labels_ = internalGetLabels();
        result.labels_.makeImmutable();
      }
      if (((from_bitField0_ & 0x00010000) != 0)) {
        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
      }
    }

    private void buildPartialOneofs(com.google.cloud.vmmigration.v1.MigratingVm result) {
      result.targetVmDefaultsCase_ = targetVmDefaultsCase_;
      result.targetVmDefaults_ = this.targetVmDefaults_;
      if (targetVmDefaultsCase_ == 26 && computeEngineTargetDefaultsBuilder_ != null) {
        result.targetVmDefaults_ = computeEngineTargetDefaultsBuilder_.build();
      }
      result.sourceVmDetailsCase_ = sourceVmDetailsCase_;
      result.sourceVmDetails_ = this.sourceVmDetails_;
      if (sourceVmDetailsCase_ == 29 && awsSourceVmDetailsBuilder_ != null) {
        result.sourceVmDetails_ = awsSourceVmDetailsBuilder_.build();
      }
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.cloud.vmmigration.v1.MigratingVm) {
        return mergeFrom((com.google.cloud.vmmigration.v1.MigratingVm) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.vmmigration.v1.MigratingVm other) {
      if (other == com.google.cloud.vmmigration.v1.MigratingVm.getDefaultInstance()) return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (!other.getSourceVmId().isEmpty()) {
        sourceVmId_ = other.sourceVmId_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (!other.getDisplayName().isEmpty()) {
        displayName_ = other.displayName_;
        bitField0_ |= 0x00000010;
        onChanged();
      }
      if (!other.getDescription().isEmpty()) {
        description_ = other.description_;
        bitField0_ |= 0x00000020;
        onChanged();
      }
      if (other.hasPolicy()) {
        mergePolicy(other.getPolicy());
      }
      if (other.hasCreateTime()) {
        mergeCreateTime(other.getCreateTime());
      }
      if (other.hasUpdateTime()) {
        mergeUpdateTime(other.getUpdateTime());
      }
      if (other.hasLastSync()) {
        mergeLastSync(other.getLastSync());
      }
      if (other.state_ != 0) {
        setStateValue(other.getStateValue());
      }
      if (other.hasStateTime()) {
        mergeStateTime(other.getStateTime());
      }
      if (other.hasCurrentSyncInfo()) {
        mergeCurrentSyncInfo(other.getCurrentSyncInfo());
      }
      if (!other.getGroup().isEmpty()) {
        group_ = other.group_;
        bitField0_ |= 0x00002000;
        onChanged();
      }
      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
      bitField0_ |= 0x00004000;
      if (recentCloneJobsBuilder_ == null) {
        if (!other.recentCloneJobs_.isEmpty()) {
          if (recentCloneJobs_.isEmpty()) {
            recentCloneJobs_ = other.recentCloneJobs_;
            bitField0_ = (bitField0_ & ~0x00008000);
          } else {
            ensureRecentCloneJobsIsMutable();
            recentCloneJobs_.addAll(other.recentCloneJobs_);
          }
          onChanged();
        }
      } else {
        if (!other.recentCloneJobs_.isEmpty()) {
          if (recentCloneJobsBuilder_.isEmpty()) {
            recentCloneJobsBuilder_.dispose();
            recentCloneJobsBuilder_ = null;
            recentCloneJobs_ = other.recentCloneJobs_;
            bitField0_ = (bitField0_ & ~0x00008000);
            recentCloneJobsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getRecentCloneJobsFieldBuilder()
                    : null;
          } else {
            recentCloneJobsBuilder_.addAllMessages(other.recentCloneJobs_);
          }
        }
      }
      if (other.hasError()) {
        mergeError(other.getError());
      }
      if (recentCutoverJobsBuilder_ == null) {
        if (!other.recentCutoverJobs_.isEmpty()) {
          if (recentCutoverJobs_.isEmpty()) {
            recentCutoverJobs_ = other.recentCutoverJobs_;
            bitField0_ = (bitField0_ & ~0x00020000);
          } else {
            ensureRecentCutoverJobsIsMutable();
            recentCutoverJobs_.addAll(other.recentCutoverJobs_);
          }
          onChanged();
        }
      } else {
        if (!other.recentCutoverJobs_.isEmpty()) {
          if (recentCutoverJobsBuilder_.isEmpty()) {
            recentCutoverJobsBuilder_.dispose();
            recentCutoverJobsBuilder_ = null;
            recentCutoverJobs_ = other.recentCutoverJobs_;
            bitField0_ = (bitField0_ & ~0x00020000);
            recentCutoverJobsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getRecentCutoverJobsFieldBuilder()
                    : null;
          } else {
            recentCutoverJobsBuilder_.addAllMessages(other.recentCutoverJobs_);
          }
        }
      }
      switch (other.getTargetVmDefaultsCase()) {
        case COMPUTE_ENGINE_TARGET_DEFAULTS:
          {
            mergeComputeEngineTargetDefaults(other.getComputeEngineTargetDefaults());
            break;
          }
        case TARGETVMDEFAULTS_NOT_SET:
          {
            break;
          }
      }
      switch (other.getSourceVmDetailsCase()) {
        case AWS_SOURCE_VM_DETAILS:
          {
            mergeAwsSourceVmDetails(other.getAwsSourceVmDetails());
            break;
          }
        case SOURCEVMDETAILS_NOT_SET:
          {
            break;
          }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                name_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000004;
                break;
              } // case 10
            case 18:
              {
                sourceVmId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000008;
                break;
              } // case 18
            case 26:
              {
                description_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000020;
                break;
              } // case 26
            case 66:
              {
                input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000040;
                break;
              } // case 66
            case 74:
              {
                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000080;
                break;
              } // case 74
            case 82:
              {
                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000100;
                break;
              } // case 82
            case 90:
              {
                input.readMessage(getLastSyncFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000200;
                break;
              } // case 90
            case 106:
              {
                input.readMessage(getCurrentSyncInfoFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00001000;
                break;
              } // case 106
            case 122:
              {
                group_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00002000;
                break;
              } // case 122
            case 130:
              {
                com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
                    input.readMessage(
                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
                        extensionRegistry);
                internalGetMutableLabels()
                    .getMutableMap()
                    .put(labels__.getKey(), labels__.getValue());
                bitField0_ |= 0x00004000;
                break;
              } // case 130
            case 138:
              {
                com.google.cloud.vmmigration.v1.CloneJob m =
                    input.readMessage(
                        com.google.cloud.vmmigration.v1.CloneJob.parser(), extensionRegistry);
                if (recentCloneJobsBuilder_ == null) {
                  ensureRecentCloneJobsIsMutable();
                  recentCloneJobs_.add(m);
                } else {
                  recentCloneJobsBuilder_.addMessage(m);
                }
                break;
              } // case 138
            case 146:
              {
                displayName_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000010;
                break;
              } // case 146
            case 154:
              {
                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00010000;
                break;
              } // case 154
            case 162:
              {
                com.google.cloud.vmmigration.v1.CutoverJob m =
                    input.readMessage(
                        com.google.cloud.vmmigration.v1.CutoverJob.parser(), extensionRegistry);
                if (recentCutoverJobsBuilder_ == null) {
                  ensureRecentCutoverJobsIsMutable();
                  recentCutoverJobs_.add(m);
                } else {
                  recentCutoverJobsBuilder_.addMessage(m);
                }
                break;
              } // case 162
            case 178:
              {
                input.readMessage(getStateTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000800;
                break;
              } // case 178
            case 184:
              {
                state_ = input.readEnum();
                bitField0_ |= 0x00000400;
                break;
              } // case 184
            case 210:
              {
                input.readMessage(
                    getComputeEngineTargetDefaultsFieldBuilder().getBuilder(), extensionRegistry);
                targetVmDefaultsCase_ = 26;
                break;
              } // case 210
            case 234:
              {
                input.readMessage(
                    getAwsSourceVmDetailsFieldBuilder().getBuilder(), extensionRegistry);
                sourceVmDetailsCase_ = 29;
                break;
              } // case 234
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int targetVmDefaultsCase_ = 0;
    private java.lang.Object targetVmDefaults_;

    public TargetVmDefaultsCase getTargetVmDefaultsCase() {
      return TargetVmDefaultsCase.forNumber(targetVmDefaultsCase_);
    }

    public Builder clearTargetVmDefaults() {
      targetVmDefaultsCase_ = 0;
      targetVmDefaults_ = null;
      onChanged();
      return this;
    }

    private int sourceVmDetailsCase_ = 0;
    private java.lang.Object sourceVmDetails_;

    public SourceVmDetailsCase getSourceVmDetailsCase() {
      return SourceVmDetailsCase.forNumber(sourceVmDetailsCase_);
    }

    public Builder clearSourceVmDetails() {
      sourceVmDetailsCase_ = 0;
      sourceVmDetails_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults,
            com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder,
            com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder>
        computeEngineTargetDefaultsBuilder_;
    /**
     *
     *
     * <pre>
     * Details of the target VM in Compute Engine.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
     * </code>
     *
     * @return Whether the computeEngineTargetDefaults field is set.
     */
    @java.lang.Override
    public boolean hasComputeEngineTargetDefaults() {
      return targetVmDefaultsCase_ == 26;
    }
    /**
     *
     *
     * <pre>
     * Details of the target VM in Compute Engine.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
     * </code>
     *
     * @return The computeEngineTargetDefaults.
     */
    @java.lang.Override
    public com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults
        getComputeEngineTargetDefaults() {
      if (computeEngineTargetDefaultsBuilder_ == null) {
        if (targetVmDefaultsCase_ == 26) {
          return (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_;
        }
        return com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance();
      } else {
        if (targetVmDefaultsCase_ == 26) {
          return computeEngineTargetDefaultsBuilder_.getMessage();
        }
        return com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Details of the target VM in Compute Engine.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
     * </code>
     */
    public Builder setComputeEngineTargetDefaults(
        com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults value) {
      if (computeEngineTargetDefaultsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        targetVmDefaults_ = value;
        onChanged();
      } else {
        computeEngineTargetDefaultsBuilder_.setMessage(value);
      }
      targetVmDefaultsCase_ = 26;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Details of the target VM in Compute Engine.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
     * </code>
     */
    public Builder setComputeEngineTargetDefaults(
        com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder builderForValue) {
      if (computeEngineTargetDefaultsBuilder_ == null) {
        targetVmDefaults_ = builderForValue.build();
        onChanged();
      } else {
        computeEngineTargetDefaultsBuilder_.setMessage(builderForValue.build());
      }
      targetVmDefaultsCase_ = 26;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Details of the target VM in Compute Engine.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
     * </code>
     */
    public Builder mergeComputeEngineTargetDefaults(
        com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults value) {
      if (computeEngineTargetDefaultsBuilder_ == null) {
        if (targetVmDefaultsCase_ == 26
            && targetVmDefaults_
                != com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults
                    .getDefaultInstance()) {
          targetVmDefaults_ =
              com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.newBuilder(
                      (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults)
                          targetVmDefaults_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          targetVmDefaults_ = value;
        }
        onChanged();
      } else {
        if (targetVmDefaultsCase_ == 26) {
          computeEngineTargetDefaultsBuilder_.mergeFrom(value);
        } else {
          computeEngineTargetDefaultsBuilder_.setMessage(value);
        }
      }
      targetVmDefaultsCase_ = 26;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Details of the target VM in Compute Engine.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
     * </code>
     */
    public Builder clearComputeEngineTargetDefaults() {
      if (computeEngineTargetDefaultsBuilder_ == null) {
        if (targetVmDefaultsCase_ == 26) {
          targetVmDefaultsCase_ = 0;
          targetVmDefaults_ = null;
          onChanged();
        }
      } else {
        if (targetVmDefaultsCase_ == 26) {
          targetVmDefaultsCase_ = 0;
          targetVmDefaults_ = null;
        }
        computeEngineTargetDefaultsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Details of the target VM in Compute Engine.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
     * </code>
     */
    public com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder
        getComputeEngineTargetDefaultsBuilder() {
      return getComputeEngineTargetDefaultsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Details of the target VM in Compute Engine.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder
        getComputeEngineTargetDefaultsOrBuilder() {
      if ((targetVmDefaultsCase_ == 26) && (computeEngineTargetDefaultsBuilder_ != null)) {
        return computeEngineTargetDefaultsBuilder_.getMessageOrBuilder();
      } else {
        if (targetVmDefaultsCase_ == 26) {
          return (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_;
        }
        return com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Details of the target VM in Compute Engine.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults,
            com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder,
            com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder>
        getComputeEngineTargetDefaultsFieldBuilder() {
      if (computeEngineTargetDefaultsBuilder_ == null) {
        if (!(targetVmDefaultsCase_ == 26)) {
          targetVmDefaults_ =
              com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.getDefaultInstance();
        }
        computeEngineTargetDefaultsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults,
                com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder,
                com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaultsOrBuilder>(
                (com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults) targetVmDefaults_,
                getParentForChildren(),
                isClean());
        targetVmDefaults_ = null;
      }
      targetVmDefaultsCase_ = 26;
      onChanged();
      return computeEngineTargetDefaultsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.vmmigration.v1.AwsSourceVmDetails,
            com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Builder,
            com.google.cloud.vmmigration.v1.AwsSourceVmDetailsOrBuilder>
        awsSourceVmDetailsBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Details of the VM from an AWS source.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the awsSourceVmDetails field is set.
     */
    @java.lang.Override
    public boolean hasAwsSourceVmDetails() {
      return sourceVmDetailsCase_ == 29;
    }
    /**
     *
     *
     * <pre>
     * Output only. Details of the VM from an AWS source.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The awsSourceVmDetails.
     */
    @java.lang.Override
    public com.google.cloud.vmmigration.v1.AwsSourceVmDetails getAwsSourceVmDetails() {
      if (awsSourceVmDetailsBuilder_ == null) {
        if (sourceVmDetailsCase_ == 29) {
          return (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_;
        }
        return com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance();
      } else {
        if (sourceVmDetailsCase_ == 29) {
          return awsSourceVmDetailsBuilder_.getMessage();
        }
        return com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Details of the VM from an AWS source.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setAwsSourceVmDetails(com.google.cloud.vmmigration.v1.AwsSourceVmDetails value) {
      if (awsSourceVmDetailsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        sourceVmDetails_ = value;
        onChanged();
      } else {
        awsSourceVmDetailsBuilder_.setMessage(value);
      }
      sourceVmDetailsCase_ = 29;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Details of the VM from an AWS source.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setAwsSourceVmDetails(
        com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Builder builderForValue) {
      if (awsSourceVmDetailsBuilder_ == null) {
        sourceVmDetails_ = builderForValue.build();
        onChanged();
      } else {
        awsSourceVmDetailsBuilder_.setMessage(builderForValue.build());
      }
      sourceVmDetailsCase_ = 29;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Details of the VM from an AWS source.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeAwsSourceVmDetails(
        com.google.cloud.vmmigration.v1.AwsSourceVmDetails value) {
      if (awsSourceVmDetailsBuilder_ == null) {
        if (sourceVmDetailsCase_ == 29
            && sourceVmDetails_
                != com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance()) {
          sourceVmDetails_ =
              com.google.cloud.vmmigration.v1.AwsSourceVmDetails.newBuilder(
                      (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          sourceVmDetails_ = value;
        }
        onChanged();
      } else {
        if (sourceVmDetailsCase_ == 29) {
          awsSourceVmDetailsBuilder_.mergeFrom(value);
        } else {
          awsSourceVmDetailsBuilder_.setMessage(value);
        }
      }
      sourceVmDetailsCase_ = 29;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Details of the VM from an AWS source.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearAwsSourceVmDetails() {
      if (awsSourceVmDetailsBuilder_ == null) {
        if (sourceVmDetailsCase_ == 29) {
          sourceVmDetailsCase_ = 0;
          sourceVmDetails_ = null;
          onChanged();
        }
      } else {
        if (sourceVmDetailsCase_ == 29) {
          sourceVmDetailsCase_ = 0;
          sourceVmDetails_ = null;
        }
        awsSourceVmDetailsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Details of the VM from an AWS source.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Builder
        getAwsSourceVmDetailsBuilder() {
      return getAwsSourceVmDetailsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Details of the VM from an AWS source.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.vmmigration.v1.AwsSourceVmDetailsOrBuilder
        getAwsSourceVmDetailsOrBuilder() {
      if ((sourceVmDetailsCase_ == 29) && (awsSourceVmDetailsBuilder_ != null)) {
        return awsSourceVmDetailsBuilder_.getMessageOrBuilder();
      } else {
        if (sourceVmDetailsCase_ == 29) {
          return (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_;
        }
        return com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Details of the VM from an AWS source.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.vmmigration.v1.AwsSourceVmDetails,
            com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Builder,
            com.google.cloud.vmmigration.v1.AwsSourceVmDetailsOrBuilder>
        getAwsSourceVmDetailsFieldBuilder() {
      if (awsSourceVmDetailsBuilder_ == null) {
        if (!(sourceVmDetailsCase_ == 29)) {
          sourceVmDetails_ =
              com.google.cloud.vmmigration.v1.AwsSourceVmDetails.getDefaultInstance();
        }
        awsSourceVmDetailsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.vmmigration.v1.AwsSourceVmDetails,
                com.google.cloud.vmmigration.v1.AwsSourceVmDetails.Builder,
                com.google.cloud.vmmigration.v1.AwsSourceVmDetailsOrBuilder>(
                (com.google.cloud.vmmigration.v1.AwsSourceVmDetails) sourceVmDetails_,
                getParentForChildren(),
                isClean());
        sourceVmDetails_ = null;
      }
      sourceVmDetailsCase_ = 29;
      onChanged();
      return awsSourceVmDetailsBuilder_;
    }

    private java.lang.Object name_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The identifier of the MigratingVm.
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The name.
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The identifier of the MigratingVm.
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for name.
     */
    public com.google.protobuf.ByteString getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The identifier of the MigratingVm.
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The name to set.
     * @return This builder for chaining.
     */
    public Builder setName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      name_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The identifier of the MigratingVm.
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearName() {
      name_ = getDefaultInstance().getName();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The identifier of the MigratingVm.
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for name to set.
     * @return This builder for chaining.
     */
    public Builder setNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      name_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private java.lang.Object sourceVmId_ = "";
    /**
     *
     *
     * <pre>
     * The unique ID of the VM in the source.
     * The VM's name in vSphere can be changed, so this is not the VM's name but
     * rather its moRef id. This id is of the form vm-&lt;num&gt;.
     * </pre>
     *
     * <code>string source_vm_id = 2;</code>
     *
     * @return The sourceVmId.
     */
    public java.lang.String getSourceVmId() {
      java.lang.Object ref = sourceVmId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        sourceVmId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The unique ID of the VM in the source.
     * The VM's name in vSphere can be changed, so this is not the VM's name but
     * rather its moRef id. This id is of the form vm-&lt;num&gt;.
     * </pre>
     *
     * <code>string source_vm_id = 2;</code>
     *
     * @return The bytes for sourceVmId.
     */
    public com.google.protobuf.ByteString getSourceVmIdBytes() {
      java.lang.Object ref = sourceVmId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        sourceVmId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The unique ID of the VM in the source.
     * The VM's name in vSphere can be changed, so this is not the VM's name but
     * rather its moRef id. This id is of the form vm-&lt;num&gt;.
     * </pre>
     *
     * <code>string source_vm_id = 2;</code>
     *
     * @param value The sourceVmId to set.
     * @return This builder for chaining.
     */
    public Builder setSourceVmId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      sourceVmId_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The unique ID of the VM in the source.
     * The VM's name in vSphere can be changed, so this is not the VM's name but
     * rather its moRef id. This id is of the form vm-&lt;num&gt;.
     * </pre>
     *
     * <code>string source_vm_id = 2;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearSourceVmId() {
      sourceVmId_ = getDefaultInstance().getSourceVmId();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The unique ID of the VM in the source.
     * The VM's name in vSphere can be changed, so this is not the VM's name but
     * rather its moRef id. This id is of the form vm-&lt;num&gt;.
     * </pre>
     *
     * <code>string source_vm_id = 2;</code>
     *
     * @param value The bytes for sourceVmId to set.
     * @return This builder for chaining.
     */
    public Builder setSourceVmIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      sourceVmId_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    private java.lang.Object displayName_ = "";
    /**
     *
     *
     * <pre>
     * The display name attached to the MigratingVm by the user.
     * </pre>
     *
     * <code>string display_name = 18;</code>
     *
     * @return The displayName.
     */
    public java.lang.String getDisplayName() {
      java.lang.Object ref = displayName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        displayName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The display name attached to the MigratingVm by the user.
     * </pre>
     *
     * <code>string display_name = 18;</code>
     *
     * @return The bytes for displayName.
     */
    public com.google.protobuf.ByteString getDisplayNameBytes() {
      java.lang.Object ref = displayName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        displayName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The display name attached to the MigratingVm by the user.
     * </pre>
     *
     * <code>string display_name = 18;</code>
     *
     * @param value The displayName to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      displayName_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The display name attached to the MigratingVm by the user.
     * </pre>
     *
     * <code>string display_name = 18;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDisplayName() {
      displayName_ = getDefaultInstance().getDisplayName();
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The display name attached to the MigratingVm by the user.
     * </pre>
     *
     * <code>string display_name = 18;</code>
     *
     * @param value The bytes for displayName to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      displayName_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }

    private java.lang.Object description_ = "";
    /**
     *
     *
     * <pre>
     * The description attached to the migrating VM by the user.
     * </pre>
     *
     * <code>string description = 3;</code>
     *
     * @return The description.
     */
    public java.lang.String getDescription() {
      java.lang.Object ref = description_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        description_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The description attached to the migrating VM by the user.
     * </pre>
     *
     * <code>string description = 3;</code>
     *
     * @return The bytes for description.
     */
    public com.google.protobuf.ByteString getDescriptionBytes() {
      java.lang.Object ref = description_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        description_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The description attached to the migrating VM by the user.
     * </pre>
     *
     * <code>string description = 3;</code>
     *
     * @param value The description to set.
     * @return This builder for chaining.
     */
    public Builder setDescription(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      description_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The description attached to the migrating VM by the user.
     * </pre>
     *
     * <code>string description = 3;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDescription() {
      description_ = getDefaultInstance().getDescription();
      bitField0_ = (bitField0_ & ~0x00000020);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The description attached to the migrating VM by the user.
     * </pre>
     *
     * <code>string description = 3;</code>
     *
     * @param value The bytes for description to set.
     * @return This builder for chaining.
     */
    public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      description_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }

    private com.google.cloud.vmmigration.v1.SchedulePolicy policy_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.vmmigration.v1.SchedulePolicy,
            com.google.cloud.vmmigration.v1.SchedulePolicy.Builder,
            com.google.cloud.vmmigration.v1.SchedulePolicyOrBuilder>
        policyBuilder_;
    /**
     *
     *
     * <pre>
     * The replication schedule policy.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
     *
     * @return Whether the policy field is set.
     */
    public boolean hasPolicy() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     *
     *
     * <pre>
     * The replication schedule policy.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
     *
     * @return The policy.
     */
    public com.google.cloud.vmmigration.v1.SchedulePolicy getPolicy() {
      if (policyBuilder_ == null) {
        return policy_ == null
            ? com.google.cloud.vmmigration.v1.SchedulePolicy.getDefaultInstance()
            : policy_;
      } else {
        return policyBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The replication schedule policy.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
     */
    public Builder setPolicy(com.google.cloud.vmmigration.v1.SchedulePolicy value) {
      if (policyBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        policy_ = value;
      } else {
        policyBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The replication schedule policy.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
     */
    public Builder setPolicy(
        com.google.cloud.vmmigration.v1.SchedulePolicy.Builder builderForValue) {
      if (policyBuilder_ == null) {
        policy_ = builderForValue.build();
      } else {
        policyBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The replication schedule policy.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
     */
    public Builder mergePolicy(com.google.cloud.vmmigration.v1.SchedulePolicy value) {
      if (policyBuilder_ == null) {
        if (((bitField0_ & 0x00000040) != 0)
            && policy_ != null
            && policy_ != com.google.cloud.vmmigration.v1.SchedulePolicy.getDefaultInstance()) {
          getPolicyBuilder().mergeFrom(value);
        } else {
          policy_ = value;
        }
      } else {
        policyBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The replication schedule policy.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
     */
    public Builder clearPolicy() {
      bitField0_ = (bitField0_ & ~0x00000040);
      policy_ = null;
      if (policyBuilder_ != null) {
        policyBuilder_.dispose();
        policyBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The replication schedule policy.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
     */
    public com.google.cloud.vmmigration.v1.SchedulePolicy.Builder getPolicyBuilder() {
      bitField0_ |= 0x00000040;
      onChanged();
      return getPolicyFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The replication schedule policy.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
     */
    public com.google.cloud.vmmigration.v1.SchedulePolicyOrBuilder getPolicyOrBuilder() {
      if (policyBuilder_ != null) {
        return policyBuilder_.getMessageOrBuilder();
      } else {
        return policy_ == null
            ? com.google.cloud.vmmigration.v1.SchedulePolicy.getDefaultInstance()
            : policy_;
      }
    }
    /**
     *
     *
     * <pre>
     * The replication schedule policy.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.SchedulePolicy policy = 8;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.vmmigration.v1.SchedulePolicy,
            com.google.cloud.vmmigration.v1.SchedulePolicy.Builder,
            com.google.cloud.vmmigration.v1.SchedulePolicyOrBuilder>
        getPolicyFieldBuilder() {
      if (policyBuilder_ == null) {
        policyBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.vmmigration.v1.SchedulePolicy,
                com.google.cloud.vmmigration.v1.SchedulePolicy.Builder,
                com.google.cloud.vmmigration.v1.SchedulePolicyOrBuilder>(
                getPolicy(), getParentForChildren(), isClean());
        policy_ = null;
      }
      return policyBuilder_;
    }

    private com.google.protobuf.Timestamp createTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        createTimeBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. The time the migrating VM was created (this refers to this
     * resource and not to the time it was installed in the source).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the createTime field is set.
     */
    public boolean hasCreateTime() {
      return ((bitField0_ & 0x00000080) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. The time the migrating VM was created (this refers to this
     * resource and not to the time it was installed in the source).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The createTime.
     */
    public com.google.protobuf.Timestamp getCreateTime() {
      if (createTimeBuilder_ == null) {
        return createTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : createTime_;
      } else {
        return createTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The time the migrating VM was created (this refers to this
     * resource and not to the time it was installed in the source).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        createTime_ = value;
      } else {
        createTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The time the migrating VM was created (this refers to this
     * resource and not to the time it was installed in the source).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (createTimeBuilder_ == null) {
        createTime_ = builderForValue.build();
      } else {
        createTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The time the migrating VM was created (this refers to this
     * resource and not to the time it was installed in the source).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000080) != 0)
            && createTime_ != null
            && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getCreateTimeBuilder().mergeFrom(value);
        } else {
          createTime_ = value;
        }
      } else {
        createTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The time the migrating VM was created (this refers to this
     * resource and not to the time it was installed in the source).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearCreateTime() {
      bitField0_ = (bitField0_ & ~0x00000080);
      createTime_ = null;
      if (createTimeBuilder_ != null) {
        createTimeBuilder_.dispose();
        createTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The time the migrating VM was created (this refers to this
     * resource and not to the time it was installed in the source).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
      bitField0_ |= 0x00000080;
      onChanged();
      return getCreateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. The time the migrating VM was created (this refers to this
     * resource and not to the time it was installed in the source).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      if (createTimeBuilder_ != null) {
        return createTimeBuilder_.getMessageOrBuilder();
      } else {
        return createTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : createTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The time the migrating VM was created (this refers to this
     * resource and not to the time it was installed in the source).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getCreateTimeFieldBuilder() {
      if (createTimeBuilder_ == null) {
        createTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getCreateTime(), getParentForChildren(), isClean());
        createTime_ = null;
      }
      return createTimeBuilder_;
    }

    private com.google.protobuf.Timestamp updateTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        updateTimeBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. The last time the migrating VM resource was updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the updateTime field is set.
     */
    public boolean hasUpdateTime() {
      return ((bitField0_ & 0x00000100) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the migrating VM resource was updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The updateTime.
     */
    public com.google.protobuf.Timestamp getUpdateTime() {
      if (updateTimeBuilder_ == null) {
        return updateTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : updateTime_;
      } else {
        return updateTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the migrating VM resource was updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
      if (updateTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        updateTime_ = value;
      } else {
        updateTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the migrating VM resource was updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (updateTimeBuilder_ == null) {
        updateTime_ = builderForValue.build();
      } else {
        updateTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the migrating VM resource was updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
      if (updateTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000100) != 0)
            && updateTime_ != null
            && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getUpdateTimeBuilder().mergeFrom(value);
        } else {
          updateTime_ = value;
        }
      } else {
        updateTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the migrating VM resource was updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearUpdateTime() {
      bitField0_ = (bitField0_ & ~0x00000100);
      updateTime_ = null;
      if (updateTimeBuilder_ != null) {
        updateTimeBuilder_.dispose();
        updateTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the migrating VM resource was updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
      bitField0_ |= 0x00000100;
      onChanged();
      return getUpdateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the migrating VM resource was updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      if (updateTimeBuilder_ != null) {
        return updateTimeBuilder_.getMessageOrBuilder();
      } else {
        return updateTime_ == null
            ? com.google.protobuf.Timestamp.getDefaultInstance()
            : updateTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the migrating VM resource was updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getUpdateTimeFieldBuilder() {
      if (updateTimeBuilder_ == null) {
        updateTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getUpdateTime(), getParentForChildren(), isClean());
        updateTime_ = null;
      }
      return updateTimeBuilder_;
    }

    private com.google.cloud.vmmigration.v1.ReplicationSync lastSync_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.vmmigration.v1.ReplicationSync,
            com.google.cloud.vmmigration.v1.ReplicationSync.Builder,
            com.google.cloud.vmmigration.v1.ReplicationSyncOrBuilder>
        lastSyncBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. The most updated snapshot created time in the source that
     * finished replication.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the lastSync field is set.
     */
    public boolean hasLastSync() {
      return ((bitField0_ & 0x00000200) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. The most updated snapshot created time in the source that
     * finished replication.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The lastSync.
     */
    public com.google.cloud.vmmigration.v1.ReplicationSync getLastSync() {
      if (lastSyncBuilder_ == null) {
        return lastSync_ == null
            ? com.google.cloud.vmmigration.v1.ReplicationSync.getDefaultInstance()
            : lastSync_;
      } else {
        return lastSyncBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The most updated snapshot created time in the source that
     * finished replication.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setLastSync(com.google.cloud.vmmigration.v1.ReplicationSync value) {
      if (lastSyncBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        lastSync_ = value;
      } else {
        lastSyncBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The most updated snapshot created time in the source that
     * finished replication.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setLastSync(
        com.google.cloud.vmmigration.v1.ReplicationSync.Builder builderForValue) {
      if (lastSyncBuilder_ == null) {
        lastSync_ = builderForValue.build();
      } else {
        lastSyncBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The most updated snapshot created time in the source that
     * finished replication.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeLastSync(com.google.cloud.vmmigration.v1.ReplicationSync value) {
      if (lastSyncBuilder_ == null) {
        if (((bitField0_ & 0x00000200) != 0)
            && lastSync_ != null
            && lastSync_ != com.google.cloud.vmmigration.v1.ReplicationSync.getDefaultInstance()) {
          getLastSyncBuilder().mergeFrom(value);
        } else {
          lastSync_ = value;
        }
      } else {
        lastSyncBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The most updated snapshot created time in the source that
     * finished replication.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearLastSync() {
      bitField0_ = (bitField0_ & ~0x00000200);
      lastSync_ = null;
      if (lastSyncBuilder_ != null) {
        lastSyncBuilder_.dispose();
        lastSyncBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The most updated snapshot created time in the source that
     * finished replication.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.vmmigration.v1.ReplicationSync.Builder getLastSyncBuilder() {
      bitField0_ |= 0x00000200;
      onChanged();
      return getLastSyncFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. The most updated snapshot created time in the source that
     * finished replication.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.vmmigration.v1.ReplicationSyncOrBuilder getLastSyncOrBuilder() {
      if (lastSyncBuilder_ != null) {
        return lastSyncBuilder_.getMessageOrBuilder();
      } else {
        return lastSync_ == null
            ? com.google.cloud.vmmigration.v1.ReplicationSync.getDefaultInstance()
            : lastSync_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The most updated snapshot created time in the source that
     * finished replication.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.vmmigration.v1.ReplicationSync,
            com.google.cloud.vmmigration.v1.ReplicationSync.Builder,
            com.google.cloud.vmmigration.v1.ReplicationSyncOrBuilder>
        getLastSyncFieldBuilder() {
      if (lastSyncBuilder_ == null) {
        lastSyncBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.vmmigration.v1.ReplicationSync,
                com.google.cloud.vmmigration.v1.ReplicationSync.Builder,
                com.google.cloud.vmmigration.v1.ReplicationSyncOrBuilder>(
                getLastSync(), getParentForChildren(), isClean());
        lastSync_ = null;
      }
      return lastSyncBuilder_;
    }

    private int state_ = 0;
    /**
     *
     *
     * <pre>
     * Output only. State of the MigratingVm.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.MigratingVm.State state = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The enum numeric value on the wire for state.
     */
    @java.lang.Override
    public int getStateValue() {
      return state_;
    }
    /**
     *
     *
     * <pre>
     * Output only. State of the MigratingVm.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.MigratingVm.State state = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The enum numeric value on the wire for state to set.
     * @return This builder for chaining.
     */
    public Builder setStateValue(int value) {
      state_ = value;
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. State of the MigratingVm.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.MigratingVm.State state = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The state.
     */
    @java.lang.Override
    public com.google.cloud.vmmigration.v1.MigratingVm.State getState() {
      com.google.cloud.vmmigration.v1.MigratingVm.State result =
          com.google.cloud.vmmigration.v1.MigratingVm.State.forNumber(state_);
      return result == null
          ? com.google.cloud.vmmigration.v1.MigratingVm.State.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * Output only. State of the MigratingVm.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.MigratingVm.State state = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The state to set.
     * @return This builder for chaining.
     */
    public Builder setState(com.google.cloud.vmmigration.v1.MigratingVm.State value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000400;
      state_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. State of the MigratingVm.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.MigratingVm.State state = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearState() {
      bitField0_ = (bitField0_ & ~0x00000400);
      state_ = 0;
      onChanged();
      return this;
    }

    private com.google.protobuf.Timestamp stateTime_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        stateTimeBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. The last time the migrating VM state was updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the stateTime field is set.
     */
    public boolean hasStateTime() {
      return ((bitField0_ & 0x00000800) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the migrating VM state was updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The stateTime.
     */
    public com.google.protobuf.Timestamp getStateTime() {
      if (stateTimeBuilder_ == null) {
        return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_;
      } else {
        return stateTimeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the migrating VM state was updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setStateTime(com.google.protobuf.Timestamp value) {
      if (stateTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        stateTime_ = value;
      } else {
        stateTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the migrating VM state was updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setStateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (stateTimeBuilder_ == null) {
        stateTime_ = builderForValue.build();
      } else {
        stateTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the migrating VM state was updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeStateTime(com.google.protobuf.Timestamp value) {
      if (stateTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000800) != 0)
            && stateTime_ != null
            && stateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getStateTimeBuilder().mergeFrom(value);
        } else {
          stateTime_ = value;
        }
      } else {
        stateTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the migrating VM state was updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearStateTime() {
      bitField0_ = (bitField0_ & ~0x00000800);
      stateTime_ = null;
      if (stateTimeBuilder_ != null) {
        stateTimeBuilder_.dispose();
        stateTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the migrating VM state was updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.Timestamp.Builder getStateTimeBuilder() {
      bitField0_ |= 0x00000800;
      onChanged();
      return getStateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the migrating VM state was updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder() {
      if (stateTimeBuilder_ != null) {
        return stateTimeBuilder_.getMessageOrBuilder();
      } else {
        return stateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stateTime_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the migrating VM state was updated.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        getStateTimeFieldBuilder() {
      if (stateTimeBuilder_ == null) {
        stateTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getStateTime(), getParentForChildren(), isClean());
        stateTime_ = null;
      }
      return stateTimeBuilder_;
    }

    private com.google.cloud.vmmigration.v1.ReplicationCycle currentSyncInfo_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.vmmigration.v1.ReplicationCycle,
            com.google.cloud.vmmigration.v1.ReplicationCycle.Builder,
            com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder>
        currentSyncInfoBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. The percentage progress of the current running replication
     * cycle.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the currentSyncInfo field is set.
     */
    public boolean hasCurrentSyncInfo() {
      return ((bitField0_ & 0x00001000) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. The percentage progress of the current running replication
     * cycle.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The currentSyncInfo.
     */
    public com.google.cloud.vmmigration.v1.ReplicationCycle getCurrentSyncInfo() {
      if (currentSyncInfoBuilder_ == null) {
        return currentSyncInfo_ == null
            ? com.google.cloud.vmmigration.v1.ReplicationCycle.getDefaultInstance()
            : currentSyncInfo_;
      } else {
        return currentSyncInfoBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The percentage progress of the current running replication
     * cycle.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setCurrentSyncInfo(com.google.cloud.vmmigration.v1.ReplicationCycle value) {
      if (currentSyncInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        currentSyncInfo_ = value;
      } else {
        currentSyncInfoBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The percentage progress of the current running replication
     * cycle.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setCurrentSyncInfo(
        com.google.cloud.vmmigration.v1.ReplicationCycle.Builder builderForValue) {
      if (currentSyncInfoBuilder_ == null) {
        currentSyncInfo_ = builderForValue.build();
      } else {
        currentSyncInfoBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The percentage progress of the current running replication
     * cycle.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeCurrentSyncInfo(com.google.cloud.vmmigration.v1.ReplicationCycle value) {
      if (currentSyncInfoBuilder_ == null) {
        if (((bitField0_ & 0x00001000) != 0)
            && currentSyncInfo_ != null
            && currentSyncInfo_
                != com.google.cloud.vmmigration.v1.ReplicationCycle.getDefaultInstance()) {
          getCurrentSyncInfoBuilder().mergeFrom(value);
        } else {
          currentSyncInfo_ = value;
        }
      } else {
        currentSyncInfoBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The percentage progress of the current running replication
     * cycle.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearCurrentSyncInfo() {
      bitField0_ = (bitField0_ & ~0x00001000);
      currentSyncInfo_ = null;
      if (currentSyncInfoBuilder_ != null) {
        currentSyncInfoBuilder_.dispose();
        currentSyncInfoBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The percentage progress of the current running replication
     * cycle.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.vmmigration.v1.ReplicationCycle.Builder getCurrentSyncInfoBuilder() {
      bitField0_ |= 0x00001000;
      onChanged();
      return getCurrentSyncInfoFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. The percentage progress of the current running replication
     * cycle.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder getCurrentSyncInfoOrBuilder() {
      if (currentSyncInfoBuilder_ != null) {
        return currentSyncInfoBuilder_.getMessageOrBuilder();
      } else {
        return currentSyncInfo_ == null
            ? com.google.cloud.vmmigration.v1.ReplicationCycle.getDefaultInstance()
            : currentSyncInfo_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The percentage progress of the current running replication
     * cycle.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.vmmigration.v1.ReplicationCycle,
            com.google.cloud.vmmigration.v1.ReplicationCycle.Builder,
            com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder>
        getCurrentSyncInfoFieldBuilder() {
      if (currentSyncInfoBuilder_ == null) {
        currentSyncInfoBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.vmmigration.v1.ReplicationCycle,
                com.google.cloud.vmmigration.v1.ReplicationCycle.Builder,
                com.google.cloud.vmmigration.v1.ReplicationCycleOrBuilder>(
                getCurrentSyncInfo(), getParentForChildren(), isClean());
        currentSyncInfo_ = null;
      }
      return currentSyncInfoBuilder_;
    }

    private java.lang.Object group_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The group this migrating vm is included in, if any. The group
     * is represented by the full path of the appropriate
     * [Group][google.cloud.vmmigration.v1.Group] resource.
     * </pre>
     *
     * <code>
     * string group = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return The group.
     */
    public java.lang.String getGroup() {
      java.lang.Object ref = group_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        group_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The group this migrating vm is included in, if any. The group
     * is represented by the full path of the appropriate
     * [Group][google.cloud.vmmigration.v1.Group] resource.
     * </pre>
     *
     * <code>
     * string group = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return The bytes for group.
     */
    public com.google.protobuf.ByteString getGroupBytes() {
      java.lang.Object ref = group_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        group_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The group this migrating vm is included in, if any. The group
     * is represented by the full path of the appropriate
     * [Group][google.cloud.vmmigration.v1.Group] resource.
     * </pre>
     *
     * <code>
     * string group = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @param value The group to set.
     * @return This builder for chaining.
     */
    public Builder setGroup(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      group_ = value;
      bitField0_ |= 0x00002000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The group this migrating vm is included in, if any. The group
     * is represented by the full path of the appropriate
     * [Group][google.cloud.vmmigration.v1.Group] resource.
     * </pre>
     *
     * <code>
     * string group = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearGroup() {
      group_ = getDefaultInstance().getGroup();
      bitField0_ = (bitField0_ & ~0x00002000);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The group this migrating vm is included in, if any. The group
     * is represented by the full path of the appropriate
     * [Group][google.cloud.vmmigration.v1.Group] resource.
     * </pre>
     *
     * <code>
     * string group = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
     * </code>
     *
     * @param value The bytes for group to set.
     * @return This builder for chaining.
     */
    public Builder setGroupBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      group_ = value;
      bitField0_ |= 0x00002000;
      onChanged();
      return this;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
      if (labels_ == null) {
        return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
      }
      return labels_;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
        internalGetMutableLabels() {
      if (labels_ == null) {
        labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
      }
      if (!labels_.isMutable()) {
        labels_ = labels_.copy();
      }
      bitField0_ |= 0x00004000;
      onChanged();
      return labels_;
    }

    public int getLabelsCount() {
      return internalGetLabels().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * The labels of the migrating VM.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 16;</code>
     */
    @java.lang.Override
    public boolean containsLabels(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      return internalGetLabels().getMap().containsKey(key);
    }
    /** Use {@link #getLabelsMap()} instead. */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getLabels() {
      return getLabelsMap();
    }
    /**
     *
     *
     * <pre>
     * The labels of the migrating VM.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 16;</code>
     */
    @java.lang.Override
    public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
      return internalGetLabels().getMap();
    }
    /**
     *
     *
     * <pre>
     * The labels of the migrating VM.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 16;</code>
     */
    @java.lang.Override
    public /* nullable */ java.lang.String getLabelsOrDefault(
        java.lang.String key,
        /* nullable */
        java.lang.String defaultValue) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     *
     *
     * <pre>
     * The labels of the migrating VM.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 16;</code>
     */
    @java.lang.Override
    public java.lang.String getLabelsOrThrow(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearLabels() {
      bitField0_ = (bitField0_ & ~0x00004000);
      internalGetMutableLabels().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The labels of the migrating VM.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 16;</code>
     */
    public Builder removeLabels(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      internalGetMutableLabels().getMutableMap().remove(key);
      return this;
    }
    /** Use alternate mutation accessors instead. */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() {
      bitField0_ |= 0x00004000;
      return internalGetMutableLabels().getMutableMap();
    }
    /**
     *
     *
     * <pre>
     * The labels of the migrating VM.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 16;</code>
     */
    public Builder putLabels(java.lang.String key, java.lang.String value) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      if (value == null) {
        throw new NullPointerException("map value");
      }
      internalGetMutableLabels().getMutableMap().put(key, value);
      bitField0_ |= 0x00004000;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The labels of the migrating VM.
     * </pre>
     *
     * <code>map&lt;string, string&gt; labels = 16;</code>
     */
    public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableLabels().getMutableMap().putAll(values);
      bitField0_ |= 0x00004000;
      return this;
    }

    private java.util.List<com.google.cloud.vmmigration.v1.CloneJob> recentCloneJobs_ =
        java.util.Collections.emptyList();

    private void ensureRecentCloneJobsIsMutable() {
      if (!((bitField0_ & 0x00008000) != 0)) {
        recentCloneJobs_ =
            new java.util.ArrayList<com.google.cloud.vmmigration.v1.CloneJob>(recentCloneJobs_);
        bitField0_ |= 0x00008000;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.vmmigration.v1.CloneJob,
            com.google.cloud.vmmigration.v1.CloneJob.Builder,
            com.google.cloud.vmmigration.v1.CloneJobOrBuilder>
        recentCloneJobsBuilder_;

    /**
     *
     *
     * <pre>
     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
     * performed on the migrating VM. This field holds the vm's last completed
     * clone job and the vm's running clone job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<com.google.cloud.vmmigration.v1.CloneJob> getRecentCloneJobsList() {
      if (recentCloneJobsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(recentCloneJobs_);
      } else {
        return recentCloneJobsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
     * performed on the migrating VM. This field holds the vm's last completed
     * clone job and the vm's running clone job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public int getRecentCloneJobsCount() {
      if (recentCloneJobsBuilder_ == null) {
        return recentCloneJobs_.size();
      } else {
        return recentCloneJobsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
     * performed on the migrating VM. This field holds the vm's last completed
     * clone job and the vm's running clone job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.vmmigration.v1.CloneJob getRecentCloneJobs(int index) {
      if (recentCloneJobsBuilder_ == null) {
        return recentCloneJobs_.get(index);
      } else {
        return recentCloneJobsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
     * performed on the migrating VM. This field holds the vm's last completed
     * clone job and the vm's running clone job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setRecentCloneJobs(int index, com.google.cloud.vmmigration.v1.CloneJob value) {
      if (recentCloneJobsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRecentCloneJobsIsMutable();
        recentCloneJobs_.set(index, value);
        onChanged();
      } else {
        recentCloneJobsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
     * performed on the migrating VM. This field holds the vm's last completed
     * clone job and the vm's running clone job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setRecentCloneJobs(
        int index, com.google.cloud.vmmigration.v1.CloneJob.Builder builderForValue) {
      if (recentCloneJobsBuilder_ == null) {
        ensureRecentCloneJobsIsMutable();
        recentCloneJobs_.set(index, builderForValue.build());
        onChanged();
      } else {
        recentCloneJobsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
     * performed on the migrating VM. This field holds the vm's last completed
     * clone job and the vm's running clone job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addRecentCloneJobs(com.google.cloud.vmmigration.v1.CloneJob value) {
      if (recentCloneJobsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRecentCloneJobsIsMutable();
        recentCloneJobs_.add(value);
        onChanged();
      } else {
        recentCloneJobsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
     * performed on the migrating VM. This field holds the vm's last completed
     * clone job and the vm's running clone job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addRecentCloneJobs(int index, com.google.cloud.vmmigration.v1.CloneJob value) {
      if (recentCloneJobsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRecentCloneJobsIsMutable();
        recentCloneJobs_.add(index, value);
        onChanged();
      } else {
        recentCloneJobsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
     * performed on the migrating VM. This field holds the vm's last completed
     * clone job and the vm's running clone job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addRecentCloneJobs(
        com.google.cloud.vmmigration.v1.CloneJob.Builder builderForValue) {
      if (recentCloneJobsBuilder_ == null) {
        ensureRecentCloneJobsIsMutable();
        recentCloneJobs_.add(builderForValue.build());
        onChanged();
      } else {
        recentCloneJobsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
     * performed on the migrating VM. This field holds the vm's last completed
     * clone job and the vm's running clone job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addRecentCloneJobs(
        int index, com.google.cloud.vmmigration.v1.CloneJob.Builder builderForValue) {
      if (recentCloneJobsBuilder_ == null) {
        ensureRecentCloneJobsIsMutable();
        recentCloneJobs_.add(index, builderForValue.build());
        onChanged();
      } else {
        recentCloneJobsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
     * performed on the migrating VM. This field holds the vm's last completed
     * clone job and the vm's running clone job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addAllRecentCloneJobs(
        java.lang.Iterable<? extends com.google.cloud.vmmigration.v1.CloneJob> values) {
      if (recentCloneJobsBuilder_ == null) {
        ensureRecentCloneJobsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recentCloneJobs_);
        onChanged();
      } else {
        recentCloneJobsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
     * performed on the migrating VM. This field holds the vm's last completed
     * clone job and the vm's running clone job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearRecentCloneJobs() {
      if (recentCloneJobsBuilder_ == null) {
        recentCloneJobs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00008000);
        onChanged();
      } else {
        recentCloneJobsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
     * performed on the migrating VM. This field holds the vm's last completed
     * clone job and the vm's running clone job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder removeRecentCloneJobs(int index) {
      if (recentCloneJobsBuilder_ == null) {
        ensureRecentCloneJobsIsMutable();
        recentCloneJobs_.remove(index);
        onChanged();
      } else {
        recentCloneJobsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
     * performed on the migrating VM. This field holds the vm's last completed
     * clone job and the vm's running clone job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.vmmigration.v1.CloneJob.Builder getRecentCloneJobsBuilder(int index) {
      return getRecentCloneJobsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
     * performed on the migrating VM. This field holds the vm's last completed
     * clone job and the vm's running clone job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.vmmigration.v1.CloneJobOrBuilder getRecentCloneJobsOrBuilder(
        int index) {
      if (recentCloneJobsBuilder_ == null) {
        return recentCloneJobs_.get(index);
      } else {
        return recentCloneJobsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
     * performed on the migrating VM. This field holds the vm's last completed
     * clone job and the vm's running clone job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<? extends com.google.cloud.vmmigration.v1.CloneJobOrBuilder>
        getRecentCloneJobsOrBuilderList() {
      if (recentCloneJobsBuilder_ != null) {
        return recentCloneJobsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(recentCloneJobs_);
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
     * performed on the migrating VM. This field holds the vm's last completed
     * clone job and the vm's running clone job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.vmmigration.v1.CloneJob.Builder addRecentCloneJobsBuilder() {
      return getRecentCloneJobsFieldBuilder()
          .addBuilder(com.google.cloud.vmmigration.v1.CloneJob.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
     * performed on the migrating VM. This field holds the vm's last completed
     * clone job and the vm's running clone job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.vmmigration.v1.CloneJob.Builder addRecentCloneJobsBuilder(int index) {
      return getRecentCloneJobsFieldBuilder()
          .addBuilder(index, com.google.cloud.vmmigration.v1.CloneJob.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
     * performed on the migrating VM. This field holds the vm's last completed
     * clone job and the vm's running clone job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<com.google.cloud.vmmigration.v1.CloneJob.Builder>
        getRecentCloneJobsBuilderList() {
      return getRecentCloneJobsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.vmmigration.v1.CloneJob,
            com.google.cloud.vmmigration.v1.CloneJob.Builder,
            com.google.cloud.vmmigration.v1.CloneJobOrBuilder>
        getRecentCloneJobsFieldBuilder() {
      if (recentCloneJobsBuilder_ == null) {
        recentCloneJobsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.vmmigration.v1.CloneJob,
                com.google.cloud.vmmigration.v1.CloneJob.Builder,
                com.google.cloud.vmmigration.v1.CloneJobOrBuilder>(
                recentCloneJobs_,
                ((bitField0_ & 0x00008000) != 0),
                getParentForChildren(),
                isClean());
        recentCloneJobs_ = null;
      }
      return recentCloneJobsBuilder_;
    }

    private com.google.rpc.Status error_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
        errorBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Migrating VM in case of
     * an error in replication.
     * </pre>
     *
     * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return Whether the error field is set.
     */
    public boolean hasError() {
      return ((bitField0_ & 0x00010000) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Migrating VM in case of
     * an error in replication.
     * </pre>
     *
     * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The error.
     */
    public com.google.rpc.Status getError() {
      if (errorBuilder_ == null) {
        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
      } else {
        return errorBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Migrating VM in case of
     * an error in replication.
     * </pre>
     *
     * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    public Builder setError(com.google.rpc.Status value) {
      if (errorBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        error_ = value;
      } else {
        errorBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00010000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Migrating VM in case of
     * an error in replication.
     * </pre>
     *
     * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
      if (errorBuilder_ == null) {
        error_ = builderForValue.build();
      } else {
        errorBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00010000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Migrating VM in case of
     * an error in replication.
     * </pre>
     *
     * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    public Builder mergeError(com.google.rpc.Status value) {
      if (errorBuilder_ == null) {
        if (((bitField0_ & 0x00010000) != 0)
            && error_ != null
            && error_ != com.google.rpc.Status.getDefaultInstance()) {
          getErrorBuilder().mergeFrom(value);
        } else {
          error_ = value;
        }
      } else {
        errorBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00010000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Migrating VM in case of
     * an error in replication.
     * </pre>
     *
     * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    public Builder clearError() {
      bitField0_ = (bitField0_ & ~0x00010000);
      error_ = null;
      if (errorBuilder_ != null) {
        errorBuilder_.dispose();
        errorBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Migrating VM in case of
     * an error in replication.
     * </pre>
     *
     * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    public com.google.rpc.Status.Builder getErrorBuilder() {
      bitField0_ |= 0x00010000;
      onChanged();
      return getErrorFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Migrating VM in case of
     * an error in replication.
     * </pre>
     *
     * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      if (errorBuilder_ != null) {
        return errorBuilder_.getMessageOrBuilder();
      } else {
        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Migrating VM in case of
     * an error in replication.
     * </pre>
     *
     * <code>.google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
        getErrorFieldBuilder() {
      if (errorBuilder_ == null) {
        errorBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.rpc.Status,
                com.google.rpc.Status.Builder,
                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
        error_ = null;
      }
      return errorBuilder_;
    }

    private java.util.List<com.google.cloud.vmmigration.v1.CutoverJob> recentCutoverJobs_ =
        java.util.Collections.emptyList();

    private void ensureRecentCutoverJobsIsMutable() {
      if (!((bitField0_ & 0x00020000) != 0)) {
        recentCutoverJobs_ =
            new java.util.ArrayList<com.google.cloud.vmmigration.v1.CutoverJob>(recentCutoverJobs_);
        bitField0_ |= 0x00020000;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.vmmigration.v1.CutoverJob,
            com.google.cloud.vmmigration.v1.CutoverJob.Builder,
            com.google.cloud.vmmigration.v1.CutoverJobOrBuilder>
        recentCutoverJobsBuilder_;

    /**
     *
     *
     * <pre>
     * Output only. The recent cutover jobs performed on the migrating VM.
     * This field holds the vm's last completed cutover job and the vm's
     * running cutover job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<com.google.cloud.vmmigration.v1.CutoverJob> getRecentCutoverJobsList() {
      if (recentCutoverJobsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(recentCutoverJobs_);
      } else {
        return recentCutoverJobsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent cutover jobs performed on the migrating VM.
     * This field holds the vm's last completed cutover job and the vm's
     * running cutover job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public int getRecentCutoverJobsCount() {
      if (recentCutoverJobsBuilder_ == null) {
        return recentCutoverJobs_.size();
      } else {
        return recentCutoverJobsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent cutover jobs performed on the migrating VM.
     * This field holds the vm's last completed cutover job and the vm's
     * running cutover job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.vmmigration.v1.CutoverJob getRecentCutoverJobs(int index) {
      if (recentCutoverJobsBuilder_ == null) {
        return recentCutoverJobs_.get(index);
      } else {
        return recentCutoverJobsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent cutover jobs performed on the migrating VM.
     * This field holds the vm's last completed cutover job and the vm's
     * running cutover job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setRecentCutoverJobs(
        int index, com.google.cloud.vmmigration.v1.CutoverJob value) {
      if (recentCutoverJobsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRecentCutoverJobsIsMutable();
        recentCutoverJobs_.set(index, value);
        onChanged();
      } else {
        recentCutoverJobsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent cutover jobs performed on the migrating VM.
     * This field holds the vm's last completed cutover job and the vm's
     * running cutover job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setRecentCutoverJobs(
        int index, com.google.cloud.vmmigration.v1.CutoverJob.Builder builderForValue) {
      if (recentCutoverJobsBuilder_ == null) {
        ensureRecentCutoverJobsIsMutable();
        recentCutoverJobs_.set(index, builderForValue.build());
        onChanged();
      } else {
        recentCutoverJobsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent cutover jobs performed on the migrating VM.
     * This field holds the vm's last completed cutover job and the vm's
     * running cutover job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addRecentCutoverJobs(com.google.cloud.vmmigration.v1.CutoverJob value) {
      if (recentCutoverJobsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRecentCutoverJobsIsMutable();
        recentCutoverJobs_.add(value);
        onChanged();
      } else {
        recentCutoverJobsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent cutover jobs performed on the migrating VM.
     * This field holds the vm's last completed cutover job and the vm's
     * running cutover job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addRecentCutoverJobs(
        int index, com.google.cloud.vmmigration.v1.CutoverJob value) {
      if (recentCutoverJobsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRecentCutoverJobsIsMutable();
        recentCutoverJobs_.add(index, value);
        onChanged();
      } else {
        recentCutoverJobsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent cutover jobs performed on the migrating VM.
     * This field holds the vm's last completed cutover job and the vm's
     * running cutover job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addRecentCutoverJobs(
        com.google.cloud.vmmigration.v1.CutoverJob.Builder builderForValue) {
      if (recentCutoverJobsBuilder_ == null) {
        ensureRecentCutoverJobsIsMutable();
        recentCutoverJobs_.add(builderForValue.build());
        onChanged();
      } else {
        recentCutoverJobsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent cutover jobs performed on the migrating VM.
     * This field holds the vm's last completed cutover job and the vm's
     * running cutover job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addRecentCutoverJobs(
        int index, com.google.cloud.vmmigration.v1.CutoverJob.Builder builderForValue) {
      if (recentCutoverJobsBuilder_ == null) {
        ensureRecentCutoverJobsIsMutable();
        recentCutoverJobs_.add(index, builderForValue.build());
        onChanged();
      } else {
        recentCutoverJobsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent cutover jobs performed on the migrating VM.
     * This field holds the vm's last completed cutover job and the vm's
     * running cutover job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addAllRecentCutoverJobs(
        java.lang.Iterable<? extends com.google.cloud.vmmigration.v1.CutoverJob> values) {
      if (recentCutoverJobsBuilder_ == null) {
        ensureRecentCutoverJobsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recentCutoverJobs_);
        onChanged();
      } else {
        recentCutoverJobsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent cutover jobs performed on the migrating VM.
     * This field holds the vm's last completed cutover job and the vm's
     * running cutover job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearRecentCutoverJobs() {
      if (recentCutoverJobsBuilder_ == null) {
        recentCutoverJobs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00020000);
        onChanged();
      } else {
        recentCutoverJobsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent cutover jobs performed on the migrating VM.
     * This field holds the vm's last completed cutover job and the vm's
     * running cutover job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder removeRecentCutoverJobs(int index) {
      if (recentCutoverJobsBuilder_ == null) {
        ensureRecentCutoverJobsIsMutable();
        recentCutoverJobs_.remove(index);
        onChanged();
      } else {
        recentCutoverJobsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent cutover jobs performed on the migrating VM.
     * This field holds the vm's last completed cutover job and the vm's
     * running cutover job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.vmmigration.v1.CutoverJob.Builder getRecentCutoverJobsBuilder(
        int index) {
      return getRecentCutoverJobsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent cutover jobs performed on the migrating VM.
     * This field holds the vm's last completed cutover job and the vm's
     * running cutover job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.vmmigration.v1.CutoverJobOrBuilder getRecentCutoverJobsOrBuilder(
        int index) {
      if (recentCutoverJobsBuilder_ == null) {
        return recentCutoverJobs_.get(index);
      } else {
        return recentCutoverJobsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent cutover jobs performed on the migrating VM.
     * This field holds the vm's last completed cutover job and the vm's
     * running cutover job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<? extends com.google.cloud.vmmigration.v1.CutoverJobOrBuilder>
        getRecentCutoverJobsOrBuilderList() {
      if (recentCutoverJobsBuilder_ != null) {
        return recentCutoverJobsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(recentCutoverJobs_);
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent cutover jobs performed on the migrating VM.
     * This field holds the vm's last completed cutover job and the vm's
     * running cutover job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.vmmigration.v1.CutoverJob.Builder addRecentCutoverJobsBuilder() {
      return getRecentCutoverJobsFieldBuilder()
          .addBuilder(com.google.cloud.vmmigration.v1.CutoverJob.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent cutover jobs performed on the migrating VM.
     * This field holds the vm's last completed cutover job and the vm's
     * running cutover job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.vmmigration.v1.CutoverJob.Builder addRecentCutoverJobsBuilder(
        int index) {
      return getRecentCutoverJobsFieldBuilder()
          .addBuilder(index, com.google.cloud.vmmigration.v1.CutoverJob.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Output only. The recent cutover jobs performed on the migrating VM.
     * This field holds the vm's last completed cutover job and the vm's
     * running cutover job, if one exists.
     * Note: To have this field populated you need to explicitly request it via
     * the "view" parameter of the Get/List request.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<com.google.cloud.vmmigration.v1.CutoverJob.Builder>
        getRecentCutoverJobsBuilderList() {
      return getRecentCutoverJobsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.vmmigration.v1.CutoverJob,
            com.google.cloud.vmmigration.v1.CutoverJob.Builder,
            com.google.cloud.vmmigration.v1.CutoverJobOrBuilder>
        getRecentCutoverJobsFieldBuilder() {
      if (recentCutoverJobsBuilder_ == null) {
        recentCutoverJobsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.vmmigration.v1.CutoverJob,
                com.google.cloud.vmmigration.v1.CutoverJob.Builder,
                com.google.cloud.vmmigration.v1.CutoverJobOrBuilder>(
                recentCutoverJobs_,
                ((bitField0_ & 0x00020000) != 0),
                getParentForChildren(),
                isClean());
        recentCutoverJobs_ = null;
      }
      return recentCutoverJobsBuilder_;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:google.cloud.vmmigration.v1.MigratingVm)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.vmmigration.v1.MigratingVm)
  private static final com.google.cloud.vmmigration.v1.MigratingVm DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.vmmigration.v1.MigratingVm();
  }

  public static com.google.cloud.vmmigration.v1.MigratingVm getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<MigratingVm> PARSER =
      new com.google.protobuf.AbstractParser<MigratingVm>() {
        @java.lang.Override
        public MigratingVm parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

  public static com.google.protobuf.Parser<MigratingVm> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<MigratingVm> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.cloud.vmmigration.v1.MigratingVm getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
