Class SetInstanceAcceleratorRequest.Builder (1.16.0)

public static final class SetInstanceAcceleratorRequest.Builder extends GeneratedMessageV3.Builder<SetInstanceAcceleratorRequest.Builder> implements SetInstanceAcceleratorRequestOrBuilder

Request for setting instance accelerator.

Protobuf type google.cloud.notebooks.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SetInstanceAcceleratorRequest other)

public SetInstanceAcceleratorRequest.Builder mergeFrom(SetInstanceAcceleratorRequest other)
Parameter
NameDescription
otherSetInstanceAcceleratorRequest
Returns
TypeDescription
SetInstanceAcceleratorRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCoreCount(long value)

public SetInstanceAcceleratorRequest.Builder setCoreCount(long value)

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];

Parameter
NameDescription
valuelong

The coreCount to set.

Returns
TypeDescription
SetInstanceAcceleratorRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public SetInstanceAcceleratorRequest.Builder setName(String value)

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

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
SetInstanceAcceleratorRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SetInstanceAcceleratorRequest.Builder setNameBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
SetInstanceAcceleratorRequest.Builder

This builder for chaining.

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

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

setType(Instance.AcceleratorType value)

public SetInstanceAcceleratorRequest.Builder setType(Instance.AcceleratorType value)

Required. Type of this accelerator.

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

Parameter
NameDescription
valueInstance.AcceleratorType

The type to set.

Returns
TypeDescription
SetInstanceAcceleratorRequest.Builder

This builder for chaining.

setTypeValue(int value)

public SetInstanceAcceleratorRequest.Builder setTypeValue(int value)

Required. Type of this accelerator.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
SetInstanceAcceleratorRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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