/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/vmmigration/v1/vmmigration.proto

package com.google.cloud.vmmigration.v1;

/**
 *
 *
 * <pre>
 * VmwareVmDetails describes a VM in vCenter.
 * </pre>
 *
 * Protobuf type {@code google.cloud.vmmigration.v1.VmwareVmDetails}
 */
public final class VmwareVmDetails extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.vmmigration.v1.VmwareVmDetails)
    VmwareVmDetailsOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use VmwareVmDetails.newBuilder() to construct.
  private VmwareVmDetails(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private VmwareVmDetails() {
    vmId_ = "";
    datacenterId_ = "";
    datacenterDescription_ = "";
    uuid_ = "";
    displayName_ = "";
    powerState_ = 0;
    guestDescription_ = "";
    bootOption_ = 0;
  }

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

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

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

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

  /**
   *
   *
   * <pre>
   * Possible values for the power state of the VM.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.vmmigration.v1.VmwareVmDetails.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),
    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;

    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;
        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.VmwareVmDetails.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.VmwareVmDetails.PowerState)
  }

  /**
   *
   *
   * <pre>
   * Possible values for vm boot option.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.vmmigration.v1.VmwareVmDetails.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 EFI.
     * </pre>
     *
     * <code>EFI = 1;</code>
     */
    EFI(1),
    /**
     *
     *
     * <pre>
     * The boot option is 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 EFI.
     * </pre>
     *
     * <code>EFI = 1;</code>
     */
    public static final int EFI_VALUE = 1;
    /**
     *
     *
     * <pre>
     * The boot option is 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.VmwareVmDetails.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.VmwareVmDetails.BootOption)
  }

  public static final int VM_ID_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object vmId_ = "";
  /**
   *
   *
   * <pre>
   * The VM's id in the source (note that this is not the MigratingVm's id).
   * This is the moref id of the VM.
   * </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's id in the source (note that this is not the MigratingVm's id).
   * This is the moref id of the VM.
   * </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 DATACENTER_ID_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private volatile java.lang.Object datacenterId_ = "";
  /**
   *
   *
   * <pre>
   * The id of the vCenter's datacenter this VM is contained in.
   * </pre>
   *
   * <code>string datacenter_id = 2;</code>
   *
   * @return The datacenterId.
   */
  @java.lang.Override
  public java.lang.String getDatacenterId() {
    java.lang.Object ref = datacenterId_;
    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();
      datacenterId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The id of the vCenter's datacenter this VM is contained in.
   * </pre>
   *
   * <code>string datacenter_id = 2;</code>
   *
   * @return The bytes for datacenterId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getDatacenterIdBytes() {
    java.lang.Object ref = datacenterId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      datacenterId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DATACENTER_DESCRIPTION_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private volatile java.lang.Object datacenterDescription_ = "";
  /**
   *
   *
   * <pre>
   * The descriptive name of the vCenter's datacenter this VM is contained in.
   * </pre>
   *
   * <code>string datacenter_description = 3;</code>
   *
   * @return The datacenterDescription.
   */
  @java.lang.Override
  public java.lang.String getDatacenterDescription() {
    java.lang.Object ref = datacenterDescription_;
    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();
      datacenterDescription_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The descriptive name of the vCenter's datacenter this VM is contained in.
   * </pre>
   *
   * <code>string datacenter_description = 3;</code>
   *
   * @return The bytes for datacenterDescription.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getDatacenterDescriptionBytes() {
    java.lang.Object ref = datacenterDescription_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      datacenterDescription_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int UUID_FIELD_NUMBER = 4;

  @SuppressWarnings("serial")
  private volatile java.lang.Object uuid_ = "";
  /**
   *
   *
   * <pre>
   * The unique identifier of the VM in vCenter.
   * </pre>
   *
   * <code>string uuid = 4;</code>
   *
   * @return The uuid.
   */
  @java.lang.Override
  public java.lang.String getUuid() {
    java.lang.Object ref = uuid_;
    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();
      uuid_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The unique identifier of the VM in vCenter.
   * </pre>
   *
   * <code>string uuid = 4;</code>
   *
   * @return The bytes for uuid.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getUuidBytes() {
    java.lang.Object ref = uuid_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      uuid_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DISPLAY_NAME_FIELD_NUMBER = 5;

  @SuppressWarnings("serial")
  private volatile java.lang.Object displayName_ = "";
  /**
   *
   *
   * <pre>
   * The display name of the VM. Note that this is not necessarily unique.
   * </pre>
   *
   * <code>string display_name = 5;</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 is not necessarily unique.
   * </pre>
   *
   * <code>string display_name = 5;</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 POWER_STATE_FIELD_NUMBER = 6;
  private int powerState_ = 0;
  /**
   *
   *
   * <pre>
   * The power state of the VM at the moment list was taken.
   * </pre>
   *
   * <code>.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState power_state = 6;</code>
   *
   * @return The enum numeric value on the wire for powerState.
   */
  @java.lang.Override
  public int getPowerStateValue() {
    return powerState_;
  }
  /**
   *
   *
   * <pre>
   * The power state of the VM at the moment list was taken.
   * </pre>
   *
   * <code>.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState power_state = 6;</code>
   *
   * @return The powerState.
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState getPowerState() {
    com.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState result =
        com.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState.forNumber(powerState_);
    return result == null
        ? com.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState.UNRECOGNIZED
        : result;
  }

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

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

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

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

  public static final int GUEST_DESCRIPTION_FIELD_NUMBER = 11;

  @SuppressWarnings("serial")
  private volatile java.lang.Object guestDescription_ = "";
  /**
   *
   *
   * <pre>
   * The VM's OS. See for example
   * https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
   * for types of strings this might hold.
   * </pre>
   *
   * <code>string guest_description = 11;</code>
   *
   * @return The guestDescription.
   */
  @java.lang.Override
  public java.lang.String getGuestDescription() {
    java.lang.Object ref = guestDescription_;
    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();
      guestDescription_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The VM's OS. See for example
   * https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
   * for types of strings this might hold.
   * </pre>
   *
   * <code>string guest_description = 11;</code>
   *
   * @return The bytes for guestDescription.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getGuestDescriptionBytes() {
    java.lang.Object ref = guestDescription_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      guestDescription_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int BOOT_OPTION_FIELD_NUMBER = 13;
  private int bootOption_ = 0;
  /**
   *
   *
   * <pre>
   * Output only. The VM Boot Option.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.VmwareVmDetails.BootOption boot_option = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The enum numeric value on the wire for bootOption.
   */
  @java.lang.Override
  public int getBootOptionValue() {
    return bootOption_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The VM Boot Option.
   * </pre>
   *
   * <code>
   * .google.cloud.vmmigration.v1.VmwareVmDetails.BootOption boot_option = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The bootOption.
   */
  @java.lang.Override
  public com.google.cloud.vmmigration.v1.VmwareVmDetails.BootOption getBootOption() {
    com.google.cloud.vmmigration.v1.VmwareVmDetails.BootOption result =
        com.google.cloud.vmmigration.v1.VmwareVmDetails.BootOption.forNumber(bootOption_);
    return result == null
        ? com.google.cloud.vmmigration.v1.VmwareVmDetails.BootOption.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(datacenterId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, datacenterId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datacenterDescription_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, datacenterDescription_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, uuid_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_);
    }
    if (powerState_
        != com.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState.POWER_STATE_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(6, powerState_);
    }
    if (cpuCount_ != 0) {
      output.writeInt32(7, cpuCount_);
    }
    if (memoryMb_ != 0) {
      output.writeInt32(8, memoryMb_);
    }
    if (diskCount_ != 0) {
      output.writeInt32(9, diskCount_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(guestDescription_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, guestDescription_);
    }
    if (committedStorageMb_ != 0L) {
      output.writeInt64(12, committedStorageMb_);
    }
    if (bootOption_
        != com.google.cloud.vmmigration.v1.VmwareVmDetails.BootOption.BOOT_OPTION_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(13, bootOption_);
    }
    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(datacenterId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, datacenterId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datacenterDescription_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, datacenterDescription_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uuid_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uuid_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_);
    }
    if (powerState_
        != com.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState.POWER_STATE_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, powerState_);
    }
    if (cpuCount_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, cpuCount_);
    }
    if (memoryMb_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, memoryMb_);
    }
    if (diskCount_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, diskCount_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(guestDescription_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, guestDescription_);
    }
    if (committedStorageMb_ != 0L) {
      size += com.google.protobuf.CodedOutputStream.computeInt64Size(12, committedStorageMb_);
    }
    if (bootOption_
        != com.google.cloud.vmmigration.v1.VmwareVmDetails.BootOption.BOOT_OPTION_UNSPECIFIED
            .getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, bootOption_);
    }
    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.VmwareVmDetails)) {
      return super.equals(obj);
    }
    com.google.cloud.vmmigration.v1.VmwareVmDetails other =
        (com.google.cloud.vmmigration.v1.VmwareVmDetails) obj;

    if (!getVmId().equals(other.getVmId())) return false;
    if (!getDatacenterId().equals(other.getDatacenterId())) return false;
    if (!getDatacenterDescription().equals(other.getDatacenterDescription())) return false;
    if (!getUuid().equals(other.getUuid())) return false;
    if (!getDisplayName().equals(other.getDisplayName())) 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 (!getGuestDescription().equals(other.getGuestDescription())) return false;
    if (bootOption_ != other.bootOption_) 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) + DATACENTER_ID_FIELD_NUMBER;
    hash = (53 * hash) + getDatacenterId().hashCode();
    hash = (37 * hash) + DATACENTER_DESCRIPTION_FIELD_NUMBER;
    hash = (53 * hash) + getDatacenterDescription().hashCode();
    hash = (37 * hash) + UUID_FIELD_NUMBER;
    hash = (53 * hash) + getUuid().hashCode();
    hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getDisplayName().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) + GUEST_DESCRIPTION_FIELD_NUMBER;
    hash = (53 * hash) + getGuestDescription().hashCode();
    hash = (37 * hash) + BOOT_OPTION_FIELD_NUMBER;
    hash = (53 * hash) + bootOption_;
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

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

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

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

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

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

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      vmId_ = "";
      datacenterId_ = "";
      datacenterDescription_ = "";
      uuid_ = "";
      displayName_ = "";
      powerState_ = 0;
      cpuCount_ = 0;
      memoryMb_ = 0;
      diskCount_ = 0;
      committedStorageMb_ = 0L;
      guestDescription_ = "";
      bootOption_ = 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_VmwareVmDetails_descriptor;
    }

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

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

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

    private void buildPartial0(com.google.cloud.vmmigration.v1.VmwareVmDetails result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.vmId_ = vmId_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.datacenterId_ = datacenterId_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.datacenterDescription_ = datacenterDescription_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.uuid_ = uuid_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.displayName_ = displayName_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.powerState_ = powerState_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.cpuCount_ = cpuCount_;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.memoryMb_ = memoryMb_;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.diskCount_ = diskCount_;
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.committedStorageMb_ = committedStorageMb_;
      }
      if (((from_bitField0_ & 0x00000400) != 0)) {
        result.guestDescription_ = guestDescription_;
      }
      if (((from_bitField0_ & 0x00000800) != 0)) {
        result.bootOption_ = bootOption_;
      }
    }

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

    public Builder mergeFrom(com.google.cloud.vmmigration.v1.VmwareVmDetails other) {
      if (other == com.google.cloud.vmmigration.v1.VmwareVmDetails.getDefaultInstance())
        return this;
      if (!other.getVmId().isEmpty()) {
        vmId_ = other.vmId_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getDatacenterId().isEmpty()) {
        datacenterId_ = other.datacenterId_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (!other.getDatacenterDescription().isEmpty()) {
        datacenterDescription_ = other.datacenterDescription_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (!other.getUuid().isEmpty()) {
        uuid_ = other.uuid_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (!other.getDisplayName().isEmpty()) {
        displayName_ = other.displayName_;
        bitField0_ |= 0x00000010;
        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.getGuestDescription().isEmpty()) {
        guestDescription_ = other.guestDescription_;
        bitField0_ |= 0x00000400;
        onChanged();
      }
      if (other.bootOption_ != 0) {
        setBootOptionValue(other.getBootOptionValue());
      }
      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:
              {
                datacenterId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                datacenterDescription_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000004;
                break;
              } // case 26
            case 34:
              {
                uuid_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000008;
                break;
              } // case 34
            case 42:
              {
                displayName_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000010;
                break;
              } // case 42
            case 48:
              {
                powerState_ = input.readEnum();
                bitField0_ |= 0x00000020;
                break;
              } // case 48
            case 56:
              {
                cpuCount_ = input.readInt32();
                bitField0_ |= 0x00000040;
                break;
              } // case 56
            case 64:
              {
                memoryMb_ = input.readInt32();
                bitField0_ |= 0x00000080;
                break;
              } // case 64
            case 72:
              {
                diskCount_ = input.readInt32();
                bitField0_ |= 0x00000100;
                break;
              } // case 72
            case 90:
              {
                guestDescription_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000400;
                break;
              } // case 90
            case 96:
              {
                committedStorageMb_ = input.readInt64();
                bitField0_ |= 0x00000200;
                break;
              } // case 96
            case 104:
              {
                bootOption_ = input.readEnum();
                bitField0_ |= 0x00000800;
                break;
              } // case 104
            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's id in the source (note that this is not the MigratingVm's id).
     * This is the moref id of the VM.
     * </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's id in the source (note that this is not the MigratingVm's id).
     * This is the moref id of the VM.
     * </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's id in the source (note that this is not the MigratingVm's id).
     * This is the moref id of the VM.
     * </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's id in the source (note that this is not the MigratingVm's id).
     * This is the moref id of the VM.
     * </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's id in the source (note that this is not the MigratingVm's id).
     * This is the moref id of the VM.
     * </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 datacenterId_ = "";
    /**
     *
     *
     * <pre>
     * The id of the vCenter's datacenter this VM is contained in.
     * </pre>
     *
     * <code>string datacenter_id = 2;</code>
     *
     * @return The datacenterId.
     */
    public java.lang.String getDatacenterId() {
      java.lang.Object ref = datacenterId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        datacenterId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The id of the vCenter's datacenter this VM is contained in.
     * </pre>
     *
     * <code>string datacenter_id = 2;</code>
     *
     * @return The bytes for datacenterId.
     */
    public com.google.protobuf.ByteString getDatacenterIdBytes() {
      java.lang.Object ref = datacenterId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        datacenterId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The id of the vCenter's datacenter this VM is contained in.
     * </pre>
     *
     * <code>string datacenter_id = 2;</code>
     *
     * @param value The datacenterId to set.
     * @return This builder for chaining.
     */
    public Builder setDatacenterId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      datacenterId_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The id of the vCenter's datacenter this VM is contained in.
     * </pre>
     *
     * <code>string datacenter_id = 2;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDatacenterId() {
      datacenterId_ = getDefaultInstance().getDatacenterId();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The id of the vCenter's datacenter this VM is contained in.
     * </pre>
     *
     * <code>string datacenter_id = 2;</code>
     *
     * @param value The bytes for datacenterId to set.
     * @return This builder for chaining.
     */
    public Builder setDatacenterIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      datacenterId_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private java.lang.Object datacenterDescription_ = "";
    /**
     *
     *
     * <pre>
     * The descriptive name of the vCenter's datacenter this VM is contained in.
     * </pre>
     *
     * <code>string datacenter_description = 3;</code>
     *
     * @return The datacenterDescription.
     */
    public java.lang.String getDatacenterDescription() {
      java.lang.Object ref = datacenterDescription_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        datacenterDescription_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The descriptive name of the vCenter's datacenter this VM is contained in.
     * </pre>
     *
     * <code>string datacenter_description = 3;</code>
     *
     * @return The bytes for datacenterDescription.
     */
    public com.google.protobuf.ByteString getDatacenterDescriptionBytes() {
      java.lang.Object ref = datacenterDescription_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        datacenterDescription_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The descriptive name of the vCenter's datacenter this VM is contained in.
     * </pre>
     *
     * <code>string datacenter_description = 3;</code>
     *
     * @param value The datacenterDescription to set.
     * @return This builder for chaining.
     */
    public Builder setDatacenterDescription(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      datacenterDescription_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The descriptive name of the vCenter's datacenter this VM is contained in.
     * </pre>
     *
     * <code>string datacenter_description = 3;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDatacenterDescription() {
      datacenterDescription_ = getDefaultInstance().getDatacenterDescription();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The descriptive name of the vCenter's datacenter this VM is contained in.
     * </pre>
     *
     * <code>string datacenter_description = 3;</code>
     *
     * @param value The bytes for datacenterDescription to set.
     * @return This builder for chaining.
     */
    public Builder setDatacenterDescriptionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      datacenterDescription_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private java.lang.Object uuid_ = "";
    /**
     *
     *
     * <pre>
     * The unique identifier of the VM in vCenter.
     * </pre>
     *
     * <code>string uuid = 4;</code>
     *
     * @return The uuid.
     */
    public java.lang.String getUuid() {
      java.lang.Object ref = uuid_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        uuid_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The unique identifier of the VM in vCenter.
     * </pre>
     *
     * <code>string uuid = 4;</code>
     *
     * @return The bytes for uuid.
     */
    public com.google.protobuf.ByteString getUuidBytes() {
      java.lang.Object ref = uuid_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        uuid_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The unique identifier of the VM in vCenter.
     * </pre>
     *
     * <code>string uuid = 4;</code>
     *
     * @param value The uuid to set.
     * @return This builder for chaining.
     */
    public Builder setUuid(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      uuid_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The unique identifier of the VM in vCenter.
     * </pre>
     *
     * <code>string uuid = 4;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearUuid() {
      uuid_ = getDefaultInstance().getUuid();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The unique identifier of the VM in vCenter.
     * </pre>
     *
     * <code>string uuid = 4;</code>
     *
     * @param value The bytes for uuid to set.
     * @return This builder for chaining.
     */
    public Builder setUuidBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      uuid_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    private java.lang.Object displayName_ = "";
    /**
     *
     *
     * <pre>
     * The display name of the VM. Note that this is not necessarily unique.
     * </pre>
     *
     * <code>string display_name = 5;</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 is not necessarily unique.
     * </pre>
     *
     * <code>string display_name = 5;</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 is not necessarily unique.
     * </pre>
     *
     * <code>string display_name = 5;</code>
     *
     * @param value The displayName to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      displayName_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The display name of the VM. Note that this is not necessarily unique.
     * </pre>
     *
     * <code>string display_name = 5;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDisplayName() {
      displayName_ = getDefaultInstance().getDisplayName();
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The display name of the VM. Note that this is not necessarily unique.
     * </pre>
     *
     * <code>string display_name = 5;</code>
     *
     * @param value The bytes for displayName to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      displayName_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }

    private int powerState_ = 0;
    /**
     *
     *
     * <pre>
     * The power state of the VM at the moment list was taken.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState power_state = 6;</code>
     *
     * @return The enum numeric value on the wire for powerState.
     */
    @java.lang.Override
    public int getPowerStateValue() {
      return powerState_;
    }
    /**
     *
     *
     * <pre>
     * The power state of the VM at the moment list was taken.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState power_state = 6;</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_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The power state of the VM at the moment list was taken.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState power_state = 6;</code>
     *
     * @return The powerState.
     */
    @java.lang.Override
    public com.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState getPowerState() {
      com.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState result =
          com.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState.forNumber(powerState_);
      return result == null
          ? com.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * The power state of the VM at the moment list was taken.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState power_state = 6;</code>
     *
     * @param value The powerState to set.
     * @return This builder for chaining.
     */
    public Builder setPowerState(com.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000020;
      powerState_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The power state of the VM at the moment list was taken.
     * </pre>
     *
     * <code>.google.cloud.vmmigration.v1.VmwareVmDetails.PowerState power_state = 6;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearPowerState() {
      bitField0_ = (bitField0_ & ~0x00000020);
      powerState_ = 0;
      onChanged();
      return this;
    }

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

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

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

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

    private int diskCount_;
    /**
     *
     *
     * <pre>
     * The number of disks the VM has.
     * </pre>
     *
     * <code>int32 disk_count = 9;</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 = 9;</code>
     *
     * @param value The diskCount to set.
     * @return This builder for chaining.
     */
    public Builder setDiskCount(int value) {

      diskCount_ = value;
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The number of disks the VM has.
     * </pre>
     *
     * <code>int32 disk_count = 9;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearDiskCount() {
      bitField0_ = (bitField0_ & ~0x00000100);
      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 = 12;</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 = 12;</code>
     *
     * @param value The committedStorageMb to set.
     * @return This builder for chaining.
     */
    public Builder setCommittedStorageMb(long value) {

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

    private java.lang.Object guestDescription_ = "";
    /**
     *
     *
     * <pre>
     * The VM's OS. See for example
     * https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
     * for types of strings this might hold.
     * </pre>
     *
     * <code>string guest_description = 11;</code>
     *
     * @return The guestDescription.
     */
    public java.lang.String getGuestDescription() {
      java.lang.Object ref = guestDescription_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        guestDescription_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The VM's OS. See for example
     * https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
     * for types of strings this might hold.
     * </pre>
     *
     * <code>string guest_description = 11;</code>
     *
     * @return The bytes for guestDescription.
     */
    public com.google.protobuf.ByteString getGuestDescriptionBytes() {
      java.lang.Object ref = guestDescription_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        guestDescription_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The VM's OS. See for example
     * https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
     * for types of strings this might hold.
     * </pre>
     *
     * <code>string guest_description = 11;</code>
     *
     * @param value The guestDescription to set.
     * @return This builder for chaining.
     */
    public Builder setGuestDescription(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      guestDescription_ = value;
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The VM's OS. See for example
     * https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
     * for types of strings this might hold.
     * </pre>
     *
     * <code>string guest_description = 11;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearGuestDescription() {
      guestDescription_ = getDefaultInstance().getGuestDescription();
      bitField0_ = (bitField0_ & ~0x00000400);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The VM's OS. See for example
     * https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
     * for types of strings this might hold.
     * </pre>
     *
     * <code>string guest_description = 11;</code>
     *
     * @param value The bytes for guestDescription to set.
     * @return This builder for chaining.
     */
    public Builder setGuestDescriptionBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      guestDescription_ = value;
      bitField0_ |= 0x00000400;
      onChanged();
      return this;
    }

    private int bootOption_ = 0;
    /**
     *
     *
     * <pre>
     * Output only. The VM Boot Option.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.VmwareVmDetails.BootOption boot_option = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The enum numeric value on the wire for bootOption.
     */
    @java.lang.Override
    public int getBootOptionValue() {
      return bootOption_;
    }
    /**
     *
     *
     * <pre>
     * Output only. The VM Boot Option.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.VmwareVmDetails.BootOption boot_option = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </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_ |= 0x00000800;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The VM Boot Option.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.VmwareVmDetails.BootOption boot_option = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The bootOption.
     */
    @java.lang.Override
    public com.google.cloud.vmmigration.v1.VmwareVmDetails.BootOption getBootOption() {
      com.google.cloud.vmmigration.v1.VmwareVmDetails.BootOption result =
          com.google.cloud.vmmigration.v1.VmwareVmDetails.BootOption.forNumber(bootOption_);
      return result == null
          ? com.google.cloud.vmmigration.v1.VmwareVmDetails.BootOption.UNRECOGNIZED
          : result;
    }
    /**
     *
     *
     * <pre>
     * Output only. The VM Boot Option.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.VmwareVmDetails.BootOption boot_option = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @param value The bootOption to set.
     * @return This builder for chaining.
     */
    public Builder setBootOption(com.google.cloud.vmmigration.v1.VmwareVmDetails.BootOption value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000800;
      bootOption_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The VM Boot Option.
     * </pre>
     *
     * <code>
     * .google.cloud.vmmigration.v1.VmwareVmDetails.BootOption boot_option = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return This builder for chaining.
     */
    public Builder clearBootOption() {
      bitField0_ = (bitField0_ & ~0x00000800);
      bootOption_ = 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.VmwareVmDetails)
  }

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

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

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

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

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

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