Class GPUDriverConfig.Builder (1.81.0)

public static final class GPUDriverConfig.Builder extends GeneratedMessage.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

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.

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 GeneratedMessage.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

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.