Class AcceleratorConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.container.v1.AcceleratorConfig
All Implemented Interfaces:
AcceleratorConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class AcceleratorConfig extends com.google.protobuf.GeneratedMessage implements AcceleratorConfigOrBuilder
 AcceleratorConfig represents a Hardware Accelerator request.
 
Protobuf type google.container.v1.AcceleratorConfig
See Also:
  • Field Details

    • ACCELERATOR_COUNT_FIELD_NUMBER

      public static final int ACCELERATOR_COUNT_FIELD_NUMBER
      See Also:
    • ACCELERATOR_TYPE_FIELD_NUMBER

      public static final int ACCELERATOR_TYPE_FIELD_NUMBER
      See Also:
    • GPU_PARTITION_SIZE_FIELD_NUMBER

      public static final int GPU_PARTITION_SIZE_FIELD_NUMBER
      See Also:
    • GPU_SHARING_CONFIG_FIELD_NUMBER

      public static final int GPU_SHARING_CONFIG_FIELD_NUMBER
      See Also:
    • GPU_DRIVER_INSTALLATION_CONFIG_FIELD_NUMBER

      public static final int GPU_DRIVER_INSTALLATION_CONFIG_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getAcceleratorCount

      public long getAcceleratorCount()
       The number of the accelerator cards exposed to an instance.
       
      int64 accelerator_count = 1;
      Specified by:
      getAcceleratorCount in interface AcceleratorConfigOrBuilder
      Returns:
      The acceleratorCount.
    • getAcceleratorType

      public String getAcceleratorType()
       The accelerator type resource name. List of supported accelerators
       [here](https://cloud.google.com/compute/docs/gpus)
       
      string accelerator_type = 2;
      Specified by:
      getAcceleratorType in interface AcceleratorConfigOrBuilder
      Returns:
      The acceleratorType.
    • getAcceleratorTypeBytes

      public com.google.protobuf.ByteString getAcceleratorTypeBytes()
       The accelerator type resource name. List of supported accelerators
       [here](https://cloud.google.com/compute/docs/gpus)
       
      string accelerator_type = 2;
      Specified by:
      getAcceleratorTypeBytes in interface AcceleratorConfigOrBuilder
      Returns:
      The bytes for acceleratorType.
    • getGpuPartitionSize

      public String getGpuPartitionSize()
       Size of partitions to create on the GPU. Valid values are described in the
       NVIDIA [mig user
       guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
       
      string gpu_partition_size = 3;
      Specified by:
      getGpuPartitionSize in interface AcceleratorConfigOrBuilder
      Returns:
      The gpuPartitionSize.
    • getGpuPartitionSizeBytes

      public com.google.protobuf.ByteString getGpuPartitionSizeBytes()
       Size of partitions to create on the GPU. Valid values are described in the
       NVIDIA [mig user
       guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning).
       
      string gpu_partition_size = 3;
      Specified by:
      getGpuPartitionSizeBytes in interface AcceleratorConfigOrBuilder
      Returns:
      The bytes for gpuPartitionSize.
    • hasGpuSharingConfig

      public boolean hasGpuSharingConfig()
       The configuration for GPU sharing options.
       
      optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;
      Specified by:
      hasGpuSharingConfig in interface AcceleratorConfigOrBuilder
      Returns:
      Whether the gpuSharingConfig field is set.
    • getGpuSharingConfig

      public GPUSharingConfig getGpuSharingConfig()
       The configuration for GPU sharing options.
       
      optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;
      Specified by:
      getGpuSharingConfig in interface AcceleratorConfigOrBuilder
      Returns:
      The gpuSharingConfig.
    • getGpuSharingConfigOrBuilder

      public GPUSharingConfigOrBuilder getGpuSharingConfigOrBuilder()
       The configuration for GPU sharing options.
       
      optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;
      Specified by:
      getGpuSharingConfigOrBuilder in interface AcceleratorConfigOrBuilder
    • hasGpuDriverInstallationConfig

      public boolean hasGpuDriverInstallationConfig()
       The configuration for auto installation of GPU driver.
       
      optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6;
      Specified by:
      hasGpuDriverInstallationConfig in interface AcceleratorConfigOrBuilder
      Returns:
      Whether the gpuDriverInstallationConfig field is set.
    • getGpuDriverInstallationConfig

      public GPUDriverInstallationConfig getGpuDriverInstallationConfig()
       The configuration for auto installation of GPU driver.
       
      optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6;
      Specified by:
      getGpuDriverInstallationConfig in interface AcceleratorConfigOrBuilder
      Returns:
      The gpuDriverInstallationConfig.
    • getGpuDriverInstallationConfigOrBuilder

      public GPUDriverInstallationConfigOrBuilder getGpuDriverInstallationConfigOrBuilder()
       The configuration for auto installation of GPU driver.
       
      optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6;
      Specified by:
      getGpuDriverInstallationConfigOrBuilder in interface AcceleratorConfigOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AcceleratorConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AcceleratorConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AcceleratorConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AcceleratorConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AcceleratorConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AcceleratorConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AcceleratorConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AcceleratorConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AcceleratorConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AcceleratorConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AcceleratorConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AcceleratorConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public AcceleratorConfig.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static AcceleratorConfig.Builder newBuilder()
    • newBuilder

      public static AcceleratorConfig.Builder newBuilder(AcceleratorConfig prototype)
    • toBuilder

      public AcceleratorConfig.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AcceleratorConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AcceleratorConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AcceleratorConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<AcceleratorConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public AcceleratorConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder