Interface AllocationPolicy.AcceleratorOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
AllocationPolicy.Accelerator, AllocationPolicy.Accelerator.Builder
Enclosing class:
AllocationPolicy

public static interface AllocationPolicy.AcceleratorOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    The number of accelerators of this type.
    Optional.
    com.google.protobuf.ByteString
    Optional.
    boolean
    Deprecated.
    google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated.
    The accelerator type.
    com.google.protobuf.ByteString
    The accelerator type.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getType

      String getType()
       The accelerator type. For example, "nvidia-tesla-t4".
       See `gcloud compute accelerator-types list`.
       
      string type = 1;
      Returns:
      The type.
    • getTypeBytes

      com.google.protobuf.ByteString getTypeBytes()
       The accelerator type. For example, "nvidia-tesla-t4".
       See `gcloud compute accelerator-types list`.
       
      string type = 1;
      Returns:
      The bytes for type.
    • getCount

      long getCount()
       The number of accelerators of this type.
       
      int64 count = 2;
      Returns:
      The count.
    • getInstallGpuDrivers

      @Deprecated boolean getInstallGpuDrivers()
      Deprecated.
      google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated. See google/cloud/batch/v1alpha/job.proto;l=450
       Deprecated: please use instances[0].install_gpu_drivers instead.
       
      bool install_gpu_drivers = 3 [deprecated = true];
      Returns:
      The installGpuDrivers.
    • getDriverVersion

      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];
      Returns:
      The driverVersion.
    • getDriverVersionBytes

      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];
      Returns:
      The bytes for driverVersion.