Class UsageResourceAllowance.Builder (0.39.0)

public static final class UsageResourceAllowance.Builder extends GeneratedMessageV3.Builder<UsageResourceAllowance.Builder> implements UsageResourceAllowanceOrBuilder

UsageResourceAllowance describes the detail of usage resource allowance.

Protobuf type google.cloud.batch.v1alpha.UsageResourceAllowance

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UsageResourceAllowance build()
Returns
Type Description
UsageResourceAllowance

buildPartial()

public UsageResourceAllowance buildPartial()
Returns
Type Description
UsageResourceAllowance

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSpec()

public UsageResourceAllowance.Builder clearSpec()

Required. Spec of a usage ResourceAllowance.

.google.cloud.batch.v1alpha.UsageResourceAllowanceSpec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UsageResourceAllowance.Builder

clearStatus()

public UsageResourceAllowance.Builder clearStatus()

Output only. Status of a usage ResourceAllowance.

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

Returns
Type Description
UsageResourceAllowance.Builder

clone()

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

getDefaultInstanceForType()

public UsageResourceAllowance getDefaultInstanceForType()
Returns
Type Description
UsageResourceAllowance

getDescriptorForType()

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

getSpec()

public UsageResourceAllowanceSpec getSpec()

Required. Spec of a usage ResourceAllowance.

.google.cloud.batch.v1alpha.UsageResourceAllowanceSpec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UsageResourceAllowanceSpec

The spec.

getSpecBuilder()

public UsageResourceAllowanceSpec.Builder getSpecBuilder()

Required. Spec of a usage ResourceAllowance.

.google.cloud.batch.v1alpha.UsageResourceAllowanceSpec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UsageResourceAllowanceSpec.Builder

getSpecOrBuilder()

public UsageResourceAllowanceSpecOrBuilder getSpecOrBuilder()

Required. Spec of a usage ResourceAllowance.

.google.cloud.batch.v1alpha.UsageResourceAllowanceSpec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UsageResourceAllowanceSpecOrBuilder

getStatus()

public UsageResourceAllowanceStatus getStatus()

Output only. Status of a usage ResourceAllowance.

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

Returns
Type Description
UsageResourceAllowanceStatus

The status.

getStatusBuilder()

public UsageResourceAllowanceStatus.Builder getStatusBuilder()

Output only. Status of a usage ResourceAllowance.

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

Returns
Type Description
UsageResourceAllowanceStatus.Builder

getStatusOrBuilder()

public UsageResourceAllowanceStatusOrBuilder getStatusOrBuilder()

Output only. Status of a usage ResourceAllowance.

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

Returns
Type Description
UsageResourceAllowanceStatusOrBuilder

hasSpec()

public boolean hasSpec()

Required. Spec of a usage ResourceAllowance.

.google.cloud.batch.v1alpha.UsageResourceAllowanceSpec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the spec field is set.

hasStatus()

public boolean hasStatus()

Output only. Status of a usage ResourceAllowance.

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

Returns
Type Description
boolean

Whether the status field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UsageResourceAllowance other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSpec(UsageResourceAllowanceSpec value)

public UsageResourceAllowance.Builder mergeSpec(UsageResourceAllowanceSpec value)

Required. Spec of a usage ResourceAllowance.

.google.cloud.batch.v1alpha.UsageResourceAllowanceSpec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UsageResourceAllowanceSpec
Returns
Type Description
UsageResourceAllowance.Builder

mergeStatus(UsageResourceAllowanceStatus value)

public UsageResourceAllowance.Builder mergeStatus(UsageResourceAllowanceStatus value)

Output only. Status of a usage ResourceAllowance.

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

Parameter
Name Description
value UsageResourceAllowanceStatus
Returns
Type Description
UsageResourceAllowance.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSpec(UsageResourceAllowanceSpec value)

public UsageResourceAllowance.Builder setSpec(UsageResourceAllowanceSpec value)

Required. Spec of a usage ResourceAllowance.

.google.cloud.batch.v1alpha.UsageResourceAllowanceSpec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UsageResourceAllowanceSpec
Returns
Type Description
UsageResourceAllowance.Builder

setSpec(UsageResourceAllowanceSpec.Builder builderForValue)

public UsageResourceAllowance.Builder setSpec(UsageResourceAllowanceSpec.Builder builderForValue)

Required. Spec of a usage ResourceAllowance.

.google.cloud.batch.v1alpha.UsageResourceAllowanceSpec spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue UsageResourceAllowanceSpec.Builder
Returns
Type Description
UsageResourceAllowance.Builder

setStatus(UsageResourceAllowanceStatus value)

public UsageResourceAllowance.Builder setStatus(UsageResourceAllowanceStatus value)

Output only. Status of a usage ResourceAllowance.

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

Parameter
Name Description
value UsageResourceAllowanceStatus
Returns
Type Description
UsageResourceAllowance.Builder

setStatus(UsageResourceAllowanceStatus.Builder builderForValue)

public UsageResourceAllowance.Builder setStatus(UsageResourceAllowanceStatus.Builder builderForValue)

Output only. Status of a usage ResourceAllowance.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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