Class UsageResourceAllowanceStatus.Builder (0.53.0)

public static final class UsageResourceAllowanceStatus.Builder extends GeneratedMessageV3.Builder<UsageResourceAllowanceStatus.Builder> implements UsageResourceAllowanceStatusOrBuilder

Status of a usage ResourceAllowance.

Protobuf type google.cloud.batch.v1alpha.UsageResourceAllowanceStatus

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UsageResourceAllowanceStatus build()
Returns
Type Description
UsageResourceAllowanceStatus

buildPartial()

public UsageResourceAllowanceStatus buildPartial()
Returns
Type Description
UsageResourceAllowanceStatus

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLimitStatus()

public UsageResourceAllowanceStatus.Builder clearLimitStatus()

Output only. ResourceAllowance consumption status for usage resources.

.google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.LimitStatus limit_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UsageResourceAllowanceStatus.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReport()

public UsageResourceAllowanceStatus.Builder clearReport()

Output only. The report of ResourceAllowance consumptions in a time period.

.google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.ConsumptionReport report = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UsageResourceAllowanceStatus.Builder

clearState()

public UsageResourceAllowanceStatus.Builder clearState()

Output only. ResourceAllowance state.

.google.cloud.batch.v1alpha.ResourceAllowanceState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UsageResourceAllowanceStatus.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UsageResourceAllowanceStatus getDefaultInstanceForType()
Returns
Type Description
UsageResourceAllowanceStatus

getDescriptorForType()

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

getLimitStatus()

public UsageResourceAllowanceStatus.LimitStatus getLimitStatus()

Output only. ResourceAllowance consumption status for usage resources.

.google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.LimitStatus limit_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UsageResourceAllowanceStatus.LimitStatus

The limitStatus.

getLimitStatusBuilder()

public UsageResourceAllowanceStatus.LimitStatus.Builder getLimitStatusBuilder()

Output only. ResourceAllowance consumption status for usage resources.

.google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.LimitStatus limit_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UsageResourceAllowanceStatus.LimitStatus.Builder

getLimitStatusOrBuilder()

public UsageResourceAllowanceStatus.LimitStatusOrBuilder getLimitStatusOrBuilder()

Output only. ResourceAllowance consumption status for usage resources.

.google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.LimitStatus limit_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UsageResourceAllowanceStatus.LimitStatusOrBuilder

getReport()

public UsageResourceAllowanceStatus.ConsumptionReport getReport()

Output only. The report of ResourceAllowance consumptions in a time period.

.google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.ConsumptionReport report = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport

The report.

getReportBuilder()

public UsageResourceAllowanceStatus.ConsumptionReport.Builder getReportBuilder()

Output only. The report of ResourceAllowance consumptions in a time period.

.google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.ConsumptionReport report = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReport.Builder

getReportOrBuilder()

public UsageResourceAllowanceStatus.ConsumptionReportOrBuilder getReportOrBuilder()

Output only. The report of ResourceAllowance consumptions in a time period.

.google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.ConsumptionReport report = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UsageResourceAllowanceStatus.ConsumptionReportOrBuilder

getState()

public ResourceAllowanceState getState()

Output only. ResourceAllowance state.

.google.cloud.batch.v1alpha.ResourceAllowanceState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceAllowanceState

The state.

getStateValue()

public int getStateValue()

Output only. ResourceAllowance state.

.google.cloud.batch.v1alpha.ResourceAllowanceState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

hasLimitStatus()

public boolean hasLimitStatus()

Output only. ResourceAllowance consumption status for usage resources.

.google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.LimitStatus limit_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the limitStatus field is set.

hasReport()

public boolean hasReport()

Output only. The report of ResourceAllowance consumptions in a time period.

.google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.ConsumptionReport report = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the report field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UsageResourceAllowanceStatus other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLimitStatus(UsageResourceAllowanceStatus.LimitStatus value)

public UsageResourceAllowanceStatus.Builder mergeLimitStatus(UsageResourceAllowanceStatus.LimitStatus value)

Output only. ResourceAllowance consumption status for usage resources.

.google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.LimitStatus limit_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value UsageResourceAllowanceStatus.LimitStatus
Returns
Type Description
UsageResourceAllowanceStatus.Builder

mergeReport(UsageResourceAllowanceStatus.ConsumptionReport value)

public UsageResourceAllowanceStatus.Builder mergeReport(UsageResourceAllowanceStatus.ConsumptionReport value)

Output only. The report of ResourceAllowance consumptions in a time period.

.google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.ConsumptionReport report = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value UsageResourceAllowanceStatus.ConsumptionReport
Returns
Type Description
UsageResourceAllowanceStatus.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLimitStatus(UsageResourceAllowanceStatus.LimitStatus value)

public UsageResourceAllowanceStatus.Builder setLimitStatus(UsageResourceAllowanceStatus.LimitStatus value)

Output only. ResourceAllowance consumption status for usage resources.

.google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.LimitStatus limit_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value UsageResourceAllowanceStatus.LimitStatus
Returns
Type Description
UsageResourceAllowanceStatus.Builder

setLimitStatus(UsageResourceAllowanceStatus.LimitStatus.Builder builderForValue)

public UsageResourceAllowanceStatus.Builder setLimitStatus(UsageResourceAllowanceStatus.LimitStatus.Builder builderForValue)

Output only. ResourceAllowance consumption status for usage resources.

.google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.LimitStatus limit_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue UsageResourceAllowanceStatus.LimitStatus.Builder
Returns
Type Description
UsageResourceAllowanceStatus.Builder

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

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

setReport(UsageResourceAllowanceStatus.ConsumptionReport value)

public UsageResourceAllowanceStatus.Builder setReport(UsageResourceAllowanceStatus.ConsumptionReport value)

Output only. The report of ResourceAllowance consumptions in a time period.

.google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.ConsumptionReport report = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value UsageResourceAllowanceStatus.ConsumptionReport
Returns
Type Description
UsageResourceAllowanceStatus.Builder

setReport(UsageResourceAllowanceStatus.ConsumptionReport.Builder builderForValue)

public UsageResourceAllowanceStatus.Builder setReport(UsageResourceAllowanceStatus.ConsumptionReport.Builder builderForValue)

Output only. The report of ResourceAllowance consumptions in a time period.

.google.cloud.batch.v1alpha.UsageResourceAllowanceStatus.ConsumptionReport report = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue UsageResourceAllowanceStatus.ConsumptionReport.Builder
Returns
Type Description
UsageResourceAllowanceStatus.Builder

setState(ResourceAllowanceState value)

public UsageResourceAllowanceStatus.Builder setState(ResourceAllowanceState value)

Output only. ResourceAllowance state.

.google.cloud.batch.v1alpha.ResourceAllowanceState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ResourceAllowanceState

The state to set.

Returns
Type Description
UsageResourceAllowanceStatus.Builder

This builder for chaining.

setStateValue(int value)

public UsageResourceAllowanceStatus.Builder setStateValue(int value)

Output only. ResourceAllowance state.

.google.cloud.batch.v1alpha.ResourceAllowanceState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
UsageResourceAllowanceStatus.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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