Class WorkstationConfig.Host.GceInstance.Accelerator.Builder (0.12.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WorkstationConfig.Host.GceInstance.Accelerator.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator.Builder
Overrides

build()

public WorkstationConfig.Host.GceInstance.Accelerator build()
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator

buildPartial()

public WorkstationConfig.Host.GceInstance.Accelerator buildPartial()
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator

clear()

public WorkstationConfig.Host.GceInstance.Accelerator.Builder clear()
Returns
TypeDescription
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
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public WorkstationConfig.Host.GceInstance.Accelerator.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public WorkstationConfig.Host.GceInstance.Accelerator.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator.Builder

This builder for chaining.

clone()

public WorkstationConfig.Host.GceInstance.Accelerator.Builder clone()
Returns
TypeDescription
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
TypeDescription
int

The count.

getDefaultInstanceForType()

public WorkstationConfig.Host.GceInstance.Accelerator getDefaultInstanceForType()
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator

getDescriptorForType()

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

The bytes for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WorkstationConfig.Host.GceInstance.Accelerator other)

public WorkstationConfig.Host.GceInstance.Accelerator.Builder mergeFrom(WorkstationConfig.Host.GceInstance.Accelerator other)
Parameter
NameDescription
otherWorkstationConfig.Host.GceInstance.Accelerator
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public WorkstationConfig.Host.GceInstance.Accelerator.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WorkstationConfig.Host.GceInstance.Accelerator.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueint

The count to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The type to set.

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

The bytes for type to set.

Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final WorkstationConfig.Host.GceInstance.Accelerator.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WorkstationConfig.Host.GceInstance.Accelerator.Builder
Overrides