Class VmwareVmDetails.Builder

  • All Implemented Interfaces:
    VmwareVmDetailsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    VmwareVmDetails

    public static final class VmwareVmDetails.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<VmwareVmDetails.Builder>
    implements VmwareVmDetailsOrBuilder
     VmwareVmDetails describes a VM in vCenter.
     
    Protobuf type google.cloud.vmmigration.v1.VmwareVmDetails
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<VmwareVmDetails.Builder>
      • clear

        public VmwareVmDetails.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<VmwareVmDetails.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<VmwareVmDetails.Builder>
      • getDefaultInstanceForType

        public VmwareVmDetails getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public VmwareVmDetails build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public VmwareVmDetails buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public VmwareVmDetails.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<VmwareVmDetails.Builder>
      • setField

        public VmwareVmDetails.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<VmwareVmDetails.Builder>
      • clearField

        public VmwareVmDetails.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<VmwareVmDetails.Builder>
      • clearOneof

        public VmwareVmDetails.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<VmwareVmDetails.Builder>
      • setRepeatedField

        public VmwareVmDetails.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VmwareVmDetails.Builder>
      • addRepeatedField

        public VmwareVmDetails.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VmwareVmDetails.Builder>
      • mergeFrom

        public VmwareVmDetails.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<VmwareVmDetails.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<VmwareVmDetails.Builder>
      • mergeFrom

        public VmwareVmDetails.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<VmwareVmDetails.Builder>
        Throws:
        IOException
      • getVmId

        public String getVmId()
         The VM's id in the source (note that this is not the MigratingVm's id).
         This is the moref id of the VM.
         
        string vm_id = 1;
        Specified by:
        getVmId in interface VmwareVmDetailsOrBuilder
        Returns:
        The vmId.
      • getVmIdBytes

        public com.google.protobuf.ByteString getVmIdBytes()
         The VM's id in the source (note that this is not the MigratingVm's id).
         This is the moref id of the VM.
         
        string vm_id = 1;
        Specified by:
        getVmIdBytes in interface VmwareVmDetailsOrBuilder
        Returns:
        The bytes for vmId.
      • setVmId

        public VmwareVmDetails.Builder setVmId​(String value)
         The VM's id in the source (note that this is not the MigratingVm's id).
         This is the moref id of the VM.
         
        string vm_id = 1;
        Parameters:
        value - The vmId to set.
        Returns:
        This builder for chaining.
      • clearVmId

        public VmwareVmDetails.Builder clearVmId()
         The VM's id in the source (note that this is not the MigratingVm's id).
         This is the moref id of the VM.
         
        string vm_id = 1;
        Returns:
        This builder for chaining.
      • setVmIdBytes

        public VmwareVmDetails.Builder setVmIdBytes​(com.google.protobuf.ByteString value)
         The VM's id in the source (note that this is not the MigratingVm's id).
         This is the moref id of the VM.
         
        string vm_id = 1;
        Parameters:
        value - The bytes for vmId to set.
        Returns:
        This builder for chaining.
      • getDatacenterId

        public String getDatacenterId()
         The id of the vCenter's datacenter this VM is contained in.
         
        string datacenter_id = 2;
        Specified by:
        getDatacenterId in interface VmwareVmDetailsOrBuilder
        Returns:
        The datacenterId.
      • getDatacenterIdBytes

        public com.google.protobuf.ByteString getDatacenterIdBytes()
         The id of the vCenter's datacenter this VM is contained in.
         
        string datacenter_id = 2;
        Specified by:
        getDatacenterIdBytes in interface VmwareVmDetailsOrBuilder
        Returns:
        The bytes for datacenterId.
      • setDatacenterId

        public VmwareVmDetails.Builder setDatacenterId​(String value)
         The id of the vCenter's datacenter this VM is contained in.
         
        string datacenter_id = 2;
        Parameters:
        value - The datacenterId to set.
        Returns:
        This builder for chaining.
      • clearDatacenterId

        public VmwareVmDetails.Builder clearDatacenterId()
         The id of the vCenter's datacenter this VM is contained in.
         
        string datacenter_id = 2;
        Returns:
        This builder for chaining.
      • setDatacenterIdBytes

        public VmwareVmDetails.Builder setDatacenterIdBytes​(com.google.protobuf.ByteString value)
         The id of the vCenter's datacenter this VM is contained in.
         
        string datacenter_id = 2;
        Parameters:
        value - The bytes for datacenterId to set.
        Returns:
        This builder for chaining.
      • getDatacenterDescription

        public String getDatacenterDescription()
         The descriptive name of the vCenter's datacenter this VM is contained in.
         
        string datacenter_description = 3;
        Specified by:
        getDatacenterDescription in interface VmwareVmDetailsOrBuilder
        Returns:
        The datacenterDescription.
      • getDatacenterDescriptionBytes

        public com.google.protobuf.ByteString getDatacenterDescriptionBytes()
         The descriptive name of the vCenter's datacenter this VM is contained in.
         
        string datacenter_description = 3;
        Specified by:
        getDatacenterDescriptionBytes in interface VmwareVmDetailsOrBuilder
        Returns:
        The bytes for datacenterDescription.
      • setDatacenterDescription

        public VmwareVmDetails.Builder setDatacenterDescription​(String value)
         The descriptive name of the vCenter's datacenter this VM is contained in.
         
        string datacenter_description = 3;
        Parameters:
        value - The datacenterDescription to set.
        Returns:
        This builder for chaining.
      • clearDatacenterDescription

        public VmwareVmDetails.Builder clearDatacenterDescription()
         The descriptive name of the vCenter's datacenter this VM is contained in.
         
        string datacenter_description = 3;
        Returns:
        This builder for chaining.
      • setDatacenterDescriptionBytes

        public VmwareVmDetails.Builder setDatacenterDescriptionBytes​(com.google.protobuf.ByteString value)
         The descriptive name of the vCenter's datacenter this VM is contained in.
         
        string datacenter_description = 3;
        Parameters:
        value - The bytes for datacenterDescription to set.
        Returns:
        This builder for chaining.
      • getUuidBytes

        public com.google.protobuf.ByteString getUuidBytes()
         The unique identifier of the VM in vCenter.
         
        string uuid = 4;
        Specified by:
        getUuidBytes in interface VmwareVmDetailsOrBuilder
        Returns:
        The bytes for uuid.
      • setUuid

        public VmwareVmDetails.Builder setUuid​(String value)
         The unique identifier of the VM in vCenter.
         
        string uuid = 4;
        Parameters:
        value - The uuid to set.
        Returns:
        This builder for chaining.
      • clearUuid

        public VmwareVmDetails.Builder clearUuid()
         The unique identifier of the VM in vCenter.
         
        string uuid = 4;
        Returns:
        This builder for chaining.
      • setUuidBytes

        public VmwareVmDetails.Builder setUuidBytes​(com.google.protobuf.ByteString value)
         The unique identifier of the VM in vCenter.
         
        string uuid = 4;
        Parameters:
        value - The bytes for uuid to set.
        Returns:
        This builder for chaining.
      • getDisplayName

        public String getDisplayName()
         The display name of the VM. Note that this is not necessarily unique.
         
        string display_name = 5;
        Specified by:
        getDisplayName in interface VmwareVmDetailsOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         The display name of the VM. Note that this is not necessarily unique.
         
        string display_name = 5;
        Specified by:
        getDisplayNameBytes in interface VmwareVmDetailsOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public VmwareVmDetails.Builder setDisplayName​(String value)
         The display name of the VM. Note that this is not necessarily unique.
         
        string display_name = 5;
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public VmwareVmDetails.Builder clearDisplayName()
         The display name of the VM. Note that this is not necessarily unique.
         
        string display_name = 5;
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public VmwareVmDetails.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         The display name of the VM. Note that this is not necessarily unique.
         
        string display_name = 5;
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • getPowerStateValue

        public int getPowerStateValue()
         The power state of the VM at the moment list was taken.
         
        .google.cloud.vmmigration.v1.VmwareVmDetails.PowerState power_state = 6;
        Specified by:
        getPowerStateValue in interface VmwareVmDetailsOrBuilder
        Returns:
        The enum numeric value on the wire for powerState.
      • setPowerStateValue

        public VmwareVmDetails.Builder setPowerStateValue​(int value)
         The power state of the VM at the moment list was taken.
         
        .google.cloud.vmmigration.v1.VmwareVmDetails.PowerState power_state = 6;
        Parameters:
        value - The enum numeric value on the wire for powerState to set.
        Returns:
        This builder for chaining.
      • setPowerState

        public VmwareVmDetails.Builder setPowerState​(VmwareVmDetails.PowerState value)
         The power state of the VM at the moment list was taken.
         
        .google.cloud.vmmigration.v1.VmwareVmDetails.PowerState power_state = 6;
        Parameters:
        value - The powerState to set.
        Returns:
        This builder for chaining.
      • clearPowerState

        public VmwareVmDetails.Builder clearPowerState()
         The power state of the VM at the moment list was taken.
         
        .google.cloud.vmmigration.v1.VmwareVmDetails.PowerState power_state = 6;
        Returns:
        This builder for chaining.
      • getCpuCount

        public int getCpuCount()
         The number of cpus in the VM.
         
        int32 cpu_count = 7;
        Specified by:
        getCpuCount in interface VmwareVmDetailsOrBuilder
        Returns:
        The cpuCount.
      • setCpuCount

        public VmwareVmDetails.Builder setCpuCount​(int value)
         The number of cpus in the VM.
         
        int32 cpu_count = 7;
        Parameters:
        value - The cpuCount to set.
        Returns:
        This builder for chaining.
      • clearCpuCount

        public VmwareVmDetails.Builder clearCpuCount()
         The number of cpus in the VM.
         
        int32 cpu_count = 7;
        Returns:
        This builder for chaining.
      • getMemoryMb

        public int getMemoryMb()
         The size of the memory of the VM in MB.
         
        int32 memory_mb = 8;
        Specified by:
        getMemoryMb in interface VmwareVmDetailsOrBuilder
        Returns:
        The memoryMb.
      • setMemoryMb

        public VmwareVmDetails.Builder setMemoryMb​(int value)
         The size of the memory of the VM in MB.
         
        int32 memory_mb = 8;
        Parameters:
        value - The memoryMb to set.
        Returns:
        This builder for chaining.
      • clearMemoryMb

        public VmwareVmDetails.Builder clearMemoryMb()
         The size of the memory of the VM in MB.
         
        int32 memory_mb = 8;
        Returns:
        This builder for chaining.
      • getDiskCount

        public int getDiskCount()
         The number of disks the VM has.
         
        int32 disk_count = 9;
        Specified by:
        getDiskCount in interface VmwareVmDetailsOrBuilder
        Returns:
        The diskCount.
      • setDiskCount

        public VmwareVmDetails.Builder setDiskCount​(int value)
         The number of disks the VM has.
         
        int32 disk_count = 9;
        Parameters:
        value - The diskCount to set.
        Returns:
        This builder for chaining.
      • clearDiskCount

        public VmwareVmDetails.Builder clearDiskCount()
         The number of disks the VM has.
         
        int32 disk_count = 9;
        Returns:
        This builder for chaining.
      • getCommittedStorageMb

        public long getCommittedStorageMb()
         The total size of the storage allocated to the VM in MB.
         
        int64 committed_storage_mb = 12;
        Specified by:
        getCommittedStorageMb in interface VmwareVmDetailsOrBuilder
        Returns:
        The committedStorageMb.
      • setCommittedStorageMb

        public VmwareVmDetails.Builder setCommittedStorageMb​(long value)
         The total size of the storage allocated to the VM in MB.
         
        int64 committed_storage_mb = 12;
        Parameters:
        value - The committedStorageMb to set.
        Returns:
        This builder for chaining.
      • clearCommittedStorageMb

        public VmwareVmDetails.Builder clearCommittedStorageMb()
         The total size of the storage allocated to the VM in MB.
         
        int64 committed_storage_mb = 12;
        Returns:
        This builder for chaining.
      • getGuestDescription

        public String getGuestDescription()
         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.
         
        string guest_description = 11;
        Specified by:
        getGuestDescription in interface VmwareVmDetailsOrBuilder
        Returns:
        The guestDescription.
      • getGuestDescriptionBytes

        public com.google.protobuf.ByteString getGuestDescriptionBytes()
         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.
         
        string guest_description = 11;
        Specified by:
        getGuestDescriptionBytes in interface VmwareVmDetailsOrBuilder
        Returns:
        The bytes for guestDescription.
      • setGuestDescription

        public VmwareVmDetails.Builder setGuestDescription​(String value)
         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.
         
        string guest_description = 11;
        Parameters:
        value - The guestDescription to set.
        Returns:
        This builder for chaining.
      • clearGuestDescription

        public VmwareVmDetails.Builder clearGuestDescription()
         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.
         
        string guest_description = 11;
        Returns:
        This builder for chaining.
      • setGuestDescriptionBytes

        public VmwareVmDetails.Builder setGuestDescriptionBytes​(com.google.protobuf.ByteString value)
         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.
         
        string guest_description = 11;
        Parameters:
        value - The bytes for guestDescription to set.
        Returns:
        This builder for chaining.
      • getBootOptionValue

        public int getBootOptionValue()
         Output only. The VM Boot Option.
         
        .google.cloud.vmmigration.v1.VmwareVmDetails.BootOption boot_option = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getBootOptionValue in interface VmwareVmDetailsOrBuilder
        Returns:
        The enum numeric value on the wire for bootOption.
      • setBootOptionValue

        public VmwareVmDetails.Builder setBootOptionValue​(int value)
         Output only. The VM Boot Option.
         
        .google.cloud.vmmigration.v1.VmwareVmDetails.BootOption boot_option = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for bootOption to set.
        Returns:
        This builder for chaining.
      • setBootOption

        public VmwareVmDetails.Builder setBootOption​(VmwareVmDetails.BootOption value)
         Output only. The VM Boot Option.
         
        .google.cloud.vmmigration.v1.VmwareVmDetails.BootOption boot_option = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bootOption to set.
        Returns:
        This builder for chaining.
      • clearBootOption

        public VmwareVmDetails.Builder clearBootOption()
         Output only. The VM Boot Option.
         
        .google.cloud.vmmigration.v1.VmwareVmDetails.BootOption boot_option = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final VmwareVmDetails.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VmwareVmDetails.Builder>
      • mergeUnknownFields

        public final VmwareVmDetails.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VmwareVmDetails.Builder>