Class GPUDriverConfig.Builder (1.26.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GPUDriverConfig build()
Returns
TypeDescription
GPUDriverConfig

buildPartial()

public GPUDriverConfig buildPartial()
Returns
TypeDescription
GPUDriverConfig

clear()

public GPUDriverConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
GPUDriverConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public GPUDriverConfig.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for customGpuDriverPath.

getDefaultInstanceForType()

public GPUDriverConfig getDefaultInstanceForType()
Returns
TypeDescription
GPUDriverConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

The enableGpuDriver.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GPUDriverConfig other)

public GPUDriverConfig.Builder mergeFrom(GPUDriverConfig other)
Parameter
NameDescription
otherGPUDriverConfig
Returns
TypeDescription
GPUDriverConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GPUDriverConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The customGpuDriverPath to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for customGpuDriverPath to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The enableGpuDriver to set.

Returns
TypeDescription
GPUDriverConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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