Send feedback
Class ComputeResource.Builder (0.11.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.11.0 keyboard_arrow_down
public static final class ComputeResource . Builder extends GeneratedMessageV3 . Builder<ComputeResource . Builder > implements ComputeResourceOrBuilder
Compute resource requirements
Protobuf type google.cloud.batch.v1alpha.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 ()
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]