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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AllocationPolicy.Accelerator
build()
AllocationPolicy.Accelerator
buildPartial()
AllocationPolicy.Accelerator.Builder
clear()
AllocationPolicy.Accelerator.Builder
clearCount()
The number of accelerators of this type.AllocationPolicy.Accelerator.Builder
clearDriverVersion()
Optional.AllocationPolicy.Accelerator.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AllocationPolicy.Accelerator.Builder
clearInstallGpuDrivers()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated.AllocationPolicy.Accelerator.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AllocationPolicy.Accelerator.Builder
clearType()
The accelerator type.AllocationPolicy.Accelerator.Builder
clone()
long
getCount()
The number of accelerators of this type.AllocationPolicy.Accelerator
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDriverVersion()
Optional.com.google.protobuf.ByteString
getDriverVersionBytes()
Optional.boolean
getInstallGpuDrivers()
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated.String
getType()
The accelerator type.com.google.protobuf.ByteString
getTypeBytes()
The accelerator type.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AllocationPolicy.Accelerator.Builder
mergeFrom(AllocationPolicy.Accelerator other)
AllocationPolicy.Accelerator.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AllocationPolicy.Accelerator.Builder
mergeFrom(com.google.protobuf.Message other)
AllocationPolicy.Accelerator.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AllocationPolicy.Accelerator.Builder
setCount(long value)
The number of accelerators of this type.AllocationPolicy.Accelerator.Builder
setDriverVersion(String value)
Optional.AllocationPolicy.Accelerator.Builder
setDriverVersionBytes(com.google.protobuf.ByteString value)
Optional.AllocationPolicy.Accelerator.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AllocationPolicy.Accelerator.Builder
setInstallGpuDrivers(boolean value)
Deprecated.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is deprecated.AllocationPolicy.Accelerator.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AllocationPolicy.Accelerator.Builder
setType(String value)
The accelerator type.AllocationPolicy.Accelerator.Builder
setTypeBytes(com.google.protobuf.ByteString value)
The accelerator type.AllocationPolicy.Accelerator.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder>
-
clear
public AllocationPolicy.Accelerator.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder>
-
getDefaultInstanceForType
public AllocationPolicy.Accelerator getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AllocationPolicy.Accelerator build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AllocationPolicy.Accelerator buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AllocationPolicy.Accelerator.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder>
-
setField
public AllocationPolicy.Accelerator.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder>
-
clearField
public AllocationPolicy.Accelerator.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder>
-
clearOneof
public AllocationPolicy.Accelerator.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder>
-
addRepeatedField
public AllocationPolicy.Accelerator.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder>
-
mergeFrom
public AllocationPolicy.Accelerator.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AllocationPolicy.Accelerator.Builder>
-
mergeFrom
public AllocationPolicy.Accelerator.Builder mergeFrom(AllocationPolicy.Accelerator other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getType
in 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:
getTypeBytes
in 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:
getCount
in 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:
getInstallGpuDrivers
in 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:
getDriverVersion
in 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:
getDriverVersionBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder>
-
mergeUnknownFields
public final AllocationPolicy.Accelerator.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationPolicy.Accelerator.Builder>
-
-