Class ComputeEngineTargetDetails.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDetails.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDetails.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDetails.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<ComputeEngineTargetDetails.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public ComputeEngineTargetDetails.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<ComputeEngineTargetDetails.Builder>
        Throws:
        IOException
      • setVmName

        public ComputeEngineTargetDetails.Builder setVmName​(String value)
         The name of the VM to create.
         
        string vm_name = 1;
        Parameters:
        value - The vmName to set.
        Returns:
        This builder for chaining.
      • setVmNameBytes

        public ComputeEngineTargetDetails.Builder setVmNameBytes​(com.google.protobuf.ByteString value)
         The name of the VM to create.
         
        string vm_name = 1;
        Parameters:
        value - The bytes for vmName to set.
        Returns:
        This builder for chaining.
      • getProjectBytes

        public com.google.protobuf.ByteString getProjectBytes()
         The Google Cloud target project ID or project name.
         
        string project = 2;
        Specified by:
        getProjectBytes in interface ComputeEngineTargetDetailsOrBuilder
        Returns:
        The bytes for project.
      • setProject

        public ComputeEngineTargetDetails.Builder setProject​(String value)
         The Google Cloud target project ID or project name.
         
        string project = 2;
        Parameters:
        value - The project to set.
        Returns:
        This builder for chaining.
      • clearProject

        public ComputeEngineTargetDetails.Builder clearProject()
         The Google Cloud target project ID or project name.
         
        string project = 2;
        Returns:
        This builder for chaining.
      • setProjectBytes

        public ComputeEngineTargetDetails.Builder setProjectBytes​(com.google.protobuf.ByteString value)
         The Google Cloud target project ID or project name.
         
        string project = 2;
        Parameters:
        value - The bytes for project to set.
        Returns:
        This builder for chaining.
      • setZone

        public ComputeEngineTargetDetails.Builder setZone​(String value)
         The zone in which to create the VM.
         
        string zone = 3;
        Parameters:
        value - The zone to set.
        Returns:
        This builder for chaining.
      • setZoneBytes

        public ComputeEngineTargetDetails.Builder setZoneBytes​(com.google.protobuf.ByteString value)
         The zone in which to create the VM.
         
        string zone = 3;
        Parameters:
        value - The bytes for zone to set.
        Returns:
        This builder for chaining.
      • getMachineTypeSeriesBytes

        public com.google.protobuf.ByteString getMachineTypeSeriesBytes()
         The machine type series to create the VM with.
         
        string machine_type_series = 4;
        Specified by:
        getMachineTypeSeriesBytes in interface ComputeEngineTargetDetailsOrBuilder
        Returns:
        The bytes for machineTypeSeries.
      • setMachineTypeSeries

        public ComputeEngineTargetDetails.Builder setMachineTypeSeries​(String value)
         The machine type series to create the VM with.
         
        string machine_type_series = 4;
        Parameters:
        value - The machineTypeSeries to set.
        Returns:
        This builder for chaining.
      • clearMachineTypeSeries

        public ComputeEngineTargetDetails.Builder clearMachineTypeSeries()
         The machine type series to create the VM with.
         
        string machine_type_series = 4;
        Returns:
        This builder for chaining.
      • setMachineTypeSeriesBytes

        public ComputeEngineTargetDetails.Builder setMachineTypeSeriesBytes​(com.google.protobuf.ByteString value)
         The machine type series to create the VM with.
         
        string machine_type_series = 4;
        Parameters:
        value - The bytes for machineTypeSeries to set.
        Returns:
        This builder for chaining.
      • setMachineType

        public ComputeEngineTargetDetails.Builder setMachineType​(String value)
         The machine type to create the VM with.
         
        string machine_type = 5;
        Parameters:
        value - The machineType to set.
        Returns:
        This builder for chaining.
      • clearMachineType

        public ComputeEngineTargetDetails.Builder clearMachineType()
         The machine type to create the VM with.
         
        string machine_type = 5;
        Returns:
        This builder for chaining.
      • setMachineTypeBytes

        public ComputeEngineTargetDetails.Builder setMachineTypeBytes​(com.google.protobuf.ByteString value)
         The machine type to create the VM with.
         
        string machine_type = 5;
        Parameters:
        value - The bytes for machineType to set.
        Returns:
        This builder for chaining.
      • getNetworkTagsList

        public com.google.protobuf.ProtocolStringList getNetworkTagsList()
         A map of network tags to associate with the VM.
         
        repeated string network_tags = 6;
        Specified by:
        getNetworkTagsList in interface ComputeEngineTargetDetailsOrBuilder
        Returns:
        A list containing the networkTags.
      • getNetworkTags

        public String getNetworkTags​(int index)
         A map of network tags to associate with the VM.
         
        repeated string network_tags = 6;
        Specified by:
        getNetworkTags in interface ComputeEngineTargetDetailsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The networkTags at the given index.
      • getNetworkTagsBytes

        public com.google.protobuf.ByteString getNetworkTagsBytes​(int index)
         A map of network tags to associate with the VM.
         
        repeated string network_tags = 6;
        Specified by:
        getNetworkTagsBytes in interface ComputeEngineTargetDetailsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the networkTags at the given index.
      • setNetworkTags

        public ComputeEngineTargetDetails.Builder setNetworkTags​(int index,
                                                                 String value)
         A map of network tags to associate with the VM.
         
        repeated string network_tags = 6;
        Parameters:
        index - The index to set the value at.
        value - The networkTags to set.
        Returns:
        This builder for chaining.
      • addNetworkTags

        public ComputeEngineTargetDetails.Builder addNetworkTags​(String value)
         A map of network tags to associate with the VM.
         
        repeated string network_tags = 6;
        Parameters:
        value - The networkTags to add.
        Returns:
        This builder for chaining.
      • addAllNetworkTags

        public ComputeEngineTargetDetails.Builder addAllNetworkTags​(Iterable<String> values)
         A map of network tags to associate with the VM.
         
        repeated string network_tags = 6;
        Parameters:
        values - The networkTags to add.
        Returns:
        This builder for chaining.
      • clearNetworkTags

        public ComputeEngineTargetDetails.Builder clearNetworkTags()
         A map of network tags to associate with the VM.
         
        repeated string network_tags = 6;
        Returns:
        This builder for chaining.
      • addNetworkTagsBytes

        public ComputeEngineTargetDetails.Builder addNetworkTagsBytes​(com.google.protobuf.ByteString value)
         A map of network tags to associate with the VM.
         
        repeated string network_tags = 6;
        Parameters:
        value - The bytes of the networkTags to add.
        Returns:
        This builder for chaining.
      • clearNetworkInterfaces

        public ComputeEngineTargetDetails.Builder clearNetworkInterfaces()
         List of NICs connected to this VM.
         
        repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
      • removeNetworkInterfaces

        public ComputeEngineTargetDetails.Builder removeNetworkInterfaces​(int index)
         List of NICs connected to this VM.
         
        repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
      • getNetworkInterfacesBuilder

        public NetworkInterface.Builder getNetworkInterfacesBuilder​(int index)
         List of NICs connected to this VM.
         
        repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
      • addNetworkInterfacesBuilder

        public NetworkInterface.Builder addNetworkInterfacesBuilder()
         List of NICs connected to this VM.
         
        repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
      • addNetworkInterfacesBuilder

        public NetworkInterface.Builder addNetworkInterfacesBuilder​(int index)
         List of NICs connected to this VM.
         
        repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
      • getNetworkInterfacesBuilderList

        public List<NetworkInterface.Builder> getNetworkInterfacesBuilderList()
         List of NICs connected to this VM.
         
        repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
      • getServiceAccountBytes

        public com.google.protobuf.ByteString getServiceAccountBytes()
         The service account to associate the VM with.
         
        string service_account = 8;
        Specified by:
        getServiceAccountBytes in interface ComputeEngineTargetDetailsOrBuilder
        Returns:
        The bytes for serviceAccount.
      • setServiceAccount

        public ComputeEngineTargetDetails.Builder setServiceAccount​(String value)
         The service account to associate the VM with.
         
        string service_account = 8;
        Parameters:
        value - The serviceAccount to set.
        Returns:
        This builder for chaining.
      • clearServiceAccount

        public ComputeEngineTargetDetails.Builder clearServiceAccount()
         The service account to associate the VM with.
         
        string service_account = 8;
        Returns:
        This builder for chaining.
      • setServiceAccountBytes

        public ComputeEngineTargetDetails.Builder setServiceAccountBytes​(com.google.protobuf.ByteString value)
         The service account to associate the VM with.
         
        string service_account = 8;
        Parameters:
        value - The bytes for serviceAccount to set.
        Returns:
        This builder for chaining.
      • getDiskTypeValue

        public int getDiskTypeValue()
         The disk type to use in the VM.
         
        .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 9;
        Specified by:
        getDiskTypeValue in interface ComputeEngineTargetDetailsOrBuilder
        Returns:
        The enum numeric value on the wire for diskType.
      • setDiskTypeValue

        public ComputeEngineTargetDetails.Builder setDiskTypeValue​(int value)
         The disk type to use in the VM.
         
        .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 9;
        Parameters:
        value - The enum numeric value on the wire for diskType to set.
        Returns:
        This builder for chaining.
      • setDiskType

        public ComputeEngineTargetDetails.Builder setDiskType​(ComputeEngineDiskType value)
         The disk type to use in the VM.
         
        .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 9;
        Parameters:
        value - The diskType to set.
        Returns:
        This builder for chaining.
      • clearDiskType

        public ComputeEngineTargetDetails.Builder clearDiskType()
         The disk type to use in the VM.
         
        .google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 9;
        Returns:
        This builder for chaining.
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • getLicenseTypeValue

        public int getLicenseTypeValue()
         The license type to use in OS adaptation.
         
        .google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 11;
        Specified by:
        getLicenseTypeValue in interface ComputeEngineTargetDetailsOrBuilder
        Returns:
        The enum numeric value on the wire for licenseType.
      • setLicenseTypeValue

        public ComputeEngineTargetDetails.Builder setLicenseTypeValue​(int value)
         The license type to use in OS adaptation.
         
        .google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 11;
        Parameters:
        value - The enum numeric value on the wire for licenseType to set.
        Returns:
        This builder for chaining.
      • setLicenseType

        public ComputeEngineTargetDetails.Builder setLicenseType​(ComputeEngineLicenseType value)
         The license type to use in OS adaptation.
         
        .google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 11;
        Parameters:
        value - The licenseType to set.
        Returns:
        This builder for chaining.
      • clearLicenseType

        public ComputeEngineTargetDetails.Builder clearLicenseType()
         The license type to use in OS adaptation.
         
        .google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 11;
        Returns:
        This builder for chaining.
      • hasAppliedLicense

        public boolean hasAppliedLicense()
         The OS license returned from the adaptation module report.
         
        .google.cloud.vmmigration.v1.AppliedLicense applied_license = 12;
        Specified by:
        hasAppliedLicense in interface ComputeEngineTargetDetailsOrBuilder
        Returns:
        Whether the appliedLicense field is set.
      • clearAppliedLicense

        public ComputeEngineTargetDetails.Builder clearAppliedLicense()
         The OS license returned from the adaptation module report.
         
        .google.cloud.vmmigration.v1.AppliedLicense applied_license = 12;
      • getAppliedLicenseBuilder

        public AppliedLicense.Builder getAppliedLicenseBuilder()
         The OS license returned from the adaptation module report.
         
        .google.cloud.vmmigration.v1.AppliedLicense applied_license = 12;
      • hasComputeScheduling

        public boolean hasComputeScheduling()
         Compute instance scheduling information (if empty default is used).
         
        .google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;
        Specified by:
        hasComputeScheduling in interface ComputeEngineTargetDetailsOrBuilder
        Returns:
        Whether the computeScheduling field is set.
      • setComputeScheduling

        public ComputeEngineTargetDetails.Builder setComputeScheduling​(ComputeScheduling value)
         Compute instance scheduling information (if empty default is used).
         
        .google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;
      • mergeComputeScheduling

        public ComputeEngineTargetDetails.Builder mergeComputeScheduling​(ComputeScheduling value)
         Compute instance scheduling information (if empty default is used).
         
        .google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;
      • clearComputeScheduling

        public ComputeEngineTargetDetails.Builder clearComputeScheduling()
         Compute instance scheduling information (if empty default is used).
         
        .google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;
      • getComputeSchedulingBuilder

        public ComputeScheduling.Builder getComputeSchedulingBuilder()
         Compute instance scheduling information (if empty default is used).
         
        .google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;
      • getSecureBoot

        public boolean getSecureBoot()
         Defines whether the instance has Secure Boot enabled.
         This can be set to true only if the vm boot option is EFI.
         
        bool secure_boot = 14;
        Specified by:
        getSecureBoot in interface ComputeEngineTargetDetailsOrBuilder
        Returns:
        The secureBoot.
      • setSecureBoot

        public ComputeEngineTargetDetails.Builder setSecureBoot​(boolean value)
         Defines whether the instance has Secure Boot enabled.
         This can be set to true only if the vm boot option is EFI.
         
        bool secure_boot = 14;
        Parameters:
        value - The secureBoot to set.
        Returns:
        This builder for chaining.
      • clearSecureBoot

        public ComputeEngineTargetDetails.Builder clearSecureBoot()
         Defines whether the instance has Secure Boot enabled.
         This can be set to true only if the vm boot option is EFI.
         
        bool secure_boot = 14;
        Returns:
        This builder for chaining.
      • getBootOptionValue

        public int getBootOptionValue()
         The VM Boot Option, as set in the source vm.
         
        .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15;
        Specified by:
        getBootOptionValue in interface ComputeEngineTargetDetailsOrBuilder
        Returns:
        The enum numeric value on the wire for bootOption.
      • setBootOptionValue

        public ComputeEngineTargetDetails.Builder setBootOptionValue​(int value)
         The VM Boot Option, as set in the source vm.
         
        .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15;
        Parameters:
        value - The enum numeric value on the wire for bootOption to set.
        Returns:
        This builder for chaining.
      • setBootOption

        public ComputeEngineTargetDetails.Builder setBootOption​(ComputeEngineBootOption value)
         The VM Boot Option, as set in the source vm.
         
        .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15;
        Parameters:
        value - The bootOption to set.
        Returns:
        This builder for chaining.
      • clearBootOption

        public ComputeEngineTargetDetails.Builder clearBootOption()
         The VM Boot Option, as set in the source vm.
         
        .google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15;
        Returns:
        This builder for chaining.
      • getMutableMetadata

        @Deprecated
        public Map<String,​String> getMutableMetadata()
        Deprecated.
        Use alternate mutation accessors instead.
      • getAdditionalLicensesList

        public com.google.protobuf.ProtocolStringList getAdditionalLicensesList()
         Additional licenses to assign to the VM.
         
        repeated string additional_licenses = 17;
        Specified by:
        getAdditionalLicensesList in interface ComputeEngineTargetDetailsOrBuilder
        Returns:
        A list containing the additionalLicenses.
      • getAdditionalLicenses

        public String getAdditionalLicenses​(int index)
         Additional licenses to assign to the VM.
         
        repeated string additional_licenses = 17;
        Specified by:
        getAdditionalLicenses in interface ComputeEngineTargetDetailsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The additionalLicenses at the given index.
      • getAdditionalLicensesBytes

        public com.google.protobuf.ByteString getAdditionalLicensesBytes​(int index)
         Additional licenses to assign to the VM.
         
        repeated string additional_licenses = 17;
        Specified by:
        getAdditionalLicensesBytes in interface ComputeEngineTargetDetailsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the additionalLicenses at the given index.
      • setAdditionalLicenses

        public ComputeEngineTargetDetails.Builder setAdditionalLicenses​(int index,
                                                                        String value)
         Additional licenses to assign to the VM.
         
        repeated string additional_licenses = 17;
        Parameters:
        index - The index to set the value at.
        value - The additionalLicenses to set.
        Returns:
        This builder for chaining.
      • addAdditionalLicenses

        public ComputeEngineTargetDetails.Builder addAdditionalLicenses​(String value)
         Additional licenses to assign to the VM.
         
        repeated string additional_licenses = 17;
        Parameters:
        value - The additionalLicenses to add.
        Returns:
        This builder for chaining.
      • addAllAdditionalLicenses

        public ComputeEngineTargetDetails.Builder addAllAdditionalLicenses​(Iterable<String> values)
         Additional licenses to assign to the VM.
         
        repeated string additional_licenses = 17;
        Parameters:
        values - The additionalLicenses to add.
        Returns:
        This builder for chaining.
      • clearAdditionalLicenses

        public ComputeEngineTargetDetails.Builder clearAdditionalLicenses()
         Additional licenses to assign to the VM.
         
        repeated string additional_licenses = 17;
        Returns:
        This builder for chaining.
      • addAdditionalLicensesBytes

        public ComputeEngineTargetDetails.Builder addAdditionalLicensesBytes​(com.google.protobuf.ByteString value)
         Additional licenses to assign to the VM.
         
        repeated string additional_licenses = 17;
        Parameters:
        value - The bytes of the additionalLicenses to add.
        Returns:
        This builder for chaining.
      • setHostname

        public ComputeEngineTargetDetails.Builder setHostname​(String value)
         The hostname to assign to the VM.
         
        string hostname = 18;
        Parameters:
        value - The hostname to set.
        Returns:
        This builder for chaining.
      • setHostnameBytes

        public ComputeEngineTargetDetails.Builder setHostnameBytes​(com.google.protobuf.ByteString value)
         The hostname to assign to the VM.
         
        string hostname = 18;
        Parameters:
        value - The bytes for hostname to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ComputeEngineTargetDetails.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<ComputeEngineTargetDetails.Builder>
      • mergeUnknownFields

        public final ComputeEngineTargetDetails.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<ComputeEngineTargetDetails.Builder>