Class AcceleratorConfig

  • All Implemented Interfaces:
    AcceleratorConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class AcceleratorConfig
    extends com.google.protobuf.GeneratedMessageV3
    implements AcceleratorConfigOrBuilder
     AcceleratorConfig represents a Hardware Accelerator request.
     
    Protobuf type google.container.v1beta1.AcceleratorConfig
    See Also:
    Serialized Form
    • Field Detail

      • ACCELERATOR_COUNT_FIELD_NUMBER

        public static final int ACCELERATOR_COUNT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ACCELERATOR_TYPE_FIELD_NUMBER

        public static final int ACCELERATOR_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • GPU_PARTITION_SIZE_FIELD_NUMBER

        public static final int GPU_PARTITION_SIZE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MAX_TIME_SHARED_CLIENTS_PER_GPU_FIELD_NUMBER

        public static final int MAX_TIME_SHARED_CLIENTS_PER_GPU_FIELD_NUMBER
        See Also:
        Constant Field Values
      • GPU_SHARING_CONFIG_FIELD_NUMBER

        public static final int GPU_SHARING_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
      • GPU_DRIVER_INSTALLATION_CONFIG_FIELD_NUMBER

        public static final int GPU_DRIVER_INSTALLATION_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • getMaxTimeSharedClientsPerGpu

        @Deprecated
        public long getMaxTimeSharedClientsPerGpu()
        Deprecated.
        google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is deprecated. See google/container/v1beta1/cluster_service.proto;l=4516
         The number of time-shared GPU resources to expose for each physical GPU.
         
        int64 max_time_shared_clients_per_gpu = 4 [deprecated = true];
        Specified by:
        getMaxTimeSharedClientsPerGpu in interface AcceleratorConfigOrBuilder
        Returns:
        The maxTimeSharedClientsPerGpu.
      • hasGpuSharingConfig

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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​(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
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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