public static final class Accelerator.Builder extends GeneratedMessageV3.Builder<Accelerator.Builder> implements AcceleratorOrBuilder
Carries information about an accelerator that can be attached to a VM.
Protobuf type google.cloud.lifesciences.v2beta.Accelerator
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Accelerator.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Accelerator build()
Returns
buildPartial()
public Accelerator buildPartial()
Returns
clear()
public Accelerator.Builder clear()
Returns
Overrides
clearCount()
public Accelerator.Builder clearCount()
How many accelerators of this type to attach.
int64 count = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public Accelerator.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Accelerator.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearType()
public Accelerator.Builder clearType()
The accelerator type string (for example, "nvidia-tesla-k80").
Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is
attached, the required runtime libraries will be made available to all
containers under /usr/local/nvidia
. The driver version to install must
be specified using the NVIDIA driver version parameter on the virtual
machine specification. Note that attaching a GPU increases the worker VM
startup time by a few minutes.
string type = 1;
Returns
clone()
public Accelerator.Builder clone()
Returns
Overrides
getCount()
How many accelerators of this type to attach.
int64 count = 2;
Returns
Type | Description |
long | The count.
|
getDefaultInstanceForType()
public Accelerator getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getType()
The accelerator type string (for example, "nvidia-tesla-k80").
Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is
attached, the required runtime libraries will be made available to all
containers under /usr/local/nvidia
. The driver version to install must
be specified using the NVIDIA driver version parameter on the virtual
machine specification. Note that attaching a GPU increases the worker VM
startup time by a few minutes.
string type = 1;
Returns
Type | Description |
String | The type.
|
getTypeBytes()
public ByteString getTypeBytes()
The accelerator type string (for example, "nvidia-tesla-k80").
Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is
attached, the required runtime libraries will be made available to all
containers under /usr/local/nvidia
. The driver version to install must
be specified using the NVIDIA driver version parameter on the virtual
machine specification. Note that attaching a GPU increases the worker VM
startup time by a few minutes.
string type = 1;
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Accelerator other)
public Accelerator.Builder mergeFrom(Accelerator other)
Parameter
Returns
public Accelerator.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Accelerator.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Accelerator.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setCount(long value)
public Accelerator.Builder setCount(long value)
How many accelerators of this type to attach.
int64 count = 2;
Parameter
Name | Description |
value | long
The count to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Accelerator.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Accelerator.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setType(String value)
public Accelerator.Builder setType(String value)
The accelerator type string (for example, "nvidia-tesla-k80").
Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is
attached, the required runtime libraries will be made available to all
containers under /usr/local/nvidia
. The driver version to install must
be specified using the NVIDIA driver version parameter on the virtual
machine specification. Note that attaching a GPU increases the worker VM
startup time by a few minutes.
string type = 1;
Parameter
Name | Description |
value | String
The type to set.
|
Returns
setTypeBytes(ByteString value)
public Accelerator.Builder setTypeBytes(ByteString value)
The accelerator type string (for example, "nvidia-tesla-k80").
Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is
attached, the required runtime libraries will be made available to all
containers under /usr/local/nvidia
. The driver version to install must
be specified using the NVIDIA driver version parameter on the virtual
machine specification. Note that attaching a GPU increases the worker VM
startup time by a few minutes.
string type = 1;
Parameter
Name | Description |
value | ByteString
The bytes for type to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Accelerator.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides