public final class ComputeResource extends GeneratedMessageV3 implements ComputeResourceOrBuilder
Compute resource requirements
Protobuf type google.cloud.batch.v1.ComputeResource
Static Fields
BOOT_DISK_MIB_FIELD_NUMBER
public static final int BOOT_DISK_MIB_FIELD_NUMBER
Field Value
CPU_MILLI_FIELD_NUMBER
public static final int CPU_MILLI_FIELD_NUMBER
Field Value
MEMORY_MIB_FIELD_NUMBER
public static final int MEMORY_MIB_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ComputeResource getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ComputeResource.Builder newBuilder()
Returns
newBuilder(ComputeResource prototype)
public static ComputeResource.Builder newBuilder(ComputeResource prototype)
Parameter
Returns
public static ComputeResource parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ComputeResource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ComputeResource parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ComputeResource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ComputeResource parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ComputeResource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ComputeResource parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ComputeResource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ComputeResource parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ComputeResource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ComputeResource parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ComputeResource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ComputeResource> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
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
getMemoryMib()
public long getMemoryMib()
Memory in MiB.
int64 memory_mib = 2;
Returns
Type |
Description |
long |
The memoryMib.
|
getParserForType()
public Parser<ComputeResource> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ComputeResource.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ComputeResource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ComputeResource.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions