/*
 * Copyright 2023 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>
 * AwsVmDetails describes a VM in AWS.
 * </pre>
 *
 * Protobuf type {@code google.cloud.vmmigration.v1.AwsVmDetails}
 */
public final class AwsVmDetails extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.AwsVmDetails)
    AwsVmDetailsOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use AwsVmDetails.newBuilder() to construct.
  private AwsVmDetails(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private AwsVmDetails() {
    vmId_ = "";
    displayName_ = "";
    sourceId_ = "";
    sourceDescription_ = "";
    powerState_ = 0;
    osDescription_ = "";
    bootOption_ = 0;
    instanceType_ = "";
    vpcId_ = "";
    securityGroups_ = java.util.Collections.emptyList();
    zone_ = "";
    virtualizationType_ = 0;
    architecture_ = 0;
  }

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

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

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(int number) {
    switch (number) {
      case 15:
        return internalGetTags();
      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_AwsVmDetails_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.vmmigration.v1.AwsVmDetails.class,
            com.google.cloud.vmmigration.v1.AwsVmDetails.Builder.class);
  }

  /**
   *
   *
   * <pre>
   * Possible values for the power state of the VM.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.vmmigration.v1.AwsVmDetails.PowerState}
   */
  public enum PowerState implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * Power state is not specified.
     * </pre>
     *
     * <code>POWER_STATE_UNSPECIFIED = 0;</code>
     */
    POWER_STATE_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * The VM is turned on.
     * </pre>
     *
     * <code>ON = 1;</code>
     */
    ON(1),
    /**
     *
     *
     * <pre>
     * The VM is turned off.
     * </pre>
     *
     * <code>OFF = 2;</code>
     */
    OFF(2),
    /**
     *
     *
     * <pre>
     * The VM is suspended. This is similar to hibernation or sleep
     * mode.
     * </pre>
     *
     * <code>SUSPENDED = 3;</code>
     */
    SUSPENDED(3),
    /**
     *
     *
     * <pre>
     * The VM is starting.
     * </pre>
     *
     * <code>PENDING = 4;</code>
     */
    PENDING(4),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * Power state is not specified.
     * </pre>
     *
     * <code>POWER_STATE_UNSPECIFIED = 0;</code>
     */
    public static final int POWER_STATE_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * The VM is turned on.
     * </pre>
     *
     * <code>ON = 1;</code>
     */
    public static final int ON_VALUE = 1;
    /**
     *
     *
     * <pre>
     * The VM is turned off.
     * </pre>
     *
     * <code>OFF = 2;</code>
     */
    public static final int OFF_VALUE = 2;
    /**
     *
     *
     * <pre>
     * The VM is suspended. This is similar to hibernation or sleep
     * mode.
     * </pre>
     *
     * <code>SUSPENDED = 3;</code>
     */
    public static final int SUSPENDED_VALUE = 3;
    /**
     *
     *
     * <pre>
     * The VM is starting.
     * </pre>
     *
     * <code>PENDING = 4;</code>
     */
    public static final int PENDING_VALUE = 4;

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

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static PowerState 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 PowerState forNumber(int value) {
      switch (value) {
        case 0:
          return POWER_STATE_UNSPECIFIED;
        case 1:
          return ON;
        case 2:
          return OFF;
        case 3:
          return SUSPENDED;
        case 4:
          return PENDING;
        default:
          return null;
      }
    }

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

    private static final com.google.protobuf.Internal.EnumLiteMap<PowerState> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<PowerState>() {
          public PowerState findValueByNumber(int number) {
            return PowerState.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.AwsVmDetails.getDescriptor().getEnumTypes().get(0);
    }

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

    public static PowerState 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 PowerState(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.AwsVmDetails.PowerState)
  }

  /**
   *
   *
   * <pre>
   * The possible values for the vm boot option.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.vmmigration.v1.AwsVmDetails.BootOption}
   */
  public enum BootOption implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * The boot option is unknown.
     * </pre>
     *
     * <code>BOOT_OPTION_UNSPECIFIED = 0;</code>
     */
    BOOT_OPTION_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * The boot option is UEFI.
     * </pre>
     *
     * <code>EFI = 1;</code>
     */
    EFI(1),
    /**
     *
     *
     * <pre>
     * The boot option is LEGACY-BIOS.
     * </pre>
     *
     * <code>BIOS = 2;</code>
     */
    BIOS(2),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * The boot option is unknown.
     * </pre>
     *
     * <code>BOOT_OPTION_UNSPECIFIED = 0;</code>
     */
    public static final int BOOT_OPTION_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * The boot option is UEFI.
     * </pre>
     *
     * <code>EFI = 1;</code>
     */
    public static final int EFI_VALUE = 1;
    /**
     *
     *
     * <pre>
     * The boot option is LEGACY-BIOS.
     * </pre>
     *
     * <code>BIOS = 2;</code>
     */
    public static final int BIOS_VALUE = 2;

    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 BootOption 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 BootOption forNumber(int value) {
      switch (value) {
        case 0:
          return BOOT_OPTION_UNSPECIFIED;
        case 1:
          return EFI;
        case 2:
          return BIOS;
        default:
          return null;
      }
    }

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

    private static final com.google.protobuf.Internal.EnumLiteMap<BootOption> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<BootOption>() {
          public BootOption findValueByNumber(int number) {
            return BootOption.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.AwsVmDetails.getDescriptor().getEnumTypes().get(1);
    }

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

    public static BootOption 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 BootOption(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.AwsVmDetails.BootOption)
  }

  /**
   *
   *
   * <pre>
   * Possible values for the virtualization types of the VM.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType}
   */
  public enum VmVirtualizationType implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * The virtualization type is unknown.
     * </pre>
     *
     * <code>VM_VIRTUALIZATION_TYPE_UNSPECIFIED = 0;</code>
     */
    VM_VIRTUALIZATION_TYPE_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * The virtualziation type is HVM.
     * </pre>
     *
     * <code>HVM = 1;</code>
     */
    HVM(1),
    /**
     *
     *
     * <pre>
     * The virtualziation type is PARAVIRTUAL.
     * </pre>
     *
     * <code>PARAVIRTUAL = 2;</code>
     */
    PARAVIRTUAL(2),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * The virtualization type is unknown.
     * </pre>
     *
     * <code>VM_VIRTUALIZATION_TYPE_UNSPECIFIED = 0;</code>
     */
    public static final int VM_VIRTUALIZATION_TYPE_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * The virtualziation type is HVM.
     * </pre>
     *
     * <code>HVM = 1;</code>
     */
    public static final int HVM_VALUE = 1;
    /**
     *
     *
     * <pre>
     * The virtualziation type is PARAVIRTUAL.
     * </pre>
     *
     * <code>PARAVIRTUAL = 2;</code>
     */
    public static final int PARAVIRTUAL_VALUE = 2;

    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 VmVirtualizationType 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 VmVirtualizationType forNumber(int value) {
      switch (value) {
        case 0:
          return VM_VIRTUALIZATION_TYPE_UNSPECIFIED;
        case 1:
          return HVM;
        case 2:
          return PARAVIRTUAL;
        default:
          return null;
      }
    }

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

    private static final com.google.protobuf.Internal.EnumLiteMap<VmVirtualizationType>
        internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<VmVirtualizationType>() {
              public VmVirtualizationType findValueByNumber(int number) {
                return VmVirtualizationType.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.AwsVmDetails.getDescriptor().getEnumTypes().get(2);
    }

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

    public static VmVirtualizationType 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 VmVirtualizationType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType)
  }

  /**
   *
   *
   * <pre>
   * Possible values for the architectures of the VM.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture}
   */
  public enum VmArchitecture implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * The architecture is unknown.
     * </pre>
     *
     * <code>VM_ARCHITECTURE_UNSPECIFIED = 0;</code>
     */
    VM_ARCHITECTURE_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * The architecture is I386.
     * </pre>
     *
     * <code>I386 = 1;</code>
     */
    I386(1),
    /**
     *
     *
     * <pre>
     * The architecture is X86_64.
     * </pre>
     *
     * <code>X86_64 = 2;</code>
     */
    X86_64(2),
    /**
     *
     *
     * <pre>
     * The architecture is ARM64.
     * </pre>
     *
     * <code>ARM64 = 3;</code>
     */
    ARM64(3),
    /**
     *
     *
     * <pre>
     * The architecture is X86_64_MAC.
     * </pre>
     *
     * <code>X86_64_MAC = 4;</code>
     */
    X86_64_MAC(4),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * The architecture is unknown.
     * </pre>
     *
     * <code>VM_ARCHITECTURE_UNSPECIFIED = 0;</code>
     */
    public static final int VM_ARCHITECTURE_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * The architecture is I386.
     * </pre>
     *
     * <code>I386 = 1;</code>
     */
    public static final int I386_VALUE = 1;
    /**
     *
     *
     * <pre>
     * The architecture is X86_64.
     * </pre>
     *
     * <code>X86_64 = 2;</code>
     */
    public static final int X86_64_VALUE = 2;
    /**
     *
     *
     * <pre>
     * The architecture is ARM64.
     * </pre>
     *
     * <code>ARM64 = 3;</code>
     */
    public static final int ARM64_VALUE = 3;
    /**
     *
     *
     * <pre>
     * The architecture is X86_64_MAC.
     * </pre>
     *
     * <code>X86_64_MAC = 4;</code>
     */
    public static final int X86_64_MAC_VALUE = 4;

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

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static VmArchitecture 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 VmArchitecture forNumber(int value) {
      switch (value) {
        case 0:
          return VM_ARCHITECTURE_UNSPECIFIED;
        case 1:
          return I386;
        case 2:
          return X86_64;
        case 3:
          return ARM64;
        case 4:
          return X86_64_MAC;
        default:
          return null;
      }
    }

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

    private static final com.google.protobuf.Internal.EnumLiteMap<VmArchitecture> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap<VmArchitecture>() {
          public VmArchitecture findValueByNumber(int number) {
            return VmArchitecture.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.AwsVmDetails.getDescriptor().getEnumTypes().get(3);
    }

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

    public static VmArchitecture 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 VmArchitecture(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture)
  }

  public static final int VM_ID_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object vmId_ = "";
  /**
   *
   *
   * <pre>
   * The VM ID in AWS.
   * </pre>
   *
   * <code>string vm_id = 1;</code>
   *
   * @return The vmId.
   */
  @java.lang.Override
  public java.lang.String getVmId() {
    java.lang.Object ref = vmId_;
    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();
      vmId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The VM ID in AWS.
   * </pre>
   *
   * <code>string vm_id = 1;</code>
   *
   * @return The bytes for vmId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getVmIdBytes() {
    java.lang.Object ref = vmId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      vmId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DISPLAY_NAME_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private volatile java.lang.Object displayName_ = "";
  /**
   *
   *
   * <pre>
   * The display name of the VM. Note that this value is not necessarily unique.
   * </pre>
   *
   * <code>string display_name = 2;</code>
   *
   * @return The displayName.
   */
  @java.lang.Override
  public java.lang.String getDisplayName() {
    java.lang.Object ref = displayName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      displayName_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The display name of the VM. Note that this value is not necessarily unique.
   * </pre>
   *
   * <code>string display_name = 2;</code>
   *
   * @return The bytes for displayName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getDisplayNameBytes() {
    java.lang.Object ref = displayName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      displayName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SOURCE_ID_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private volatile java.lang.Object sourceId_ = "";
  /**
   *
   *
   * <pre>
   * The id of the AWS's source this VM is connected to.
   * </pre>
   *
   * <code>string source_id = 3;</code>
   *
   * @return The sourceId.
   */
  @java.lang.Override
  public java.lang.String getSourceId() {
    java.lang.Object ref = sourceId_;
    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();
      sourceId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The id of the AWS's source this VM is connected to.
   * </pre>
   *
   * <code>string source_id = 3;</code>
   *
   * @return The bytes for sourceId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getSourceIdBytes() {
    java.lang.Object ref = sourceId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      sourceId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SOURCE_DESCRIPTION_FIELD_NUMBER = 4;

  @SuppressWarnings("serial")
  private volatile java.lang.Object sourceDescription_ = "";
  /**
   *
   *
   * <pre>
   * The descriptive name of the AWS's source this VM is connected to.
   * </pre>
   *
   * <code>string source_description = 4;</code>
   *
   * @return The sourceDescription.
   */
  @java.lang.Override
  public java.lang.String getSourceDescription() {
    java.lang.Object ref = sourceDescription_;
    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();
      sourceDescription_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The descriptive name of the AWS's source this VM is connected to.
   * </pre>
   *
   * <code>string source_description = 4;</code>
   *
   * @return The bytes for sourceDescription.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getSourceDescriptionBytes() {
    java.lang.Object ref = sourceDescription_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      sourceDescription_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int POWER_STATE_FIELD_NUMBER = 5;
  private int powerState_ = 0;
  /**
   *
   *
   * <pre>
   * Output only. The power state of the VM at the moment list was taken.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.AwsVmDetails.PowerState power_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The enum numeric value on the wire for powerState.
   */
  @java.lang.Override
  public int getPowerStateValue() {
    return powerState_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The power state of the VM at the moment list was taken.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.AwsVmDetails.PowerState power_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The powerState.
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.AwsVmDetails.PowerState getPowerState() {
    com.google.cloud.vmmigration.v1.AwsVmDetails.PowerState result =
        com.google.cloud.vmmigration.v1.AwsVmDetails.PowerState.forNumber(powerState_);
    return result == null
        ? com.google.cloud.vmmigration.v1.AwsVmDetails.PowerState.UNRECOGNIZED
        : result;
  }

  public static final int CPU_COUNT_FIELD_NUMBER = 6;
  private int cpuCount_ = 0;
  /**
   *
   *
   * <pre>
   * The number of cpus the VM has.
   * </pre>
   *
   * <code>int32 cpu_count = 6;</code>
   *
   * @return The cpuCount.
   */
  @java.lang.Override
  public int getCpuCount() {
    return cpuCount_;
  }

  public static final int MEMORY_MB_FIELD_NUMBER = 7;
  private int memoryMb_ = 0;
  /**
   *
   *
   * <pre>
   * The memory size of the VM in MB.
   * </pre>
   *
   * <code>int32 memory_mb = 7;</code>
   *
   * @return The memoryMb.
   */
  @java.lang.Override
  public int getMemoryMb() {
    return memoryMb_;
  }

  public static final int DISK_COUNT_FIELD_NUMBER = 8;
  private int diskCount_ = 0;
  /**
   *
   *
   * <pre>
   * The number of disks the VM has.
   * </pre>
   *
   * <code>int32 disk_count = 8;</code>
   *
   * @return The diskCount.
   */
  @java.lang.Override
  public int getDiskCount() {
    return diskCount_;
  }

  public static final int COMMITTED_STORAGE_MB_FIELD_NUMBER = 9;
  private long committedStorageMb_ = 0L;
  /**
   *
   *
   * <pre>
   * The total size of the storage allocated to the VM in MB.
   * </pre>
   *
   * <code>int64 committed_storage_mb = 9;</code>
   *
   * @return The committedStorageMb.
   */
  @java.lang.Override
  public long getCommittedStorageMb() {
    return committedStorageMb_;
  }

  public static final int OS_DESCRIPTION_FIELD_NUMBER = 10;

  @SuppressWarnings("serial")
  private volatile java.lang.Object osDescription_ = "";
  /**
   *
   *
   * <pre>
   * The VM's OS.
   * </pre>
   *
   * <code>string os_description = 10;</code>
   *
   * @return The osDescription.
   */
  @java.lang.Override
  public java.lang.String getOsDescription() {
    java.lang.Object ref = osDescription_;
    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();
      osDescription_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The VM's OS.
   * </pre>
   *
   * <code>string os_description = 10;</code>
   *
   * @return The bytes for osDescription.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getOsDescriptionBytes() {
    java.lang.Object ref = osDescription_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      osDescription_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int BOOT_OPTION_FIELD_NUMBER = 11;
  private int bootOption_ = 0;
  /**
   *
   *
   * <pre>
   * The VM Boot Option.
   * </pre>
   *
   * <code>.google.cloud.vmmigration.v1.AwsVmDetails.BootOption boot_option = 11;</code>
   *
   * @return The enum numeric value on the wire for bootOption.
   */
  @java.lang.Override
  public int getBootOptionValue() {
    return bootOption_;
  }
  /**
   *
   *
   * <pre>
   * The VM Boot Option.
   * </pre>
   *
   * <code>.google.cloud.vmmigration.v1.AwsVmDetails.BootOption boot_option = 11;</code>
   *
   * @return The bootOption.
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.AwsVmDetails.BootOption getBootOption() {
    com.google.cloud.vmmigration.v1.AwsVmDetails.BootOption result =
        com.google.cloud.vmmigration.v1.AwsVmDetails.BootOption.forNumber(bootOption_);
    return result == null
        ? com.google.cloud.vmmigration.v1.AwsVmDetails.BootOption.UNRECOGNIZED
        : result;
  }

  public static final int INSTANCE_TYPE_FIELD_NUMBER = 12;

  @SuppressWarnings("serial")
  private volatile java.lang.Object instanceType_ = "";
  /**
   *
   *
   * <pre>
   * The instance type of the VM.
   * </pre>
   *
   * <code>string instance_type = 12;</code>
   *
   * @return The instanceType.
   */
  @java.lang.Override
  public java.lang.String getInstanceType() {
    java.lang.Object ref = instanceType_;
    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();
      instanceType_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The instance type of the VM.
   * </pre>
   *
   * <code>string instance_type = 12;</code>
   *
   * @return The bytes for instanceType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getInstanceTypeBytes() {
    java.lang.Object ref = instanceType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      instanceType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int VPC_ID_FIELD_NUMBER = 13;

  @SuppressWarnings("serial")
  private volatile java.lang.Object vpcId_ = "";
  /**
   *
   *
   * <pre>
   * The VPC ID the VM belongs to.
   * </pre>
   *
   * <code>string vpc_id = 13;</code>
   *
   * @return The vpcId.
   */
  @java.lang.Override
  public java.lang.String getVpcId() {
    java.lang.Object ref = vpcId_;
    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();
      vpcId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The VPC ID the VM belongs to.
   * </pre>
   *
   * <code>string vpc_id = 13;</code>
   *
   * @return The bytes for vpcId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getVpcIdBytes() {
    java.lang.Object ref = vpcId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      vpcId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SECURITY_GROUPS_FIELD_NUMBER = 14;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.vmmigration.v1.AwsSecurityGroup> securityGroups_;
  /**
   *
   *
   * <pre>
   * The security groups the VM belongs to.
   * </pre>
   *
   * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.vmmigration.v1.AwsSecurityGroup> getSecurityGroupsList() {
    return securityGroups_;
  }
  /**
   *
   *
   * <pre>
   * The security groups the VM belongs to.
   * </pre>
   *
   * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.vmmigration.v1.AwsSecurityGroupOrBuilder>
      getSecurityGroupsOrBuilderList() {
    return securityGroups_;
  }
  /**
   *
   *
   * <pre>
   * The security groups the VM belongs to.
   * </pre>
   *
   * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
   */
  @java.lang.Override
  public int getSecurityGroupsCount() {
    return securityGroups_.size();
  }
  /**
   *
   *
   * <pre>
   * The security groups the VM belongs to.
   * </pre>
   *
   * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.AwsSecurityGroup getSecurityGroups(int index) {
    return securityGroups_.get(index);
  }
  /**
   *
   *
   * <pre>
   * The security groups the VM belongs to.
   * </pre>
   *
   * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.AwsSecurityGroupOrBuilder getSecurityGroupsOrBuilder(
      int index) {
    return securityGroups_.get(index);
  }

  public static final int TAGS_FIELD_NUMBER = 15;

  private static final class TagsDefaultEntryHolder {
    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_AwsVmDetails_TagsEntry_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> tags_;

  private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetTags() {
    if (tags_ == null) {
      return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry);
    }
    return tags_;
  }

  public int getTagsCount() {
    return internalGetTags().getMap().size();
  }
  /**
   *
   *
   * <pre>
   * The tags of the VM.
   * </pre>
   *
   * <code>map&lt;string, string&gt; tags = 15;</code>
   */
  @java.lang.Override
  public boolean containsTags(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    return internalGetTags().getMap().containsKey(key);
  }
  /** Use {@link #getTagsMap()} instead. */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getTags() {
    return getTagsMap();
  }
  /**
   *
   *
   * <pre>
   * The tags of the VM.
   * </pre>
   *
   * <code>map&lt;string, string&gt; tags = 15;</code>
   */
  @java.lang.Override
  public java.util.Map<java.lang.String, java.lang.String> getTagsMap() {
    return internalGetTags().getMap();
  }
  /**
   *
   *
   * <pre>
   * The tags of the VM.
   * </pre>
   *
   * <code>map&lt;string, string&gt; tags = 15;</code>
   */
  @java.lang.Override
  public /* nullable */ java.lang.String getTagsOrDefault(
      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 = internalGetTags().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   *
   *
   * <pre>
   * The tags of the VM.
   * </pre>
   *
   * <code>map&lt;string, string&gt; tags = 15;</code>
   */
  @java.lang.Override
  public java.lang.String getTagsOrThrow(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetTags().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int ZONE_FIELD_NUMBER = 16;

  @SuppressWarnings("serial")
  private volatile java.lang.Object zone_ = "";
  /**
   *
   *
   * <pre>
   * The AWS zone of the VM.
   * </pre>
   *
   * <code>string zone = 16;</code>
   *
   * @return The zone.
   */
  @java.lang.Override
  public java.lang.String getZone() {
    java.lang.Object ref = zone_;
    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();
      zone_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The AWS zone of the VM.
   * </pre>
   *
   * <code>string zone = 16;</code>
   *
   * @return The bytes for zone.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getZoneBytes() {
    java.lang.Object ref = zone_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      zone_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int VIRTUALIZATION_TYPE_FIELD_NUMBER = 17;
  private int virtualizationType_ = 0;
  /**
   *
   *
   * <pre>
   * The virtualization type.
   * </pre>
   *
   * <code>.google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType virtualization_type = 17;
   * </code>
   *
   * @return The enum numeric value on the wire for virtualizationType.
   */
  @java.lang.Override
  public int getVirtualizationTypeValue() {
    return virtualizationType_;
  }
  /**
   *
   *
   * <pre>
   * The virtualization type.
   * </pre>
   *
   * <code>.google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType virtualization_type = 17;
   * </code>
   *
   * @return The virtualizationType.
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType getVirtualizationType() {
    com.google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType result =
        com.google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType.forNumber(
            virtualizationType_);
    return result == null
        ? com.google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType.UNRECOGNIZED
        : result;
  }

  public static final int ARCHITECTURE_FIELD_NUMBER = 18;
  private int architecture_ = 0;
  /**
   *
   *
   * <pre>
   * The CPU architecture.
   * </pre>
   *
   * <code>.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture architecture = 18;</code>
   *
   * @return The enum numeric value on the wire for architecture.
   */
  @java.lang.Override
  public int getArchitectureValue() {
    return architecture_;
  }
  /**
   *
   *
   * <pre>
   * The CPU architecture.
   * </pre>
   *
   * <code>.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture architecture = 18;</code>
   *
   * @return The architecture.
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture getArchitecture() {
    com.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture result =
        com.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture.forNumber(architecture_);
    return result == null
        ? com.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture.UNRECOGNIZED
        : result;
  }

  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(vmId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vmId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceDescription_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sourceDescription_);
    }
    if (powerState_
        != com.google.cloud.vmmigration.v1.AwsVmDetails.PowerState.POWER_STATE_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(5, powerState_);
    }
    if (cpuCount_ != 0) {
      output.writeInt32(6, cpuCount_);
    }
    if (memoryMb_ != 0) {
      output.writeInt32(7, memoryMb_);
    }
    if (diskCount_ != 0) {
      output.writeInt32(8, diskCount_);
    }
    if (committedStorageMb_ != 0L) {
      output.writeInt64(9, committedStorageMb_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osDescription_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, osDescription_);
    }
    if (bootOption_
        != com.google.cloud.vmmigration.v1.AwsVmDetails.BootOption.BOOT_OPTION_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(11, bootOption_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, instanceType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, vpcId_);
    }
    for (int i = 0; i < securityGroups_.size(); i++) {
      output.writeMessage(14, securityGroups_.get(i));
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 15);
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 16, zone_);
    }
    if (virtualizationType_
        != com.google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType
            .VM_VIRTUALIZATION_TYPE_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(17, virtualizationType_);
    }
    if (architecture_
        != com.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture.VM_ARCHITECTURE_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(18, architecture_);
    }
    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(vmId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, vmId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceDescription_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sourceDescription_);
    }
    if (powerState_
        != com.google.cloud.vmmigration.v1.AwsVmDetails.PowerState.POWER_STATE_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, powerState_);
    }
    if (cpuCount_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, cpuCount_);
    }
    if (memoryMb_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, memoryMb_);
    }
    if (diskCount_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, diskCount_);
    }
    if (committedStorageMb_ != 0L) {
      size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, committedStorageMb_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osDescription_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, osDescription_);
    }
    if (bootOption_
        != com.google.cloud.vmmigration.v1.AwsVmDetails.BootOption.BOOT_OPTION_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, bootOption_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, instanceType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, vpcId_);
    }
    for (int i = 0; i < securityGroups_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, securityGroups_.get(i));
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
        internalGetTags().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String> tags__ =
          TagsDefaultEntryHolder.defaultEntry
              .newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, tags__);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, zone_);
    }
    if (virtualizationType_
        != com.google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType
            .VM_VIRTUALIZATION_TYPE_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, virtualizationType_);
    }
    if (architecture_
        != com.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture.VM_ARCHITECTURE_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(18, architecture_);
    }
    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.AwsVmDetails)) {
      return super.equals(obj);
    }
    com.google.cloud.vmmigration.v1.AwsVmDetails other =
        (com.google.cloud.vmmigration.v1.AwsVmDetails) obj;

    if (!getVmId().equals(other.getVmId())) return false;
    if (!getDisplayName().equals(other.getDisplayName())) return false;
    if (!getSourceId().equals(other.getSourceId())) return false;
    if (!getSourceDescription().equals(other.getSourceDescription())) return false;
    if (powerState_ != other.powerState_) return false;
    if (getCpuCount() != other.getCpuCount()) return false;
    if (getMemoryMb() != other.getMemoryMb()) return false;
    if (getDiskCount() != other.getDiskCount()) return false;
    if (getCommittedStorageMb() != other.getCommittedStorageMb()) return false;
    if (!getOsDescription().equals(other.getOsDescription())) return false;
    if (bootOption_ != other.bootOption_) return false;
    if (!getInstanceType().equals(other.getInstanceType())) return false;
    if (!getVpcId().equals(other.getVpcId())) return false;
    if (!getSecurityGroupsList().equals(other.getSecurityGroupsList())) return false;
    if (!internalGetTags().equals(other.internalGetTags())) return false;
    if (!getZone().equals(other.getZone())) return false;
    if (virtualizationType_ != other.virtualizationType_) return false;
    if (architecture_ != other.architecture_) 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) + VM_ID_FIELD_NUMBER;
    hash = (53 * hash) + getVmId().hashCode();
    hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getDisplayName().hashCode();
    hash = (37 * hash) + SOURCE_ID_FIELD_NUMBER;
    hash = (53 * hash) + getSourceId().hashCode();
    hash = (37 * hash) + SOURCE_DESCRIPTION_FIELD_NUMBER;
    hash = (53 * hash) + getSourceDescription().hashCode();
    hash = (37 * hash) + POWER_STATE_FIELD_NUMBER;
    hash = (53 * hash) + powerState_;
    hash = (37 * hash) + CPU_COUNT_FIELD_NUMBER;
    hash = (53 * hash) + getCpuCount();
    hash = (37 * hash) + MEMORY_MB_FIELD_NUMBER;
    hash = (53 * hash) + getMemoryMb();
    hash = (37 * hash) + DISK_COUNT_FIELD_NUMBER;
    hash = (53 * hash) + getDiskCount();
    hash = (37 * hash) + COMMITTED_STORAGE_MB_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCommittedStorageMb());
    hash = (37 * hash) + OS_DESCRIPTION_FIELD_NUMBER;
    hash = (53 * hash) + getOsDescription().hashCode();
    hash = (37 * hash) + BOOT_OPTION_FIELD_NUMBER;
    hash = (53 * hash) + bootOption_;
    hash = (37 * hash) + INSTANCE_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getInstanceType().hashCode();
    hash = (37 * hash) + VPC_ID_FIELD_NUMBER;
    hash = (53 * hash) + getVpcId().hashCode();
    if (getSecurityGroupsCount() > 0) {
      hash = (37 * hash) + SECURITY_GROUPS_FIELD_NUMBER;
      hash = (53 * hash) + getSecurityGroupsList().hashCode();
    }
    if (!internalGetTags().getMap().isEmpty()) {
      hash = (37 * hash) + TAGS_FIELD_NUMBER;
      hash = (53 * hash) + internalGetTags().hashCode();
    }
    hash = (37 * hash) + ZONE_FIELD_NUMBER;
    hash = (53 * hash) + getZone().hashCode();
    hash = (37 * hash) + VIRTUALIZATION_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + virtualizationType_;
    hash = (37 * hash) + ARCHITECTURE_FIELD_NUMBER;
    hash = (53 * hash) + architecture_;
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

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

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

  public static com.google.cloud.vmmigration.v1.AwsVmDetails 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.AwsVmDetails 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.AwsVmDetails 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.AwsVmDetails 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>
   * AwsVmDetails describes a VM in AWS.
   * </pre>
   *
   * Protobuf type {@code google.cloud.vmmigration.v1.AwsVmDetails}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.vmmigration.v1.AwsVmDetails)
      com.google.cloud.vmmigration.v1.AwsVmDetailsOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.vmmigration.v1.VmMigrationProto
          .internal_static_google_cloud_vmmigration_v1_AwsVmDetails_descriptor;
    }

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

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
      switch (number) {
        case 15:
          return internalGetMutableTags();
        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_AwsVmDetails_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.vmmigration.v1.AwsVmDetails.class,
              com.google.cloud.vmmigration.v1.AwsVmDetails.Builder.class);
    }

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

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      vmId_ = "";
      displayName_ = "";
      sourceId_ = "";
      sourceDescription_ = "";
      powerState_ = 0;
      cpuCount_ = 0;
      memoryMb_ = 0;
      diskCount_ = 0;
      committedStorageMb_ = 0L;
      osDescription_ = "";
      bootOption_ = 0;
      instanceType_ = "";
      vpcId_ = "";
      if (securityGroupsBuilder_ == null) {
        securityGroups_ = java.util.Collections.emptyList();
      } else {
        securityGroups_ = null;
        securityGroupsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00002000);
      internalGetMutableTags().clear();
      zone_ = "";
      virtualizationType_ = 0;
      architecture_ = 0;
      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_AwsVmDetails_descriptor;
    }

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

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

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

    private void buildPartialRepeatedFields(com.google.cloud.vmmigration.v1.AwsVmDetails result) {
      if (securityGroupsBuilder_ == null) {
        if (((bitField0_ & 0x00002000) != 0)) {
          securityGroups_ = java.util.Collections.unmodifiableList(securityGroups_);
          bitField0_ = (bitField0_ & ~0x00002000);
        }
        result.securityGroups_ = securityGroups_;
      } else {
        result.securityGroups_ = securityGroupsBuilder_.build();
      }
    }

    private void buildPartial0(com.google.cloud.vmmigration.v1.AwsVmDetails result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.vmId_ = vmId_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.displayName_ = displayName_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.sourceId_ = sourceId_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.sourceDescription_ = sourceDescription_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.powerState_ = powerState_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.cpuCount_ = cpuCount_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.memoryMb_ = memoryMb_;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.diskCount_ = diskCount_;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.committedStorageMb_ = committedStorageMb_;
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.osDescription_ = osDescription_;
      }
      if (((from_bitField0_ & 0x00000400) != 0)) {
        result.bootOption_ = bootOption_;
      }
      if (((from_bitField0_ & 0x00000800) != 0)) {
        result.instanceType_ = instanceType_;
      }
      if (((from_bitField0_ & 0x00001000) != 0)) {
        result.vpcId_ = vpcId_;
      }
      if (((from_bitField0_ & 0x00004000) != 0)) {
        result.tags_ = internalGetTags();
        result.tags_.makeImmutable();
      }
      if (((from_bitField0_ & 0x00008000) != 0)) {
        result.zone_ = zone_;
      }
      if (((from_bitField0_ & 0x00010000) != 0)) {
        result.virtualizationType_ = virtualizationType_;
      }
      if (((from_bitField0_ & 0x00020000) != 0)) {
        result.architecture_ = architecture_;
      }
    }

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

    public Builder mergeFrom(com.google.cloud.vmmigration.v1.AwsVmDetails other) {
      if (other == com.google.cloud.vmmigration.v1.AwsVmDetails.getDefaultInstance()) return this;
      if (!other.getVmId().isEmpty()) {
        vmId_ = other.vmId_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getDisplayName().isEmpty()) {
        displayName_ = other.displayName_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (!other.getSourceId().isEmpty()) {
        sourceId_ = other.sourceId_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (!other.getSourceDescription().isEmpty()) {
        sourceDescription_ = other.sourceDescription_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (other.powerState_ != 0) {
        setPowerStateValue(other.getPowerStateValue());
      }
      if (other.getCpuCount() != 0) {
        setCpuCount(other.getCpuCount());
      }
      if (other.getMemoryMb() != 0) {
        setMemoryMb(other.getMemoryMb());
      }
      if (other.getDiskCount() != 0) {
        setDiskCount(other.getDiskCount());
      }
      if (other.getCommittedStorageMb() != 0L) {
        setCommittedStorageMb(other.getCommittedStorageMb());
      }
      if (!other.getOsDescription().isEmpty()) {
        osDescription_ = other.osDescription_;
        bitField0_ |= 0x00000200;
        onChanged();
      }
      if (other.bootOption_ != 0) {
        setBootOptionValue(other.getBootOptionValue());
      }
      if (!other.getInstanceType().isEmpty()) {
        instanceType_ = other.instanceType_;
        bitField0_ |= 0x00000800;
        onChanged();
      }
      if (!other.getVpcId().isEmpty()) {
        vpcId_ = other.vpcId_;
        bitField0_ |= 0x00001000;
        onChanged();
      }
      if (securityGroupsBuilder_ == null) {
        if (!other.securityGroups_.isEmpty()) {
          if (securityGroups_.isEmpty()) {
            securityGroups_ = other.securityGroups_;
            bitField0_ = (bitField0_ & ~0x00002000);
          } else {
            ensureSecurityGroupsIsMutable();
            securityGroups_.addAll(other.securityGroups_);
          }
          onChanged();
        }
      } else {
        if (!other.securityGroups_.isEmpty()) {
          if (securityGroupsBuilder_.isEmpty()) {
            securityGroupsBuilder_.dispose();
            securityGroupsBuilder_ = null;
            securityGroups_ = other.securityGroups_;
            bitField0_ = (bitField0_ & ~0x00002000);
            securityGroupsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getSecurityGroupsFieldBuilder()
                    : null;
          } else {
            securityGroupsBuilder_.addAllMessages(other.securityGroups_);
          }
        }
      }
      internalGetMutableTags().mergeFrom(other.internalGetTags());
      bitField0_ |= 0x00004000;
      if (!other.getZone().isEmpty()) {
        zone_ = other.zone_;
        bitField0_ |= 0x00008000;
        onChanged();
      }
      if (other.virtualizationType_ != 0) {
        setVirtualizationTypeValue(other.getVirtualizationTypeValue());
      }
      if (other.architecture_ != 0) {
        setArchitectureValue(other.getArchitectureValue());
      }
      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:
              {
                vmId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                displayName_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                sourceId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000004;
                break;
              } // case 26
            case 34:
              {
                sourceDescription_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000008;
                break;
              } // case 34
            case 40:
              {
                powerState_ = input.readEnum();
                bitField0_ |= 0x00000010;
                break;
              } // case 40
            case 48:
              {
                cpuCount_ = input.readInt32();
                bitField0_ |= 0x00000020;
                break;
              } // case 48
            case 56:
              {
                memoryMb_ = input.readInt32();
                bitField0_ |= 0x00000040;
                break;
              } // case 56
            case 64:
              {
                diskCount_ = input.readInt32();
                bitField0_ |= 0x00000080;
                break;
              } // case 64
            case 72:
              {
                committedStorageMb_ = input.readInt64();
                bitField0_ |= 0x00000100;
                break;
              } // case 72
            case 82:
              {
                osDescription_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000200;
                break;
              } // case 82
            case 88:
              {
                bootOption_ = input.readEnum();
                bitField0_ |= 0x00000400;
                break;
              } // case 88
            case 98:
              {
                instanceType_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000800;
                break;
              } // case 98
            case 106:
              {
                vpcId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00001000;
                break;
              } // case 106
            case 114:
              {
                com.google.cloud.vmmigration.v1.AwsSecurityGroup m =
                    input.readMessage(
                        com.google.cloud.vmmigration.v1.AwsSecurityGroup.parser(),
                        extensionRegistry);
                if (securityGroupsBuilder_ == null) {
                  ensureSecurityGroupsIsMutable();
                  securityGroups_.add(m);
                } else {
                  securityGroupsBuilder_.addMessage(m);
                }
                break;
              } // case 114
            case 122:
              {
                com.google.protobuf.MapEntry<java.lang.String, java.lang.String> tags__ =
                    input.readMessage(
                        TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                internalGetMutableTags().getMutableMap().put(tags__.getKey(), tags__.getValue());
                bitField0_ |= 0x00004000;
                break;
              } // case 122
            case 130:
              {
                zone_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00008000;
                break;
              } // case 130
            case 136:
              {
                virtualizationType_ = input.readEnum();
                bitField0_ |= 0x00010000;
                break;
              } // case 136
            case 144:
              {
                architecture_ = input.readEnum();
                bitField0_ |= 0x00020000;
                break;
              } // case 144
            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 vmId_ = "";
    /**
     *
     *
     * <pre>
     * The VM ID in AWS.
     * </pre>
     *
     * <code>string vm_id = 1;</code>
     *
     * @return The vmId.
     */
    public java.lang.String getVmId() {
      java.lang.Object ref = vmId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        vmId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The VM ID in AWS.
     * </pre>
     *
     * <code>string vm_id = 1;</code>
     *
     * @return The bytes for vmId.
     */
    public com.google.protobuf.ByteString getVmIdBytes() {
      java.lang.Object ref = vmId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        vmId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The VM ID in AWS.
     * </pre>
     *
     * <code>string vm_id = 1;</code>
     *
     * @param value The vmId to set.
     * @return This builder for chaining.
     */
    public Builder setVmId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      vmId_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The VM ID in AWS.
     * </pre>
     *
     * <code>string vm_id = 1;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearVmId() {
      vmId_ = getDefaultInstance().getVmId();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The VM ID in AWS.
     * </pre>
     *
     * <code>string vm_id = 1;</code>
     *
     * @param value The bytes for vmId to set.
     * @return This builder for chaining.
     */
    public Builder setVmIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      vmId_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

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

    private java.lang.Object sourceId_ = "";
    /**
     *
     *
     * <pre>
     * The id of the AWS's source this VM is connected to.
     * </pre>
     *
     * <code>string source_id = 3;</code>
     *
     * @return The sourceId.
     */
    public java.lang.String getSourceId() {
      java.lang.Object ref = sourceId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        sourceId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The id of the AWS's source this VM is connected to.
     * </pre>
     *
     * <code>string source_id = 3;</code>
     *
     * @return The bytes for sourceId.
     */
    public com.google.protobuf.ByteString getSourceIdBytes() {
      java.lang.Object ref = sourceId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        sourceId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The id of the AWS's source this VM is connected to.
     * </pre>
     *
     * <code>string source_id = 3;</code>
     *
     * @param value The sourceId to set.
     * @return This builder for chaining.
     */
    public Builder setSourceId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      sourceId_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The id of the AWS's source this VM is connected to.
     * </pre>
     *
     * <code>string source_id = 3;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearSourceId() {
      sourceId_ = getDefaultInstance().getSourceId();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The id of the AWS's source this VM is connected to.
     * </pre>
     *
     * <code>string source_id = 3;</code>
     *
     * @param value The bytes for sourceId to set.
     * @return This builder for chaining.
     */
    public Builder setSourceIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      sourceId_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private java.lang.Object sourceDescription_ = "";
    /**
     *
     *
     * <pre>
     * The descriptive name of the AWS's source this VM is connected to.
     * </pre>
     *
     * <code>string source_description = 4;</code>
     *
     * @return The sourceDescription.
     */
    public java.lang.String getSourceDescription() {
      java.lang.Object ref = sourceDescription_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        sourceDescription_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The descriptive name of the AWS's source this VM is connected to.
     * </pre>
     *
     * <code>string source_description = 4;</code>
     *
     * @return The bytes for sourceDescription.
     */
    public com.google.protobuf.ByteString getSourceDescriptionBytes() {
      java.lang.Object ref = sourceDescription_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        sourceDescription_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The descriptive name of the AWS's source this VM is connected to.
     * </pre>
     *
     * <code>string source_description = 4;</code>
     *
     * @param value The sourceDescription to set.
     * @return This builder for chaining.
     */
    public Builder setSourceDescription(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      sourceDescription_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The descriptive name of the AWS's source this VM is connected to.
     * </pre>
     *
     * <code>string source_description = 4;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearSourceDescription() {
      sourceDescription_ = getDefaultInstance().getSourceDescription();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The descriptive name of the AWS's source this VM is connected to.
     * </pre>
     *
     * <code>string source_description = 4;</code>
     *
     * @param value The bytes for sourceDescription to set.
     * @return This builder for chaining.
     */
    public Builder setSourceDescriptionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      sourceDescription_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    private int powerState_ = 0;
    /**
     *
     *
     * <pre>
     * Output only. The power state of the VM at the moment list was taken.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsVmDetails.PowerState power_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The enum numeric value on the wire for powerState.
     */
    @java.lang.Override
    public int getPowerStateValue() {
      return powerState_;
    }
    /**
     *
     *
     * <pre>
     * Output only. The power state of the VM at the moment list was taken.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsVmDetails.PowerState power_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The enum numeric value on the wire for powerState to set.
     * @return This builder for chaining.
     */
    public Builder setPowerStateValue(int value) {
      powerState_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The power state of the VM at the moment list was taken.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsVmDetails.PowerState power_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The powerState.
     */
    @java.lang.Override
    public com.google.cloud.vmmigration.v1.AwsVmDetails.PowerState getPowerState() {
      com.google.cloud.vmmigration.v1.AwsVmDetails.PowerState result =
          com.google.cloud.vmmigration.v1.AwsVmDetails.PowerState.forNumber(powerState_);
      return result == null
          ? com.google.cloud.vmmigration.v1.AwsVmDetails.PowerState.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * Output only. The power state of the VM at the moment list was taken.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsVmDetails.PowerState power_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The powerState to set.
     * @return This builder for chaining.
     */
    public Builder setPowerState(com.google.cloud.vmmigration.v1.AwsVmDetails.PowerState value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000010;
      powerState_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The power state of the VM at the moment list was taken.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsVmDetails.PowerState power_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearPowerState() {
      bitField0_ = (bitField0_ & ~0x00000010);
      powerState_ = 0;
      onChanged();
      return this;
    }

    private int cpuCount_;
    /**
     *
     *
     * <pre>
     * The number of cpus the VM has.
     * </pre>
     *
     * <code>int32 cpu_count = 6;</code>
     *
     * @return The cpuCount.
     */
    @java.lang.Override
    public int getCpuCount() {
      return cpuCount_;
    }
    /**
     *
     *
     * <pre>
     * The number of cpus the VM has.
     * </pre>
     *
     * <code>int32 cpu_count = 6;</code>
     *
     * @param value The cpuCount to set.
     * @return This builder for chaining.
     */
    public Builder setCpuCount(int value) {

      cpuCount_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The number of cpus the VM has.
     * </pre>
     *
     * <code>int32 cpu_count = 6;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearCpuCount() {
      bitField0_ = (bitField0_ & ~0x00000020);
      cpuCount_ = 0;
      onChanged();
      return this;
    }

    private int memoryMb_;
    /**
     *
     *
     * <pre>
     * The memory size of the VM in MB.
     * </pre>
     *
     * <code>int32 memory_mb = 7;</code>
     *
     * @return The memoryMb.
     */
    @java.lang.Override
    public int getMemoryMb() {
      return memoryMb_;
    }
    /**
     *
     *
     * <pre>
     * The memory size of the VM in MB.
     * </pre>
     *
     * <code>int32 memory_mb = 7;</code>
     *
     * @param value The memoryMb to set.
     * @return This builder for chaining.
     */
    public Builder setMemoryMb(int value) {

      memoryMb_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The memory size of the VM in MB.
     * </pre>
     *
     * <code>int32 memory_mb = 7;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearMemoryMb() {
      bitField0_ = (bitField0_ & ~0x00000040);
      memoryMb_ = 0;
      onChanged();
      return this;
    }

    private int diskCount_;
    /**
     *
     *
     * <pre>
     * The number of disks the VM has.
     * </pre>
     *
     * <code>int32 disk_count = 8;</code>
     *
     * @return The diskCount.
     */
    @java.lang.Override
    public int getDiskCount() {
      return diskCount_;
    }
    /**
     *
     *
     * <pre>
     * The number of disks the VM has.
     * </pre>
     *
     * <code>int32 disk_count = 8;</code>
     *
     * @param value The diskCount to set.
     * @return This builder for chaining.
     */
    public Builder setDiskCount(int value) {

      diskCount_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The number of disks the VM has.
     * </pre>
     *
     * <code>int32 disk_count = 8;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDiskCount() {
      bitField0_ = (bitField0_ & ~0x00000080);
      diskCount_ = 0;
      onChanged();
      return this;
    }

    private long committedStorageMb_;
    /**
     *
     *
     * <pre>
     * The total size of the storage allocated to the VM in MB.
     * </pre>
     *
     * <code>int64 committed_storage_mb = 9;</code>
     *
     * @return The committedStorageMb.
     */
    @java.lang.Override
    public long getCommittedStorageMb() {
      return committedStorageMb_;
    }
    /**
     *
     *
     * <pre>
     * The total size of the storage allocated to the VM in MB.
     * </pre>
     *
     * <code>int64 committed_storage_mb = 9;</code>
     *
     * @param value The committedStorageMb to set.
     * @return This builder for chaining.
     */
    public Builder setCommittedStorageMb(long value) {

      committedStorageMb_ = value;
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The total size of the storage allocated to the VM in MB.
     * </pre>
     *
     * <code>int64 committed_storage_mb = 9;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearCommittedStorageMb() {
      bitField0_ = (bitField0_ & ~0x00000100);
      committedStorageMb_ = 0L;
      onChanged();
      return this;
    }

    private java.lang.Object osDescription_ = "";
    /**
     *
     *
     * <pre>
     * The VM's OS.
     * </pre>
     *
     * <code>string os_description = 10;</code>
     *
     * @return The osDescription.
     */
    public java.lang.String getOsDescription() {
      java.lang.Object ref = osDescription_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        osDescription_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The VM's OS.
     * </pre>
     *
     * <code>string os_description = 10;</code>
     *
     * @return The bytes for osDescription.
     */
    public com.google.protobuf.ByteString getOsDescriptionBytes() {
      java.lang.Object ref = osDescription_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        osDescription_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The VM's OS.
     * </pre>
     *
     * <code>string os_description = 10;</code>
     *
     * @param value The osDescription to set.
     * @return This builder for chaining.
     */
    public Builder setOsDescription(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      osDescription_ = value;
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The VM's OS.
     * </pre>
     *
     * <code>string os_description = 10;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearOsDescription() {
      osDescription_ = getDefaultInstance().getOsDescription();
      bitField0_ = (bitField0_ & ~0x00000200);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The VM's OS.
     * </pre>
     *
     * <code>string os_description = 10;</code>
     *
     * @param value The bytes for osDescription to set.
     * @return This builder for chaining.
     */
    public Builder setOsDescriptionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      osDescription_ = value;
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }

    private int bootOption_ = 0;
    /**
     *
     *
     * <pre>
     * The VM Boot Option.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.AwsVmDetails.BootOption boot_option = 11;</code>
     *
     * @return The enum numeric value on the wire for bootOption.
     */
    @java.lang.Override
    public int getBootOptionValue() {
      return bootOption_;
    }
    /**
     *
     *
     * <pre>
     * The VM Boot Option.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.AwsVmDetails.BootOption boot_option = 11;</code>
     *
     * @param value The enum numeric value on the wire for bootOption to set.
     * @return This builder for chaining.
     */
    public Builder setBootOptionValue(int value) {
      bootOption_ = value;
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The VM Boot Option.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.AwsVmDetails.BootOption boot_option = 11;</code>
     *
     * @return The bootOption.
     */
    @java.lang.Override
    public com.google.cloud.vmmigration.v1.AwsVmDetails.BootOption getBootOption() {
      com.google.cloud.vmmigration.v1.AwsVmDetails.BootOption result =
          com.google.cloud.vmmigration.v1.AwsVmDetails.BootOption.forNumber(bootOption_);
      return result == null
          ? com.google.cloud.vmmigration.v1.AwsVmDetails.BootOption.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * The VM Boot Option.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.AwsVmDetails.BootOption boot_option = 11;</code>
     *
     * @param value The bootOption to set.
     * @return This builder for chaining.
     */
    public Builder setBootOption(com.google.cloud.vmmigration.v1.AwsVmDetails.BootOption value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000400;
      bootOption_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The VM Boot Option.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.AwsVmDetails.BootOption boot_option = 11;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearBootOption() {
      bitField0_ = (bitField0_ & ~0x00000400);
      bootOption_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object instanceType_ = "";
    /**
     *
     *
     * <pre>
     * The instance type of the VM.
     * </pre>
     *
     * <code>string instance_type = 12;</code>
     *
     * @return The instanceType.
     */
    public java.lang.String getInstanceType() {
      java.lang.Object ref = instanceType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        instanceType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The instance type of the VM.
     * </pre>
     *
     * <code>string instance_type = 12;</code>
     *
     * @return The bytes for instanceType.
     */
    public com.google.protobuf.ByteString getInstanceTypeBytes() {
      java.lang.Object ref = instanceType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        instanceType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The instance type of the VM.
     * </pre>
     *
     * <code>string instance_type = 12;</code>
     *
     * @param value The instanceType to set.
     * @return This builder for chaining.
     */
    public Builder setInstanceType(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      instanceType_ = value;
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The instance type of the VM.
     * </pre>
     *
     * <code>string instance_type = 12;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearInstanceType() {
      instanceType_ = getDefaultInstance().getInstanceType();
      bitField0_ = (bitField0_ & ~0x00000800);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The instance type of the VM.
     * </pre>
     *
     * <code>string instance_type = 12;</code>
     *
     * @param value The bytes for instanceType to set.
     * @return This builder for chaining.
     */
    public Builder setInstanceTypeBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      instanceType_ = value;
      bitField0_ |= 0x00000800;
      onChanged();
      return this;
    }

    private java.lang.Object vpcId_ = "";
    /**
     *
     *
     * <pre>
     * The VPC ID the VM belongs to.
     * </pre>
     *
     * <code>string vpc_id = 13;</code>
     *
     * @return The vpcId.
     */
    public java.lang.String getVpcId() {
      java.lang.Object ref = vpcId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        vpcId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The VPC ID the VM belongs to.
     * </pre>
     *
     * <code>string vpc_id = 13;</code>
     *
     * @return The bytes for vpcId.
     */
    public com.google.protobuf.ByteString getVpcIdBytes() {
      java.lang.Object ref = vpcId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        vpcId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The VPC ID the VM belongs to.
     * </pre>
     *
     * <code>string vpc_id = 13;</code>
     *
     * @param value The vpcId to set.
     * @return This builder for chaining.
     */
    public Builder setVpcId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      vpcId_ = value;
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The VPC ID the VM belongs to.
     * </pre>
     *
     * <code>string vpc_id = 13;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearVpcId() {
      vpcId_ = getDefaultInstance().getVpcId();
      bitField0_ = (bitField0_ & ~0x00001000);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The VPC ID the VM belongs to.
     * </pre>
     *
     * <code>string vpc_id = 13;</code>
     *
     * @param value The bytes for vpcId to set.
     * @return This builder for chaining.
     */
    public Builder setVpcIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      vpcId_ = value;
      bitField0_ |= 0x00001000;
      onChanged();
      return this;
    }

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

    private void ensureSecurityGroupsIsMutable() {
      if (!((bitField0_ & 0x00002000) != 0)) {
        securityGroups_ =
            new java.util.ArrayList<com.google.cloud.vmmigration.v1.AwsSecurityGroup>(
                securityGroups_);
        bitField0_ |= 0x00002000;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.vmmigration.v1.AwsSecurityGroup,
            com.google.cloud.vmmigration.v1.AwsSecurityGroup.Builder,
            com.google.cloud.vmmigration.v1.AwsSecurityGroupOrBuilder>
        securityGroupsBuilder_;

    /**
     *
     *
     * <pre>
     * The security groups the VM belongs to.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
     */
    public java.util.List<com.google.cloud.vmmigration.v1.AwsSecurityGroup>
        getSecurityGroupsList() {
      if (securityGroupsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(securityGroups_);
      } else {
        return securityGroupsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * The security groups the VM belongs to.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
     */
    public int getSecurityGroupsCount() {
      if (securityGroupsBuilder_ == null) {
        return securityGroups_.size();
      } else {
        return securityGroupsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * The security groups the VM belongs to.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
     */
    public com.google.cloud.vmmigration.v1.AwsSecurityGroup getSecurityGroups(int index) {
      if (securityGroupsBuilder_ == null) {
        return securityGroups_.get(index);
      } else {
        return securityGroupsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * The security groups the VM belongs to.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
     */
    public Builder setSecurityGroups(
        int index, com.google.cloud.vmmigration.v1.AwsSecurityGroup value) {
      if (securityGroupsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSecurityGroupsIsMutable();
        securityGroups_.set(index, value);
        onChanged();
      } else {
        securityGroupsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The security groups the VM belongs to.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
     */
    public Builder setSecurityGroups(
        int index, com.google.cloud.vmmigration.v1.AwsSecurityGroup.Builder builderForValue) {
      if (securityGroupsBuilder_ == null) {
        ensureSecurityGroupsIsMutable();
        securityGroups_.set(index, builderForValue.build());
        onChanged();
      } else {
        securityGroupsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The security groups the VM belongs to.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
     */
    public Builder addSecurityGroups(com.google.cloud.vmmigration.v1.AwsSecurityGroup value) {
      if (securityGroupsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSecurityGroupsIsMutable();
        securityGroups_.add(value);
        onChanged();
      } else {
        securityGroupsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The security groups the VM belongs to.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
     */
    public Builder addSecurityGroups(
        int index, com.google.cloud.vmmigration.v1.AwsSecurityGroup value) {
      if (securityGroupsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSecurityGroupsIsMutable();
        securityGroups_.add(index, value);
        onChanged();
      } else {
        securityGroupsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The security groups the VM belongs to.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
     */
    public Builder addSecurityGroups(
        com.google.cloud.vmmigration.v1.AwsSecurityGroup.Builder builderForValue) {
      if (securityGroupsBuilder_ == null) {
        ensureSecurityGroupsIsMutable();
        securityGroups_.add(builderForValue.build());
        onChanged();
      } else {
        securityGroupsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The security groups the VM belongs to.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
     */
    public Builder addSecurityGroups(
        int index, com.google.cloud.vmmigration.v1.AwsSecurityGroup.Builder builderForValue) {
      if (securityGroupsBuilder_ == null) {
        ensureSecurityGroupsIsMutable();
        securityGroups_.add(index, builderForValue.build());
        onChanged();
      } else {
        securityGroupsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The security groups the VM belongs to.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
     */
    public Builder addAllSecurityGroups(
        java.lang.Iterable<? extends com.google.cloud.vmmigration.v1.AwsSecurityGroup> values) {
      if (securityGroupsBuilder_ == null) {
        ensureSecurityGroupsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, securityGroups_);
        onChanged();
      } else {
        securityGroupsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The security groups the VM belongs to.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
     */
    public Builder clearSecurityGroups() {
      if (securityGroupsBuilder_ == null) {
        securityGroups_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00002000);
        onChanged();
      } else {
        securityGroupsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The security groups the VM belongs to.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
     */
    public Builder removeSecurityGroups(int index) {
      if (securityGroupsBuilder_ == null) {
        ensureSecurityGroupsIsMutable();
        securityGroups_.remove(index);
        onChanged();
      } else {
        securityGroupsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The security groups the VM belongs to.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
     */
    public com.google.cloud.vmmigration.v1.AwsSecurityGroup.Builder getSecurityGroupsBuilder(
        int index) {
      return getSecurityGroupsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * The security groups the VM belongs to.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
     */
    public com.google.cloud.vmmigration.v1.AwsSecurityGroupOrBuilder getSecurityGroupsOrBuilder(
        int index) {
      if (securityGroupsBuilder_ == null) {
        return securityGroups_.get(index);
      } else {
        return securityGroupsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * The security groups the VM belongs to.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
     */
    public java.util.List<? extends com.google.cloud.vmmigration.v1.AwsSecurityGroupOrBuilder>
        getSecurityGroupsOrBuilderList() {
      if (securityGroupsBuilder_ != null) {
        return securityGroupsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(securityGroups_);
      }
    }
    /**
     *
     *
     * <pre>
     * The security groups the VM belongs to.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
     */
    public com.google.cloud.vmmigration.v1.AwsSecurityGroup.Builder addSecurityGroupsBuilder() {
      return getSecurityGroupsFieldBuilder()
          .addBuilder(com.google.cloud.vmmigration.v1.AwsSecurityGroup.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * The security groups the VM belongs to.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
     */
    public com.google.cloud.vmmigration.v1.AwsSecurityGroup.Builder addSecurityGroupsBuilder(
        int index) {
      return getSecurityGroupsFieldBuilder()
          .addBuilder(index, com.google.cloud.vmmigration.v1.AwsSecurityGroup.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * The security groups the VM belongs to.
     * </pre>
     *
     * <code>repeated .google.cloud.vmmigration.v1.AwsSecurityGroup security_groups = 14;</code>
     */
    public java.util.List<com.google.cloud.vmmigration.v1.AwsSecurityGroup.Builder>
        getSecurityGroupsBuilderList() {
      return getSecurityGroupsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.vmmigration.v1.AwsSecurityGroup,
            com.google.cloud.vmmigration.v1.AwsSecurityGroup.Builder,
            com.google.cloud.vmmigration.v1.AwsSecurityGroupOrBuilder>
        getSecurityGroupsFieldBuilder() {
      if (securityGroupsBuilder_ == null) {
        securityGroupsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.vmmigration.v1.AwsSecurityGroup,
                com.google.cloud.vmmigration.v1.AwsSecurityGroup.Builder,
                com.google.cloud.vmmigration.v1.AwsSecurityGroupOrBuilder>(
                securityGroups_,
                ((bitField0_ & 0x00002000) != 0),
                getParentForChildren(),
                isClean());
        securityGroups_ = null;
      }
      return securityGroupsBuilder_;
    }

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

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetTags() {
      if (tags_ == null) {
        return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry);
      }
      return tags_;
    }

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

    public int getTagsCount() {
      return internalGetTags().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * The tags of the VM.
     * </pre>
     *
     * <code>map&lt;string, string&gt; tags = 15;</code>
     */
    @java.lang.Override
    public boolean containsTags(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      return internalGetTags().getMap().containsKey(key);
    }
    /** Use {@link #getTagsMap()} instead. */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getTags() {
      return getTagsMap();
    }
    /**
     *
     *
     * <pre>
     * The tags of the VM.
     * </pre>
     *
     * <code>map&lt;string, string&gt; tags = 15;</code>
     */
    @java.lang.Override
    public java.util.Map<java.lang.String, java.lang.String> getTagsMap() {
      return internalGetTags().getMap();
    }
    /**
     *
     *
     * <pre>
     * The tags of the VM.
     * </pre>
     *
     * <code>map&lt;string, string&gt; tags = 15;</code>
     */
    @java.lang.Override
    public /* nullable */ java.lang.String getTagsOrDefault(
        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 = internalGetTags().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     *
     *
     * <pre>
     * The tags of the VM.
     * </pre>
     *
     * <code>map&lt;string, string&gt; tags = 15;</code>
     */
    @java.lang.Override
    public java.lang.String getTagsOrThrow(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetTags().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearTags() {
      bitField0_ = (bitField0_ & ~0x00004000);
      internalGetMutableTags().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The tags of the VM.
     * </pre>
     *
     * <code>map&lt;string, string&gt; tags = 15;</code>
     */
    public Builder removeTags(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      internalGetMutableTags().getMutableMap().remove(key);
      return this;
    }
    /** Use alternate mutation accessors instead. */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getMutableTags() {
      bitField0_ |= 0x00004000;
      return internalGetMutableTags().getMutableMap();
    }
    /**
     *
     *
     * <pre>
     * The tags of the VM.
     * </pre>
     *
     * <code>map&lt;string, string&gt; tags = 15;</code>
     */
    public Builder putTags(java.lang.String key, java.lang.String value) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      if (value == null) {
        throw new NullPointerException("map value");
      }
      internalGetMutableTags().getMutableMap().put(key, value);
      bitField0_ |= 0x00004000;
      return this;
    }
    /**
     *
     *
     * <pre>
     * The tags of the VM.
     * </pre>
     *
     * <code>map&lt;string, string&gt; tags = 15;</code>
     */
    public Builder putAllTags(java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableTags().getMutableMap().putAll(values);
      bitField0_ |= 0x00004000;
      return this;
    }

    private java.lang.Object zone_ = "";
    /**
     *
     *
     * <pre>
     * The AWS zone of the VM.
     * </pre>
     *
     * <code>string zone = 16;</code>
     *
     * @return The zone.
     */
    public java.lang.String getZone() {
      java.lang.Object ref = zone_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        zone_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The AWS zone of the VM.
     * </pre>
     *
     * <code>string zone = 16;</code>
     *
     * @return The bytes for zone.
     */
    public com.google.protobuf.ByteString getZoneBytes() {
      java.lang.Object ref = zone_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        zone_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The AWS zone of the VM.
     * </pre>
     *
     * <code>string zone = 16;</code>
     *
     * @param value The zone to set.
     * @return This builder for chaining.
     */
    public Builder setZone(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      zone_ = value;
      bitField0_ |= 0x00008000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The AWS zone of the VM.
     * </pre>
     *
     * <code>string zone = 16;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearZone() {
      zone_ = getDefaultInstance().getZone();
      bitField0_ = (bitField0_ & ~0x00008000);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The AWS zone of the VM.
     * </pre>
     *
     * <code>string zone = 16;</code>
     *
     * @param value The bytes for zone to set.
     * @return This builder for chaining.
     */
    public Builder setZoneBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      zone_ = value;
      bitField0_ |= 0x00008000;
      onChanged();
      return this;
    }

    private int virtualizationType_ = 0;
    /**
     *
     *
     * <pre>
     * The virtualization type.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType virtualization_type = 17;
     * </code>
     *
     * @return The enum numeric value on the wire for virtualizationType.
     */
    @java.lang.Override
    public int getVirtualizationTypeValue() {
      return virtualizationType_;
    }
    /**
     *
     *
     * <pre>
     * The virtualization type.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType virtualization_type = 17;
     * </code>
     *
     * @param value The enum numeric value on the wire for virtualizationType to set.
     * @return This builder for chaining.
     */
    public Builder setVirtualizationTypeValue(int value) {
      virtualizationType_ = value;
      bitField0_ |= 0x00010000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The virtualization type.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType virtualization_type = 17;
     * </code>
     *
     * @return The virtualizationType.
     */
    @java.lang.Override
    public com.google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType
        getVirtualizationType() {
      com.google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType result =
          com.google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType.forNumber(
              virtualizationType_);
      return result == null
          ? com.google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * The virtualization type.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType virtualization_type = 17;
     * </code>
     *
     * @param value The virtualizationType to set.
     * @return This builder for chaining.
     */
    public Builder setVirtualizationType(
        com.google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00010000;
      virtualizationType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The virtualization type.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType virtualization_type = 17;
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearVirtualizationType() {
      bitField0_ = (bitField0_ & ~0x00010000);
      virtualizationType_ = 0;
      onChanged();
      return this;
    }

    private int architecture_ = 0;
    /**
     *
     *
     * <pre>
     * The CPU architecture.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture architecture = 18;</code>
     *
     * @return The enum numeric value on the wire for architecture.
     */
    @java.lang.Override
    public int getArchitectureValue() {
      return architecture_;
    }
    /**
     *
     *
     * <pre>
     * The CPU architecture.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture architecture = 18;</code>
     *
     * @param value The enum numeric value on the wire for architecture to set.
     * @return This builder for chaining.
     */
    public Builder setArchitectureValue(int value) {
      architecture_ = value;
      bitField0_ |= 0x00020000;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The CPU architecture.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture architecture = 18;</code>
     *
     * @return The architecture.
     */
    @java.lang.Override
    public com.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture getArchitecture() {
      com.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture result =
          com.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture.forNumber(architecture_);
      return result == null
          ? com.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * The CPU architecture.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture architecture = 18;</code>
     *
     * @param value The architecture to set.
     * @return This builder for chaining.
     */
    public Builder setArchitecture(
        com.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00020000;
      architecture_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The CPU architecture.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture architecture = 18;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearArchitecture() {
      bitField0_ = (bitField0_ & ~0x00020000);
      architecture_ = 0;
      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.AwsVmDetails)
  }

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

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

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

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

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

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