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

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

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

        public AllocationPolicy.Accelerator 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.Accelerator.Builder>
      • mergeFrom

        public AllocationPolicy.Accelerator.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<AllocationPolicy.Accelerator.Builder>
        Throws:
        IOException
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
         The accelerator type. For example, "nvidia-tesla-t4".
         See `gcloud compute accelerator-types list`.
         
        string type = 1;
        Specified by:
        getTypeBytes in interface AllocationPolicy.AcceleratorOrBuilder
        Returns:
        The bytes for type.
      • setType

        public AllocationPolicy.Accelerator.Builder setType​(String value)
         The accelerator type. For example, "nvidia-tesla-t4".
         See `gcloud compute accelerator-types list`.
         
        string type = 1;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public AllocationPolicy.Accelerator.Builder clearType()
         The accelerator type. For example, "nvidia-tesla-t4".
         See `gcloud compute accelerator-types list`.
         
        string type = 1;
        Returns:
        This builder for chaining.
      • setTypeBytes

        public AllocationPolicy.Accelerator.Builder setTypeBytes​(com.google.protobuf.ByteString value)
         The accelerator type. For example, "nvidia-tesla-t4".
         See `gcloud compute accelerator-types list`.
         
        string type = 1;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • setCount

        public AllocationPolicy.Accelerator.Builder setCount​(long value)
         The number of accelerators of this type.
         
        int64 count = 2;
        Parameters:
        value - The count to set.
        Returns:
        This builder for chaining.
      • getInstallGpuDrivers

        @Deprecated
        public boolean getInstallGpuDrivers()
        Deprecated.
        google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated. See google/cloud/batch/v1/job.proto;l=337
         Deprecated: please use instances[0].install_gpu_drivers instead.
         
        bool install_gpu_drivers = 3 [deprecated = true];
        Specified by:
        getInstallGpuDrivers in interface AllocationPolicy.AcceleratorOrBuilder
        Returns:
        The installGpuDrivers.
      • setInstallGpuDrivers

        @Deprecated
        public AllocationPolicy.Accelerator.Builder setInstallGpuDrivers​(boolean value)
        Deprecated.
        google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated. See google/cloud/batch/v1/job.proto;l=337
         Deprecated: please use instances[0].install_gpu_drivers instead.
         
        bool install_gpu_drivers = 3 [deprecated = true];
        Parameters:
        value - The installGpuDrivers to set.
        Returns:
        This builder for chaining.
      • clearInstallGpuDrivers

        @Deprecated
        public AllocationPolicy.Accelerator.Builder clearInstallGpuDrivers()
        Deprecated.
        google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated. See google/cloud/batch/v1/job.proto;l=337
         Deprecated: please use instances[0].install_gpu_drivers instead.
         
        bool install_gpu_drivers = 3 [deprecated = true];
        Returns:
        This builder for chaining.
      • getDriverVersion

        public String getDriverVersion()
         Optional. The NVIDIA GPU driver version that should be installed for this
         type.
        
         You can define the specific driver version such as "470.103.01",
         following the driver version requirements in
         https://cloud.google.com/compute/docs/gpus/install-drivers-gpu#minimum-driver.
         Batch will install the specific accelerator driver if qualified.
         
        string driver_version = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDriverVersion in interface AllocationPolicy.AcceleratorOrBuilder
        Returns:
        The driverVersion.
      • getDriverVersionBytes

        public com.google.protobuf.ByteString getDriverVersionBytes()
         Optional. The NVIDIA GPU driver version that should be installed for this
         type.
        
         You can define the specific driver version such as "470.103.01",
         following the driver version requirements in
         https://cloud.google.com/compute/docs/gpus/install-drivers-gpu#minimum-driver.
         Batch will install the specific accelerator driver if qualified.
         
        string driver_version = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDriverVersionBytes in interface AllocationPolicy.AcceleratorOrBuilder
        Returns:
        The bytes for driverVersion.
      • setDriverVersion

        public AllocationPolicy.Accelerator.Builder setDriverVersion​(String value)
         Optional. The NVIDIA GPU driver version that should be installed for this
         type.
        
         You can define the specific driver version such as "470.103.01",
         following the driver version requirements in
         https://cloud.google.com/compute/docs/gpus/install-drivers-gpu#minimum-driver.
         Batch will install the specific accelerator driver if qualified.
         
        string driver_version = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The driverVersion to set.
        Returns:
        This builder for chaining.
      • clearDriverVersion

        public AllocationPolicy.Accelerator.Builder clearDriverVersion()
         Optional. The NVIDIA GPU driver version that should be installed for this
         type.
        
         You can define the specific driver version such as "470.103.01",
         following the driver version requirements in
         https://cloud.google.com/compute/docs/gpus/install-drivers-gpu#minimum-driver.
         Batch will install the specific accelerator driver if qualified.
         
        string driver_version = 4 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setDriverVersionBytes

        public AllocationPolicy.Accelerator.Builder setDriverVersionBytes​(com.google.protobuf.ByteString value)
         Optional. The NVIDIA GPU driver version that should be installed for this
         type.
        
         You can define the specific driver version such as "470.103.01",
         following the driver version requirements in
         https://cloud.google.com/compute/docs/gpus/install-drivers-gpu#minimum-driver.
         Batch will install the specific accelerator driver if qualified.
         
        string driver_version = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for driverVersion to set.
        Returns:
        This builder for chaining.