Class CommitmentsScopedList.Builder (1.88.0)

public static final class CommitmentsScopedList.Builder extends GeneratedMessageV3.Builder<CommitmentsScopedList.Builder> implements CommitmentsScopedListOrBuilder

Protobuf type google.cloud.compute.v1.CommitmentsScopedList

Static Methods

getDescriptor()

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

Methods

addAllCommitments(Iterable<? extends Commitment> values)

public CommitmentsScopedList.Builder addAllCommitments(Iterable<? extends Commitment> values)

[Output Only] The list of commitments contained in this scope.

repeated .google.cloud.compute.v1.Commitment commitments = 450664446;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.Commitment>
Returns
Type Description
CommitmentsScopedList.Builder

addCommitments(Commitment value)

public CommitmentsScopedList.Builder addCommitments(Commitment value)

[Output Only] The list of commitments contained in this scope.

repeated .google.cloud.compute.v1.Commitment commitments = 450664446;

Parameter
Name Description
value Commitment
Returns
Type Description
CommitmentsScopedList.Builder

addCommitments(Commitment.Builder builderForValue)

public CommitmentsScopedList.Builder addCommitments(Commitment.Builder builderForValue)

[Output Only] The list of commitments contained in this scope.

repeated .google.cloud.compute.v1.Commitment commitments = 450664446;

Parameter
Name Description
builderForValue Commitment.Builder
Returns
Type Description
CommitmentsScopedList.Builder

addCommitments(int index, Commitment value)

public CommitmentsScopedList.Builder addCommitments(int index, Commitment value)

[Output Only] The list of commitments contained in this scope.

repeated .google.cloud.compute.v1.Commitment commitments = 450664446;

Parameters
Name Description
index int
value Commitment
Returns
Type Description
CommitmentsScopedList.Builder

addCommitments(int index, Commitment.Builder builderForValue)

public CommitmentsScopedList.Builder addCommitments(int index, Commitment.Builder builderForValue)

[Output Only] The list of commitments contained in this scope.

repeated .google.cloud.compute.v1.Commitment commitments = 450664446;

Parameters
Name Description
index int
builderForValue Commitment.Builder
Returns
Type Description
CommitmentsScopedList.Builder

addCommitmentsBuilder()

public Commitment.Builder addCommitmentsBuilder()

[Output Only] The list of commitments contained in this scope.

repeated .google.cloud.compute.v1.Commitment commitments = 450664446;

Returns
Type Description
Commitment.Builder

addCommitmentsBuilder(int index)

public Commitment.Builder addCommitmentsBuilder(int index)

[Output Only] The list of commitments contained in this scope.

repeated .google.cloud.compute.v1.Commitment commitments = 450664446;

Parameter
Name Description
index int
Returns
Type Description
Commitment.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CommitmentsScopedList build()
Returns
Type Description
CommitmentsScopedList

buildPartial()

public CommitmentsScopedList buildPartial()
Returns
Type Description
CommitmentsScopedList

clear()

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

clearCommitments()

public CommitmentsScopedList.Builder clearCommitments()

[Output Only] The list of commitments contained in this scope.

repeated .google.cloud.compute.v1.Commitment commitments = 450664446;

Returns
Type Description
CommitmentsScopedList.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWarning()

public CommitmentsScopedList.Builder clearWarning()

[Output Only] Informational warning which replaces the list of commitments when the list is empty.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Returns
Type Description
CommitmentsScopedList.Builder

clone()

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

getCommitments(int index)

public Commitment getCommitments(int index)

[Output Only] The list of commitments contained in this scope.

repeated .google.cloud.compute.v1.Commitment commitments = 450664446;

Parameter
Name Description
index int
Returns
Type Description
Commitment

getCommitmentsBuilder(int index)

public Commitment.Builder getCommitmentsBuilder(int index)

[Output Only] The list of commitments contained in this scope.

repeated .google.cloud.compute.v1.Commitment commitments = 450664446;

Parameter
Name Description
index int
Returns
Type Description
Commitment.Builder

getCommitmentsBuilderList()

public List<Commitment.Builder> getCommitmentsBuilderList()

[Output Only] The list of commitments contained in this scope.

repeated .google.cloud.compute.v1.Commitment commitments = 450664446;

Returns
Type Description
List<Builder>

getCommitmentsCount()

public int getCommitmentsCount()

[Output Only] The list of commitments contained in this scope.

repeated .google.cloud.compute.v1.Commitment commitments = 450664446;

Returns
Type Description
int

getCommitmentsList()

public List<Commitment> getCommitmentsList()

[Output Only] The list of commitments contained in this scope.

repeated .google.cloud.compute.v1.Commitment commitments = 450664446;

Returns
Type Description
List<Commitment>

getCommitmentsOrBuilder(int index)

public CommitmentOrBuilder getCommitmentsOrBuilder(int index)

[Output Only] The list of commitments contained in this scope.

repeated .google.cloud.compute.v1.Commitment commitments = 450664446;

Parameter
Name Description
index int
Returns
Type Description
CommitmentOrBuilder

getCommitmentsOrBuilderList()

public List<? extends CommitmentOrBuilder> getCommitmentsOrBuilderList()

[Output Only] The list of commitments contained in this scope.

repeated .google.cloud.compute.v1.Commitment commitments = 450664446;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.CommitmentOrBuilder>

getDefaultInstanceForType()

public CommitmentsScopedList getDefaultInstanceForType()
Returns
Type Description
CommitmentsScopedList

getDescriptorForType()

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

getWarning()

public Warning getWarning()

[Output Only] Informational warning which replaces the list of commitments when the list is empty.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Returns
Type Description
Warning

The warning.

getWarningBuilder()

public Warning.Builder getWarningBuilder()

[Output Only] Informational warning which replaces the list of commitments when the list is empty.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Returns
Type Description
Warning.Builder

getWarningOrBuilder()

public WarningOrBuilder getWarningOrBuilder()

[Output Only] Informational warning which replaces the list of commitments when the list is empty.

optional .google.cloud.compute.v1.Warning warning = 50704284;

Returns
Type Description
WarningOrBuilder

hasWarning()