Class ResourceUsage.Builder (0.53.0)

public static final class ResourceUsage.Builder extends GeneratedMessageV3.Builder<ResourceUsage.Builder> implements ResourceUsageOrBuilder

ResourceUsage describes the resource usage of the job.

Protobuf type google.cloud.batch.v1alpha.ResourceUsage

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResourceUsage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResourceUsage.Builder
Overrides

build()

public ResourceUsage build()
Returns
Type Description
ResourceUsage

buildPartial()

public ResourceUsage buildPartial()
Returns
Type Description
ResourceUsage

clear()

public ResourceUsage.Builder clear()
Returns
Type Description
ResourceUsage.Builder
Overrides

clearCoreHours()

public ResourceUsage.Builder clearCoreHours()

The CPU core hours that the job consumes.

double core_hours = 1;

Returns
Type Description
ResourceUsage.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ResourceUsage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ResourceUsage.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourceUsage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ResourceUsage.Builder
Overrides

clone()

public ResourceUsage.Builder clone()
Returns
Type Description
ResourceUsage.Builder
Overrides

getCoreHours()

public double getCoreHours()

The CPU core hours that the job consumes.

double core_hours = 1;

Returns
Type Description
double

The coreHours.

getDefaultInstanceForType()

public ResourceUsage getDefaultInstanceForType()
Returns
Type Description
ResourceUsage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResourceUsage other)

public ResourceUsage.Builder mergeFrom(ResourceUsage other)
Parameter
Name Description
other ResourceUsage
Returns
Type Description
ResourceUsage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResourceUsage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceUsage.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ResourceUsage.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ResourceUsage.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourceUsage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourceUsage.Builder
Overrides

setCoreHours(double value)

public ResourceUsage.Builder setCoreHours(double value)

The CPU core hours that the job consumes.

double core_hours = 1;

Parameter
Name Description
value double

The coreHours to set.

Returns
Type Description
ResourceUsage.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ResourceUsage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResourceUsage.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ResourceUsage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ResourceUsage.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourceUsage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourceUsage.Builder
Overrides