Package com.google.cloud.batch.v1alpha
Class AllocationPolicy.Accelerator.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.Accelerator.Builder>
com.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.Builder
- All Implemented Interfaces:
AllocationPolicy.AcceleratorOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AllocationPolicy.Accelerator
public static final class AllocationPolicy.Accelerator.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The number of accelerators of this type.Optional.Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated.The accelerator type.longgetCount()The number of accelerators of this type.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.booleanDeprecated.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated.getType()The accelerator type.com.google.protobuf.ByteStringThe accelerator type.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCount(long value) The number of accelerators of this type.setDriverVersion(String value) Optional.setDriverVersionBytes(com.google.protobuf.ByteString value) Optional.setInstallGpuDrivers(boolean value) Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated.The accelerator type.setTypeBytes(com.google.protobuf.ByteString value) The accelerator type.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.Accelerator.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.Accelerator.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.Accelerator.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.Accelerator.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AllocationPolicy.Accelerator.Builder>
-
mergeFrom
public AllocationPolicy.Accelerator.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.Accelerator.Builder>- Throws:
IOException
-
getType
The accelerator type. For example, "nvidia-tesla-t4". See `gcloud compute accelerator-types list`.
string type = 1;- Specified by:
getTypein interfaceAllocationPolicy.AcceleratorOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()The accelerator type. For example, "nvidia-tesla-t4". See `gcloud compute accelerator-types list`.
string type = 1;- Specified by:
getTypeBytesin interfaceAllocationPolicy.AcceleratorOrBuilder- Returns:
- The bytes for type.
-
setType
The accelerator type. For example, "nvidia-tesla-t4". See `gcloud compute accelerator-types list`.
string type = 1;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
The accelerator type. For example, "nvidia-tesla-t4". See `gcloud compute accelerator-types list`.
string type = 1;- Returns:
- This builder for chaining.
-
setTypeBytes
The accelerator type. For example, "nvidia-tesla-t4". See `gcloud compute accelerator-types list`.
string type = 1;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
getCount
public long getCount()The number of accelerators of this type.
int64 count = 2;- Specified by:
getCountin interfaceAllocationPolicy.AcceleratorOrBuilder- Returns:
- The count.
-
setCount
The number of accelerators of this type.
int64 count = 2;- Parameters:
value- The count to set.- Returns:
- This builder for chaining.
-
clearCount
The number of accelerators of this type.
int64 count = 2;- Returns:
- This builder for chaining.
-
getInstallGpuDrivers
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated. See google/cloud/batch/v1alpha/job.proto;l=450Deprecated: please use instances[0].install_gpu_drivers instead.
bool install_gpu_drivers = 3 [deprecated = true];- Specified by:
getInstallGpuDriversin interfaceAllocationPolicy.AcceleratorOrBuilder- Returns:
- The installGpuDrivers.
-
setInstallGpuDrivers
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated. See google/cloud/batch/v1alpha/job.proto;l=450Deprecated: please use instances[0].install_gpu_drivers instead.
bool install_gpu_drivers = 3 [deprecated = true];- Parameters:
value- The installGpuDrivers to set.- Returns:
- This builder for chaining.
-
clearInstallGpuDrivers
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated. See google/cloud/batch/v1alpha/job.proto;l=450Deprecated: please use instances[0].install_gpu_drivers instead.
bool install_gpu_drivers = 3 [deprecated = true];- Returns:
- This builder for chaining.
-
getDriverVersion
Optional. The NVIDIA GPU driver version that should be installed for this type. You can define the specific driver version such as "470.103.01", following the driver version requirements in https://cloud.google.com/compute/docs/gpus/install-drivers-gpu#minimum-driver. Batch will install the specific accelerator driver if qualified.
string driver_version = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDriverVersionin interfaceAllocationPolicy.AcceleratorOrBuilder- Returns:
- The driverVersion.
-
getDriverVersionBytes
public com.google.protobuf.ByteString getDriverVersionBytes()Optional. The NVIDIA GPU driver version that should be installed for this type. You can define the specific driver version such as "470.103.01", following the driver version requirements in https://cloud.google.com/compute/docs/gpus/install-drivers-gpu#minimum-driver. Batch will install the specific accelerator driver if qualified.
string driver_version = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDriverVersionBytesin interfaceAllocationPolicy.AcceleratorOrBuilder- Returns:
- The bytes for driverVersion.
-
setDriverVersion
Optional. The NVIDIA GPU driver version that should be installed for this type. You can define the specific driver version such as "470.103.01", following the driver version requirements in https://cloud.google.com/compute/docs/gpus/install-drivers-gpu#minimum-driver. Batch will install the specific accelerator driver if qualified.
string driver_version = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The driverVersion to set.- Returns:
- This builder for chaining.
-
clearDriverVersion
Optional. The NVIDIA GPU driver version that should be installed for this type. You can define the specific driver version such as "470.103.01", following the driver version requirements in https://cloud.google.com/compute/docs/gpus/install-drivers-gpu#minimum-driver. Batch will install the specific accelerator driver if qualified.
string driver_version = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDriverVersionBytes
public AllocationPolicy.Accelerator.Builder setDriverVersionBytes(com.google.protobuf.ByteString value) Optional. The NVIDIA GPU driver version that should be installed for this type. You can define the specific driver version such as "470.103.01", following the driver version requirements in https://cloud.google.com/compute/docs/gpus/install-drivers-gpu#minimum-driver. Batch will install the specific accelerator driver if qualified.
string driver_version = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for driverVersion to set.- Returns:
- This builder for chaining.
-