Class AcceleratorConfig.Builder (2.4.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.

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.

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

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.

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