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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Accelerator.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Accelerator build()
buildPartial()
public Accelerator buildPartial()
clear()
public Accelerator.Builder clear()
Overrides
clearCount()
public Accelerator.Builder clearCount()
How many accelerators of this type to attach.
int64 count = 2;
clearField(Descriptors.FieldDescriptor field)
public Accelerator.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Accelerator.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public Accelerator.Builder clone()
Overrides
getCount()
How many accelerators of this type to attach.
int64 count = 2;
Returns |
Type |
Description |
long |
The count.
|
getDefaultInstanceForType()
public Accelerator getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
Type |
Description |
ByteString |
The bytes for type.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Accelerator other)
public Accelerator.Builder mergeFrom(Accelerator other)
public Accelerator.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Accelerator.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Accelerator.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public Accelerator.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Accelerator.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Accelerator.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides