Class AllocationPolicy.InstancePolicy.Builder

    • 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<AllocationPolicy.InstancePolicy.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<AllocationPolicy.InstancePolicy.Builder>
      • getDefaultInstanceForType

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

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

        public AllocationPolicy.InstancePolicy 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<AllocationPolicy.InstancePolicy.Builder>
      • setMachineType

        public AllocationPolicy.InstancePolicy.Builder setMachineType​(String value)
         The Compute Engine machine type.
         
        string machine_type = 2;
        Parameters:
        value - The machineType to set.
        Returns:
        This builder for chaining.
      • setMachineTypeBytes

        public AllocationPolicy.InstancePolicy.Builder setMachineTypeBytes​(com.google.protobuf.ByteString value)
         The Compute Engine machine type.
         
        string machine_type = 2;
        Parameters:
        value - The bytes for machineType to set.
        Returns:
        This builder for chaining.
      • getMinCpuPlatformBytes

        public com.google.protobuf.ByteString getMinCpuPlatformBytes()
         The minimum CPU platform.
         See
         https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
         
        string min_cpu_platform = 3;
        Specified by:
        getMinCpuPlatformBytes in interface AllocationPolicy.InstancePolicyOrBuilder
        Returns:
        The bytes for minCpuPlatform.
      • setMinCpuPlatform

        public AllocationPolicy.InstancePolicy.Builder setMinCpuPlatform​(String value)
         The minimum CPU platform.
         See
         https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
         
        string min_cpu_platform = 3;
        Parameters:
        value - The minCpuPlatform to set.
        Returns:
        This builder for chaining.
      • clearMinCpuPlatform

        public AllocationPolicy.InstancePolicy.Builder clearMinCpuPlatform()
         The minimum CPU platform.
         See
         https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
         
        string min_cpu_platform = 3;
        Returns:
        This builder for chaining.
      • setMinCpuPlatformBytes

        public AllocationPolicy.InstancePolicy.Builder setMinCpuPlatformBytes​(com.google.protobuf.ByteString value)
         The minimum CPU platform.
         See
         https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
         
        string min_cpu_platform = 3;
        Parameters:
        value - The bytes for minCpuPlatform to set.
        Returns:
        This builder for chaining.
      • getProvisioningModelValue

        public int getProvisioningModelValue()
         The provisioning model.
         
        .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4;
        Specified by:
        getProvisioningModelValue in interface AllocationPolicy.InstancePolicyOrBuilder
        Returns:
        The enum numeric value on the wire for provisioningModel.
      • setProvisioningModelValue

        public AllocationPolicy.InstancePolicy.Builder setProvisioningModelValue​(int value)
         The provisioning model.
         
        .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4;
        Parameters:
        value - The enum numeric value on the wire for provisioningModel to set.
        Returns:
        This builder for chaining.
      • clearProvisioningModel

        public AllocationPolicy.InstancePolicy.Builder clearProvisioningModel()
         The provisioning model.
         
        .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4;
        Returns:
        This builder for chaining.
      • clearAccelerators

        public AllocationPolicy.InstancePolicy.Builder clearAccelerators()
         The accelerators attached to each VM instance.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;
      • removeAccelerators

        public AllocationPolicy.InstancePolicy.Builder removeAccelerators​(int index)
         The accelerators attached to each VM instance.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;
      • getAcceleratorsBuilder

        public AllocationPolicy.Accelerator.Builder getAcceleratorsBuilder​(int index)
         The accelerators attached to each VM instance.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;
      • addAcceleratorsBuilder

        public AllocationPolicy.Accelerator.Builder addAcceleratorsBuilder()
         The accelerators attached to each VM instance.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;
      • addAcceleratorsBuilder

        public AllocationPolicy.Accelerator.Builder addAcceleratorsBuilder​(int index)
         The accelerators attached to each VM instance.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;
      • getAcceleratorsBuilderList

        public List<AllocationPolicy.Accelerator.Builder> getAcceleratorsBuilderList()
         The accelerators attached to each VM instance.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;
      • hasBootDisk

        public boolean hasBootDisk()
         Boot disk to be created and attached to each VM by this InstancePolicy.
         Boot disk will be deleted when the VM is deleted.
         Batch API now only supports booting from image.
         
        .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 8;
        Specified by:
        hasBootDisk in interface AllocationPolicy.InstancePolicyOrBuilder
        Returns:
        Whether the bootDisk field is set.
      • getBootDisk

        public AllocationPolicy.Disk getBootDisk()
         Boot disk to be created and attached to each VM by this InstancePolicy.
         Boot disk will be deleted when the VM is deleted.
         Batch API now only supports booting from image.
         
        .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 8;
        Specified by:
        getBootDisk in interface AllocationPolicy.InstancePolicyOrBuilder
        Returns:
        The bootDisk.
      • setBootDisk

        public AllocationPolicy.InstancePolicy.Builder setBootDisk​(AllocationPolicy.Disk value)
         Boot disk to be created and attached to each VM by this InstancePolicy.
         Boot disk will be deleted when the VM is deleted.
         Batch API now only supports booting from image.
         
        .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 8;
      • setBootDisk

        public AllocationPolicy.InstancePolicy.Builder setBootDisk​(AllocationPolicy.Disk.Builder builderForValue)
         Boot disk to be created and attached to each VM by this InstancePolicy.
         Boot disk will be deleted when the VM is deleted.
         Batch API now only supports booting from image.
         
        .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 8;
      • mergeBootDisk

        public AllocationPolicy.InstancePolicy.Builder mergeBootDisk​(AllocationPolicy.Disk value)
         Boot disk to be created and attached to each VM by this InstancePolicy.
         Boot disk will be deleted when the VM is deleted.
         Batch API now only supports booting from image.
         
        .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 8;
      • clearBootDisk

        public AllocationPolicy.InstancePolicy.Builder clearBootDisk()
         Boot disk to be created and attached to each VM by this InstancePolicy.
         Boot disk will be deleted when the VM is deleted.
         Batch API now only supports booting from image.
         
        .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 8;
      • getBootDiskBuilder

        public AllocationPolicy.Disk.Builder getBootDiskBuilder()
         Boot disk to be created and attached to each VM by this InstancePolicy.
         Boot disk will be deleted when the VM is deleted.
         Batch API now only supports booting from image.
         
        .google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 8;
      • getDisksList

        public List<AllocationPolicy.AttachedDisk> getDisksList()
         Non-boot disks to be attached for each VM created by this InstancePolicy.
         New disks will be deleted when the VM is deleted.
         A non-boot disk is a disk that can be of a device with a
         file system or a raw storage drive that is not ready for data
         storage and accessing.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
        Specified by:
        getDisksList in interface AllocationPolicy.InstancePolicyOrBuilder
      • getDisksCount

        public int getDisksCount()
         Non-boot disks to be attached for each VM created by this InstancePolicy.
         New disks will be deleted when the VM is deleted.
         A non-boot disk is a disk that can be of a device with a
         file system or a raw storage drive that is not ready for data
         storage and accessing.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
        Specified by:
        getDisksCount in interface AllocationPolicy.InstancePolicyOrBuilder
      • getDisks

        public AllocationPolicy.AttachedDisk getDisks​(int index)
         Non-boot disks to be attached for each VM created by this InstancePolicy.
         New disks will be deleted when the VM is deleted.
         A non-boot disk is a disk that can be of a device with a
         file system or a raw storage drive that is not ready for data
         storage and accessing.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
        Specified by:
        getDisks in interface AllocationPolicy.InstancePolicyOrBuilder
      • setDisks

        public AllocationPolicy.InstancePolicy.Builder setDisks​(int index,
                                                                AllocationPolicy.AttachedDisk value)
         Non-boot disks to be attached for each VM created by this InstancePolicy.
         New disks will be deleted when the VM is deleted.
         A non-boot disk is a disk that can be of a device with a
         file system or a raw storage drive that is not ready for data
         storage and accessing.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
      • setDisks

        public AllocationPolicy.InstancePolicy.Builder setDisks​(int index,
                                                                AllocationPolicy.AttachedDisk.Builder builderForValue)
         Non-boot disks to be attached for each VM created by this InstancePolicy.
         New disks will be deleted when the VM is deleted.
         A non-boot disk is a disk that can be of a device with a
         file system or a raw storage drive that is not ready for data
         storage and accessing.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
      • addDisks

        public AllocationPolicy.InstancePolicy.Builder addDisks​(AllocationPolicy.AttachedDisk value)
         Non-boot disks to be attached for each VM created by this InstancePolicy.
         New disks will be deleted when the VM is deleted.
         A non-boot disk is a disk that can be of a device with a
         file system or a raw storage drive that is not ready for data
         storage and accessing.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
      • addDisks

        public AllocationPolicy.InstancePolicy.Builder addDisks​(int index,
                                                                AllocationPolicy.AttachedDisk value)
         Non-boot disks to be attached for each VM created by this InstancePolicy.
         New disks will be deleted when the VM is deleted.
         A non-boot disk is a disk that can be of a device with a
         file system or a raw storage drive that is not ready for data
         storage and accessing.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
      • addDisks

        public AllocationPolicy.InstancePolicy.Builder addDisks​(AllocationPolicy.AttachedDisk.Builder builderForValue)
         Non-boot disks to be attached for each VM created by this InstancePolicy.
         New disks will be deleted when the VM is deleted.
         A non-boot disk is a disk that can be of a device with a
         file system or a raw storage drive that is not ready for data
         storage and accessing.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
      • addDisks

        public AllocationPolicy.InstancePolicy.Builder addDisks​(int index,
                                                                AllocationPolicy.AttachedDisk.Builder builderForValue)
         Non-boot disks to be attached for each VM created by this InstancePolicy.
         New disks will be deleted when the VM is deleted.
         A non-boot disk is a disk that can be of a device with a
         file system or a raw storage drive that is not ready for data
         storage and accessing.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
      • addAllDisks

        public AllocationPolicy.InstancePolicy.Builder addAllDisks​(Iterable<? extends AllocationPolicy.AttachedDisk> values)
         Non-boot disks to be attached for each VM created by this InstancePolicy.
         New disks will be deleted when the VM is deleted.
         A non-boot disk is a disk that can be of a device with a
         file system or a raw storage drive that is not ready for data
         storage and accessing.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
      • clearDisks

        public AllocationPolicy.InstancePolicy.Builder clearDisks()
         Non-boot disks to be attached for each VM created by this InstancePolicy.
         New disks will be deleted when the VM is deleted.
         A non-boot disk is a disk that can be of a device with a
         file system or a raw storage drive that is not ready for data
         storage and accessing.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
      • removeDisks

        public AllocationPolicy.InstancePolicy.Builder removeDisks​(int index)
         Non-boot disks to be attached for each VM created by this InstancePolicy.
         New disks will be deleted when the VM is deleted.
         A non-boot disk is a disk that can be of a device with a
         file system or a raw storage drive that is not ready for data
         storage and accessing.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
      • getDisksBuilder

        public AllocationPolicy.AttachedDisk.Builder getDisksBuilder​(int index)
         Non-boot disks to be attached for each VM created by this InstancePolicy.
         New disks will be deleted when the VM is deleted.
         A non-boot disk is a disk that can be of a device with a
         file system or a raw storage drive that is not ready for data
         storage and accessing.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
      • getDisksOrBuilder

        public AllocationPolicy.AttachedDiskOrBuilder getDisksOrBuilder​(int index)
         Non-boot disks to be attached for each VM created by this InstancePolicy.
         New disks will be deleted when the VM is deleted.
         A non-boot disk is a disk that can be of a device with a
         file system or a raw storage drive that is not ready for data
         storage and accessing.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
        Specified by:
        getDisksOrBuilder in interface AllocationPolicy.InstancePolicyOrBuilder
      • getDisksOrBuilderList

        public List<? extends AllocationPolicy.AttachedDiskOrBuilder> getDisksOrBuilderList()
         Non-boot disks to be attached for each VM created by this InstancePolicy.
         New disks will be deleted when the VM is deleted.
         A non-boot disk is a disk that can be of a device with a
         file system or a raw storage drive that is not ready for data
         storage and accessing.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
        Specified by:
        getDisksOrBuilderList in interface AllocationPolicy.InstancePolicyOrBuilder
      • addDisksBuilder

        public AllocationPolicy.AttachedDisk.Builder addDisksBuilder()
         Non-boot disks to be attached for each VM created by this InstancePolicy.
         New disks will be deleted when the VM is deleted.
         A non-boot disk is a disk that can be of a device with a
         file system or a raw storage drive that is not ready for data
         storage and accessing.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
      • addDisksBuilder

        public AllocationPolicy.AttachedDisk.Builder addDisksBuilder​(int index)
         Non-boot disks to be attached for each VM created by this InstancePolicy.
         New disks will be deleted when the VM is deleted.
         A non-boot disk is a disk that can be of a device with a
         file system or a raw storage drive that is not ready for data
         storage and accessing.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
      • getDisksBuilderList

        public List<AllocationPolicy.AttachedDisk.Builder> getDisksBuilderList()
         Non-boot disks to be attached for each VM created by this InstancePolicy.
         New disks will be deleted when the VM is deleted.
         A non-boot disk is a disk that can be of a device with a
         file system or a raw storage drive that is not ready for data
         storage and accessing.
         
        repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;