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 VMs.
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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AllocationPolicy.Accelerator.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public AllocationPolicy.Accelerator build()
Returns
buildPartial()
public AllocationPolicy.Accelerator buildPartial()
Returns
clear()
public AllocationPolicy.Accelerator.Builder clear()
Returns
Overrides
clearCount()
public AllocationPolicy.Accelerator.Builder clearCount()
The number of accelerators of this type.
int64 count = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public AllocationPolicy.Accelerator.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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=347
Deprecated: please use instances[0].install_gpu_drivers instead.
bool install_gpu_drivers = 3 [deprecated = true];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public AllocationPolicy.Accelerator.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearType()
public AllocationPolicy.Accelerator.Builder clearType()
The accelerator type. For example, "nvidia-tesla-t4".
See gcloud compute accelerator-types list
.
string type = 1;
Returns
clone()
public AllocationPolicy.Accelerator.Builder clone()
Returns
Overrides
getCount()
The number of accelerators of this type.
int64 count = 2;
Returns
Type |
Description |
long |
The count.
|
getDefaultInstanceForType()
public AllocationPolicy.Accelerator getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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=347
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
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(AllocationPolicy.Accelerator other)
public AllocationPolicy.Accelerator.Builder mergeFrom(AllocationPolicy.Accelerator other)
Parameter
Returns
public AllocationPolicy.Accelerator.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AllocationPolicy.Accelerator.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AllocationPolicy.Accelerator.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AllocationPolicy.Accelerator.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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=347
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.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AllocationPolicy.Accelerator.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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.
|
Returns
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.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final AllocationPolicy.Accelerator.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides