public static final class AllocationPolicy.Accelerator.Builder extends GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder> implements AllocationPolicy.AcceleratorOrBuilder
Accelerator describes Compute Engine accelerators to be attached to the VM.
Protobuf type google.cloud.batch.v1alpha.AllocationPolicy.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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AllocationPolicy.Accelerator.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AllocationPolicy.Accelerator build()
buildPartial()
public AllocationPolicy.Accelerator buildPartial()
clear()
public AllocationPolicy.Accelerator.Builder clear()
Overrides
clearCount()
public AllocationPolicy.Accelerator.Builder clearCount()
The number of accelerators of this type.
int64 count = 2;
clearField(Descriptors.FieldDescriptor field)
public AllocationPolicy.Accelerator.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearInstallGpuDrivers() (deprecated)
public AllocationPolicy.Accelerator.Builder clearInstallGpuDrivers()
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is
deprecated. See google/cloud/batch/v1alpha/job.proto;l=386
Deprecated: please use instances[0].install_gpu_drivers instead.
bool install_gpu_drivers = 3 [deprecated = true];
clearOneof(Descriptors.OneofDescriptor oneof)
public AllocationPolicy.Accelerator.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearType()
public AllocationPolicy.Accelerator.Builder clearType()
The accelerator type. For example, "nvidia-tesla-t4".
See gcloud compute accelerator-types list
.
string type = 1;
clone()
public AllocationPolicy.Accelerator.Builder clone()
Overrides
getCount()
The number of accelerators of this type.
int64 count = 2;
Returns |
Type |
Description |
long |
The count.
|
getDefaultInstanceForType()
public AllocationPolicy.Accelerator getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getInstallGpuDrivers() (deprecated)
public boolean getInstallGpuDrivers()
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is
deprecated. See google/cloud/batch/v1alpha/job.proto;l=386
Deprecated: please use instances[0].install_gpu_drivers instead.
bool install_gpu_drivers = 3 [deprecated = true];
Returns |
Type |
Description |
boolean |
The installGpuDrivers.
|
getType()
The accelerator type. For example, "nvidia-tesla-t4".
See gcloud compute accelerator-types list
.
string type = 1;
Returns |
Type |
Description |
String |
The type.
|
getTypeBytes()
public ByteString getTypeBytes()
The accelerator type. For example, "nvidia-tesla-t4".
See gcloud compute accelerator-types list
.
string type = 1;
Returns |
Type |
Description |
ByteString |
The bytes for type.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AllocationPolicy.Accelerator other)
public AllocationPolicy.Accelerator.Builder mergeFrom(AllocationPolicy.Accelerator other)
public AllocationPolicy.Accelerator.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AllocationPolicy.Accelerator.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AllocationPolicy.Accelerator.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setCount(long value)
public AllocationPolicy.Accelerator.Builder setCount(long value)
The number of accelerators of this type.
int64 count = 2;
Parameter |
Name |
Description |
value |
long
The count to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public AllocationPolicy.Accelerator.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setInstallGpuDrivers(boolean value) (deprecated)
public AllocationPolicy.Accelerator.Builder setInstallGpuDrivers(boolean value)
Deprecated. google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is
deprecated. See google/cloud/batch/v1alpha/job.proto;l=386
Deprecated: please use instances[0].install_gpu_drivers instead.
bool install_gpu_drivers = 3 [deprecated = true];
Parameter |
Name |
Description |
value |
boolean
The installGpuDrivers to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AllocationPolicy.Accelerator.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setType(String value)
public AllocationPolicy.Accelerator.Builder setType(String value)
The accelerator type. For example, "nvidia-tesla-t4".
See gcloud compute accelerator-types list
.
string type = 1;
Parameter |
Name |
Description |
value |
String
The type to set.
|
setTypeBytes(ByteString value)
public AllocationPolicy.Accelerator.Builder setTypeBytes(ByteString value)
The accelerator type. For example, "nvidia-tesla-t4".
See gcloud compute accelerator-types list
.
string type = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes for type to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final AllocationPolicy.Accelerator.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides