Class AcceleratorConfig.Builder (2.45.0)

public static final class AcceleratorConfig.Builder extends GeneratedMessageV3.Builder<AcceleratorConfig.Builder> implements AcceleratorConfigOrBuilder

AcceleratorConfig represents a Hardware Accelerator request.

Protobuf type google.container.v1.AcceleratorConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AcceleratorConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AcceleratorConfig.Builder
Overrides

build()

public AcceleratorConfig build()
Returns
Type Description
AcceleratorConfig

buildPartial()

public AcceleratorConfig buildPartial()
Returns
Type Description
AcceleratorConfig

clear()

public AcceleratorConfig.Builder clear()
Returns
Type Description
AcceleratorConfig.Builder
Overrides

clearAcceleratorCount()

public AcceleratorConfig.Builder clearAcceleratorCount()

The number of the accelerator cards exposed to an instance.

int64 accelerator_count = 1;

Returns
Type Description
AcceleratorConfig.Builder

This builder for chaining.

clearAcceleratorType()

public AcceleratorConfig.Builder clearAcceleratorType()

The accelerator type resource name. List of supported accelerators here

string accelerator_type = 2;

Returns
Type Description
AcceleratorConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AcceleratorConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AcceleratorConfig.Builder
Overrides

clearGpuDriverInstallationConfig()

public AcceleratorConfig.Builder clearGpuDriverInstallationConfig()

The configuration for auto installation of GPU driver.

optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6;

Returns
Type Description
AcceleratorConfig.Builder

clearGpuPartitionSize()

public AcceleratorConfig.Builder clearGpuPartitionSize()

Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide.

string gpu_partition_size = 3;

Returns
Type Description
AcceleratorConfig.Builder

This builder for chaining.

clearGpuSharingConfig()

public AcceleratorConfig.Builder clearGpuSharingConfig()

The configuration for GPU sharing options.

optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;

Returns
Type Description
AcceleratorConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AcceleratorConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AcceleratorConfig.Builder
Overrides

clone()

public AcceleratorConfig.Builder clone()
Returns
Type Description
AcceleratorConfig.Builder
Overrides

getAcceleratorCount()

public long getAcceleratorCount()

The number of the accelerator cards exposed to an instance.

int64 accelerator_count = 1;

Returns
Type Description
long

The acceleratorCount.

getAcceleratorType()

public String getAcceleratorType()

The accelerator type resource name. List of supported accelerators here

string accelerator_type = 2;

Returns
Type Description
String

The acceleratorType.

getAcceleratorTypeBytes()

public ByteString getAcceleratorTypeBytes()

The accelerator type resource name. List of supported accelerators here

string accelerator_type = 2;

Returns
Type Description
ByteString

The bytes for acceleratorType.

getDefaultInstanceForType()

public AcceleratorConfig getDefaultInstanceForType()
Returns
Type Description
AcceleratorConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGpuDriverInstallationConfig()

public GPUDriverInstallationConfig getGpuDriverInstallationConfig()

The configuration for auto installation of GPU driver.

optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6;

Returns
Type Description
GPUDriverInstallationConfig

The gpuDriverInstallationConfig.

getGpuDriverInstallationConfigBuilder()

public GPUDriverInstallationConfig.Builder getGpuDriverInstallationConfigBuilder()

The configuration for auto installation of GPU driver.

optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6;

Returns
Type Description
GPUDriverInstallationConfig.Builder

getGpuDriverInstallationConfigOrBuilder()

public GPUDriverInstallationConfigOrBuilder getGpuDriverInstallationConfigOrBuilder()

The configuration for auto installation of GPU driver.

optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6;

Returns
Type Description
GPUDriverInstallationConfigOrBuilder

getGpuPartitionSize()

public String getGpuPartitionSize()

Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide.

string gpu_partition_size = 3;

Returns
Type Description
String

The gpuPartitionSize.

getGpuPartitionSizeBytes()

public ByteString getGpuPartitionSizeBytes()

Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide.

string gpu_partition_size = 3;

Returns
Type Description
ByteString

The bytes for gpuPartitionSize.

getGpuSharingConfig()

public GPUSharingConfig getGpuSharingConfig()

The configuration for GPU sharing options.

optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;

Returns
Type Description
GPUSharingConfig

The gpuSharingConfig.

getGpuSharingConfigBuilder()

public GPUSharingConfig.Builder getGpuSharingConfigBuilder()

The configuration for GPU sharing options.

optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;

Returns
Type Description
GPUSharingConfig.Builder

getGpuSharingConfigOrBuilder()

public GPUSharingConfigOrBuilder getGpuSharingConfigOrBuilder()

The configuration for GPU sharing options.

optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;

Returns
Type Description
GPUSharingConfigOrBuilder

hasGpuDriverInstallationConfig()

public boolean hasGpuDriverInstallationConfig()

The configuration for auto installation of GPU driver.

optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6;

Returns
Type Description
boolean

Whether the gpuDriverInstallationConfig field is set.

hasGpuSharingConfig()

public boolean hasGpuSharingConfig()

The configuration for GPU sharing options.

optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;

Returns
Type Description
boolean

Whether the gpuSharingConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AcceleratorConfig other)

public AcceleratorConfig.Builder mergeFrom(AcceleratorConfig other)
Parameter
Name Description
other AcceleratorConfig
Returns
Type Description
AcceleratorConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AcceleratorConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AcceleratorConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AcceleratorConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AcceleratorConfig.Builder
Overrides

mergeGpuDriverInstallationConfig(GPUDriverInstallationConfig value)

public AcceleratorConfig.Builder mergeGpuDriverInstallationConfig(GPUDriverInstallationConfig value)

The configuration for auto installation of GPU driver.

optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6;

Parameter
Name Description
value GPUDriverInstallationConfig
Returns
Type Description
AcceleratorConfig.Builder

mergeGpuSharingConfig(GPUSharingConfig value)

public AcceleratorConfig.Builder mergeGpuSharingConfig(GPUSharingConfig value)

The configuration for GPU sharing options.

optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;

Parameter
Name Description
value GPUSharingConfig
Returns
Type Description
AcceleratorConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AcceleratorConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AcceleratorConfig.Builder
Overrides

setAcceleratorCount(long value)

public AcceleratorConfig.Builder setAcceleratorCount(long value)

The number of the accelerator cards exposed to an instance.

int64 accelerator_count = 1;

Parameter
Name Description
value long

The acceleratorCount to set.

Returns
Type Description
AcceleratorConfig.Builder

This builder for chaining.

setAcceleratorType(String value)

public AcceleratorConfig.Builder setAcceleratorType(String value)

The accelerator type resource name. List of supported accelerators here

string accelerator_type = 2;

Parameter
Name Description
value String

The acceleratorType to set.

Returns
Type Description
AcceleratorConfig.Builder

This builder for chaining.

setAcceleratorTypeBytes(ByteString value)

public AcceleratorConfig.Builder setAcceleratorTypeBytes(ByteString value)

The accelerator type resource name. List of supported accelerators here

string accelerator_type = 2;

Parameter
Name Description
value ByteString

The bytes for acceleratorType to set.

Returns
Type Description
AcceleratorConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AcceleratorConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AcceleratorConfig.Builder
Overrides

setGpuDriverInstallationConfig(GPUDriverInstallationConfig value)

public AcceleratorConfig.Builder setGpuDriverInstallationConfig(GPUDriverInstallationConfig value)

The configuration for auto installation of GPU driver.

optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6;

Parameter
Name Description
value GPUDriverInstallationConfig
Returns
Type Description
AcceleratorConfig.Builder

setGpuDriverInstallationConfig(GPUDriverInstallationConfig.Builder builderForValue)

public AcceleratorConfig.Builder setGpuDriverInstallationConfig(GPUDriverInstallationConfig.Builder builderForValue)

The configuration for auto installation of GPU driver.

optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6;

Parameter
Name Description
builderForValue GPUDriverInstallationConfig.Builder
Returns
Type Description
AcceleratorConfig.Builder

setGpuPartitionSize(String value)

public AcceleratorConfig.Builder setGpuPartitionSize(String value)

Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide.

string gpu_partition_size = 3;

Parameter
Name Description
value String

The gpuPartitionSize to set.

Returns
Type Description
AcceleratorConfig.Builder

This builder for chaining.

setGpuPartitionSizeBytes(ByteString value)

public AcceleratorConfig.Builder setGpuPartitionSizeBytes(ByteString value)

Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide.

string gpu_partition_size = 3;

Parameter
Name Description
value ByteString

The bytes for gpuPartitionSize to set.

Returns
Type Description
AcceleratorConfig.Builder

This builder for chaining.

setGpuSharingConfig(GPUSharingConfig value)

public AcceleratorConfig.Builder setGpuSharingConfig(GPUSharingConfig value)

The configuration for GPU sharing options.

optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;

Parameter
Name Description
value GPUSharingConfig
Returns
Type Description
AcceleratorConfig.Builder

setGpuSharingConfig(GPUSharingConfig.Builder builderForValue)

public AcceleratorConfig.Builder setGpuSharingConfig(GPUSharingConfig.Builder builderForValue)

The configuration for GPU sharing options.

optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;

Parameter
Name Description
builderForValue GPUSharingConfig.Builder
Returns
Type Description
AcceleratorConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AcceleratorConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AcceleratorConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AcceleratorConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AcceleratorConfig.Builder
Overrides