Class SetInstanceAcceleratorRequest.Builder (1.4.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class SetInstanceAcceleratorRequest.Builder extends GeneratedMessageV3.Builder<SetInstanceAcceleratorRequest.Builder> implements SetInstanceAcceleratorRequestOrBuilder

Request for setting instance accelerator.

Protobuf type google.cloud.notebooks.v1.SetInstanceAcceleratorRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SetInstanceAcceleratorRequest build()
Returns
TypeDescription
SetInstanceAcceleratorRequest

buildPartial()

public SetInstanceAcceleratorRequest buildPartial()
Returns
TypeDescription
SetInstanceAcceleratorRequest

clear()

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

clearCoreCount()

public SetInstanceAcceleratorRequest.Builder clearCoreCount()

Required. Count of cores of this accelerator. Note that not all combinations of type and core_count are valid. Check GPUs on Compute Engine to find a valid combination. TPUs are not supported.

int64 core_count = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SetInstanceAcceleratorRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public SetInstanceAcceleratorRequest.Builder clearName()

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SetInstanceAcceleratorRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearType()

public SetInstanceAcceleratorRequest.Builder clearType()

Required. Type of this accelerator.

.google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SetInstanceAcceleratorRequest.Builder

This builder for chaining.

clone()

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

getCoreCount()

public long getCoreCount()

Required. Count of cores of this accelerator. Note that not all combinations of type and core_count are valid. Check GPUs on Compute Engine to find a valid combination. TPUs are not supported.

int64 core_count = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
long

The coreCount.

getDefaultInstanceForType()

public SetInstanceAcceleratorRequest getDefaultInstanceForType()
Returns
TypeDescription
SetInstanceAcceleratorRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Format: projects/{project_id}/locations/{location}/instances/{instance_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.

getType()

public Instance.AcceleratorType getType()

Required. Type of this accelerator.

.google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Instance.AcceleratorType

The type.

getTypeValue()

public int getTypeValue()

Required. Type of this accelerator.

.google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides