Class GPUSharingConfig.Builder (2.33.0)

public static final class GPUSharingConfig.Builder extends GeneratedMessageV3.Builder<GPUSharingConfig.Builder> implements GPUSharingConfigOrBuilder

GPUSharingConfig represents the GPU sharing configuration for Hardware Accelerators.

Protobuf type google.container.v1beta1.GPUSharingConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GPUSharingConfig build()
Returns
TypeDescription
GPUSharingConfig

buildPartial()

public GPUSharingConfig buildPartial()
Returns
TypeDescription
GPUSharingConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

public GPUSharingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GPUSharingConfig.Builder
Overrides

clearGpuSharingStrategy()

public GPUSharingConfig.Builder clearGpuSharingStrategy()

The type of GPU sharing strategy to enable on the GPU node.

optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2;

Returns
TypeDescription
GPUSharingConfig.Builder

This builder for chaining.

clearMaxSharedClientsPerGpu()

public GPUSharingConfig.Builder clearMaxSharedClientsPerGpu()

The max number of containers that can share a physical GPU.

int64 max_shared_clients_per_gpu = 1;

Returns
TypeDescription
GPUSharingConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GPUSharingConfig getDefaultInstanceForType()
Returns
TypeDescription
GPUSharingConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGpuSharingStrategy()

public GPUSharingConfig.GPUSharingStrategy getGpuSharingStrategy()

The type of GPU sharing strategy to enable on the GPU node.

optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2;

Returns
TypeDescription
GPUSharingConfig.GPUSharingStrategy

The gpuSharingStrategy.

getGpuSharingStrategyValue()

public int getGpuSharingStrategyValue()

The type of GPU sharing strategy to enable on the GPU node.

optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for gpuSharingStrategy.

getMaxSharedClientsPerGpu()

public long getMaxSharedClientsPerGpu()

The max number of containers that can share a physical GPU.

int64 max_shared_clients_per_gpu = 1;

Returns
TypeDescription
long

The maxSharedClientsPerGpu.

hasGpuSharingStrategy()

public boolean hasGpuSharingStrategy()

The type of GPU sharing strategy to enable on the GPU node.

optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2;

Returns
TypeDescription
boolean

Whether the gpuSharingStrategy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GPUSharingConfig other)

public GPUSharingConfig.Builder mergeFrom(GPUSharingConfig other)
Parameter
NameDescription
otherGPUSharingConfig
Returns
TypeDescription
GPUSharingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public GPUSharingConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GPUSharingConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GPUSharingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GPUSharingConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setGpuSharingStrategy(GPUSharingConfig.GPUSharingStrategy value)

public GPUSharingConfig.Builder setGpuSharingStrategy(GPUSharingConfig.GPUSharingStrategy value)

The type of GPU sharing strategy to enable on the GPU node.

optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2;

Parameter
NameDescription
valueGPUSharingConfig.GPUSharingStrategy

The gpuSharingStrategy to set.

Returns
TypeDescription
GPUSharingConfig.Builder

This builder for chaining.

setGpuSharingStrategyValue(int value)

public GPUSharingConfig.Builder setGpuSharingStrategyValue(int value)

The type of GPU sharing strategy to enable on the GPU node.

optional .google.container.v1beta1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2;

Parameter
NameDescription
valueint

The enum numeric value on the wire for gpuSharingStrategy to set.

Returns
TypeDescription
GPUSharingConfig.Builder

This builder for chaining.

setMaxSharedClientsPerGpu(long value)

public GPUSharingConfig.Builder setMaxSharedClientsPerGpu(long value)

The max number of containers that can share a physical GPU.

int64 max_shared_clients_per_gpu = 1;

Parameter
NameDescription
valuelong

The maxSharedClientsPerGpu to set.

Returns
TypeDescription
GPUSharingConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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