Class GPUDriverConfig.Builder (1.52.0)

public static final class GPUDriverConfig.Builder extends GeneratedMessageV3.Builder<GPUDriverConfig.Builder> implements GPUDriverConfigOrBuilder

A GPU driver configuration

Protobuf type google.cloud.notebooks.v2.GPUDriverConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GPUDriverConfig build()
Returns
Type Description
GPUDriverConfig

buildPartial()

public GPUDriverConfig buildPartial()
Returns
Type Description
GPUDriverConfig

clear()

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

clearCustomGpuDriverPath()

public GPUDriverConfig.Builder clearCustomGpuDriverPath()

Optional. Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.

string custom_gpu_driver_path = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GPUDriverConfig.Builder

This builder for chaining.

clearEnableGpuDriver()

public GPUDriverConfig.Builder clearEnableGpuDriver()

Optional. Whether the end user authorizes Google Cloud to install GPU driver on this VM instance. If this field is empty or set to false, the GPU driver won't be installed. Only applicable to instances with GPUs.

bool enable_gpu_driver = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GPUDriverConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCustomGpuDriverPath()

public String getCustomGpuDriverPath()

Optional. Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.

string custom_gpu_driver_path = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The customGpuDriverPath.

getCustomGpuDriverPathBytes()

public ByteString getCustomGpuDriverPathBytes()

Optional. Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.

string custom_gpu_driver_path = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for customGpuDriverPath.

getDefaultInstanceForType()

public GPUDriverConfig getDefaultInstanceForType()
Returns
Type Description
GPUDriverConfig

getDescriptorForType()

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

getEnableGpuDriver()

public boolean getEnableGpuDriver()

Optional. Whether the end user authorizes Google Cloud to install GPU driver on this VM instance. If this field is empty or set to false, the GPU driver won't be installed. Only applicable to instances with GPUs.

bool enable_gpu_driver = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enableGpuDriver.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GPUDriverConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCustomGpuDriverPath(String value)

public GPUDriverConfig.Builder setCustomGpuDriverPath(String value)

Optional. Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.

string custom_gpu_driver_path = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The customGpuDriverPath to set.

Returns
Type Description
GPUDriverConfig.Builder

This builder for chaining.

setCustomGpuDriverPathBytes(ByteString value)

public GPUDriverConfig.Builder setCustomGpuDriverPathBytes(ByteString value)

Optional. Specify a custom Cloud Storage path where the GPU driver is stored. If not specified, we'll automatically choose from official GPU drivers.

string custom_gpu_driver_path = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for customGpuDriverPath to set.

Returns
Type Description
GPUDriverConfig.Builder

This builder for chaining.

setEnableGpuDriver(boolean value)

public GPUDriverConfig.Builder setEnableGpuDriver(boolean value)

Optional. Whether the end user authorizes Google Cloud to install GPU driver on this VM instance. If this field is empty or set to false, the GPU driver won't be installed. Only applicable to instances with GPUs.

bool enable_gpu_driver = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The enableGpuDriver to set.

Returns
Type Description
GPUDriverConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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