Class UpgradeClusterStatus.Builder (0.44.0)

public static final class UpgradeClusterStatus.Builder extends GeneratedMessageV3.Builder<UpgradeClusterStatus.Builder> implements UpgradeClusterStatusOrBuilder

Message for current status of the Major Version Upgrade operation.

Protobuf type google.cloud.alloydb.v1beta.UpgradeClusterStatus

Static Methods

getDescriptor()

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

Methods

addAllStages(Iterable<? extends UpgradeClusterStatus.StageStatus> values)

public UpgradeClusterStatus.Builder addAllStages(Iterable<? extends UpgradeClusterStatus.StageStatus> values)

Status of all upgrade stages.

repeated .google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus stages = 5;

Parameter
Name Description
values Iterable<? extends com.google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus>
Returns
Type Description
UpgradeClusterStatus.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addStages(UpgradeClusterStatus.StageStatus value)

public UpgradeClusterStatus.Builder addStages(UpgradeClusterStatus.StageStatus value)

Status of all upgrade stages.

repeated .google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus stages = 5;

Parameter
Name Description
value UpgradeClusterStatus.StageStatus
Returns
Type Description
UpgradeClusterStatus.Builder

addStages(UpgradeClusterStatus.StageStatus.Builder builderForValue)

public UpgradeClusterStatus.Builder addStages(UpgradeClusterStatus.StageStatus.Builder builderForValue)

Status of all upgrade stages.

repeated .google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus stages = 5;

Parameter
Name Description
builderForValue UpgradeClusterStatus.StageStatus.Builder
Returns
Type Description
UpgradeClusterStatus.Builder

addStages(int index, UpgradeClusterStatus.StageStatus value)

public UpgradeClusterStatus.Builder addStages(int index, UpgradeClusterStatus.StageStatus value)

Status of all upgrade stages.

repeated .google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus stages = 5;

Parameters
Name Description
index int
value UpgradeClusterStatus.StageStatus
Returns
Type Description
UpgradeClusterStatus.Builder

addStages(int index, UpgradeClusterStatus.StageStatus.Builder builderForValue)

public UpgradeClusterStatus.Builder addStages(int index, UpgradeClusterStatus.StageStatus.Builder builderForValue)

Status of all upgrade stages.

repeated .google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus stages = 5;

Parameters
Name Description
index int
builderForValue UpgradeClusterStatus.StageStatus.Builder
Returns
Type Description
UpgradeClusterStatus.Builder

addStagesBuilder()

public UpgradeClusterStatus.StageStatus.Builder addStagesBuilder()

Status of all upgrade stages.

repeated .google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus stages = 5;

Returns
Type Description
UpgradeClusterStatus.StageStatus.Builder

addStagesBuilder(int index)

public UpgradeClusterStatus.StageStatus.Builder addStagesBuilder(int index)

Status of all upgrade stages.

repeated .google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus stages = 5;

Parameter
Name Description
index int
Returns
Type Description
UpgradeClusterStatus.StageStatus.Builder

build()

public UpgradeClusterStatus build()
Returns
Type Description
UpgradeClusterStatus

buildPartial()

public UpgradeClusterStatus buildPartial()
Returns
Type Description
UpgradeClusterStatus

clear()

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

clearCancellable()

public UpgradeClusterStatus.Builder clearCancellable()

Whether the operation is cancellable.

bool cancellable = 2;

Returns
Type Description
UpgradeClusterStatus.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSourceVersion()

public UpgradeClusterStatus.Builder clearSourceVersion()

Source database major version.

.google.cloud.alloydb.v1beta.DatabaseVersion source_version = 3;

Returns
Type Description
UpgradeClusterStatus.Builder

This builder for chaining.

clearStages()

public UpgradeClusterStatus.Builder clearStages()

Status of all upgrade stages.

repeated .google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus stages = 5;

Returns
Type Description
UpgradeClusterStatus.Builder

clearState()

public UpgradeClusterStatus.Builder clearState()

Cluster Major Version Upgrade state.

.google.cloud.alloydb.v1beta.UpgradeClusterResponse.Status state = 1;

Returns
Type Description
UpgradeClusterStatus.Builder

This builder for chaining.

clearTargetVersion()

public UpgradeClusterStatus.Builder clearTargetVersion()

Target database major version.

.google.cloud.alloydb.v1beta.DatabaseVersion target_version = 4;

Returns
Type Description
UpgradeClusterStatus.Builder

This builder for chaining.

clone()

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

getCancellable()

public boolean getCancellable()

Whether the operation is cancellable.

bool cancellable = 2;

Returns
Type Description
boolean

The cancellable.

getDefaultInstanceForType()

public UpgradeClusterStatus getDefaultInstanceForType()
Returns
Type Description
UpgradeClusterStatus

getDescriptorForType()

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

getSourceVersion()

public DatabaseVersion getSourceVersion()

Source database major version.

.google.cloud.alloydb.v1beta.DatabaseVersion source_version = 3;

Returns
Type Description
DatabaseVersion

The sourceVersion.

getSourceVersionValue()

public int getSourceVersionValue()

Source database major version.

.google.cloud.alloydb.v1beta.DatabaseVersion source_version = 3;

Returns
Type Description
int

The enum numeric value on the wire for sourceVersion.

getStages(int index)

public UpgradeClusterStatus.StageStatus getStages(int index)

Status of all upgrade stages.

repeated .google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus stages = 5;

Parameter
Name Description
index int
Returns
Type Description
UpgradeClusterStatus.StageStatus

getStagesBuilder(int index)

public UpgradeClusterStatus.StageStatus.Builder getStagesBuilder(int index)

Status of all upgrade stages.

repeated .google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus stages = 5;

Parameter
Name Description
index int
Returns
Type Description
UpgradeClusterStatus.StageStatus.Builder

getStagesBuilderList()

public List<UpgradeClusterStatus.StageStatus.Builder> getStagesBuilderList()

Status of all upgrade stages.

repeated .google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus stages = 5;

Returns
Type Description
List<Builder>

getStagesCount()

public int getStagesCount()

Status of all upgrade stages.

repeated .google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus stages = 5;

Returns
Type Description
int

getStagesList()

public List<UpgradeClusterStatus.StageStatus> getStagesList()

Status of all upgrade stages.

repeated .google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus stages = 5;

Returns
Type Description
List<StageStatus>

getStagesOrBuilder(int index)

public UpgradeClusterStatus.StageStatusOrBuilder getStagesOrBuilder(int index)

Status of all upgrade stages.

repeated .google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus stages = 5;

Parameter
Name Description
index int
Returns
Type Description
UpgradeClusterStatus.StageStatusOrBuilder

getStagesOrBuilderList()

public List<? extends UpgradeClusterStatus.StageStatusOrBuilder> getStagesOrBuilderList()

Status of all upgrade stages.

repeated .google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus stages = 5;

Returns
Type Description
List<? extends com.google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatusOrBuilder>

getState()

public UpgradeClusterResponse.Status getState()

Cluster Major Version Upgrade state.

.google.cloud.alloydb.v1beta.UpgradeClusterResponse.Status state = 1;

Returns
Type Description
UpgradeClusterResponse.Status

The state.

getStateValue()

public int getStateValue()

Cluster Major Version Upgrade state.

.google.cloud.alloydb.v1beta.UpgradeClusterResponse.Status state = 1;

Returns
Type Description
int

The enum numeric value on the wire for state.

getTargetVersion()

public DatabaseVersion getTargetVersion()

Target database major version.

.google.cloud.alloydb.v1beta.DatabaseVersion target_version = 4;

Returns
Type Description
DatabaseVersion

The targetVersion.

getTargetVersionValue()

public int getTargetVersionValue()

Target database major version.

.google.cloud.alloydb.v1beta.DatabaseVersion target_version = 4;

Returns
Type Description
int

The enum numeric value on the wire for targetVersion.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpgradeClusterStatus other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeStages(int index)

public UpgradeClusterStatus.Builder removeStages(int index)

Status of all upgrade stages.

repeated .google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus stages = 5;

Parameter
Name Description
index int
Returns
Type Description
UpgradeClusterStatus.Builder

setCancellable(boolean value)

public UpgradeClusterStatus.Builder setCancellable(boolean value)

Whether the operation is cancellable.

bool cancellable = 2;

Parameter
Name Description
value boolean

The cancellable to set.

Returns
Type Description
UpgradeClusterStatus.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSourceVersion(DatabaseVersion value)

public UpgradeClusterStatus.Builder setSourceVersion(DatabaseVersion value)

Source database major version.

.google.cloud.alloydb.v1beta.DatabaseVersion source_version = 3;

Parameter
Name Description
value DatabaseVersion

The sourceVersion to set.

Returns
Type Description
UpgradeClusterStatus.Builder

This builder for chaining.

setSourceVersionValue(int value)

public UpgradeClusterStatus.Builder setSourceVersionValue(int value)

Source database major version.

.google.cloud.alloydb.v1beta.DatabaseVersion source_version = 3;

Parameter
Name Description
value int

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

Returns
Type Description
UpgradeClusterStatus.Builder

This builder for chaining.

setStages(int index, UpgradeClusterStatus.StageStatus value)

public UpgradeClusterStatus.Builder setStages(int index, UpgradeClusterStatus.StageStatus value)

Status of all upgrade stages.

repeated .google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus stages = 5;

Parameters
Name Description
index int
value UpgradeClusterStatus.StageStatus
Returns
Type Description
UpgradeClusterStatus.Builder

setStages(int index, UpgradeClusterStatus.StageStatus.Builder builderForValue)

public UpgradeClusterStatus.Builder setStages(int index, UpgradeClusterStatus.StageStatus.Builder builderForValue)

Status of all upgrade stages.

repeated .google.cloud.alloydb.v1beta.UpgradeClusterStatus.StageStatus stages = 5;

Parameters
Name Description
index int
builderForValue UpgradeClusterStatus.StageStatus.Builder
Returns
Type Description
UpgradeClusterStatus.Builder

setState(UpgradeClusterResponse.Status value)

public UpgradeClusterStatus.Builder setState(UpgradeClusterResponse.Status value)

Cluster Major Version Upgrade state.

.google.cloud.alloydb.v1beta.UpgradeClusterResponse.Status state = 1;

Parameter
Name Description
value UpgradeClusterResponse.Status

The state to set.

Returns
Type Description
UpgradeClusterStatus.Builder

This builder for chaining.

setStateValue(int value)

public UpgradeClusterStatus.Builder setStateValue(int value)

Cluster Major Version Upgrade state.

.google.cloud.alloydb.v1beta.UpgradeClusterResponse.Status state = 1;

Parameter
Name Description
value int

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

Returns
Type Description
UpgradeClusterStatus.Builder

This builder for chaining.

setTargetVersion(DatabaseVersion value)

public UpgradeClusterStatus.Builder setTargetVersion(DatabaseVersion value)

Target database major version.

.google.cloud.alloydb.v1beta.DatabaseVersion target_version = 4;

Parameter
Name Description
value DatabaseVersion

The targetVersion to set.

Returns
Type Description
UpgradeClusterStatus.Builder

This builder for chaining.

setTargetVersionValue(int value)

public UpgradeClusterStatus.Builder setTargetVersionValue(int value)

Target database major version.

.google.cloud.alloydb.v1beta.DatabaseVersion target_version = 4;

Parameter
Name Description
value int

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

Returns
Type Description
UpgradeClusterStatus.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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