public static final class ComputeResource.Builder extends GeneratedMessageV3.Builder<ComputeResource.Builder> implements ComputeResourceOrBuilder
Compute resource requirements
Protobuf type google.cloud.batch.v1.ComputeResource
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ComputeResource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ComputeResource build()
buildPartial()
public ComputeResource buildPartial()
clear()
public ComputeResource.Builder clear()
Overrides
clearBootDiskMib()
public ComputeResource.Builder clearBootDiskMib()
Extra boot disk size in MiB for each task.
int64 boot_disk_mib = 4;
clearCpuMilli()
public ComputeResource.Builder clearCpuMilli()
The milliCPU count.
int64 cpu_milli = 1;
clearField(Descriptors.FieldDescriptor field)
public ComputeResource.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearMemoryMib()
public ComputeResource.Builder clearMemoryMib()
Memory in MiB.
int64 memory_mib = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public ComputeResource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public ComputeResource.Builder clone()
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMemoryMib()
public long getMemoryMib()
Memory in MiB.
int64 memory_mib = 2;
Returns |
Type |
Description |
long |
The memoryMib.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ComputeResource other)
public ComputeResource.Builder mergeFrom(ComputeResource other)
public ComputeResource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ComputeResource.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ComputeResource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public ComputeResource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ComputeResource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ComputeResource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides