/*
 * 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>
 * DatacenterConnector message describes a connector between the Source and
 * Google Cloud, which is installed on a vmware datacenter (an OVA vm installed
 * by the user) to connect the Datacenter to Google Cloud and support vm
 * migration data transfer.
 * </pre>
 *
 * Protobuf type {@code google.cloud.vmmigration.v1.DatacenterConnector}
 */
public final class DatacenterConnector extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.DatacenterConnector)
    DatacenterConnectorOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use DatacenterConnector.newBuilder() to construct.
  private DatacenterConnector(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private DatacenterConnector() {
    name_ = "";
    registrationId_ = "";
    serviceAccount_ = "";
    version_ = "";
    bucket_ = "";
    state_ = 0;
    applianceInfrastructureVersion_ = "";
    applianceSoftwareVersion_ = "";
  }

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

  @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_DatacenterConnector_descriptor;
  }

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

  /**
   *
   *
   * <pre>
   * The possible values of the state.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.vmmigration.v1.DatacenterConnector.State}
   */
  public enum State implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * The state is unknown. This is used for API compatibility only and is not
     * used by the system.
     * </pre>
     *
     * <code>STATE_UNSPECIFIED = 0;</code>
     */
    STATE_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * The state was not sampled by the health checks yet.
     * </pre>
     *
     * <code>PENDING = 1;</code>
     */
    PENDING(1),
    /**
     *
     *
     * <pre>
     * The source was sampled by health checks and is not available.
     * </pre>
     *
     * <code>OFFLINE = 2;</code>
     */
    OFFLINE(2),
    /**
     *
     *
     * <pre>
     * The source is available but might not be usable yet due to unvalidated
     * credentials or another reason. The credentials referred to are the ones
     * to the Source. The error message will contain further details.
     * </pre>
     *
     * <code>FAILED = 3;</code>
     */
    FAILED(3),
    /**
     *
     *
     * <pre>
     * The source exists and its credentials were verified.
     * </pre>
     *
     * <code>ACTIVE = 4;</code>
     */
    ACTIVE(4),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * The state is unknown. This is used for API compatibility only and is not
     * used by the system.
     * </pre>
     *
     * <code>STATE_UNSPECIFIED = 0;</code>
     */
    public static final int STATE_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * The state was not sampled by the health checks yet.
     * </pre>
     *
     * <code>PENDING = 1;</code>
     */
    public static final int PENDING_VALUE = 1;
    /**
     *
     *
     * <pre>
     * The source was sampled by health checks and is not available.
     * </pre>
     *
     * <code>OFFLINE = 2;</code>
     */
    public static final int OFFLINE_VALUE = 2;
    /**
     *
     *
     * <pre>
     * The source is available but might not be usable yet due to unvalidated
     * credentials or another reason. The credentials referred to are the ones
     * to the Source. The error message will contain further details.
     * </pre>
     *
     * <code>FAILED = 3;</code>
     */
    public static final int FAILED_VALUE = 3;
    /**
     *
     *
     * <pre>
     * The source exists and its credentials were verified.
     * </pre>
     *
     * <code>ACTIVE = 4;</code>
     */
    public static final int ACTIVE_VALUE = 4;

    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 OFFLINE;
        case 3:
          return FAILED;
        case 4:
          return ACTIVE;
        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.DatacenterConnector.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.DatacenterConnector.State)
  }

  public static final int CREATE_TIME_FIELD_NUMBER = 1;
  private com.google.protobuf.Timestamp createTime_;
  /**
   *
   *
   * <pre>
   * Output only. The time the connector was created (as an API call, not when
   * it was actually installed).
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 1 [(.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 connector was created (as an API call, not when
   * it was actually installed).
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 1 [(.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 connector was created (as an API call, not when
   * it was actually installed).
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 1 [(.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 = 2;
  private com.google.protobuf.Timestamp updateTime_;
  /**
   *
   *
   * <pre>
   * Output only. The last time the connector was updated with an API call.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 2 [(.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 connector was updated with an API call.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 2 [(.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 connector was updated with an API call.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 2 [(.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 NAME_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private volatile java.lang.Object name_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The connector's name.
   * </pre>
   *
   * <code>string name = 3 [(.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 connector's name.
   * </pre>
   *
   * <code>string name = 3 [(.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 REGISTRATION_ID_FIELD_NUMBER = 12;

  @SuppressWarnings("serial")
  private volatile java.lang.Object registrationId_ = "";
  /**
   *
   *
   * <pre>
   * Immutable. A unique key for this connector. This key is internal to the OVA
   * connector and is supplied with its creation during the registration process
   * and can not be modified.
   * </pre>
   *
   * <code>string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE];</code>
   *
   * @return The registrationId.
   */
  @java.lang.Override
  public java.lang.String getRegistrationId() {
    java.lang.Object ref = registrationId_;
    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();
      registrationId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Immutable. A unique key for this connector. This key is internal to the OVA
   * connector and is supplied with its creation during the registration process
   * and can not be modified.
   * </pre>
   *
   * <code>string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE];</code>
   *
   * @return The bytes for registrationId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getRegistrationIdBytes() {
    java.lang.Object ref = registrationId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      registrationId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 5;

  @SuppressWarnings("serial")
  private volatile java.lang.Object serviceAccount_ = "";
  /**
   *
   *
   * <pre>
   * The service account to use in the connector when communicating with the
   * cloud.
   * </pre>
   *
   * <code>string service_account = 5;</code>
   *
   * @return The serviceAccount.
   */
  @java.lang.Override
  public java.lang.String getServiceAccount() {
    java.lang.Object ref = serviceAccount_;
    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();
      serviceAccount_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The service account to use in the connector when communicating with the
   * cloud.
   * </pre>
   *
   * <code>string service_account = 5;</code>
   *
   * @return The bytes for serviceAccount.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getServiceAccountBytes() {
    java.lang.Object ref = serviceAccount_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      serviceAccount_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int VERSION_FIELD_NUMBER = 6;

  @SuppressWarnings("serial")
  private volatile java.lang.Object version_ = "";
  /**
   *
   *
   * <pre>
   * The version running in the DatacenterConnector. This is supplied by the OVA
   * connector during the registration process and can not be modified.
   * </pre>
   *
   * <code>string version = 6;</code>
   *
   * @return The version.
   */
  @java.lang.Override
  public java.lang.String getVersion() {
    java.lang.Object ref = version_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      version_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The version running in the DatacenterConnector. This is supplied by the OVA
   * connector during the registration process and can not be modified.
   * </pre>
   *
   * <code>string version = 6;</code>
   *
   * @return The bytes for version.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getVersionBytes() {
    java.lang.Object ref = version_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      version_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int BUCKET_FIELD_NUMBER = 10;

  @SuppressWarnings("serial")
  private volatile java.lang.Object bucket_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The communication channel between the datacenter connector and
   * Google Cloud.
   * </pre>
   *
   * <code>string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bucket.
   */
  @java.lang.Override
  public java.lang.String getBucket() {
    java.lang.Object ref = bucket_;
    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();
      bucket_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The communication channel between the datacenter connector and
   * Google Cloud.
   * </pre>
   *
   * <code>string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for bucket.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getBucketBytes() {
    java.lang.Object ref = bucket_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      bucket_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int STATE_FIELD_NUMBER = 7;
  private int state_ = 0;
  /**
   *
   *
   * <pre>
   * Output only. State of the DatacenterConnector, as determined by the health
   * checks.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.DatacenterConnector.State state = 7 [(.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 DatacenterConnector, as determined by the health
   * checks.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.DatacenterConnector.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The state.
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.DatacenterConnector.State getState() {
    com.google.cloud.vmmigration.v1.DatacenterConnector.State result =
        com.google.cloud.vmmigration.v1.DatacenterConnector.State.forNumber(state_);
    return result == null
        ? com.google.cloud.vmmigration.v1.DatacenterConnector.State.UNRECOGNIZED
        : result;
  }

  public static final int STATE_TIME_FIELD_NUMBER = 8;
  private com.google.protobuf.Timestamp stateTime_;
  /**
   *
   *
   * <pre>
   * Output only. The time the state was last set.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp state_time = 8 [(.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 time the state was last set.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp state_time = 8 [(.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 time the state was last set.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp state_time = 8 [(.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 ERROR_FIELD_NUMBER = 11;
  private com.google.rpc.Status error_;
  /**
   *
   *
   * <pre>
   * Output only. Provides details on the state of the Datacenter Connector in
   * case of an error.
   * </pre>
   *
   * <code>.google.rpc.Status error = 11 [(.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 Datacenter Connector in
   * case of an error.
   * </pre>
   *
   * <code>.google.rpc.Status error = 11 [(.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 Datacenter Connector in
   * case of an error.
   * </pre>
   *
   * <code>.google.rpc.Status error = 11 [(.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 APPLIANCE_INFRASTRUCTURE_VERSION_FIELD_NUMBER = 13;

  @SuppressWarnings("serial")
  private volatile java.lang.Object applianceInfrastructureVersion_ = "";
  /**
   *
   *
   * <pre>
   * Output only. Appliance OVA version.
   * This is the OVA which is manually installed by the user and contains the
   * infrastructure for the automatically updatable components on the appliance.
   * </pre>
   *
   * <code>
   * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The applianceInfrastructureVersion.
   */
  @java.lang.Override
  public java.lang.String getApplianceInfrastructureVersion() {
    java.lang.Object ref = applianceInfrastructureVersion_;
    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();
      applianceInfrastructureVersion_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. Appliance OVA version.
   * This is the OVA which is manually installed by the user and contains the
   * infrastructure for the automatically updatable components on the appliance.
   * </pre>
   *
   * <code>
   * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The bytes for applianceInfrastructureVersion.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getApplianceInfrastructureVersionBytes() {
    java.lang.Object ref = applianceInfrastructureVersion_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      applianceInfrastructureVersion_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int APPLIANCE_SOFTWARE_VERSION_FIELD_NUMBER = 14;

  @SuppressWarnings("serial")
  private volatile java.lang.Object applianceSoftwareVersion_ = "";
  /**
   *
   *
   * <pre>
   * Output only. Appliance last installed update bundle version.
   * This is the version of the automatically updatable components on the
   * appliance.
   * </pre>
   *
   * <code>string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The applianceSoftwareVersion.
   */
  @java.lang.Override
  public java.lang.String getApplianceSoftwareVersion() {
    java.lang.Object ref = applianceSoftwareVersion_;
    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();
      applianceSoftwareVersion_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. Appliance last installed update bundle version.
   * This is the version of the automatically updatable components on the
   * appliance.
   * </pre>
   *
   * <code>string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The bytes for applianceSoftwareVersion.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getApplianceSoftwareVersionBytes() {
    java.lang.Object ref = applianceSoftwareVersion_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      applianceSoftwareVersion_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int AVAILABLE_VERSIONS_FIELD_NUMBER = 15;
  private com.google.cloud.vmmigration.v1.AvailableUpdates availableVersions_;
  /**
   *
   *
   * <pre>
   * Output only. The available versions for updating this appliance.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the availableVersions field is set.
   */
  @java.lang.Override
  public boolean hasAvailableVersions() {
    return availableVersions_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. The available versions for updating this appliance.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The availableVersions.
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.AvailableUpdates getAvailableVersions() {
    return availableVersions_ == null
        ? com.google.cloud.vmmigration.v1.AvailableUpdates.getDefaultInstance()
        : availableVersions_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The available versions for updating this appliance.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.AvailableUpdatesOrBuilder getAvailableVersionsOrBuilder() {
    return availableVersions_ == null
        ? com.google.cloud.vmmigration.v1.AvailableUpdates.getDefaultInstance()
        : availableVersions_;
  }

  public static final int UPGRADE_STATUS_FIELD_NUMBER = 16;
  private com.google.cloud.vmmigration.v1.UpgradeStatus upgradeStatus_;
  /**
   *
   *
   * <pre>
   * Output only. The status of the current / last upgradeAppliance operation.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the upgradeStatus field is set.
   */
  @java.lang.Override
  public boolean hasUpgradeStatus() {
    return upgradeStatus_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. The status of the current / last upgradeAppliance operation.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The upgradeStatus.
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.UpgradeStatus getUpgradeStatus() {
    return upgradeStatus_ == null
        ? com.google.cloud.vmmigration.v1.UpgradeStatus.getDefaultInstance()
        : upgradeStatus_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The status of the current / last upgradeAppliance operation.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.UpgradeStatusOrBuilder getUpgradeStatusOrBuilder() {
    return upgradeStatus_ == null
        ? com.google.cloud.vmmigration.v1.UpgradeStatus.getDefaultInstance()
        : upgradeStatus_;
  }

  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 (createTime_ != null) {
      output.writeMessage(1, getCreateTime());
    }
    if (updateTime_ != null) {
      output.writeMessage(2, getUpdateTime());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceAccount_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, version_);
    }
    if (state_
        != com.google.cloud.vmmigration.v1.DatacenterConnector.State.STATE_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(7, state_);
    }
    if (stateTime_ != null) {
      output.writeMessage(8, getStateTime());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, bucket_);
    }
    if (error_ != null) {
      output.writeMessage(11, getError());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registrationId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, registrationId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(applianceInfrastructureVersion_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(
          output, 13, applianceInfrastructureVersion_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(applianceSoftwareVersion_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 14, applianceSoftwareVersion_);
    }
    if (availableVersions_ != null) {
      output.writeMessage(15, getAvailableVersions());
    }
    if (upgradeStatus_ != null) {
      output.writeMessage(16, getUpgradeStatus());
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (createTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime());
    }
    if (updateTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceAccount_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, version_);
    }
    if (state_
        != com.google.cloud.vmmigration.v1.DatacenterConnector.State.STATE_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_);
    }
    if (stateTime_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getStateTime());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, bucket_);
    }
    if (error_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getError());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registrationId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, registrationId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(applianceInfrastructureVersion_)) {
      size +=
          com.google.protobuf.GeneratedMessageV3.computeStringSize(
              13, applianceInfrastructureVersion_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(applianceSoftwareVersion_)) {
      size +=
          com.google.protobuf.GeneratedMessageV3.computeStringSize(14, applianceSoftwareVersion_);
    }
    if (availableVersions_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getAvailableVersions());
    }
    if (upgradeStatus_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getUpgradeStatus());
    }
    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.DatacenterConnector)) {
      return super.equals(obj);
    }
    com.google.cloud.vmmigration.v1.DatacenterConnector other =
        (com.google.cloud.vmmigration.v1.DatacenterConnector) obj;

    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 (!getName().equals(other.getName())) return false;
    if (!getRegistrationId().equals(other.getRegistrationId())) return false;
    if (!getServiceAccount().equals(other.getServiceAccount())) return false;
    if (!getVersion().equals(other.getVersion())) return false;
    if (!getBucket().equals(other.getBucket())) return false;
    if (state_ != other.state_) return false;
    if (hasStateTime() != other.hasStateTime()) return false;
    if (hasStateTime()) {
      if (!getStateTime().equals(other.getStateTime())) return false;
    }
    if (hasError() != other.hasError()) return false;
    if (hasError()) {
      if (!getError().equals(other.getError())) return false;
    }
    if (!getApplianceInfrastructureVersion().equals(other.getApplianceInfrastructureVersion()))
      return false;
    if (!getApplianceSoftwareVersion().equals(other.getApplianceSoftwareVersion())) return false;
    if (hasAvailableVersions() != other.hasAvailableVersions()) return false;
    if (hasAvailableVersions()) {
      if (!getAvailableVersions().equals(other.getAvailableVersions())) return false;
    }
    if (hasUpgradeStatus() != other.hasUpgradeStatus()) return false;
    if (hasUpgradeStatus()) {
      if (!getUpgradeStatus().equals(other.getUpgradeStatus())) return false;
    }
    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();
    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();
    }
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    hash = (37 * hash) + REGISTRATION_ID_FIELD_NUMBER;
    hash = (53 * hash) + getRegistrationId().hashCode();
    hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER;
    hash = (53 * hash) + getServiceAccount().hashCode();
    hash = (37 * hash) + VERSION_FIELD_NUMBER;
    hash = (53 * hash) + getVersion().hashCode();
    hash = (37 * hash) + BUCKET_FIELD_NUMBER;
    hash = (53 * hash) + getBucket().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 (hasError()) {
      hash = (37 * hash) + ERROR_FIELD_NUMBER;
      hash = (53 * hash) + getError().hashCode();
    }
    hash = (37 * hash) + APPLIANCE_INFRASTRUCTURE_VERSION_FIELD_NUMBER;
    hash = (53 * hash) + getApplianceInfrastructureVersion().hashCode();
    hash = (37 * hash) + APPLIANCE_SOFTWARE_VERSION_FIELD_NUMBER;
    hash = (53 * hash) + getApplianceSoftwareVersion().hashCode();
    if (hasAvailableVersions()) {
      hash = (37 * hash) + AVAILABLE_VERSIONS_FIELD_NUMBER;
      hash = (53 * hash) + getAvailableVersions().hashCode();
    }
    if (hasUpgradeStatus()) {
      hash = (37 * hash) + UPGRADE_STATUS_FIELD_NUMBER;
      hash = (53 * hash) + getUpgradeStatus().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public static com.google.cloud.vmmigration.v1.DatacenterConnector 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.DatacenterConnector parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.vmmigration.v1.DatacenterConnector 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.DatacenterConnector parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.vmmigration.v1.DatacenterConnector 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.DatacenterConnector parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.vmmigration.v1.DatacenterConnector 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.DatacenterConnector parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.vmmigration.v1.DatacenterConnector 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.DatacenterConnector 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.DatacenterConnector 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.DatacenterConnector 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>
   * DatacenterConnector message describes a connector between the Source and
   * Google Cloud, which is installed on a vmware datacenter (an OVA vm installed
   * by the user) to connect the Datacenter to Google Cloud and support vm
   * migration data transfer.
   * </pre>
   *
   * Protobuf type {@code google.cloud.vmmigration.v1.DatacenterConnector}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.DatacenterConnector)
      com.google.cloud.vmmigration.v1.DatacenterConnectorOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.vmmigration.v1.VmMigrationProto
          .internal_static_google_cloud_vmmigration_v1_DatacenterConnector_descriptor;
    }

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

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

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      createTime_ = null;
      if (createTimeBuilder_ != null) {
        createTimeBuilder_.dispose();
        createTimeBuilder_ = null;
      }
      updateTime_ = null;
      if (updateTimeBuilder_ != null) {
        updateTimeBuilder_.dispose();
        updateTimeBuilder_ = null;
      }
      name_ = "";
      registrationId_ = "";
      serviceAccount_ = "";
      version_ = "";
      bucket_ = "";
      state_ = 0;
      stateTime_ = null;
      if (stateTimeBuilder_ != null) {
        stateTimeBuilder_.dispose();
        stateTimeBuilder_ = null;
      }
      error_ = null;
      if (errorBuilder_ != null) {
        errorBuilder_.dispose();
        errorBuilder_ = null;
      }
      applianceInfrastructureVersion_ = "";
      applianceSoftwareVersion_ = "";
      availableVersions_ = null;
      if (availableVersionsBuilder_ != null) {
        availableVersionsBuilder_.dispose();
        availableVersionsBuilder_ = null;
      }
      upgradeStatus_ = null;
      if (upgradeStatusBuilder_ != null) {
        upgradeStatusBuilder_.dispose();
        upgradeStatusBuilder_ = 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_DatacenterConnector_descriptor;
    }

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

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

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

    private void buildPartial0(com.google.cloud.vmmigration.v1.DatacenterConnector result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.name_ = name_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.registrationId_ = registrationId_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.serviceAccount_ = serviceAccount_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.version_ = version_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.bucket_ = bucket_;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.state_ = state_;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.stateTime_ = stateTimeBuilder_ == null ? stateTime_ : stateTimeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000400) != 0)) {
        result.applianceInfrastructureVersion_ = applianceInfrastructureVersion_;
      }
      if (((from_bitField0_ & 0x00000800) != 0)) {
        result.applianceSoftwareVersion_ = applianceSoftwareVersion_;
      }
      if (((from_bitField0_ & 0x00001000) != 0)) {
        result.availableVersions_ =
            availableVersionsBuilder_ == null
                ? availableVersions_
                : availableVersionsBuilder_.build();
      }
      if (((from_bitField0_ & 0x00002000) != 0)) {
        result.upgradeStatus_ =
            upgradeStatusBuilder_ == null ? upgradeStatus_ : upgradeStatusBuilder_.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.DatacenterConnector) {
        return mergeFrom((com.google.cloud.vmmigration.v1.DatacenterConnector) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.vmmigration.v1.DatacenterConnector other) {
      if (other == com.google.cloud.vmmigration.v1.DatacenterConnector.getDefaultInstance())
        return this;
      if (other.hasCreateTime()) {
        mergeCreateTime(other.getCreateTime());
      }
      if (other.hasUpdateTime()) {
        mergeUpdateTime(other.getUpdateTime());
      }
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (!other.getRegistrationId().isEmpty()) {
        registrationId_ = other.registrationId_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (!other.getServiceAccount().isEmpty()) {
        serviceAccount_ = other.serviceAccount_;
        bitField0_ |= 0x00000010;
        onChanged();
      }
      if (!other.getVersion().isEmpty()) {
        version_ = other.version_;
        bitField0_ |= 0x00000020;
        onChanged();
      }
      if (!other.getBucket().isEmpty()) {
        bucket_ = other.bucket_;
        bitField0_ |= 0x00000040;
        onChanged();
      }
      if (other.state_ != 0) {
        setStateValue(other.getStateValue());
      }
      if (other.hasStateTime()) {
        mergeStateTime(other.getStateTime());
      }
      if (other.hasError()) {
        mergeError(other.getError());
      }
      if (!other.getApplianceInfrastructureVersion().isEmpty()) {
        applianceInfrastructureVersion_ = other.applianceInfrastructureVersion_;
        bitField0_ |= 0x00000400;
        onChanged();
      }
      if (!other.getApplianceSoftwareVersion().isEmpty()) {
        applianceSoftwareVersion_ = other.applianceSoftwareVersion_;
        bitField0_ |= 0x00000800;
        onChanged();
      }
      if (other.hasAvailableVersions()) {
        mergeAvailableVersions(other.getAvailableVersions());
      }
      if (other.hasUpgradeStatus()) {
        mergeUpgradeStatus(other.getUpgradeStatus());
      }
      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:
              {
                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                name_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000004;
                break;
              } // case 26
            case 42:
              {
                serviceAccount_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000010;
                break;
              } // case 42
            case 50:
              {
                version_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000020;
                break;
              } // case 50
            case 56:
              {
                state_ = input.readEnum();
                bitField0_ |= 0x00000080;
                break;
              } // case 56
            case 66:
              {
                input.readMessage(getStateTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000100;
                break;
              } // case 66
            case 82:
              {
                bucket_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000040;
                break;
              } // case 82
            case 90:
              {
                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000200;
                break;
              } // case 90
            case 98:
              {
                registrationId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000008;
                break;
              } // case 98
            case 106:
              {
                applianceInfrastructureVersion_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000400;
                break;
              } // case 106
            case 114:
              {
                applianceSoftwareVersion_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000800;
                break;
              } // case 114
            case 122:
              {
                input.readMessage(
                    getAvailableVersionsFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00001000;
                break;
              } // case 122
            case 130:
              {
                input.readMessage(getUpgradeStatusFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00002000;
                break;
              } // case 130
            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 bitField0_;

    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 connector was created (as an API call, not when
     * it was actually installed).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the createTime field is set.
     */
    public boolean hasCreateTime() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. The time the connector was created (as an API call, not when
     * it was actually installed).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 1 [(.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 connector was created (as an API call, not when
     * it was actually installed).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The time the connector was created (as an API call, not when
     * it was actually installed).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The time the connector was created (as an API call, not when
     * it was actually installed).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
      if (createTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)
            && createTime_ != null
            && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getCreateTimeBuilder().mergeFrom(value);
        } else {
          createTime_ = value;
        }
      } else {
        createTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The time the connector was created (as an API call, not when
     * it was actually installed).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearCreateTime() {
      bitField0_ = (bitField0_ & ~0x00000001);
      createTime_ = null;
      if (createTimeBuilder_ != null) {
        createTimeBuilder_.dispose();
        createTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The time the connector was created (as an API call, not when
     * it was actually installed).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getCreateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. The time the connector was created (as an API call, not when
     * it was actually installed).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 1 [(.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 connector was created (as an API call, not when
     * it was actually installed).
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp create_time = 1 [(.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 connector was updated with an API call.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the updateTime field is set.
     */
    public boolean hasUpdateTime() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the connector was updated with an API call.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 2 [(.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 connector was updated with an API call.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 2 [(.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_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the connector was updated with an API call.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 2 [(.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_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the connector was updated with an API call.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
      if (updateTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)
            && updateTime_ != null
            && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getUpdateTimeBuilder().mergeFrom(value);
        } else {
          updateTime_ = value;
        }
      } else {
        updateTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the connector was updated with an API call.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearUpdateTime() {
      bitField0_ = (bitField0_ & ~0x00000002);
      updateTime_ = null;
      if (updateTimeBuilder_ != null) {
        updateTimeBuilder_.dispose();
        updateTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the connector was updated with an API call.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getUpdateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. The last time the connector was updated with an API call.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 2 [(.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 connector was updated with an API call.
     * </pre>
     *
     * <code>
     * .google.protobuf.Timestamp update_time = 2 [(.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 java.lang.Object name_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The connector's name.
     * </pre>
     *
     * <code>string name = 3 [(.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 connector's name.
     * </pre>
     *
     * <code>string name = 3 [(.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 connector's name.
     * </pre>
     *
     * <code>string name = 3 [(.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 connector's name.
     * </pre>
     *
     * <code>string name = 3 [(.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 connector's name.
     * </pre>
     *
     * <code>string name = 3 [(.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 registrationId_ = "";
    /**
     *
     *
     * <pre>
     * Immutable. A unique key for this connector. This key is internal to the OVA
     * connector and is supplied with its creation during the registration process
     * and can not be modified.
     * </pre>
     *
     * <code>string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE];</code>
     *
     * @return The registrationId.
     */
    public java.lang.String getRegistrationId() {
      java.lang.Object ref = registrationId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        registrationId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Immutable. A unique key for this connector. This key is internal to the OVA
     * connector and is supplied with its creation during the registration process
     * and can not be modified.
     * </pre>
     *
     * <code>string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE];</code>
     *
     * @return The bytes for registrationId.
     */
    public com.google.protobuf.ByteString getRegistrationIdBytes() {
      java.lang.Object ref = registrationId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        registrationId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Immutable. A unique key for this connector. This key is internal to the OVA
     * connector and is supplied with its creation during the registration process
     * and can not be modified.
     * </pre>
     *
     * <code>string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE];</code>
     *
     * @param value The registrationId to set.
     * @return This builder for chaining.
     */
    public Builder setRegistrationId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      registrationId_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Immutable. A unique key for this connector. This key is internal to the OVA
     * connector and is supplied with its creation during the registration process
     * and can not be modified.
     * </pre>
     *
     * <code>string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearRegistrationId() {
      registrationId_ = getDefaultInstance().getRegistrationId();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Immutable. A unique key for this connector. This key is internal to the OVA
     * connector and is supplied with its creation during the registration process
     * and can not be modified.
     * </pre>
     *
     * <code>string registration_id = 12 [(.google.api.field_behavior) = IMMUTABLE];</code>
     *
     * @param value The bytes for registrationId to set.
     * @return This builder for chaining.
     */
    public Builder setRegistrationIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      registrationId_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    private java.lang.Object serviceAccount_ = "";
    /**
     *
     *
     * <pre>
     * The service account to use in the connector when communicating with the
     * cloud.
     * </pre>
     *
     * <code>string service_account = 5;</code>
     *
     * @return The serviceAccount.
     */
    public java.lang.String getServiceAccount() {
      java.lang.Object ref = serviceAccount_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        serviceAccount_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The service account to use in the connector when communicating with the
     * cloud.
     * </pre>
     *
     * <code>string service_account = 5;</code>
     *
     * @return The bytes for serviceAccount.
     */
    public com.google.protobuf.ByteString getServiceAccountBytes() {
      java.lang.Object ref = serviceAccount_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        serviceAccount_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The service account to use in the connector when communicating with the
     * cloud.
     * </pre>
     *
     * <code>string service_account = 5;</code>
     *
     * @param value The serviceAccount to set.
     * @return This builder for chaining.
     */
    public Builder setServiceAccount(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      serviceAccount_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The service account to use in the connector when communicating with the
     * cloud.
     * </pre>
     *
     * <code>string service_account = 5;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearServiceAccount() {
      serviceAccount_ = getDefaultInstance().getServiceAccount();
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The service account to use in the connector when communicating with the
     * cloud.
     * </pre>
     *
     * <code>string service_account = 5;</code>
     *
     * @param value The bytes for serviceAccount to set.
     * @return This builder for chaining.
     */
    public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      serviceAccount_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }

    private java.lang.Object version_ = "";
    /**
     *
     *
     * <pre>
     * The version running in the DatacenterConnector. This is supplied by the OVA
     * connector during the registration process and can not be modified.
     * </pre>
     *
     * <code>string version = 6;</code>
     *
     * @return The version.
     */
    public java.lang.String getVersion() {
      java.lang.Object ref = version_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        version_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The version running in the DatacenterConnector. This is supplied by the OVA
     * connector during the registration process and can not be modified.
     * </pre>
     *
     * <code>string version = 6;</code>
     *
     * @return The bytes for version.
     */
    public com.google.protobuf.ByteString getVersionBytes() {
      java.lang.Object ref = version_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        version_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The version running in the DatacenterConnector. This is supplied by the OVA
     * connector during the registration process and can not be modified.
     * </pre>
     *
     * <code>string version = 6;</code>
     *
     * @param value The version to set.
     * @return This builder for chaining.
     */
    public Builder setVersion(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      version_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The version running in the DatacenterConnector. This is supplied by the OVA
     * connector during the registration process and can not be modified.
     * </pre>
     *
     * <code>string version = 6;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearVersion() {
      version_ = getDefaultInstance().getVersion();
      bitField0_ = (bitField0_ & ~0x00000020);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The version running in the DatacenterConnector. This is supplied by the OVA
     * connector during the registration process and can not be modified.
     * </pre>
     *
     * <code>string version = 6;</code>
     *
     * @param value The bytes for version to set.
     * @return This builder for chaining.
     */
    public Builder setVersionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      version_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }

    private java.lang.Object bucket_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The communication channel between the datacenter connector and
     * Google Cloud.
     * </pre>
     *
     * <code>string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bucket.
     */
    public java.lang.String getBucket() {
      java.lang.Object ref = bucket_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        bucket_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The communication channel between the datacenter connector and
     * Google Cloud.
     * </pre>
     *
     * <code>string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for bucket.
     */
    public com.google.protobuf.ByteString getBucketBytes() {
      java.lang.Object ref = bucket_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        bucket_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The communication channel between the datacenter connector and
     * Google Cloud.
     * </pre>
     *
     * <code>string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bucket to set.
     * @return This builder for chaining.
     */
    public Builder setBucket(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bucket_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The communication channel between the datacenter connector and
     * Google Cloud.
     * </pre>
     *
     * <code>string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearBucket() {
      bucket_ = getDefaultInstance().getBucket();
      bitField0_ = (bitField0_ & ~0x00000040);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The communication channel between the datacenter connector and
     * Google Cloud.
     * </pre>
     *
     * <code>string bucket = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for bucket to set.
     * @return This builder for chaining.
     */
    public Builder setBucketBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      bucket_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }

    private int state_ = 0;
    /**
     *
     *
     * <pre>
     * Output only. State of the DatacenterConnector, as determined by the health
     * checks.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.DatacenterConnector.State state = 7 [(.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 DatacenterConnector, as determined by the health
     * checks.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.DatacenterConnector.State state = 7 [(.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_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. State of the DatacenterConnector, as determined by the health
     * checks.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.DatacenterConnector.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The state.
     */
    @java.lang.Override
    public com.google.cloud.vmmigration.v1.DatacenterConnector.State getState() {
      com.google.cloud.vmmigration.v1.DatacenterConnector.State result =
          com.google.cloud.vmmigration.v1.DatacenterConnector.State.forNumber(state_);
      return result == null
          ? com.google.cloud.vmmigration.v1.DatacenterConnector.State.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * Output only. State of the DatacenterConnector, as determined by the health
     * checks.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.DatacenterConnector.State state = 7 [(.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.DatacenterConnector.State value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000080;
      state_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. State of the DatacenterConnector, as determined by the health
     * checks.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.DatacenterConnector.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearState() {
      bitField0_ = (bitField0_ & ~0x00000080);
      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 time the state was last set.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the stateTime field is set.
     */
    public boolean hasStateTime() {
      return ((bitField0_ & 0x00000100) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. The time the state was last set.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp state_time = 8 [(.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 time the state was last set.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp state_time = 8 [(.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_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The time the state was last set.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp state_time = 8 [(.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_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The time the state was last set.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeStateTime(com.google.protobuf.Timestamp value) {
      if (stateTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000100) != 0)
            && stateTime_ != null
            && stateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getStateTimeBuilder().mergeFrom(value);
        } else {
          stateTime_ = value;
        }
      } else {
        stateTimeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The time the state was last set.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearStateTime() {
      bitField0_ = (bitField0_ & ~0x00000100);
      stateTime_ = null;
      if (stateTimeBuilder_ != null) {
        stateTimeBuilder_.dispose();
        stateTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The time the state was last set.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp state_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.protobuf.Timestamp.Builder getStateTimeBuilder() {
      bitField0_ |= 0x00000100;
      onChanged();
      return getStateTimeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. The time the state was last set.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp state_time = 8 [(.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 time the state was last set.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp state_time = 8 [(.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.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 Datacenter Connector in
     * case of an error.
     * </pre>
     *
     * <code>.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return Whether the error field is set.
     */
    public boolean hasError() {
      return ((bitField0_ & 0x00000200) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Datacenter Connector in
     * case of an error.
     * </pre>
     *
     * <code>.google.rpc.Status error = 11 [(.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 Datacenter Connector in
     * case of an error.
     * </pre>
     *
     * <code>.google.rpc.Status error = 11 [(.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_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Datacenter Connector in
     * case of an error.
     * </pre>
     *
     * <code>.google.rpc.Status error = 11 [(.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_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Datacenter Connector in
     * case of an error.
     * </pre>
     *
     * <code>.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    public Builder mergeError(com.google.rpc.Status value) {
      if (errorBuilder_ == null) {
        if (((bitField0_ & 0x00000200) != 0)
            && error_ != null
            && error_ != com.google.rpc.Status.getDefaultInstance()) {
          getErrorBuilder().mergeFrom(value);
        } else {
          error_ = value;
        }
      } else {
        errorBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Datacenter Connector in
     * case of an error.
     * </pre>
     *
     * <code>.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    public Builder clearError() {
      bitField0_ = (bitField0_ & ~0x00000200);
      error_ = null;
      if (errorBuilder_ != null) {
        errorBuilder_.dispose();
        errorBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Datacenter Connector in
     * case of an error.
     * </pre>
     *
     * <code>.google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    public com.google.rpc.Status.Builder getErrorBuilder() {
      bitField0_ |= 0x00000200;
      onChanged();
      return getErrorFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Datacenter Connector in
     * case of an error.
     * </pre>
     *
     * <code>.google.rpc.Status error = 11 [(.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 Datacenter Connector in
     * case of an error.
     * </pre>
     *
     * <code>.google.rpc.Status error = 11 [(.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.lang.Object applianceInfrastructureVersion_ = "";
    /**
     *
     *
     * <pre>
     * Output only. Appliance OVA version.
     * This is the OVA which is manually installed by the user and contains the
     * infrastructure for the automatically updatable components on the appliance.
     * </pre>
     *
     * <code>
     * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The applianceInfrastructureVersion.
     */
    public java.lang.String getApplianceInfrastructureVersion() {
      java.lang.Object ref = applianceInfrastructureVersion_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        applianceInfrastructureVersion_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Appliance OVA version.
     * This is the OVA which is manually installed by the user and contains the
     * infrastructure for the automatically updatable components on the appliance.
     * </pre>
     *
     * <code>
     * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The bytes for applianceInfrastructureVersion.
     */
    public com.google.protobuf.ByteString getApplianceInfrastructureVersionBytes() {
      java.lang.Object ref = applianceInfrastructureVersion_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        applianceInfrastructureVersion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Appliance OVA version.
     * This is the OVA which is manually installed by the user and contains the
     * infrastructure for the automatically updatable components on the appliance.
     * </pre>
     *
     * <code>
     * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The applianceInfrastructureVersion to set.
     * @return This builder for chaining.
     */
    public Builder setApplianceInfrastructureVersion(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      applianceInfrastructureVersion_ = value;
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Appliance OVA version.
     * This is the OVA which is manually installed by the user and contains the
     * infrastructure for the automatically updatable components on the appliance.
     * </pre>
     *
     * <code>
     * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearApplianceInfrastructureVersion() {
      applianceInfrastructureVersion_ = getDefaultInstance().getApplianceInfrastructureVersion();
      bitField0_ = (bitField0_ & ~0x00000400);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Appliance OVA version.
     * This is the OVA which is manually installed by the user and contains the
     * infrastructure for the automatically updatable components on the appliance.
     * </pre>
     *
     * <code>
     * string appliance_infrastructure_version = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The bytes for applianceInfrastructureVersion to set.
     * @return This builder for chaining.
     */
    public Builder setApplianceInfrastructureVersionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      applianceInfrastructureVersion_ = value;
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }

    private java.lang.Object applianceSoftwareVersion_ = "";
    /**
     *
     *
     * <pre>
     * Output only. Appliance last installed update bundle version.
     * This is the version of the automatically updatable components on the
     * appliance.
     * </pre>
     *
     * <code>string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The applianceSoftwareVersion.
     */
    public java.lang.String getApplianceSoftwareVersion() {
      java.lang.Object ref = applianceSoftwareVersion_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        applianceSoftwareVersion_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Appliance last installed update bundle version.
     * This is the version of the automatically updatable components on the
     * appliance.
     * </pre>
     *
     * <code>string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The bytes for applianceSoftwareVersion.
     */
    public com.google.protobuf.ByteString getApplianceSoftwareVersionBytes() {
      java.lang.Object ref = applianceSoftwareVersion_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        applianceSoftwareVersion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Appliance last installed update bundle version.
     * This is the version of the automatically updatable components on the
     * appliance.
     * </pre>
     *
     * <code>string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The applianceSoftwareVersion to set.
     * @return This builder for chaining.
     */
    public Builder setApplianceSoftwareVersion(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      applianceSoftwareVersion_ = value;
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Appliance last installed update bundle version.
     * This is the version of the automatically updatable components on the
     * appliance.
     * </pre>
     *
     * <code>string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearApplianceSoftwareVersion() {
      applianceSoftwareVersion_ = getDefaultInstance().getApplianceSoftwareVersion();
      bitField0_ = (bitField0_ & ~0x00000800);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Appliance last installed update bundle version.
     * This is the version of the automatically updatable components on the
     * appliance.
     * </pre>
     *
     * <code>string appliance_software_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The bytes for applianceSoftwareVersion to set.
     * @return This builder for chaining.
     */
    public Builder setApplianceSoftwareVersionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      applianceSoftwareVersion_ = value;
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }

    private com.google.cloud.vmmigration.v1.AvailableUpdates availableVersions_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.vmmigration.v1.AvailableUpdates,
            com.google.cloud.vmmigration.v1.AvailableUpdates.Builder,
            com.google.cloud.vmmigration.v1.AvailableUpdatesOrBuilder>
        availableVersionsBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. The available versions for updating this appliance.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the availableVersions field is set.
     */
    public boolean hasAvailableVersions() {
      return ((bitField0_ & 0x00001000) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. The available versions for updating this appliance.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The availableVersions.
     */
    public com.google.cloud.vmmigration.v1.AvailableUpdates getAvailableVersions() {
      if (availableVersionsBuilder_ == null) {
        return availableVersions_ == null
            ? com.google.cloud.vmmigration.v1.AvailableUpdates.getDefaultInstance()
            : availableVersions_;
      } else {
        return availableVersionsBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The available versions for updating this appliance.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setAvailableVersions(com.google.cloud.vmmigration.v1.AvailableUpdates value) {
      if (availableVersionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        availableVersions_ = value;
      } else {
        availableVersionsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The available versions for updating this appliance.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setAvailableVersions(
        com.google.cloud.vmmigration.v1.AvailableUpdates.Builder builderForValue) {
      if (availableVersionsBuilder_ == null) {
        availableVersions_ = builderForValue.build();
      } else {
        availableVersionsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The available versions for updating this appliance.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeAvailableVersions(com.google.cloud.vmmigration.v1.AvailableUpdates value) {
      if (availableVersionsBuilder_ == null) {
        if (((bitField0_ & 0x00001000) != 0)
            && availableVersions_ != null
            && availableVersions_
                != com.google.cloud.vmmigration.v1.AvailableUpdates.getDefaultInstance()) {
          getAvailableVersionsBuilder().mergeFrom(value);
        } else {
          availableVersions_ = value;
        }
      } else {
        availableVersionsBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The available versions for updating this appliance.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearAvailableVersions() {
      bitField0_ = (bitField0_ & ~0x00001000);
      availableVersions_ = null;
      if (availableVersionsBuilder_ != null) {
        availableVersionsBuilder_.dispose();
        availableVersionsBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The available versions for updating this appliance.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.vmmigration.v1.AvailableUpdates.Builder getAvailableVersionsBuilder() {
      bitField0_ |= 0x00001000;
      onChanged();
      return getAvailableVersionsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. The available versions for updating this appliance.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.vmmigration.v1.AvailableUpdatesOrBuilder
        getAvailableVersionsOrBuilder() {
      if (availableVersionsBuilder_ != null) {
        return availableVersionsBuilder_.getMessageOrBuilder();
      } else {
        return availableVersions_ == null
            ? com.google.cloud.vmmigration.v1.AvailableUpdates.getDefaultInstance()
            : availableVersions_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The available versions for updating this appliance.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AvailableUpdates available_versions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.vmmigration.v1.AvailableUpdates,
            com.google.cloud.vmmigration.v1.AvailableUpdates.Builder,
            com.google.cloud.vmmigration.v1.AvailableUpdatesOrBuilder>
        getAvailableVersionsFieldBuilder() {
      if (availableVersionsBuilder_ == null) {
        availableVersionsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.vmmigration.v1.AvailableUpdates,
                com.google.cloud.vmmigration.v1.AvailableUpdates.Builder,
                com.google.cloud.vmmigration.v1.AvailableUpdatesOrBuilder>(
                getAvailableVersions(), getParentForChildren(), isClean());
        availableVersions_ = null;
      }
      return availableVersionsBuilder_;
    }

    private com.google.cloud.vmmigration.v1.UpgradeStatus upgradeStatus_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.vmmigration.v1.UpgradeStatus,
            com.google.cloud.vmmigration.v1.UpgradeStatus.Builder,
            com.google.cloud.vmmigration.v1.UpgradeStatusOrBuilder>
        upgradeStatusBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. The status of the current / last upgradeAppliance operation.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the upgradeStatus field is set.
     */
    public boolean hasUpgradeStatus() {
      return ((bitField0_ & 0x00002000) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. The status of the current / last upgradeAppliance operation.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The upgradeStatus.
     */
    public com.google.cloud.vmmigration.v1.UpgradeStatus getUpgradeStatus() {
      if (upgradeStatusBuilder_ == null) {
        return upgradeStatus_ == null
            ? com.google.cloud.vmmigration.v1.UpgradeStatus.getDefaultInstance()
            : upgradeStatus_;
      } else {
        return upgradeStatusBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The status of the current / last upgradeAppliance operation.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setUpgradeStatus(com.google.cloud.vmmigration.v1.UpgradeStatus value) {
      if (upgradeStatusBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        upgradeStatus_ = value;
      } else {
        upgradeStatusBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00002000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The status of the current / last upgradeAppliance operation.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setUpgradeStatus(
        com.google.cloud.vmmigration.v1.UpgradeStatus.Builder builderForValue) {
      if (upgradeStatusBuilder_ == null) {
        upgradeStatus_ = builderForValue.build();
      } else {
        upgradeStatusBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00002000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The status of the current / last upgradeAppliance operation.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeUpgradeStatus(com.google.cloud.vmmigration.v1.UpgradeStatus value) {
      if (upgradeStatusBuilder_ == null) {
        if (((bitField0_ & 0x00002000) != 0)
            && upgradeStatus_ != null
            && upgradeStatus_
                != com.google.cloud.vmmigration.v1.UpgradeStatus.getDefaultInstance()) {
          getUpgradeStatusBuilder().mergeFrom(value);
        } else {
          upgradeStatus_ = value;
        }
      } else {
        upgradeStatusBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00002000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The status of the current / last upgradeAppliance operation.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearUpgradeStatus() {
      bitField0_ = (bitField0_ & ~0x00002000);
      upgradeStatus_ = null;
      if (upgradeStatusBuilder_ != null) {
        upgradeStatusBuilder_.dispose();
        upgradeStatusBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The status of the current / last upgradeAppliance operation.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.vmmigration.v1.UpgradeStatus.Builder getUpgradeStatusBuilder() {
      bitField0_ |= 0x00002000;
      onChanged();
      return getUpgradeStatusFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. The status of the current / last upgradeAppliance operation.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.vmmigration.v1.UpgradeStatusOrBuilder getUpgradeStatusOrBuilder() {
      if (upgradeStatusBuilder_ != null) {
        return upgradeStatusBuilder_.getMessageOrBuilder();
      } else {
        return upgradeStatus_ == null
            ? com.google.cloud.vmmigration.v1.UpgradeStatus.getDefaultInstance()
            : upgradeStatus_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The status of the current / last upgradeAppliance operation.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.UpgradeStatus upgrade_status = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.vmmigration.v1.UpgradeStatus,
            com.google.cloud.vmmigration.v1.UpgradeStatus.Builder,
            com.google.cloud.vmmigration.v1.UpgradeStatusOrBuilder>
        getUpgradeStatusFieldBuilder() {
      if (upgradeStatusBuilder_ == null) {
        upgradeStatusBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.vmmigration.v1.UpgradeStatus,
                com.google.cloud.vmmigration.v1.UpgradeStatus.Builder,
                com.google.cloud.vmmigration.v1.UpgradeStatusOrBuilder>(
                getUpgradeStatus(), getParentForChildren(), isClean());
        upgradeStatus_ = null;
      }
      return upgradeStatusBuilder_;
    }

    @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.DatacenterConnector)
  }

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

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

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

  private static final com.google.protobuf.Parser<DatacenterConnector> PARSER =
      new com.google.protobuf.AbstractParser<DatacenterConnector>() {
        @java.lang.Override
        public DatacenterConnector 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<DatacenterConnector> parser() {
    return PARSER;
  }

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

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