Class CommitmentsScopedList.Builder (1.39.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
TypeDescription
Descriptor

Methods

addAllCommitments(Iterable<? extends Commitment> values)

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

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

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.Commitment>
Returns
TypeDescription
CommitmentsScopedList.Builder

addCommitments(Commitment value)

public CommitmentsScopedList.Builder addCommitments(Commitment value)

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

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

Parameter
NameDescription
valueCommitment
Returns
TypeDescription
CommitmentsScopedList.Builder

addCommitments(Commitment.Builder builderForValue)

public CommitmentsScopedList.Builder addCommitments(Commitment.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueCommitment.Builder
Returns
TypeDescription
CommitmentsScopedList.Builder

addCommitments(int index, Commitment value)

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

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

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

Parameters
NameDescription
indexint
valueCommitment
Returns
TypeDescription
CommitmentsScopedList.Builder

addCommitments(int index, Commitment.Builder builderForValue)

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

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

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

Parameters
NameDescription
indexint
builderForValueCommitment.Builder
Returns
TypeDescription
CommitmentsScopedList.Builder

addCommitmentsBuilder()

public Commitment.Builder addCommitmentsBuilder()

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

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

Returns
TypeDescription
Commitment.Builder

addCommitmentsBuilder(int index)

public Commitment.Builder addCommitmentsBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Commitment.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CommitmentsScopedList.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CommitmentsScopedList.Builder
Overrides

build()

public CommitmentsScopedList build()
Returns
TypeDescription
CommitmentsScopedList

buildPartial()

public CommitmentsScopedList buildPartial()
Returns
TypeDescription
CommitmentsScopedList

clear()

public CommitmentsScopedList.Builder clear()
Returns
TypeDescription
CommitmentsScopedList.Builder
Overrides

clearCommitments()

public CommitmentsScopedList.Builder clearCommitments()

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

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

Returns
TypeDescription
CommitmentsScopedList.Builder

clearField(Descriptors.FieldDescriptor field)

public CommitmentsScopedList.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CommitmentsScopedList.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CommitmentsScopedList.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CommitmentsScopedList.Builder

clone()

public CommitmentsScopedList.Builder clone()
Returns
TypeDescription
CommitmentsScopedList.Builder
Overrides

getCommitments(int index)

public Commitment getCommitments(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Commitment

getCommitmentsBuilder(int index)

public Commitment.Builder getCommitmentsBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Commitment.Builder

getCommitmentsBuilderList()

public List<Commitment.Builder> getCommitmentsBuilderList()

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

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

Returns
TypeDescription
List<Builder>

getCommitmentsCount()

public int getCommitmentsCount()

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

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

Returns
TypeDescription
int

getCommitmentsList()

public List<Commitment> getCommitmentsList()

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

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

Returns
TypeDescription
List<Commitment>

getCommitmentsOrBuilder(int index)

public CommitmentOrBuilder getCommitmentsOrBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CommitmentOrBuilder

getCommitmentsOrBuilderList()

public List<? extends CommitmentOrBuilder> getCommitmentsOrBuilderList()

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

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

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

getDefaultInstanceForType()

public CommitmentsScopedList getDefaultInstanceForType()
Returns
TypeDescription
CommitmentsScopedList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
WarningOrBuilder

hasWarning()

public boolean hasWarning()

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

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

Returns
TypeDescription
boolean

Whether the warning field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CommitmentsScopedList other)

public CommitmentsScopedList.Builder mergeFrom(CommitmentsScopedList other)
Parameter
NameDescription
otherCommitmentsScopedList
Returns
TypeDescription
CommitmentsScopedList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CommitmentsScopedList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommitmentsScopedList.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CommitmentsScopedList.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CommitmentsScopedList.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CommitmentsScopedList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CommitmentsScopedList.Builder
Overrides

mergeWarning(Warning value)

public CommitmentsScopedList.Builder mergeWarning(Warning value)

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

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

Parameter
NameDescription
valueWarning
Returns
TypeDescription
CommitmentsScopedList.Builder

removeCommitments(int index)

public CommitmentsScopedList.Builder removeCommitments(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CommitmentsScopedList.Builder

setCommitments(int index, Commitment value)

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

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

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

Parameters
NameDescription
indexint
valueCommitment
Returns
TypeDescription
CommitmentsScopedList.Builder

setCommitments(int index, Commitment.Builder builderForValue)

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

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

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

Parameters
NameDescription
indexint
builderForValueCommitment.Builder
Returns
TypeDescription
CommitmentsScopedList.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CommitmentsScopedList.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CommitmentsScopedList.Builder
Overrides

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

public CommitmentsScopedList.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CommitmentsScopedList.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CommitmentsScopedList.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CommitmentsScopedList.Builder
Overrides

setWarning(Warning value)

public CommitmentsScopedList.Builder setWarning(Warning value)

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

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

Parameter
NameDescription
valueWarning
Returns
TypeDescription
CommitmentsScopedList.Builder

setWarning(Warning.Builder builderForValue)

public CommitmentsScopedList.Builder setWarning(Warning.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueWarning.Builder
Returns
TypeDescription
CommitmentsScopedList.Builder