Class AcceleratorConfig.Builder (2.39.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AcceleratorConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AcceleratorConfig.Builder
Overrides

build()

public AcceleratorConfig build()
Returns
TypeDescription
AcceleratorConfig

buildPartial()

public AcceleratorConfig buildPartial()
Returns
TypeDescription
AcceleratorConfig

clear()

public AcceleratorConfig.Builder clear()
Returns
TypeDescription
AcceleratorConfig.Builder
Overrides

clearAcceleratorCount()

public AcceleratorConfig.Builder clearAcceleratorCount()

The number of the accelerator cards exposed to an instance.

int64 accelerator_count = 1;

Returns
TypeDescription
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
TypeDescription
AcceleratorConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AcceleratorConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AcceleratorConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AcceleratorConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AcceleratorConfig.Builder
Overrides

clone()

public AcceleratorConfig.Builder clone()
Returns
TypeDescription
AcceleratorConfig.Builder
Overrides

getAcceleratorCount()

public long getAcceleratorCount()

The number of the accelerator cards exposed to an instance.

int64 accelerator_count = 1;

Returns
TypeDescription
long

The acceleratorCount.

getAcceleratorType()

public String getAcceleratorType()

The accelerator type resource name. List of supported accelerators here

string accelerator_type = 2;

Returns
TypeDescription
String

The acceleratorType.

getAcceleratorTypeBytes()

public ByteString getAcceleratorTypeBytes()

The accelerator type resource name. List of supported accelerators here

string accelerator_type = 2;

Returns
TypeDescription
ByteString

The bytes for acceleratorType.

getDefaultInstanceForType()

public AcceleratorConfig getDefaultInstanceForType()
Returns
TypeDescription
AcceleratorConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
GPUSharingConfig

The gpuSharingConfig.

getGpuSharingConfigBuilder()

public GPUSharingConfig.Builder getGpuSharingConfigBuilder()

The configuration for GPU sharing options.

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

Returns
TypeDescription
GPUSharingConfig.Builder

getGpuSharingConfigOrBuilder()

public GPUSharingConfigOrBuilder getGpuSharingConfigOrBuilder()

The configuration for GPU sharing options.

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

Returns
TypeDescription
GPUSharingConfigOrBuilder

hasGpuDriverInstallationConfig()

public boolean hasGpuDriverInstallationConfig()

The configuration for auto installation of GPU driver.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the gpuSharingConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AcceleratorConfig other)

public AcceleratorConfig.Builder mergeFrom(AcceleratorConfig other)
Parameter
NameDescription
otherAcceleratorConfig
Returns
TypeDescription
AcceleratorConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AcceleratorConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AcceleratorConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AcceleratorConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueGPUDriverInstallationConfig
Returns
TypeDescription
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
NameDescription
valueGPUSharingConfig
Returns
TypeDescription
AcceleratorConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AcceleratorConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuelong

The acceleratorCount to set.

Returns
TypeDescription
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
NameDescription
valueString

The acceleratorType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for acceleratorType to set.

Returns
TypeDescription
AcceleratorConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AcceleratorConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueGPUDriverInstallationConfig
Returns
TypeDescription
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
NameDescription
builderForValueGPUDriverInstallationConfig.Builder
Returns
TypeDescription
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
NameDescription
valueString

The gpuPartitionSize to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for gpuPartitionSize to set.

Returns
TypeDescription
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
NameDescription
valueGPUSharingConfig
Returns
TypeDescription
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
NameDescription
builderForValueGPUSharingConfig.Builder
Returns
TypeDescription
AcceleratorConfig.Builder

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

public AcceleratorConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AcceleratorConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AcceleratorConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AcceleratorConfig.Builder
Overrides