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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder> implements AllocationPolicy.AcceleratorOrBuilder
Accelerator describes Compute Engine accelerators to be attached to the VM.
Protobuf typegoogle.cloud.batch.v1alpha.AllocationPolicy.Accelerator
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AllocationPolicy.Accelerator.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AllocationPolicy.Acceleratorbuild()AllocationPolicy.AcceleratorbuildPartial()AllocationPolicy.Accelerator.Builderclear()AllocationPolicy.Accelerator.BuilderclearCount()The number of accelerators of this type.AllocationPolicy.Accelerator.BuilderclearDriverVersion()Optional.AllocationPolicy.Accelerator.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AllocationPolicy.Accelerator.BuilderclearInstallGpuDrivers()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated.AllocationPolicy.Accelerator.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AllocationPolicy.Accelerator.BuilderclearType()The accelerator type.AllocationPolicy.Accelerator.Builderclone()longgetCount()The number of accelerators of this type.AllocationPolicy.AcceleratorgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDriverVersion()Optional.com.google.protobuf.ByteStringgetDriverVersionBytes()Optional.booleangetInstallGpuDrivers()Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated.StringgetType()The accelerator type.com.google.protobuf.ByteStringgetTypeBytes()The accelerator type.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AllocationPolicy.Accelerator.BuildermergeFrom(AllocationPolicy.Accelerator other)AllocationPolicy.Accelerator.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AllocationPolicy.Accelerator.BuildermergeFrom(com.google.protobuf.Message other)AllocationPolicy.Accelerator.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AllocationPolicy.Accelerator.BuildersetCount(long value)The number of accelerators of this type.AllocationPolicy.Accelerator.BuildersetDriverVersion(String value)Optional.AllocationPolicy.Accelerator.BuildersetDriverVersionBytes(com.google.protobuf.ByteString value)Optional.AllocationPolicy.Accelerator.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AllocationPolicy.Accelerator.BuildersetInstallGpuDrivers(boolean value)Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated.AllocationPolicy.Accelerator.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AllocationPolicy.Accelerator.BuildersetType(String value)The accelerator type.AllocationPolicy.Accelerator.BuildersetTypeBytes(com.google.protobuf.ByteString value)The accelerator type.AllocationPolicy.Accelerator.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder>
-
getDefaultInstanceForType
public AllocationPolicy.Accelerator getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AllocationPolicy.Accelerator build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AllocationPolicy.Accelerator buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AllocationPolicy.Accelerator.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder>
-
setField
public AllocationPolicy.Accelerator.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder>
-
clearField
public AllocationPolicy.Accelerator.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder>
-
clearOneof
public AllocationPolicy.Accelerator.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder>
-
setRepeatedField
public AllocationPolicy.Accelerator.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder>
-
addRepeatedField
public AllocationPolicy.Accelerator.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder>
-
mergeFrom
public AllocationPolicy.Accelerator.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.Accelerator.Builder>
-
mergeFrom
public AllocationPolicy.Accelerator.Builder mergeFrom(AllocationPolicy.Accelerator other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public String 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
public AllocationPolicy.Accelerator.Builder setType(String value)
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
public AllocationPolicy.Accelerator.Builder clearType()
The accelerator type. For example, "nvidia-tesla-t4". See `gcloud compute accelerator-types list`.
string type = 1;- Returns:
- This builder for chaining.
-
setTypeBytes
public AllocationPolicy.Accelerator.Builder setTypeBytes(com.google.protobuf.ByteString value)
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
public AllocationPolicy.Accelerator.Builder setCount(long value)
The number of accelerators of this type.
int64 count = 2;- Parameters:
value- The count to set.- Returns:
- This builder for chaining.
-
clearCount
public AllocationPolicy.Accelerator.Builder clearCount()
The number of accelerators of this type.
int64 count = 2;- Returns:
- This builder for chaining.
-
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=401Deprecated: 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 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=401Deprecated: 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 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=401Deprecated: please use instances[0].install_gpu_drivers instead.
bool install_gpu_drivers = 3 [deprecated = true];- Returns:
- This builder for chaining.
-
getDriverVersion
public String 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
public AllocationPolicy.Accelerator.Builder setDriverVersion(String 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 driverVersion to set.- Returns:
- This builder for chaining.
-
clearDriverVersion
public AllocationPolicy.Accelerator.Builder 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.
-
setUnknownFields
public final AllocationPolicy.Accelerator.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder>
-
mergeUnknownFields
public final AllocationPolicy.Accelerator.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder>
-
-