/*
 * 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>
 * AwsSourceDetails message describes a specific source details for the
 * AWS source type.
 * </pre>
 *
 * Protobuf type {@code google.cloud.vmmigration.v1.AwsSourceDetails}
 */
public final class AwsSourceDetails extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.AwsSourceDetails)
    AwsSourceDetailsOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use AwsSourceDetails.newBuilder() to construct.
  private AwsSourceDetails(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private AwsSourceDetails() {
    awsRegion_ = "";
    state_ = 0;
    inventoryTagList_ = java.util.Collections.emptyList();
    inventorySecurityGroupNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    publicIp_ = "";
  }

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

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

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

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

  /**
   *
   *
   * <pre>
   * The possible values of the state.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.vmmigration.v1.AwsSourceDetails.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 is available but might not be usable yet due to invalid
     * credentials or another reason.
     * The error message will contain further details.
     * </pre>
     *
     * <code>FAILED = 2;</code>
     */
    FAILED(2),
    /**
     *
     *
     * <pre>
     * The source exists and its credentials were verified.
     * </pre>
     *
     * <code>ACTIVE = 3;</code>
     */
    ACTIVE(3),
    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 is available but might not be usable yet due to invalid
     * credentials or another reason.
     * The error message will contain further details.
     * </pre>
     *
     * <code>FAILED = 2;</code>
     */
    public static final int FAILED_VALUE = 2;
    /**
     *
     *
     * <pre>
     * The source exists and its credentials were verified.
     * </pre>
     *
     * <code>ACTIVE = 3;</code>
     */
    public static final int ACTIVE_VALUE = 3;

    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 FAILED;
        case 3:
          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.AwsSourceDetails.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.AwsSourceDetails.State)
  }

  public interface AccessKeyCredentialsOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * AWS access key ID.
     * </pre>
     *
     * <code>string access_key_id = 1;</code>
     *
     * @return The accessKeyId.
     */
    java.lang.String getAccessKeyId();
    /**
     *
     *
     * <pre>
     * AWS access key ID.
     * </pre>
     *
     * <code>string access_key_id = 1;</code>
     *
     * @return The bytes for accessKeyId.
     */
    com.google.protobuf.ByteString getAccessKeyIdBytes();

    /**
     *
     *
     * <pre>
     * Input only. AWS secret access key.
     * </pre>
     *
     * <code>string secret_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];</code>
     *
     * @return The secretAccessKey.
     */
    java.lang.String getSecretAccessKey();
    /**
     *
     *
     * <pre>
     * Input only. AWS secret access key.
     * </pre>
     *
     * <code>string secret_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];</code>
     *
     * @return The bytes for secretAccessKey.
     */
    com.google.protobuf.ByteString getSecretAccessKeyBytes();
  }
  /**
   *
   *
   * <pre>
   * Message describing AWS Credentials using access key id and secret.
   * </pre>
   *
   * Protobuf type {@code google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials}
   */
  public static final class AccessKeyCredentials extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials)
      AccessKeyCredentialsOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use AccessKeyCredentials.newBuilder() to construct.
    private AccessKeyCredentials(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private AccessKeyCredentials() {
      accessKeyId_ = "";
      secretAccessKey_ = "";
    }

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

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

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

    public static final int ACCESS_KEY_ID_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private volatile java.lang.Object accessKeyId_ = "";
    /**
     *
     *
     * <pre>
     * AWS access key ID.
     * </pre>
     *
     * <code>string access_key_id = 1;</code>
     *
     * @return The accessKeyId.
     */
    @java.lang.Override
    public java.lang.String getAccessKeyId() {
      java.lang.Object ref = accessKeyId_;
      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();
        accessKeyId_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * AWS access key ID.
     * </pre>
     *
     * <code>string access_key_id = 1;</code>
     *
     * @return The bytes for accessKeyId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getAccessKeyIdBytes() {
      java.lang.Object ref = accessKeyId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        accessKeyId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int SECRET_ACCESS_KEY_FIELD_NUMBER = 2;

    @SuppressWarnings("serial")
    private volatile java.lang.Object secretAccessKey_ = "";
    /**
     *
     *
     * <pre>
     * Input only. AWS secret access key.
     * </pre>
     *
     * <code>string secret_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];</code>
     *
     * @return The secretAccessKey.
     */
    @java.lang.Override
    public java.lang.String getSecretAccessKey() {
      java.lang.Object ref = secretAccessKey_;
      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();
        secretAccessKey_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Input only. AWS secret access key.
     * </pre>
     *
     * <code>string secret_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];</code>
     *
     * @return The bytes for secretAccessKey.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getSecretAccessKeyBytes() {
      java.lang.Object ref = secretAccessKey_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        secretAccessKey_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private byte memoizedIsInitialized = -1;

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessKeyId_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessKeyId_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretAccessKey_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, secretAccessKey_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessKeyId_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accessKeyId_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretAccessKey_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, secretAccessKey_);
      }
      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.AwsSourceDetails.AccessKeyCredentials)) {
        return super.equals(obj);
      }
      com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials other =
          (com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials) obj;

      if (!getAccessKeyId().equals(other.getAccessKeyId())) return false;
      if (!getSecretAccessKey().equals(other.getSecretAccessKey())) 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();
      hash = (37 * hash) + ACCESS_KEY_ID_FIELD_NUMBER;
      hash = (53 * hash) + getAccessKeyId().hashCode();
      hash = (37 * hash) + SECRET_ACCESS_KEY_FIELD_NUMBER;
      hash = (53 * hash) + getSecretAccessKey().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

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

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

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

    public static com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials
        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.AwsSourceDetails.AccessKeyCredentials 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.AwsSourceDetails.AccessKeyCredentials 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.AwsSourceDetails.AccessKeyCredentials 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>
     * Message describing AWS Credentials using access key id and secret.
     * </pre>
     *
     * Protobuf type {@code google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials)
        com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentialsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.vmmigration.v1.VmMigrationProto
            .internal_static_google_cloud_vmmigration_v1_AwsSourceDetails_AccessKeyCredentials_descriptor;
      }

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

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

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        accessKeyId_ = "";
        secretAccessKey_ = "";
        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_AwsSourceDetails_AccessKeyCredentials_descriptor;
      }

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

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

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

      private void buildPartial0(
          com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.accessKeyId_ = accessKeyId_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.secretAccessKey_ = secretAccessKey_;
        }
      }

      @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.AwsSourceDetails.AccessKeyCredentials) {
          return mergeFrom(
              (com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials other) {
        if (other
            == com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials
                .getDefaultInstance()) return this;
        if (!other.getAccessKeyId().isEmpty()) {
          accessKeyId_ = other.accessKeyId_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (!other.getSecretAccessKey().isEmpty()) {
          secretAccessKey_ = other.secretAccessKey_;
          bitField0_ |= 0x00000002;
          onChanged();
        }
        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:
                {
                  accessKeyId_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              case 18:
                {
                  secretAccessKey_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 18
              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 java.lang.Object accessKeyId_ = "";
      /**
       *
       *
       * <pre>
       * AWS access key ID.
       * </pre>
       *
       * <code>string access_key_id = 1;</code>
       *
       * @return The accessKeyId.
       */
      public java.lang.String getAccessKeyId() {
        java.lang.Object ref = accessKeyId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          accessKeyId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * AWS access key ID.
       * </pre>
       *
       * <code>string access_key_id = 1;</code>
       *
       * @return The bytes for accessKeyId.
       */
      public com.google.protobuf.ByteString getAccessKeyIdBytes() {
        java.lang.Object ref = accessKeyId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          accessKeyId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * AWS access key ID.
       * </pre>
       *
       * <code>string access_key_id = 1;</code>
       *
       * @param value The accessKeyId to set.
       * @return This builder for chaining.
       */
      public Builder setAccessKeyId(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        accessKeyId_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * AWS access key ID.
       * </pre>
       *
       * <code>string access_key_id = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearAccessKeyId() {
        accessKeyId_ = getDefaultInstance().getAccessKeyId();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * AWS access key ID.
       * </pre>
       *
       * <code>string access_key_id = 1;</code>
       *
       * @param value The bytes for accessKeyId to set.
       * @return This builder for chaining.
       */
      public Builder setAccessKeyIdBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        accessKeyId_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private java.lang.Object secretAccessKey_ = "";
      /**
       *
       *
       * <pre>
       * Input only. AWS secret access key.
       * </pre>
       *
       * <code>string secret_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];</code>
       *
       * @return The secretAccessKey.
       */
      public java.lang.String getSecretAccessKey() {
        java.lang.Object ref = secretAccessKey_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          secretAccessKey_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Input only. AWS secret access key.
       * </pre>
       *
       * <code>string secret_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];</code>
       *
       * @return The bytes for secretAccessKey.
       */
      public com.google.protobuf.ByteString getSecretAccessKeyBytes() {
        java.lang.Object ref = secretAccessKey_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          secretAccessKey_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Input only. AWS secret access key.
       * </pre>
       *
       * <code>string secret_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];</code>
       *
       * @param value The secretAccessKey to set.
       * @return This builder for chaining.
       */
      public Builder setSecretAccessKey(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        secretAccessKey_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Input only. AWS secret access key.
       * </pre>
       *
       * <code>string secret_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearSecretAccessKey() {
        secretAccessKey_ = getDefaultInstance().getSecretAccessKey();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Input only. AWS secret access key.
       * </pre>
       *
       * <code>string secret_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];</code>
       *
       * @param value The bytes for secretAccessKey to set.
       * @return This builder for chaining.
       */
      public Builder setSecretAccessKeyBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        secretAccessKey_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }

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

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

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

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

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

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

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

  public interface TagOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.vmmigration.v1.AwsSourceDetails.Tag)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Key of tag.
     * </pre>
     *
     * <code>string key = 1;</code>
     *
     * @return The key.
     */
    java.lang.String getKey();
    /**
     *
     *
     * <pre>
     * Key of tag.
     * </pre>
     *
     * <code>string key = 1;</code>
     *
     * @return The bytes for key.
     */
    com.google.protobuf.ByteString getKeyBytes();

    /**
     *
     *
     * <pre>
     * Value of tag.
     * </pre>
     *
     * <code>string value = 2;</code>
     *
     * @return The value.
     */
    java.lang.String getValue();
    /**
     *
     *
     * <pre>
     * Value of tag.
     * </pre>
     *
     * <code>string value = 2;</code>
     *
     * @return The bytes for value.
     */
    com.google.protobuf.ByteString getValueBytes();
  }
  /**
   *
   *
   * <pre>
   * Tag is an AWS tag representation.
   * </pre>
   *
   * Protobuf type {@code google.cloud.vmmigration.v1.AwsSourceDetails.Tag}
   */
  public static final class Tag extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.AwsSourceDetails.Tag)
      TagOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use Tag.newBuilder() to construct.
    private Tag(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private Tag() {
      key_ = "";
      value_ = "";
    }

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

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

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

    public static final int KEY_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private volatile java.lang.Object key_ = "";
    /**
     *
     *
     * <pre>
     * Key of tag.
     * </pre>
     *
     * <code>string key = 1;</code>
     *
     * @return The key.
     */
    @java.lang.Override
    public java.lang.String getKey() {
      java.lang.Object ref = key_;
      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();
        key_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Key of tag.
     * </pre>
     *
     * <code>string key = 1;</code>
     *
     * @return The bytes for key.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getKeyBytes() {
      java.lang.Object ref = key_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        key_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int VALUE_FIELD_NUMBER = 2;

    @SuppressWarnings("serial")
    private volatile java.lang.Object value_ = "";
    /**
     *
     *
     * <pre>
     * Value of tag.
     * </pre>
     *
     * <code>string value = 2;</code>
     *
     * @return The value.
     */
    @java.lang.Override
    public java.lang.String getValue() {
      java.lang.Object ref = value_;
      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();
        value_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Value of tag.
     * </pre>
     *
     * <code>string value = 2;</code>
     *
     * @return The bytes for value.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getValueBytes() {
      java.lang.Object ref = value_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        value_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private byte memoizedIsInitialized = -1;

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
      }
      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.AwsSourceDetails.Tag)) {
        return super.equals(obj);
      }
      com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag other =
          (com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag) obj;

      if (!getKey().equals(other.getKey())) return false;
      if (!getValue().equals(other.getValue())) 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();
      hash = (37 * hash) + KEY_FIELD_NUMBER;
      hash = (53 * hash) + getKey().hashCode();
      hash = (37 * hash) + VALUE_FIELD_NUMBER;
      hash = (53 * hash) + getValue().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

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

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

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

    public static com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag 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.AwsSourceDetails.Tag 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.AwsSourceDetails.Tag 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.AwsSourceDetails.Tag 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>
     * Tag is an AWS tag representation.
     * </pre>
     *
     * Protobuf type {@code google.cloud.vmmigration.v1.AwsSourceDetails.Tag}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.AwsSourceDetails.Tag)
        com.google.cloud.vmmigration.v1.AwsSourceDetails.TagOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.vmmigration.v1.VmMigrationProto
            .internal_static_google_cloud_vmmigration_v1_AwsSourceDetails_Tag_descriptor;
      }

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

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

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        key_ = "";
        value_ = "";
        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_AwsSourceDetails_Tag_descriptor;
      }

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

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

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

      private void buildPartial0(com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.key_ = key_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.value_ = value_;
        }
      }

      @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.AwsSourceDetails.Tag) {
          return mergeFrom((com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag other) {
        if (other == com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag.getDefaultInstance())
          return this;
        if (!other.getKey().isEmpty()) {
          key_ = other.key_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (!other.getValue().isEmpty()) {
          value_ = other.value_;
          bitField0_ |= 0x00000002;
          onChanged();
        }
        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:
                {
                  key_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              case 18:
                {
                  value_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 18
              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 java.lang.Object key_ = "";
      /**
       *
       *
       * <pre>
       * Key of tag.
       * </pre>
       *
       * <code>string key = 1;</code>
       *
       * @return The key.
       */
      public java.lang.String getKey() {
        java.lang.Object ref = key_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          key_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Key of tag.
       * </pre>
       *
       * <code>string key = 1;</code>
       *
       * @return The bytes for key.
       */
      public com.google.protobuf.ByteString getKeyBytes() {
        java.lang.Object ref = key_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          key_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Key of tag.
       * </pre>
       *
       * <code>string key = 1;</code>
       *
       * @param value The key to set.
       * @return This builder for chaining.
       */
      public Builder setKey(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        key_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Key of tag.
       * </pre>
       *
       * <code>string key = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearKey() {
        key_ = getDefaultInstance().getKey();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Key of tag.
       * </pre>
       *
       * <code>string key = 1;</code>
       *
       * @param value The bytes for key to set.
       * @return This builder for chaining.
       */
      public Builder setKeyBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        key_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private java.lang.Object value_ = "";
      /**
       *
       *
       * <pre>
       * Value of tag.
       * </pre>
       *
       * <code>string value = 2;</code>
       *
       * @return The value.
       */
      public java.lang.String getValue() {
        java.lang.Object ref = value_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          value_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Value of tag.
       * </pre>
       *
       * <code>string value = 2;</code>
       *
       * @return The bytes for value.
       */
      public com.google.protobuf.ByteString getValueBytes() {
        java.lang.Object ref = value_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          value_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Value of tag.
       * </pre>
       *
       * <code>string value = 2;</code>
       *
       * @param value The value to set.
       * @return This builder for chaining.
       */
      public Builder setValue(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        value_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Value of tag.
       * </pre>
       *
       * <code>string value = 2;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearValue() {
        value_ = getDefaultInstance().getValue();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Value of tag.
       * </pre>
       *
       * <code>string value = 2;</code>
       *
       * @param value The bytes for value to set.
       * @return This builder for chaining.
       */
      public Builder setValueBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        value_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }

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

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

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

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

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

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

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

  private int credentialsTypeCase_ = 0;
  private java.lang.Object credentialsType_;

  public enum CredentialsTypeCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    ACCESS_KEY_CREDS(11),
    CREDENTIALSTYPE_NOT_SET(0);
    private final int value;

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

    public static CredentialsTypeCase forNumber(int value) {
      switch (value) {
        case 11:
          return ACCESS_KEY_CREDS;
        case 0:
          return CREDENTIALSTYPE_NOT_SET;
        default:
          return null;
      }
    }

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

  public CredentialsTypeCase getCredentialsTypeCase() {
    return CredentialsTypeCase.forNumber(credentialsTypeCase_);
  }

  public static final int ACCESS_KEY_CREDS_FIELD_NUMBER = 11;
  /**
   *
   *
   * <pre>
   * AWS Credentials using access key id and secret.
   * </pre>
   *
   * <code>.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials access_key_creds = 11;
   * </code>
   *
   * @return Whether the accessKeyCreds field is set.
   */
  @java.lang.Override
  public boolean hasAccessKeyCreds() {
    return credentialsTypeCase_ == 11;
  }
  /**
   *
   *
   * <pre>
   * AWS Credentials using access key id and secret.
   * </pre>
   *
   * <code>.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials access_key_creds = 11;
   * </code>
   *
   * @return The accessKeyCreds.
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials getAccessKeyCreds() {
    if (credentialsTypeCase_ == 11) {
      return (com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials)
          credentialsType_;
    }
    return com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials
        .getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * AWS Credentials using access key id and secret.
   * </pre>
   *
   * <code>.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials access_key_creds = 11;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentialsOrBuilder
      getAccessKeyCredsOrBuilder() {
    if (credentialsTypeCase_ == 11) {
      return (com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials)
          credentialsType_;
    }
    return com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials
        .getDefaultInstance();
  }

  public static final int AWS_REGION_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private volatile java.lang.Object awsRegion_ = "";
  /**
   *
   *
   * <pre>
   * Immutable. The AWS region that the source VMs will be migrated from.
   * </pre>
   *
   * <code>string aws_region = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
   *
   * @return The awsRegion.
   */
  @java.lang.Override
  public java.lang.String getAwsRegion() {
    java.lang.Object ref = awsRegion_;
    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();
      awsRegion_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Immutable. The AWS region that the source VMs will be migrated from.
   * </pre>
   *
   * <code>string aws_region = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
   *
   * @return The bytes for awsRegion.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getAwsRegionBytes() {
    java.lang.Object ref = awsRegion_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      awsRegion_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

  public static final int ERROR_FIELD_NUMBER = 5;
  private com.google.rpc.Status error_;
  /**
   *
   *
   * <pre>
   * Output only. Provides details on the state of the Source in case of an
   * error.
   * </pre>
   *
   * <code>.google.rpc.Status error = 5 [(.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 Source in case of an
   * error.
   * </pre>
   *
   * <code>.google.rpc.Status error = 5 [(.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 Source in case of an
   * error.
   * </pre>
   *
   * <code>.google.rpc.Status error = 5 [(.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 INVENTORY_TAG_LIST_FIELD_NUMBER = 10;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag> inventoryTagList_;
  /**
   *
   *
   * <pre>
   * AWS resource tags to limit the scope of the source inventory.
   * </pre>
   *
   * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
   * </code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag>
      getInventoryTagListList() {
    return inventoryTagList_;
  }
  /**
   *
   *
   * <pre>
   * AWS resource tags to limit the scope of the source inventory.
   * </pre>
   *
   * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
   * </code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.vmmigration.v1.AwsSourceDetails.TagOrBuilder>
      getInventoryTagListOrBuilderList() {
    return inventoryTagList_;
  }
  /**
   *
   *
   * <pre>
   * AWS resource tags to limit the scope of the source inventory.
   * </pre>
   *
   * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
   * </code>
   */
  @java.lang.Override
  public int getInventoryTagListCount() {
    return inventoryTagList_.size();
  }
  /**
   *
   *
   * <pre>
   * AWS resource tags to limit the scope of the source inventory.
   * </pre>
   *
   * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag getInventoryTagList(int index) {
    return inventoryTagList_.get(index);
  }
  /**
   *
   *
   * <pre>
   * AWS resource tags to limit the scope of the source inventory.
   * </pre>
   *
   * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.AwsSourceDetails.TagOrBuilder getInventoryTagListOrBuilder(
      int index) {
    return inventoryTagList_.get(index);
  }

  public static final int INVENTORY_SECURITY_GROUP_NAMES_FIELD_NUMBER = 7;

  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringList inventorySecurityGroupNames_;
  /**
   *
   *
   * <pre>
   * AWS security group names to limit the scope of the source
   * inventory.
   * </pre>
   *
   * <code>repeated string inventory_security_group_names = 7;</code>
   *
   * @return A list containing the inventorySecurityGroupNames.
   */
  public com.google.protobuf.ProtocolStringList getInventorySecurityGroupNamesList() {
    return inventorySecurityGroupNames_;
  }
  /**
   *
   *
   * <pre>
   * AWS security group names to limit the scope of the source
   * inventory.
   * </pre>
   *
   * <code>repeated string inventory_security_group_names = 7;</code>
   *
   * @return The count of inventorySecurityGroupNames.
   */
  public int getInventorySecurityGroupNamesCount() {
    return inventorySecurityGroupNames_.size();
  }
  /**
   *
   *
   * <pre>
   * AWS security group names to limit the scope of the source
   * inventory.
   * </pre>
   *
   * <code>repeated string inventory_security_group_names = 7;</code>
   *
   * @param index The index of the element to return.
   * @return The inventorySecurityGroupNames at the given index.
   */
  public java.lang.String getInventorySecurityGroupNames(int index) {
    return inventorySecurityGroupNames_.get(index);
  }
  /**
   *
   *
   * <pre>
   * AWS security group names to limit the scope of the source
   * inventory.
   * </pre>
   *
   * <code>repeated string inventory_security_group_names = 7;</code>
   *
   * @param index The index of the value to return.
   * @return The bytes of the inventorySecurityGroupNames at the given index.
   */
  public com.google.protobuf.ByteString getInventorySecurityGroupNamesBytes(int index) {
    return inventorySecurityGroupNames_.getByteString(index);
  }

  public static final int MIGRATION_RESOURCES_USER_TAGS_FIELD_NUMBER = 8;

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

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

  private com.google.protobuf.MapField<java.lang.String, java.lang.String>
      internalGetMigrationResourcesUserTags() {
    if (migrationResourcesUserTags_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          MigrationResourcesUserTagsDefaultEntryHolder.defaultEntry);
    }
    return migrationResourcesUserTags_;
  }

  public int getMigrationResourcesUserTagsCount() {
    return internalGetMigrationResourcesUserTags().getMap().size();
  }
  /**
   *
   *
   * <pre>
   * User specified tags to add to every M2VM generated resource in AWS.
   * These tags will be set in addition to the default tags that are set as part
   * of the migration process. The tags must not begin with the reserved prefix
   * `m2vm`.
   * </pre>
   *
   * <code>map&lt;string, string&gt; migration_resources_user_tags = 8;</code>
   */
  @java.lang.Override
  public boolean containsMigrationResourcesUserTags(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    return internalGetMigrationResourcesUserTags().getMap().containsKey(key);
  }
  /** Use {@link #getMigrationResourcesUserTagsMap()} instead. */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getMigrationResourcesUserTags() {
    return getMigrationResourcesUserTagsMap();
  }
  /**
   *
   *
   * <pre>
   * User specified tags to add to every M2VM generated resource in AWS.
   * These tags will be set in addition to the default tags that are set as part
   * of the migration process. The tags must not begin with the reserved prefix
   * `m2vm`.
   * </pre>
   *
   * <code>map&lt;string, string&gt; migration_resources_user_tags = 8;</code>
   */
  @java.lang.Override
  public java.util.Map<java.lang.String, java.lang.String> getMigrationResourcesUserTagsMap() {
    return internalGetMigrationResourcesUserTags().getMap();
  }
  /**
   *
   *
   * <pre>
   * User specified tags to add to every M2VM generated resource in AWS.
   * These tags will be set in addition to the default tags that are set as part
   * of the migration process. The tags must not begin with the reserved prefix
   * `m2vm`.
   * </pre>
   *
   * <code>map&lt;string, string&gt; migration_resources_user_tags = 8;</code>
   */
  @java.lang.Override
  public /* nullable */ java.lang.String getMigrationResourcesUserTagsOrDefault(
      java.lang.String key,
      /* nullable */
      java.lang.String defaultValue) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map =
        internalGetMigrationResourcesUserTags().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   *
   *
   * <pre>
   * User specified tags to add to every M2VM generated resource in AWS.
   * These tags will be set in addition to the default tags that are set as part
   * of the migration process. The tags must not begin with the reserved prefix
   * `m2vm`.
   * </pre>
   *
   * <code>map&lt;string, string&gt; migration_resources_user_tags = 8;</code>
   */
  @java.lang.Override
  public java.lang.String getMigrationResourcesUserTagsOrThrow(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map =
        internalGetMigrationResourcesUserTags().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int PUBLIC_IP_FIELD_NUMBER = 9;

  @SuppressWarnings("serial")
  private volatile java.lang.Object publicIp_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The source's public IP. All communication initiated by this
   * source will originate from this IP.
   * </pre>
   *
   * <code>string public_ip = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The publicIp.
   */
  @java.lang.Override
  public java.lang.String getPublicIp() {
    java.lang.Object ref = publicIp_;
    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();
      publicIp_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The source's public IP. All communication initiated by this
   * source will originate from this IP.
   * </pre>
   *
   * <code>string public_ip = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for publicIp.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getPublicIpBytes() {
    java.lang.Object ref = publicIp_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      publicIp_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(awsRegion_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, awsRegion_);
    }
    if (state_
        != com.google.cloud.vmmigration.v1.AwsSourceDetails.State.STATE_UNSPECIFIED.getNumber()) {
      output.writeEnum(4, state_);
    }
    if (error_ != null) {
      output.writeMessage(5, getError());
    }
    for (int i = 0; i < inventorySecurityGroupNames_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(
          output, 7, inventorySecurityGroupNames_.getRaw(i));
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output,
        internalGetMigrationResourcesUserTags(),
        MigrationResourcesUserTagsDefaultEntryHolder.defaultEntry,
        8);
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicIp_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, publicIp_);
    }
    for (int i = 0; i < inventoryTagList_.size(); i++) {
      output.writeMessage(10, inventoryTagList_.get(i));
    }
    if (credentialsTypeCase_ == 11) {
      output.writeMessage(
          11,
          (com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials) credentialsType_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(awsRegion_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, awsRegion_);
    }
    if (state_
        != com.google.cloud.vmmigration.v1.AwsSourceDetails.State.STATE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_);
    }
    if (error_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getError());
    }
    {
      int dataSize = 0;
      for (int i = 0; i < inventorySecurityGroupNames_.size(); i++) {
        dataSize += computeStringSizeNoTag(inventorySecurityGroupNames_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getInventorySecurityGroupNamesList().size();
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
        internalGetMigrationResourcesUserTags().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
          migrationResourcesUserTags__ =
              MigrationResourcesUserTagsDefaultEntryHolder.defaultEntry
                  .newBuilderForType()
                  .setKey(entry.getKey())
                  .setValue(entry.getValue())
                  .build();
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(8, migrationResourcesUserTags__);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicIp_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, publicIp_);
    }
    for (int i = 0; i < inventoryTagList_.size(); i++) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(10, inventoryTagList_.get(i));
    }
    if (credentialsTypeCase_ == 11) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              11,
              (com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials)
                  credentialsType_);
    }
    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.AwsSourceDetails)) {
      return super.equals(obj);
    }
    com.google.cloud.vmmigration.v1.AwsSourceDetails other =
        (com.google.cloud.vmmigration.v1.AwsSourceDetails) obj;

    if (!getAwsRegion().equals(other.getAwsRegion())) return false;
    if (state_ != other.state_) return false;
    if (hasError() != other.hasError()) return false;
    if (hasError()) {
      if (!getError().equals(other.getError())) return false;
    }
    if (!getInventoryTagListList().equals(other.getInventoryTagListList())) return false;
    if (!getInventorySecurityGroupNamesList().equals(other.getInventorySecurityGroupNamesList()))
      return false;
    if (!internalGetMigrationResourcesUserTags()
        .equals(other.internalGetMigrationResourcesUserTags())) return false;
    if (!getPublicIp().equals(other.getPublicIp())) return false;
    if (!getCredentialsTypeCase().equals(other.getCredentialsTypeCase())) return false;
    switch (credentialsTypeCase_) {
      case 11:
        if (!getAccessKeyCreds().equals(other.getAccessKeyCreds())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + AWS_REGION_FIELD_NUMBER;
    hash = (53 * hash) + getAwsRegion().hashCode();
    hash = (37 * hash) + STATE_FIELD_NUMBER;
    hash = (53 * hash) + state_;
    if (hasError()) {
      hash = (37 * hash) + ERROR_FIELD_NUMBER;
      hash = (53 * hash) + getError().hashCode();
    }
    if (getInventoryTagListCount() > 0) {
      hash = (37 * hash) + INVENTORY_TAG_LIST_FIELD_NUMBER;
      hash = (53 * hash) + getInventoryTagListList().hashCode();
    }
    if (getInventorySecurityGroupNamesCount() > 0) {
      hash = (37 * hash) + INVENTORY_SECURITY_GROUP_NAMES_FIELD_NUMBER;
      hash = (53 * hash) + getInventorySecurityGroupNamesList().hashCode();
    }
    if (!internalGetMigrationResourcesUserTags().getMap().isEmpty()) {
      hash = (37 * hash) + MIGRATION_RESOURCES_USER_TAGS_FIELD_NUMBER;
      hash = (53 * hash) + internalGetMigrationResourcesUserTags().hashCode();
    }
    hash = (37 * hash) + PUBLIC_IP_FIELD_NUMBER;
    hash = (53 * hash) + getPublicIp().hashCode();
    switch (credentialsTypeCase_) {
      case 11:
        hash = (37 * hash) + ACCESS_KEY_CREDS_FIELD_NUMBER;
        hash = (53 * hash) + getAccessKeyCreds().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

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

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

  public static com.google.cloud.vmmigration.v1.AwsSourceDetails 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.AwsSourceDetails 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.AwsSourceDetails 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.AwsSourceDetails 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>
   * AwsSourceDetails message describes a specific source details for the
   * AWS source type.
   * </pre>
   *
   * Protobuf type {@code google.cloud.vmmigration.v1.AwsSourceDetails}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.AwsSourceDetails)
      com.google.cloud.vmmigration.v1.AwsSourceDetailsOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.vmmigration.v1.VmMigrationProto
          .internal_static_google_cloud_vmmigration_v1_AwsSourceDetails_descriptor;
    }

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

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

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

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

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (accessKeyCredsBuilder_ != null) {
        accessKeyCredsBuilder_.clear();
      }
      awsRegion_ = "";
      state_ = 0;
      error_ = null;
      if (errorBuilder_ != null) {
        errorBuilder_.dispose();
        errorBuilder_ = null;
      }
      if (inventoryTagListBuilder_ == null) {
        inventoryTagList_ = java.util.Collections.emptyList();
      } else {
        inventoryTagList_ = null;
        inventoryTagListBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000010);
      inventorySecurityGroupNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000020);
      internalGetMutableMigrationResourcesUserTags().clear();
      publicIp_ = "";
      credentialsTypeCase_ = 0;
      credentialsType_ = 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_AwsSourceDetails_descriptor;
    }

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

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

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

    private void buildPartialRepeatedFields(
        com.google.cloud.vmmigration.v1.AwsSourceDetails result) {
      if (inventoryTagListBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0)) {
          inventoryTagList_ = java.util.Collections.unmodifiableList(inventoryTagList_);
          bitField0_ = (bitField0_ & ~0x00000010);
        }
        result.inventoryTagList_ = inventoryTagList_;
      } else {
        result.inventoryTagList_ = inventoryTagListBuilder_.build();
      }
      if (((bitField0_ & 0x00000020) != 0)) {
        inventorySecurityGroupNames_ = inventorySecurityGroupNames_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000020);
      }
      result.inventorySecurityGroupNames_ = inventorySecurityGroupNames_;
    }

    private void buildPartial0(com.google.cloud.vmmigration.v1.AwsSourceDetails result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.awsRegion_ = awsRegion_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.state_ = state_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.migrationResourcesUserTags_ = internalGetMigrationResourcesUserTags();
        result.migrationResourcesUserTags_.makeImmutable();
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.publicIp_ = publicIp_;
      }
    }

    private void buildPartialOneofs(com.google.cloud.vmmigration.v1.AwsSourceDetails result) {
      result.credentialsTypeCase_ = credentialsTypeCase_;
      result.credentialsType_ = this.credentialsType_;
      if (credentialsTypeCase_ == 11 && accessKeyCredsBuilder_ != null) {
        result.credentialsType_ = accessKeyCredsBuilder_.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.AwsSourceDetails) {
        return mergeFrom((com.google.cloud.vmmigration.v1.AwsSourceDetails) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.vmmigration.v1.AwsSourceDetails other) {
      if (other == com.google.cloud.vmmigration.v1.AwsSourceDetails.getDefaultInstance())
        return this;
      if (!other.getAwsRegion().isEmpty()) {
        awsRegion_ = other.awsRegion_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (other.state_ != 0) {
        setStateValue(other.getStateValue());
      }
      if (other.hasError()) {
        mergeError(other.getError());
      }
      if (inventoryTagListBuilder_ == null) {
        if (!other.inventoryTagList_.isEmpty()) {
          if (inventoryTagList_.isEmpty()) {
            inventoryTagList_ = other.inventoryTagList_;
            bitField0_ = (bitField0_ & ~0x00000010);
          } else {
            ensureInventoryTagListIsMutable();
            inventoryTagList_.addAll(other.inventoryTagList_);
          }
          onChanged();
        }
      } else {
        if (!other.inventoryTagList_.isEmpty()) {
          if (inventoryTagListBuilder_.isEmpty()) {
            inventoryTagListBuilder_.dispose();
            inventoryTagListBuilder_ = null;
            inventoryTagList_ = other.inventoryTagList_;
            bitField0_ = (bitField0_ & ~0x00000010);
            inventoryTagListBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getInventoryTagListFieldBuilder()
                    : null;
          } else {
            inventoryTagListBuilder_.addAllMessages(other.inventoryTagList_);
          }
        }
      }
      if (!other.inventorySecurityGroupNames_.isEmpty()) {
        if (inventorySecurityGroupNames_.isEmpty()) {
          inventorySecurityGroupNames_ = other.inventorySecurityGroupNames_;
          bitField0_ = (bitField0_ & ~0x00000020);
        } else {
          ensureInventorySecurityGroupNamesIsMutable();
          inventorySecurityGroupNames_.addAll(other.inventorySecurityGroupNames_);
        }
        onChanged();
      }
      internalGetMutableMigrationResourcesUserTags()
          .mergeFrom(other.internalGetMigrationResourcesUserTags());
      bitField0_ |= 0x00000040;
      if (!other.getPublicIp().isEmpty()) {
        publicIp_ = other.publicIp_;
        bitField0_ |= 0x00000080;
        onChanged();
      }
      switch (other.getCredentialsTypeCase()) {
        case ACCESS_KEY_CREDS:
          {
            mergeAccessKeyCreds(other.getAccessKeyCreds());
            break;
          }
        case CREDENTIALSTYPE_NOT_SET:
          {
            break;
          }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

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

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 26:
              {
                awsRegion_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 26
            case 32:
              {
                state_ = input.readEnum();
                bitField0_ |= 0x00000004;
                break;
              } // case 32
            case 42:
              {
                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000008;
                break;
              } // case 42
            case 58:
              {
                java.lang.String s = input.readStringRequireUtf8();
                ensureInventorySecurityGroupNamesIsMutable();
                inventorySecurityGroupNames_.add(s);
                break;
              } // case 58
            case 66:
              {
                com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
                    migrationResourcesUserTags__ =
                        input.readMessage(
                            MigrationResourcesUserTagsDefaultEntryHolder.defaultEntry
                                .getParserForType(),
                            extensionRegistry);
                internalGetMutableMigrationResourcesUserTags()
                    .getMutableMap()
                    .put(
                        migrationResourcesUserTags__.getKey(),
                        migrationResourcesUserTags__.getValue());
                bitField0_ |= 0x00000040;
                break;
              } // case 66
            case 74:
              {
                publicIp_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000080;
                break;
              } // case 74
            case 82:
              {
                com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag m =
                    input.readMessage(
                        com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag.parser(),
                        extensionRegistry);
                if (inventoryTagListBuilder_ == null) {
                  ensureInventoryTagListIsMutable();
                  inventoryTagList_.add(m);
                } else {
                  inventoryTagListBuilder_.addMessage(m);
                }
                break;
              } // case 82
            case 90:
              {
                input.readMessage(getAccessKeyCredsFieldBuilder().getBuilder(), extensionRegistry);
                credentialsTypeCase_ = 11;
                break;
              } // case 90
            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 credentialsTypeCase_ = 0;
    private java.lang.Object credentialsType_;

    public CredentialsTypeCase getCredentialsTypeCase() {
      return CredentialsTypeCase.forNumber(credentialsTypeCase_);
    }

    public Builder clearCredentialsType() {
      credentialsTypeCase_ = 0;
      credentialsType_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials,
            com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials.Builder,
            com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentialsOrBuilder>
        accessKeyCredsBuilder_;
    /**
     *
     *
     * <pre>
     * AWS Credentials using access key id and secret.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials access_key_creds = 11;
     * </code>
     *
     * @return Whether the accessKeyCreds field is set.
     */
    @java.lang.Override
    public boolean hasAccessKeyCreds() {
      return credentialsTypeCase_ == 11;
    }
    /**
     *
     *
     * <pre>
     * AWS Credentials using access key id and secret.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials access_key_creds = 11;
     * </code>
     *
     * @return The accessKeyCreds.
     */
    @java.lang.Override
    public com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials
        getAccessKeyCreds() {
      if (accessKeyCredsBuilder_ == null) {
        if (credentialsTypeCase_ == 11) {
          return (com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials)
              credentialsType_;
        }
        return com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials
            .getDefaultInstance();
      } else {
        if (credentialsTypeCase_ == 11) {
          return accessKeyCredsBuilder_.getMessage();
        }
        return com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * AWS Credentials using access key id and secret.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials access_key_creds = 11;
     * </code>
     */
    public Builder setAccessKeyCreds(
        com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials value) {
      if (accessKeyCredsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        credentialsType_ = value;
        onChanged();
      } else {
        accessKeyCredsBuilder_.setMessage(value);
      }
      credentialsTypeCase_ = 11;
      return this;
    }
    /**
     *
     *
     * <pre>
     * AWS Credentials using access key id and secret.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials access_key_creds = 11;
     * </code>
     */
    public Builder setAccessKeyCreds(
        com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials.Builder
            builderForValue) {
      if (accessKeyCredsBuilder_ == null) {
        credentialsType_ = builderForValue.build();
        onChanged();
      } else {
        accessKeyCredsBuilder_.setMessage(builderForValue.build());
      }
      credentialsTypeCase_ = 11;
      return this;
    }
    /**
     *
     *
     * <pre>
     * AWS Credentials using access key id and secret.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials access_key_creds = 11;
     * </code>
     */
    public Builder mergeAccessKeyCreds(
        com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials value) {
      if (accessKeyCredsBuilder_ == null) {
        if (credentialsTypeCase_ == 11
            && credentialsType_
                != com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials
                    .getDefaultInstance()) {
          credentialsType_ =
              com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials.newBuilder(
                      (com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials)
                          credentialsType_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          credentialsType_ = value;
        }
        onChanged();
      } else {
        if (credentialsTypeCase_ == 11) {
          accessKeyCredsBuilder_.mergeFrom(value);
        } else {
          accessKeyCredsBuilder_.setMessage(value);
        }
      }
      credentialsTypeCase_ = 11;
      return this;
    }
    /**
     *
     *
     * <pre>
     * AWS Credentials using access key id and secret.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials access_key_creds = 11;
     * </code>
     */
    public Builder clearAccessKeyCreds() {
      if (accessKeyCredsBuilder_ == null) {
        if (credentialsTypeCase_ == 11) {
          credentialsTypeCase_ = 0;
          credentialsType_ = null;
          onChanged();
        }
      } else {
        if (credentialsTypeCase_ == 11) {
          credentialsTypeCase_ = 0;
          credentialsType_ = null;
        }
        accessKeyCredsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * AWS Credentials using access key id and secret.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials access_key_creds = 11;
     * </code>
     */
    public com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials.Builder
        getAccessKeyCredsBuilder() {
      return getAccessKeyCredsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * AWS Credentials using access key id and secret.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials access_key_creds = 11;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentialsOrBuilder
        getAccessKeyCredsOrBuilder() {
      if ((credentialsTypeCase_ == 11) && (accessKeyCredsBuilder_ != null)) {
        return accessKeyCredsBuilder_.getMessageOrBuilder();
      } else {
        if (credentialsTypeCase_ == 11) {
          return (com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials)
              credentialsType_;
        }
        return com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * AWS Credentials using access key id and secret.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials access_key_creds = 11;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials,
            com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials.Builder,
            com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentialsOrBuilder>
        getAccessKeyCredsFieldBuilder() {
      if (accessKeyCredsBuilder_ == null) {
        if (!(credentialsTypeCase_ == 11)) {
          credentialsType_ =
              com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials
                  .getDefaultInstance();
        }
        accessKeyCredsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials,
                com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials.Builder,
                com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentialsOrBuilder>(
                (com.google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials)
                    credentialsType_,
                getParentForChildren(),
                isClean());
        credentialsType_ = null;
      }
      credentialsTypeCase_ = 11;
      onChanged();
      return accessKeyCredsBuilder_;
    }

    private java.lang.Object awsRegion_ = "";
    /**
     *
     *
     * <pre>
     * Immutable. The AWS region that the source VMs will be migrated from.
     * </pre>
     *
     * <code>string aws_region = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
     *
     * @return The awsRegion.
     */
    public java.lang.String getAwsRegion() {
      java.lang.Object ref = awsRegion_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        awsRegion_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Immutable. The AWS region that the source VMs will be migrated from.
     * </pre>
     *
     * <code>string aws_region = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
     *
     * @return The bytes for awsRegion.
     */
    public com.google.protobuf.ByteString getAwsRegionBytes() {
      java.lang.Object ref = awsRegion_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        awsRegion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Immutable. The AWS region that the source VMs will be migrated from.
     * </pre>
     *
     * <code>string aws_region = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
     *
     * @param value The awsRegion to set.
     * @return This builder for chaining.
     */
    public Builder setAwsRegion(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      awsRegion_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Immutable. The AWS region that the source VMs will be migrated from.
     * </pre>
     *
     * <code>string aws_region = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearAwsRegion() {
      awsRegion_ = getDefaultInstance().getAwsRegion();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Immutable. The AWS region that the source VMs will be migrated from.
     * </pre>
     *
     * <code>string aws_region = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
     *
     * @param value The bytes for awsRegion to set.
     * @return This builder for chaining.
     */
    public Builder setAwsRegionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      awsRegion_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private int state_ = 0;
    /**
     *
     *
     * <pre>
     * Output only. State of the source as determined by the health check.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceDetails.State state = 4 [(.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 source as determined by the health check.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceDetails.State state = 4 [(.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_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. State of the source as determined by the health check.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceDetails.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The state.
     */
    @java.lang.Override
    public com.google.cloud.vmmigration.v1.AwsSourceDetails.State getState() {
      com.google.cloud.vmmigration.v1.AwsSourceDetails.State result =
          com.google.cloud.vmmigration.v1.AwsSourceDetails.State.forNumber(state_);
      return result == null
          ? com.google.cloud.vmmigration.v1.AwsSourceDetails.State.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * Output only. State of the source as determined by the health check.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceDetails.State state = 4 [(.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.AwsSourceDetails.State value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000004;
      state_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. State of the source as determined by the health check.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsSourceDetails.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearState() {
      bitField0_ = (bitField0_ & ~0x00000004);
      state_ = 0;
      onChanged();
      return this;
    }

    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 Source in case of an
     * error.
     * </pre>
     *
     * <code>.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return Whether the error field is set.
     */
    public boolean hasError() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Source in case of an
     * error.
     * </pre>
     *
     * <code>.google.rpc.Status error = 5 [(.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 Source in case of an
     * error.
     * </pre>
     *
     * <code>.google.rpc.Status error = 5 [(.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_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Source in case of an
     * error.
     * </pre>
     *
     * <code>.google.rpc.Status error = 5 [(.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_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Source in case of an
     * error.
     * </pre>
     *
     * <code>.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    public Builder mergeError(com.google.rpc.Status value) {
      if (errorBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0)
            && error_ != null
            && error_ != com.google.rpc.Status.getDefaultInstance()) {
          getErrorBuilder().mergeFrom(value);
        } else {
          error_ = value;
        }
      } else {
        errorBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Source in case of an
     * error.
     * </pre>
     *
     * <code>.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    public Builder clearError() {
      bitField0_ = (bitField0_ & ~0x00000008);
      error_ = null;
      if (errorBuilder_ != null) {
        errorBuilder_.dispose();
        errorBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Source in case of an
     * error.
     * </pre>
     *
     * <code>.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    public com.google.rpc.Status.Builder getErrorBuilder() {
      bitField0_ |= 0x00000008;
      onChanged();
      return getErrorFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Provides details on the state of the Source in case of an
     * error.
     * </pre>
     *
     * <code>.google.rpc.Status error = 5 [(.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 Source in case of an
     * error.
     * </pre>
     *
     * <code>.google.rpc.Status error = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
        getErrorFieldBuilder() {
      if (errorBuilder_ == null) {
        errorBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.rpc.Status,
                com.google.rpc.Status.Builder,
                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
        error_ = null;
      }
      return errorBuilder_;
    }

    private java.util.List<com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag> inventoryTagList_ =
        java.util.Collections.emptyList();

    private void ensureInventoryTagListIsMutable() {
      if (!((bitField0_ & 0x00000010) != 0)) {
        inventoryTagList_ =
            new java.util.ArrayList<com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag>(
                inventoryTagList_);
        bitField0_ |= 0x00000010;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag,
            com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag.Builder,
            com.google.cloud.vmmigration.v1.AwsSourceDetails.TagOrBuilder>
        inventoryTagListBuilder_;

    /**
     *
     *
     * <pre>
     * AWS resource tags to limit the scope of the source inventory.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
     * </code>
     */
    public java.util.List<com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag>
        getInventoryTagListList() {
      if (inventoryTagListBuilder_ == null) {
        return java.util.Collections.unmodifiableList(inventoryTagList_);
      } else {
        return inventoryTagListBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * AWS resource tags to limit the scope of the source inventory.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
     * </code>
     */
    public int getInventoryTagListCount() {
      if (inventoryTagListBuilder_ == null) {
        return inventoryTagList_.size();
      } else {
        return inventoryTagListBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * AWS resource tags to limit the scope of the source inventory.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
     * </code>
     */
    public com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag getInventoryTagList(int index) {
      if (inventoryTagListBuilder_ == null) {
        return inventoryTagList_.get(index);
      } else {
        return inventoryTagListBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * AWS resource tags to limit the scope of the source inventory.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
     * </code>
     */
    public Builder setInventoryTagList(
        int index, com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag value) {
      if (inventoryTagListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInventoryTagListIsMutable();
        inventoryTagList_.set(index, value);
        onChanged();
      } else {
        inventoryTagListBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * AWS resource tags to limit the scope of the source inventory.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
     * </code>
     */
    public Builder setInventoryTagList(
        int index, com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag.Builder builderForValue) {
      if (inventoryTagListBuilder_ == null) {
        ensureInventoryTagListIsMutable();
        inventoryTagList_.set(index, builderForValue.build());
        onChanged();
      } else {
        inventoryTagListBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * AWS resource tags to limit the scope of the source inventory.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
     * </code>
     */
    public Builder addInventoryTagList(com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag value) {
      if (inventoryTagListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInventoryTagListIsMutable();
        inventoryTagList_.add(value);
        onChanged();
      } else {
        inventoryTagListBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * AWS resource tags to limit the scope of the source inventory.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
     * </code>
     */
    public Builder addInventoryTagList(
        int index, com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag value) {
      if (inventoryTagListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInventoryTagListIsMutable();
        inventoryTagList_.add(index, value);
        onChanged();
      } else {
        inventoryTagListBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * AWS resource tags to limit the scope of the source inventory.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
     * </code>
     */
    public Builder addInventoryTagList(
        com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag.Builder builderForValue) {
      if (inventoryTagListBuilder_ == null) {
        ensureInventoryTagListIsMutable();
        inventoryTagList_.add(builderForValue.build());
        onChanged();
      } else {
        inventoryTagListBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * AWS resource tags to limit the scope of the source inventory.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
     * </code>
     */
    public Builder addInventoryTagList(
        int index, com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag.Builder builderForValue) {
      if (inventoryTagListBuilder_ == null) {
        ensureInventoryTagListIsMutable();
        inventoryTagList_.add(index, builderForValue.build());
        onChanged();
      } else {
        inventoryTagListBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * AWS resource tags to limit the scope of the source inventory.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
     * </code>
     */
    public Builder addAllInventoryTagList(
        java.lang.Iterable<? extends com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag> values) {
      if (inventoryTagListBuilder_ == null) {
        ensureInventoryTagListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inventoryTagList_);
        onChanged();
      } else {
        inventoryTagListBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * AWS resource tags to limit the scope of the source inventory.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
     * </code>
     */
    public Builder clearInventoryTagList() {
      if (inventoryTagListBuilder_ == null) {
        inventoryTagList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000010);
        onChanged();
      } else {
        inventoryTagListBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * AWS resource tags to limit the scope of the source inventory.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
     * </code>
     */
    public Builder removeInventoryTagList(int index) {
      if (inventoryTagListBuilder_ == null) {
        ensureInventoryTagListIsMutable();
        inventoryTagList_.remove(index);
        onChanged();
      } else {
        inventoryTagListBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * AWS resource tags to limit the scope of the source inventory.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
     * </code>
     */
    public com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag.Builder getInventoryTagListBuilder(
        int index) {
      return getInventoryTagListFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * AWS resource tags to limit the scope of the source inventory.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
     * </code>
     */
    public com.google.cloud.vmmigration.v1.AwsSourceDetails.TagOrBuilder
        getInventoryTagListOrBuilder(int index) {
      if (inventoryTagListBuilder_ == null) {
        return inventoryTagList_.get(index);
      } else {
        return inventoryTagListBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * AWS resource tags to limit the scope of the source inventory.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
     * </code>
     */
    public java.util.List<? extends com.google.cloud.vmmigration.v1.AwsSourceDetails.TagOrBuilder>
        getInventoryTagListOrBuilderList() {
      if (inventoryTagListBuilder_ != null) {
        return inventoryTagListBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(inventoryTagList_);
      }
    }
    /**
     *
     *
     * <pre>
     * AWS resource tags to limit the scope of the source inventory.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
     * </code>
     */
    public com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag.Builder
        addInventoryTagListBuilder() {
      return getInventoryTagListFieldBuilder()
          .addBuilder(com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * AWS resource tags to limit the scope of the source inventory.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
     * </code>
     */
    public com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag.Builder addInventoryTagListBuilder(
        int index) {
      return getInventoryTagListFieldBuilder()
          .addBuilder(
              index, com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * AWS resource tags to limit the scope of the source inventory.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSourceDetails.Tag inventory_tag_list = 10;
     * </code>
     */
    public java.util.List<com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag.Builder>
        getInventoryTagListBuilderList() {
      return getInventoryTagListFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag,
            com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag.Builder,
            com.google.cloud.vmmigration.v1.AwsSourceDetails.TagOrBuilder>
        getInventoryTagListFieldBuilder() {
      if (inventoryTagListBuilder_ == null) {
        inventoryTagListBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag,
                com.google.cloud.vmmigration.v1.AwsSourceDetails.Tag.Builder,
                com.google.cloud.vmmigration.v1.AwsSourceDetails.TagOrBuilder>(
                inventoryTagList_,
                ((bitField0_ & 0x00000010) != 0),
                getParentForChildren(),
                isClean());
        inventoryTagList_ = null;
      }
      return inventoryTagListBuilder_;
    }

    private com.google.protobuf.LazyStringList inventorySecurityGroupNames_ =
        com.google.protobuf.LazyStringArrayList.EMPTY;

    private void ensureInventorySecurityGroupNamesIsMutable() {
      if (!((bitField0_ & 0x00000020) != 0)) {
        inventorySecurityGroupNames_ =
            new com.google.protobuf.LazyStringArrayList(inventorySecurityGroupNames_);
        bitField0_ |= 0x00000020;
      }
    }
    /**
     *
     *
     * <pre>
     * AWS security group names to limit the scope of the source
     * inventory.
     * </pre>
     *
     * <code>repeated string inventory_security_group_names = 7;</code>
     *
     * @return A list containing the inventorySecurityGroupNames.
     */
    public com.google.protobuf.ProtocolStringList getInventorySecurityGroupNamesList() {
      return inventorySecurityGroupNames_.getUnmodifiableView();
    }
    /**
     *
     *
     * <pre>
     * AWS security group names to limit the scope of the source
     * inventory.
     * </pre>
     *
     * <code>repeated string inventory_security_group_names = 7;</code>
     *
     * @return The count of inventorySecurityGroupNames.
     */
    public int getInventorySecurityGroupNamesCount() {
      return inventorySecurityGroupNames_.size();
    }
    /**
     *
     *
     * <pre>
     * AWS security group names to limit the scope of the source
     * inventory.
     * </pre>
     *
     * <code>repeated string inventory_security_group_names = 7;</code>
     *
     * @param index The index of the element to return.
     * @return The inventorySecurityGroupNames at the given index.
     */
    public java.lang.String getInventorySecurityGroupNames(int index) {
      return inventorySecurityGroupNames_.get(index);
    }
    /**
     *
     *
     * <pre>
     * AWS security group names to limit the scope of the source
     * inventory.
     * </pre>
     *
     * <code>repeated string inventory_security_group_names = 7;</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the inventorySecurityGroupNames at the given index.
     */
    public com.google.protobuf.ByteString getInventorySecurityGroupNamesBytes(int index) {
      return inventorySecurityGroupNames_.getByteString(index);
    }
    /**
     *
     *
     * <pre>
     * AWS security group names to limit the scope of the source
     * inventory.
     * </pre>
     *
     * <code>repeated string inventory_security_group_names = 7;</code>
     *
     * @param index The index to set the value at.
     * @param value The inventorySecurityGroupNames to set.
     * @return This builder for chaining.
     */
    public Builder setInventorySecurityGroupNames(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureInventorySecurityGroupNamesIsMutable();
      inventorySecurityGroupNames_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * AWS security group names to limit the scope of the source
     * inventory.
     * </pre>
     *
     * <code>repeated string inventory_security_group_names = 7;</code>
     *
     * @param value The inventorySecurityGroupNames to add.
     * @return This builder for chaining.
     */
    public Builder addInventorySecurityGroupNames(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureInventorySecurityGroupNamesIsMutable();
      inventorySecurityGroupNames_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * AWS security group names to limit the scope of the source
     * inventory.
     * </pre>
     *
     * <code>repeated string inventory_security_group_names = 7;</code>
     *
     * @param values The inventorySecurityGroupNames to add.
     * @return This builder for chaining.
     */
    public Builder addAllInventorySecurityGroupNames(java.lang.Iterable<java.lang.String> values) {
      ensureInventorySecurityGroupNamesIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inventorySecurityGroupNames_);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * AWS security group names to limit the scope of the source
     * inventory.
     * </pre>
     *
     * <code>repeated string inventory_security_group_names = 7;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearInventorySecurityGroupNames() {
      inventorySecurityGroupNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000020);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * AWS security group names to limit the scope of the source
     * inventory.
     * </pre>
     *
     * <code>repeated string inventory_security_group_names = 7;</code>
     *
     * @param value The bytes of the inventorySecurityGroupNames to add.
     * @return This builder for chaining.
     */
    public Builder addInventorySecurityGroupNamesBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      ensureInventorySecurityGroupNamesIsMutable();
      inventorySecurityGroupNames_.add(value);
      onChanged();
      return this;
    }

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

    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
        internalGetMigrationResourcesUserTags() {
      if (migrationResourcesUserTags_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            MigrationResourcesUserTagsDefaultEntryHolder.defaultEntry);
      }
      return migrationResourcesUserTags_;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
        internalGetMutableMigrationResourcesUserTags() {
      if (migrationResourcesUserTags_ == null) {
        migrationResourcesUserTags_ =
            com.google.protobuf.MapField.newMapField(
                MigrationResourcesUserTagsDefaultEntryHolder.defaultEntry);
      }
      if (!migrationResourcesUserTags_.isMutable()) {
        migrationResourcesUserTags_ = migrationResourcesUserTags_.copy();
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return migrationResourcesUserTags_;
    }

    public int getMigrationResourcesUserTagsCount() {
      return internalGetMigrationResourcesUserTags().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * User specified tags to add to every M2VM generated resource in AWS.
     * These tags will be set in addition to the default tags that are set as part
     * of the migration process. The tags must not begin with the reserved prefix
     * `m2vm`.
     * </pre>
     *
     * <code>map&lt;string, string&gt; migration_resources_user_tags = 8;</code>
     */
    @java.lang.Override
    public boolean containsMigrationResourcesUserTags(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      return internalGetMigrationResourcesUserTags().getMap().containsKey(key);
    }
    /** Use {@link #getMigrationResourcesUserTagsMap()} instead. */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getMigrationResourcesUserTags() {
      return getMigrationResourcesUserTagsMap();
    }
    /**
     *
     *
     * <pre>
     * User specified tags to add to every M2VM generated resource in AWS.
     * These tags will be set in addition to the default tags that are set as part
     * of the migration process. The tags must not begin with the reserved prefix
     * `m2vm`.
     * </pre>
     *
     * <code>map&lt;string, string&gt; migration_resources_user_tags = 8;</code>
     */
    @java.lang.Override
    public java.util.Map<java.lang.String, java.lang.String> getMigrationResourcesUserTagsMap() {
      return internalGetMigrationResourcesUserTags().getMap();
    }
    /**
     *
     *
     * <pre>
     * User specified tags to add to every M2VM generated resource in AWS.
     * These tags will be set in addition to the default tags that are set as part
     * of the migration process. The tags must not begin with the reserved prefix
     * `m2vm`.
     * </pre>
     *
     * <code>map&lt;string, string&gt; migration_resources_user_tags = 8;</code>
     */
    @java.lang.Override
    public /* nullable */ java.lang.String getMigrationResourcesUserTagsOrDefault(
        java.lang.String key,
        /* nullable */
        java.lang.String defaultValue) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map =
          internalGetMigrationResourcesUserTags().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     *
     *
     * <pre>
     * User specified tags to add to every M2VM generated resource in AWS.
     * These tags will be set in addition to the default tags that are set as part
     * of the migration process. The tags must not begin with the reserved prefix
     * `m2vm`.
     * </pre>
     *
     * <code>map&lt;string, string&gt; migration_resources_user_tags = 8;</code>
     */
    @java.lang.Override
    public java.lang.String getMigrationResourcesUserTagsOrThrow(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map =
          internalGetMigrationResourcesUserTags().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearMigrationResourcesUserTags() {
      bitField0_ = (bitField0_ & ~0x00000040);
      internalGetMutableMigrationResourcesUserTags().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     * <pre>
     * User specified tags to add to every M2VM generated resource in AWS.
     * These tags will be set in addition to the default tags that are set as part
     * of the migration process. The tags must not begin with the reserved prefix
     * `m2vm`.
     * </pre>
     *
     * <code>map&lt;string, string&gt; migration_resources_user_tags = 8;</code>
     */
    public Builder removeMigrationResourcesUserTags(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      internalGetMutableMigrationResourcesUserTags().getMutableMap().remove(key);
      return this;
    }
    /** Use alternate mutation accessors instead. */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String>
        getMutableMigrationResourcesUserTags() {
      bitField0_ |= 0x00000040;
      return internalGetMutableMigrationResourcesUserTags().getMutableMap();
    }
    /**
     *
     *
     * <pre>
     * User specified tags to add to every M2VM generated resource in AWS.
     * These tags will be set in addition to the default tags that are set as part
     * of the migration process. The tags must not begin with the reserved prefix
     * `m2vm`.
     * </pre>
     *
     * <code>map&lt;string, string&gt; migration_resources_user_tags = 8;</code>
     */
    public Builder putMigrationResourcesUserTags(java.lang.String key, java.lang.String value) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      if (value == null) {
        throw new NullPointerException("map value");
      }
      internalGetMutableMigrationResourcesUserTags().getMutableMap().put(key, value);
      bitField0_ |= 0x00000040;
      return this;
    }
    /**
     *
     *
     * <pre>
     * User specified tags to add to every M2VM generated resource in AWS.
     * These tags will be set in addition to the default tags that are set as part
     * of the migration process. The tags must not begin with the reserved prefix
     * `m2vm`.
     * </pre>
     *
     * <code>map&lt;string, string&gt; migration_resources_user_tags = 8;</code>
     */
    public Builder putAllMigrationResourcesUserTags(
        java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableMigrationResourcesUserTags().getMutableMap().putAll(values);
      bitField0_ |= 0x00000040;
      return this;
    }

    private java.lang.Object publicIp_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The source's public IP. All communication initiated by this
     * source will originate from this IP.
     * </pre>
     *
     * <code>string public_ip = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The publicIp.
     */
    public java.lang.String getPublicIp() {
      java.lang.Object ref = publicIp_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        publicIp_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The source's public IP. All communication initiated by this
     * source will originate from this IP.
     * </pre>
     *
     * <code>string public_ip = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for publicIp.
     */
    public com.google.protobuf.ByteString getPublicIpBytes() {
      java.lang.Object ref = publicIp_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        publicIp_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The source's public IP. All communication initiated by this
     * source will originate from this IP.
     * </pre>
     *
     * <code>string public_ip = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The publicIp to set.
     * @return This builder for chaining.
     */
    public Builder setPublicIp(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      publicIp_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The source's public IP. All communication initiated by this
     * source will originate from this IP.
     * </pre>
     *
     * <code>string public_ip = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearPublicIp() {
      publicIp_ = getDefaultInstance().getPublicIp();
      bitField0_ = (bitField0_ & ~0x00000080);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The source's public IP. All communication initiated by this
     * source will originate from this IP.
     * </pre>
     *
     * <code>string public_ip = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for publicIp to set.
     * @return This builder for chaining.
     */
    public Builder setPublicIpBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      publicIp_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }

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

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

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

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

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

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

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