public static final class ComputeResource.Builder extends GeneratedMessageV3.Builder<ComputeResource.Builder> implements ComputeResourceOrBuilder
Compute resource requirements
Protobuf type google.cloud.batch.v1alpha.ComputeResource
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ComputeResource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ComputeResource build()
Returns
buildPartial()
public ComputeResource buildPartial()
Returns
clear()
public ComputeResource.Builder clear()
Returns
Overrides
clearBootDiskMib()
public ComputeResource.Builder clearBootDiskMib()
Extra boot disk size in MiB for each task.
int64 boot_disk_mib = 4;
Returns
clearCpuMilli()
public ComputeResource.Builder clearCpuMilli()
The milliCPU count.
int64 cpu_milli = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public ComputeResource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearGpuCount()
public ComputeResource.Builder clearGpuCount()
The GPU count.
Not yet implemented.
int64 gpu_count = 3;
Returns
clearMemoryMib()
public ComputeResource.Builder clearMemoryMib()
Memory in MiB.
int64 memory_mib = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ComputeResource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ComputeResource.Builder clone()
Returns
Overrides
getBootDiskMib()
public long getBootDiskMib()
Extra boot disk size in MiB for each task.
int64 boot_disk_mib = 4;
Returns
Type |
Description |
long |
The bootDiskMib.
|
getCpuMilli()
public long getCpuMilli()
The milliCPU count.
int64 cpu_milli = 1;
Returns
Type |
Description |
long |
The cpuMilli.
|
getDefaultInstanceForType()
public ComputeResource getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getGpuCount()
public long getGpuCount()
The GPU count.
Not yet implemented.
int64 gpu_count = 3;
Returns
Type |
Description |
long |
The gpuCount.
|
getMemoryMib()
public long getMemoryMib()
Memory in MiB.
int64 memory_mib = 2;
Returns
Type |
Description |
long |
The memoryMib.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ComputeResource other)
public ComputeResource.Builder mergeFrom(ComputeResource other)
Parameter
Returns
public ComputeResource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ComputeResource.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ComputeResource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setBootDiskMib(long value)
public ComputeResource.Builder setBootDiskMib(long value)
Extra boot disk size in MiB for each task.
int64 boot_disk_mib = 4;
Parameter
Name |
Description |
value |
long
The bootDiskMib to set.
|
Returns
setCpuMilli(long value)
public ComputeResource.Builder setCpuMilli(long value)
The milliCPU count.
int64 cpu_milli = 1;
Parameter
Name |
Description |
value |
long
The cpuMilli to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ComputeResource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setGpuCount(long value)
public ComputeResource.Builder setGpuCount(long value)
The GPU count.
Not yet implemented.
int64 gpu_count = 3;
Parameter
Name |
Description |
value |
long
The gpuCount to set.
|
Returns
setMemoryMib(long value)
public ComputeResource.Builder setMemoryMib(long value)
Memory in MiB.
int64 memory_mib = 2;
Parameter
Name |
Description |
value |
long
The memoryMib to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ComputeResource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ComputeResource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides