Class FutureReservationCommitmentInfo.Builder (1.91.0)

public static final class FutureReservationCommitmentInfo.Builder extends GeneratedMessageV3.Builder<FutureReservationCommitmentInfo.Builder> implements FutureReservationCommitmentInfoOrBuilder

Protobuf type google.cloud.compute.v1.FutureReservationCommitmentInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FutureReservationCommitmentInfo build()
Returns
Type Description
FutureReservationCommitmentInfo

buildPartial()

public FutureReservationCommitmentInfo buildPartial()
Returns
Type Description
FutureReservationCommitmentInfo

clear()

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

clearCommitmentName()

public FutureReservationCommitmentInfo.Builder clearCommitmentName()

name of the commitment where capacity is being delivered to.

optional string commitment_name = 164498805;

Returns
Type Description
FutureReservationCommitmentInfo.Builder

This builder for chaining.

clearCommitmentPlan()

public FutureReservationCommitmentInfo.Builder clearCommitmentPlan()

Indicates if a Commitment needs to be created as part of FR delivery. If this field is not present, then no commitment needs to be created. Check the CommitmentPlan enum for the list of possible values.

optional string commitment_plan = 164568595;

Returns
Type Description
FutureReservationCommitmentInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPreviousCommitmentTerms()

public FutureReservationCommitmentInfo.Builder clearPreviousCommitmentTerms()

Only applicable if FR is delivering to the same reservation. If set, all parent commitments will be extended to match the end date of the plan for this commitment. Check the PreviousCommitmentTerms enum for the list of possible values.

optional string previous_commitment_terms = 447490085;

Returns
Type Description
FutureReservationCommitmentInfo.Builder

This builder for chaining.

clone()

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

getCommitmentName()

public String getCommitmentName()

name of the commitment where capacity is being delivered to.

optional string commitment_name = 164498805;

Returns
Type Description
String

The commitmentName.

getCommitmentNameBytes()

public ByteString getCommitmentNameBytes()

name of the commitment where capacity is being delivered to.

optional string commitment_name = 164498805;

Returns
Type Description
ByteString

The bytes for commitmentName.

getCommitmentPlan()

public String getCommitmentPlan()

Indicates if a Commitment needs to be created as part of FR delivery. If this field is not present, then no commitment needs to be created. Check the CommitmentPlan enum for the list of possible values.

optional string commitment_plan = 164568595;

Returns
Type Description
String

The commitmentPlan.

getCommitmentPlanBytes()

public ByteString getCommitmentPlanBytes()

Indicates if a Commitment needs to be created as part of FR delivery. If this field is not present, then no commitment needs to be created. Check the CommitmentPlan enum for the list of possible values.

optional string commitment_plan = 164568595;

Returns
Type Description
ByteString

The bytes for commitmentPlan.

getDefaultInstanceForType()

public FutureReservationCommitmentInfo getDefaultInstanceForType()
Returns
Type Description
FutureReservationCommitmentInfo

getDescriptorForType()

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

getPreviousCommitmentTerms()

public String getPreviousCommitmentTerms()

Only applicable if FR is delivering to the same reservation. If set, all parent commitments will be extended to match the end date of the plan for this commitment. Check the PreviousCommitmentTerms enum for the list of possible values.

optional string previous_commitment_terms = 447490085;

Returns
Type Description
String

The previousCommitmentTerms.

getPreviousCommitmentTermsBytes()

public ByteString getPreviousCommitmentTermsBytes()

Only applicable if FR is delivering to the same reservation. If set, all parent commitments will be extended to match the end date of the plan for this commitment. Check the PreviousCommitmentTerms enum for the list of possible values.

optional string previous_commitment_terms = 447490085;

Returns
Type Description
ByteString

The bytes for previousCommitmentTerms.

hasCommitmentName()

public boolean hasCommitmentName()

name of the commitment where capacity is being delivered to.

optional string commitment_name = 164498805;

Returns
Type Description
boolean

Whether the commitmentName field is set.

hasCommitmentPlan()

public boolean hasCommitmentPlan()

Indicates if a Commitment needs to be created as part of FR delivery. If this field is not present, then no commitment needs to be created. Check the CommitmentPlan enum for the list of possible values.

optional string commitment_plan = 164568595;

Returns
Type Description
boolean

Whether the commitmentPlan field is set.

hasPreviousCommitmentTerms()

public boolean hasPreviousCommitmentTerms()

Only applicable if FR is delivering to the same reservation. If set, all parent commitments will be extended to match the end date of the plan for this commitment. Check the PreviousCommitmentTerms enum for the list of possible values.

optional string previous_commitment_terms = 447490085;

Returns
Type Description
boolean

Whether the previousCommitmentTerms field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FutureReservationCommitmentInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCommitmentName(String value)

public FutureReservationCommitmentInfo.Builder setCommitmentName(String value)

name of the commitment where capacity is being delivered to.

optional string commitment_name = 164498805;

Parameter
Name Description
value String

The commitmentName to set.

Returns
Type Description
FutureReservationCommitmentInfo.Builder

This builder for chaining.

setCommitmentNameBytes(ByteString value)

public FutureReservationCommitmentInfo.Builder setCommitmentNameBytes(ByteString value)

name of the commitment where capacity is being delivered to.

optional string commitment_name = 164498805;

Parameter
Name Description
value ByteString

The bytes for commitmentName to set.

Returns
Type Description
FutureReservationCommitmentInfo.Builder

This builder for chaining.

setCommitmentPlan(String value)

public FutureReservationCommitmentInfo.Builder setCommitmentPlan(String value)

Indicates if a Commitment needs to be created as part of FR delivery. If this field is not present, then no commitment needs to be created. Check the CommitmentPlan enum for the list of possible values.

optional string commitment_plan = 164568595;

Parameter
Name Description
value String

The commitmentPlan to set.

Returns
Type Description
FutureReservationCommitmentInfo.Builder

This builder for chaining.

setCommitmentPlanBytes(ByteString value)

public FutureReservationCommitmentInfo.Builder setCommitmentPlanBytes(ByteString value)

Indicates if a Commitment needs to be created as part of FR delivery. If this field is not present, then no commitment needs to be created. Check the CommitmentPlan enum for the list of possible values.

optional string commitment_plan = 164568595;

Parameter
Name Description
value ByteString

The bytes for commitmentPlan to set.

Returns
Type Description
FutureReservationCommitmentInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPreviousCommitmentTerms(String value)

public FutureReservationCommitmentInfo.Builder setPreviousCommitmentTerms(String value)

Only applicable if FR is delivering to the same reservation. If set, all parent commitments will be extended to match the end date of the plan for this commitment. Check the PreviousCommitmentTerms enum for the list of possible values.

optional string previous_commitment_terms = 447490085;

Parameter
Name Description
value String

The previousCommitmentTerms to set.

Returns
Type Description
FutureReservationCommitmentInfo.Builder

This builder for chaining.

setPreviousCommitmentTermsBytes(ByteString value)

public FutureReservationCommitmentInfo.Builder setPreviousCommitmentTermsBytes(ByteString value)

Only applicable if FR is delivering to the same reservation. If set, all parent commitments will be extended to match the end date of the plan for this commitment. Check the PreviousCommitmentTerms enum for the list of possible values.

optional string previous_commitment_terms = 447490085;

Parameter
Name Description
value ByteString

The bytes for previousCommitmentTerms to set.

Returns
Type Description
FutureReservationCommitmentInfo.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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