Class AcceleratorConfig.Builder (2.9.0)

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

AcceleratorConfig represents a Hardware Accelerator request.

Protobuf type google.container.v1beta1.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

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.v1beta1.GPUSharingConfig gpu_sharing_config = 5;

Returns
TypeDescription
AcceleratorConfig.Builder

clearMaxTimeSharedClientsPerGpu() (deprecated)

public AcceleratorConfig.Builder clearMaxTimeSharedClientsPerGpu()

Deprecated. google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is deprecated. See google/container/v1beta1/cluster_service.proto;l=4167

The number of time-shared GPU resources to expose for each physical GPU.

int64 max_time_shared_clients_per_gpu = 4 [deprecated = true];

Returns
TypeDescription
AcceleratorConfig.Builder

This builder for chaining.

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

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.v1beta1.GPUSharingConfig gpu_sharing_config = 5;

Returns
TypeDescription
GPUSharingConfig

The gpuSharingConfig.

getGpuSharingConfigBuilder()

public GPUSharingConfig.Builder getGpuSharingConfigBuilder()

The configuration for GPU sharing options.

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

Returns
TypeDescription
GPUSharingConfig.Builder

getGpuSharingConfigOrBuilder()

public GPUSharingConfigOrBuilder getGpuSharingConfigOrBuilder()

The configuration for GPU sharing options.

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

Returns
TypeDescription
GPUSharingConfigOrBuilder

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=4167

The number of time-shared GPU resources to expose for each physical GPU.

int64 max_time_shared_clients_per_gpu = 4 [deprecated = true];

Returns
TypeDescription
long

The maxTimeSharedClientsPerGpu.

hasGpuSharingConfig()

public boolean hasGpuSharingConfig()

The configuration for GPU sharing options.

optional .google.container.v1beta1.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

mergeGpuSharingConfig(GPUSharingConfig value)

public AcceleratorConfig.Builder mergeGpuSharingConfig(GPUSharingConfig value)

The configuration for GPU sharing options.

optional .google.container.v1beta1.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

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.v1beta1.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.v1beta1.GPUSharingConfig gpu_sharing_config = 5;

Parameter
NameDescription
builderForValueGPUSharingConfig.Builder
Returns
TypeDescription
AcceleratorConfig.Builder

setMaxTimeSharedClientsPerGpu(long value) (deprecated)

public AcceleratorConfig.Builder setMaxTimeSharedClientsPerGpu(long value)

Deprecated. google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is deprecated. See google/container/v1beta1/cluster_service.proto;l=4167

The number of time-shared GPU resources to expose for each physical GPU.

int64 max_time_shared_clients_per_gpu = 4 [deprecated = true];

Parameter
NameDescription
valuelong

The maxTimeSharedClientsPerGpu to set.

Returns
TypeDescription
AcceleratorConfig.Builder

This builder for chaining.

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