Class WorkstationConfig.Host.GceInstance.Accelerator.Builder (0.33.0)

public static final class WorkstationConfig.Host.GceInstance.Accelerator.Builder extends GeneratedMessageV3.Builder<WorkstationConfig.Host.GceInstance.Accelerator.Builder> implements WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder

An accelerator card attached to the instance.

Protobuf type google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > WorkstationConfig.Host.GceInstance.Accelerator.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WorkstationConfig.Host.GceInstance.Accelerator.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WorkstationConfig.Host.GceInstance.Accelerator.Builder
Overrides

build()

public WorkstationConfig.Host.GceInstance.Accelerator build()
Returns
Type Description
WorkstationConfig.Host.GceInstance.Accelerator

buildPartial()

public WorkstationConfig.Host.GceInstance.Accelerator buildPartial()
Returns
Type Description
WorkstationConfig.Host.GceInstance.Accelerator

clear()

public WorkstationConfig.Host.GceInstance.Accelerator.Builder clear()
Returns
Type Description
WorkstationConfig.Host.GceInstance.Accelerator.Builder
Overrides

clearCount()

public WorkstationConfig.Host.GceInstance.Accelerator.Builder clearCount()

Optional. Number of accelerator cards exposed to the instance.

int32 count = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WorkstationConfig.Host.GceInstance.Accelerator.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public WorkstationConfig.Host.GceInstance.Accelerator.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
WorkstationConfig.Host.GceInstance.Accelerator.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public WorkstationConfig.Host.GceInstance.Accelerator.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
WorkstationConfig.Host.GceInstance.Accelerator.Builder
Overrides

clearType()

public WorkstationConfig.Host.GceInstance.Accelerator.Builder clearType()

Optional. Type of accelerator resource to attach to the instance, for example, "nvidia-tesla-p100".

string type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WorkstationConfig.Host.GceInstance.Accelerator.Builder

This builder for chaining.

clone()

public WorkstationConfig.Host.GceInstance.Accelerator.Builder clone()
Returns
Type Description
WorkstationConfig.Host.GceInstance.Accelerator.Builder
Overrides

getCount()

public int getCount()

Optional. Number of accelerator cards exposed to the instance.

int32 count = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count.

getDefaultInstanceForType()

public WorkstationConfig.Host.GceInstance.Accelerator getDefaultInstanceForType()
Returns
Type Description
WorkstationConfig.Host.GceInstance.Accelerator

getDescriptorForType()

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

getType()

public String getType()

Optional. Type of accelerator resource to attach to the instance, for example, "nvidia-tesla-p100".

string type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Optional. Type of accelerator resource to attach to the instance, for example, "nvidia-tesla-p100".

string type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WorkstationConfig.Host.GceInstance.Accelerator other)

public WorkstationConfig.Host.GceInstance.Accelerator.Builder mergeFrom(WorkstationConfig.Host.GceInstance.Accelerator other)
Parameter
Name Description
other WorkstationConfig.Host.GceInstance.Accelerator
Returns
Type Description
WorkstationConfig.Host.GceInstance.Accelerator.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WorkstationConfig.Host.GceInstance.Accelerator.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkstationConfig.Host.GceInstance.Accelerator.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public WorkstationConfig.Host.GceInstance.Accelerator.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
WorkstationConfig.Host.GceInstance.Accelerator.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WorkstationConfig.Host.GceInstance.Accelerator.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WorkstationConfig.Host.GceInstance.Accelerator.Builder
Overrides

setCount(int value)

public WorkstationConfig.Host.GceInstance.Accelerator.Builder setCount(int value)

Optional. Number of accelerator cards exposed to the instance.

int32 count = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The count to set.

Returns
Type Description
WorkstationConfig.Host.GceInstance.Accelerator.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public WorkstationConfig.Host.GceInstance.Accelerator.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WorkstationConfig.Host.GceInstance.Accelerator.Builder
Overrides

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

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

setType(String value)

public WorkstationConfig.Host.GceInstance.Accelerator.Builder setType(String value)

Optional. Type of accelerator resource to attach to the instance, for example, "nvidia-tesla-p100".

string type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The type to set.

Returns
Type Description
WorkstationConfig.Host.GceInstance.Accelerator.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public WorkstationConfig.Host.GceInstance.Accelerator.Builder setTypeBytes(ByteString value)

Optional. Type of accelerator resource to attach to the instance, for example, "nvidia-tesla-p100".

string type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
WorkstationConfig.Host.GceInstance.Accelerator.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final WorkstationConfig.Host.GceInstance.Accelerator.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WorkstationConfig.Host.GceInstance.Accelerator.Builder
Overrides