Class UpgradeClusterResponse.ClusterUpgradeDetails.Builder (0.43.0)

public static final class UpgradeClusterResponse.ClusterUpgradeDetails.Builder extends GeneratedMessageV3.Builder<UpgradeClusterResponse.ClusterUpgradeDetails.Builder> implements UpgradeClusterResponse.ClusterUpgradeDetailsOrBuilder

Upgrade details of a cluster. This cluster can be primary or secondary.

Protobuf type google.cloud.alloydb.v1alpha.UpgradeClusterResponse.ClusterUpgradeDetails

Static Methods

getDescriptor()

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

Methods

addAllInstanceUpgradeDetails(Iterable<? extends UpgradeClusterResponse.InstanceUpgradeDetails> values)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder addAllInstanceUpgradeDetails(Iterable<? extends UpgradeClusterResponse.InstanceUpgradeDetails> values)

Upgrade details of the instances directly associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6;

Parameter
Name Description
values Iterable<? extends com.google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails>
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

addAllStageInfo(Iterable<? extends UpgradeClusterResponse.StageInfo> values)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder addAllStageInfo(Iterable<? extends UpgradeClusterResponse.StageInfo> values)

Array containing stage info associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.StageInfo stage_info = 5;

Parameter
Name Description
values Iterable<? extends com.google.cloud.alloydb.v1alpha.UpgradeClusterResponse.StageInfo>
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

addInstanceUpgradeDetails(UpgradeClusterResponse.InstanceUpgradeDetails value)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder addInstanceUpgradeDetails(UpgradeClusterResponse.InstanceUpgradeDetails value)

Upgrade details of the instances directly associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6;

Parameter
Name Description
value UpgradeClusterResponse.InstanceUpgradeDetails
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

addInstanceUpgradeDetails(UpgradeClusterResponse.InstanceUpgradeDetails.Builder builderForValue)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder addInstanceUpgradeDetails(UpgradeClusterResponse.InstanceUpgradeDetails.Builder builderForValue)

Upgrade details of the instances directly associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6;

Parameter
Name Description
builderForValue UpgradeClusterResponse.InstanceUpgradeDetails.Builder
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

addInstanceUpgradeDetails(int index, UpgradeClusterResponse.InstanceUpgradeDetails value)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder addInstanceUpgradeDetails(int index, UpgradeClusterResponse.InstanceUpgradeDetails value)

Upgrade details of the instances directly associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6;

Parameters
Name Description
index int
value UpgradeClusterResponse.InstanceUpgradeDetails
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

addInstanceUpgradeDetails(int index, UpgradeClusterResponse.InstanceUpgradeDetails.Builder builderForValue)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder addInstanceUpgradeDetails(int index, UpgradeClusterResponse.InstanceUpgradeDetails.Builder builderForValue)

Upgrade details of the instances directly associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6;

Parameters
Name Description
index int
builderForValue UpgradeClusterResponse.InstanceUpgradeDetails.Builder
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

addInstanceUpgradeDetailsBuilder()

public UpgradeClusterResponse.InstanceUpgradeDetails.Builder addInstanceUpgradeDetailsBuilder()

Upgrade details of the instances directly associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6;

Returns
Type Description
UpgradeClusterResponse.InstanceUpgradeDetails.Builder

addInstanceUpgradeDetailsBuilder(int index)

public UpgradeClusterResponse.InstanceUpgradeDetails.Builder addInstanceUpgradeDetailsBuilder(int index)

Upgrade details of the instances directly associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6;

Parameter
Name Description
index int
Returns
Type Description
UpgradeClusterResponse.InstanceUpgradeDetails.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addStageInfo(UpgradeClusterResponse.StageInfo value)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder addStageInfo(UpgradeClusterResponse.StageInfo value)

Array containing stage info associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.StageInfo stage_info = 5;

Parameter
Name Description
value UpgradeClusterResponse.StageInfo
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

addStageInfo(UpgradeClusterResponse.StageInfo.Builder builderForValue)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder addStageInfo(UpgradeClusterResponse.StageInfo.Builder builderForValue)

Array containing stage info associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.StageInfo stage_info = 5;

Parameter
Name Description
builderForValue UpgradeClusterResponse.StageInfo.Builder
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

addStageInfo(int index, UpgradeClusterResponse.StageInfo value)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder addStageInfo(int index, UpgradeClusterResponse.StageInfo value)

Array containing stage info associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.StageInfo stage_info = 5;

Parameters
Name Description
index int
value UpgradeClusterResponse.StageInfo
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

addStageInfo(int index, UpgradeClusterResponse.StageInfo.Builder builderForValue)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder addStageInfo(int index, UpgradeClusterResponse.StageInfo.Builder builderForValue)

Array containing stage info associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.StageInfo stage_info = 5;

Parameters
Name Description
index int
builderForValue UpgradeClusterResponse.StageInfo.Builder
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

addStageInfoBuilder()

public UpgradeClusterResponse.StageInfo.Builder addStageInfoBuilder()

Array containing stage info associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.StageInfo stage_info = 5;

Returns
Type Description
UpgradeClusterResponse.StageInfo.Builder

addStageInfoBuilder(int index)

public UpgradeClusterResponse.StageInfo.Builder addStageInfoBuilder(int index)

Array containing stage info associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.StageInfo stage_info = 5;

Parameter
Name Description
index int
Returns
Type Description
UpgradeClusterResponse.StageInfo.Builder

build()

public UpgradeClusterResponse.ClusterUpgradeDetails build()
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails

buildPartial()

public UpgradeClusterResponse.ClusterUpgradeDetails buildPartial()
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails

clear()

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder clear()
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder
Overrides

clearClusterType()

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder clearClusterType()

Cluster type which can either be primary or secondary.

.google.cloud.alloydb.v1alpha.Cluster.ClusterType cluster_type = 3;

Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

This builder for chaining.

clearDatabaseVersion()

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder clearDatabaseVersion()

Database version of the cluster after the upgrade operation. This will be the target version if the upgrade was successful otherwise it remains the same as that before the upgrade operation.

.google.cloud.alloydb.v1alpha.DatabaseVersion database_version = 4;

Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInstanceUpgradeDetails()

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder clearInstanceUpgradeDetails()

Upgrade details of the instances directly associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6;

Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

clearName()

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder clearName()

Normalized name of the cluster

string name = 1;

Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStageInfo()

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder clearStageInfo()

Array containing stage info associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.StageInfo stage_info = 5;

Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

clearUpgradeStatus()

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder clearUpgradeStatus()

Upgrade status of the cluster.

.google.cloud.alloydb.v1alpha.UpgradeClusterResponse.Status upgrade_status = 2;

Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

This builder for chaining.

clone()

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder clone()
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder
Overrides

getClusterType()

public Cluster.ClusterType getClusterType()

Cluster type which can either be primary or secondary.

.google.cloud.alloydb.v1alpha.Cluster.ClusterType cluster_type = 3;

Returns
Type Description
Cluster.ClusterType

The clusterType.

getClusterTypeValue()

public int getClusterTypeValue()

Cluster type which can either be primary or secondary.

.google.cloud.alloydb.v1alpha.Cluster.ClusterType cluster_type = 3;

Returns
Type Description
int

The enum numeric value on the wire for clusterType.

getDatabaseVersion()

public DatabaseVersion getDatabaseVersion()

Database version of the cluster after the upgrade operation. This will be the target version if the upgrade was successful otherwise it remains the same as that before the upgrade operation.

.google.cloud.alloydb.v1alpha.DatabaseVersion database_version = 4;

Returns
Type Description
DatabaseVersion

The databaseVersion.

getDatabaseVersionValue()

public int getDatabaseVersionValue()

Database version of the cluster after the upgrade operation. This will be the target version if the upgrade was successful otherwise it remains the same as that before the upgrade operation.

.google.cloud.alloydb.v1alpha.DatabaseVersion database_version = 4;

Returns
Type Description
int

The enum numeric value on the wire for databaseVersion.

getDefaultInstanceForType()

public UpgradeClusterResponse.ClusterUpgradeDetails getDefaultInstanceForType()
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails

getDescriptorForType()

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

getInstanceUpgradeDetails(int index)

public UpgradeClusterResponse.InstanceUpgradeDetails getInstanceUpgradeDetails(int index)

Upgrade details of the instances directly associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6;

Parameter
Name Description
index int
Returns
Type Description
UpgradeClusterResponse.InstanceUpgradeDetails

getInstanceUpgradeDetailsBuilder(int index)

public UpgradeClusterResponse.InstanceUpgradeDetails.Builder getInstanceUpgradeDetailsBuilder(int index)

Upgrade details of the instances directly associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6;

Parameter
Name Description
index int
Returns
Type Description
UpgradeClusterResponse.InstanceUpgradeDetails.Builder

getInstanceUpgradeDetailsBuilderList()

public List<UpgradeClusterResponse.InstanceUpgradeDetails.Builder> getInstanceUpgradeDetailsBuilderList()

Upgrade details of the instances directly associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6;

Returns
Type Description
List<Builder>

getInstanceUpgradeDetailsCount()

public int getInstanceUpgradeDetailsCount()

Upgrade details of the instances directly associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6;

Returns
Type Description
int

getInstanceUpgradeDetailsList()

public List<UpgradeClusterResponse.InstanceUpgradeDetails> getInstanceUpgradeDetailsList()

Upgrade details of the instances directly associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6;

Returns
Type Description
List<InstanceUpgradeDetails>

getInstanceUpgradeDetailsOrBuilder(int index)

public UpgradeClusterResponse.InstanceUpgradeDetailsOrBuilder getInstanceUpgradeDetailsOrBuilder(int index)

Upgrade details of the instances directly associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6;

Parameter
Name Description
index int
Returns
Type Description
UpgradeClusterResponse.InstanceUpgradeDetailsOrBuilder

getInstanceUpgradeDetailsOrBuilderList()

public List<? extends UpgradeClusterResponse.InstanceUpgradeDetailsOrBuilder> getInstanceUpgradeDetailsOrBuilderList()

Upgrade details of the instances directly associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6;

Returns
Type Description
List<? extends com.google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetailsOrBuilder>

getName()

public String getName()

Normalized name of the cluster

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Normalized name of the cluster

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getStageInfo(int index)

public UpgradeClusterResponse.StageInfo getStageInfo(int index)

Array containing stage info associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.StageInfo stage_info = 5;

Parameter
Name Description
index int
Returns
Type Description
UpgradeClusterResponse.StageInfo

getStageInfoBuilder(int index)

public UpgradeClusterResponse.StageInfo.Builder getStageInfoBuilder(int index)

Array containing stage info associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.StageInfo stage_info = 5;

Parameter
Name Description
index int
Returns
Type Description
UpgradeClusterResponse.StageInfo.Builder

getStageInfoBuilderList()

public List<UpgradeClusterResponse.StageInfo.Builder> getStageInfoBuilderList()

Array containing stage info associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.StageInfo stage_info = 5;

Returns
Type Description
List<Builder>

getStageInfoCount()

public int getStageInfoCount()

Array containing stage info associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.StageInfo stage_info = 5;

Returns
Type Description
int

getStageInfoList()

public List<UpgradeClusterResponse.StageInfo> getStageInfoList()

Array containing stage info associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.StageInfo stage_info = 5;

Returns
Type Description
List<StageInfo>

getStageInfoOrBuilder(int index)

public UpgradeClusterResponse.StageInfoOrBuilder getStageInfoOrBuilder(int index)

Array containing stage info associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.StageInfo stage_info = 5;

Parameter
Name Description
index int
Returns
Type Description
UpgradeClusterResponse.StageInfoOrBuilder

getStageInfoOrBuilderList()

public List<? extends UpgradeClusterResponse.StageInfoOrBuilder> getStageInfoOrBuilderList()

Array containing stage info associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.StageInfo stage_info = 5;

Returns
Type Description
List<? extends com.google.cloud.alloydb.v1alpha.UpgradeClusterResponse.StageInfoOrBuilder>

getUpgradeStatus()

public UpgradeClusterResponse.Status getUpgradeStatus()

Upgrade status of the cluster.

.google.cloud.alloydb.v1alpha.UpgradeClusterResponse.Status upgrade_status = 2;

Returns
Type Description
UpgradeClusterResponse.Status

The upgradeStatus.

getUpgradeStatusValue()

public int getUpgradeStatusValue()

Upgrade status of the cluster.

.google.cloud.alloydb.v1alpha.UpgradeClusterResponse.Status upgrade_status = 2;

Returns
Type Description
int

The enum numeric value on the wire for upgradeStatus.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpgradeClusterResponse.ClusterUpgradeDetails other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeInstanceUpgradeDetails(int index)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder removeInstanceUpgradeDetails(int index)

Upgrade details of the instances directly associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6;

Parameter
Name Description
index int
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

removeStageInfo(int index)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder removeStageInfo(int index)

Array containing stage info associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.StageInfo stage_info = 5;

Parameter
Name Description
index int
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

setClusterType(Cluster.ClusterType value)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder setClusterType(Cluster.ClusterType value)

Cluster type which can either be primary or secondary.

.google.cloud.alloydb.v1alpha.Cluster.ClusterType cluster_type = 3;

Parameter
Name Description
value Cluster.ClusterType

The clusterType to set.

Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

This builder for chaining.

setClusterTypeValue(int value)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder setClusterTypeValue(int value)

Cluster type which can either be primary or secondary.

.google.cloud.alloydb.v1alpha.Cluster.ClusterType cluster_type = 3;

Parameter
Name Description
value int

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

Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

This builder for chaining.

setDatabaseVersion(DatabaseVersion value)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder setDatabaseVersion(DatabaseVersion value)

Database version of the cluster after the upgrade operation. This will be the target version if the upgrade was successful otherwise it remains the same as that before the upgrade operation.

.google.cloud.alloydb.v1alpha.DatabaseVersion database_version = 4;

Parameter
Name Description
value DatabaseVersion

The databaseVersion to set.

Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

This builder for chaining.

setDatabaseVersionValue(int value)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder setDatabaseVersionValue(int value)

Database version of the cluster after the upgrade operation. This will be the target version if the upgrade was successful otherwise it remains the same as that before the upgrade operation.

.google.cloud.alloydb.v1alpha.DatabaseVersion database_version = 4;

Parameter
Name Description
value int

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

Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstanceUpgradeDetails(int index, UpgradeClusterResponse.InstanceUpgradeDetails value)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder setInstanceUpgradeDetails(int index, UpgradeClusterResponse.InstanceUpgradeDetails value)

Upgrade details of the instances directly associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6;

Parameters
Name Description
index int
value UpgradeClusterResponse.InstanceUpgradeDetails
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

setInstanceUpgradeDetails(int index, UpgradeClusterResponse.InstanceUpgradeDetails.Builder builderForValue)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder setInstanceUpgradeDetails(int index, UpgradeClusterResponse.InstanceUpgradeDetails.Builder builderForValue)

Upgrade details of the instances directly associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.InstanceUpgradeDetails instance_upgrade_details = 6;

Parameters
Name Description
index int
builderForValue UpgradeClusterResponse.InstanceUpgradeDetails.Builder
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

setName(String value)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder setName(String value)

Normalized name of the cluster

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder setNameBytes(ByteString value)

Normalized name of the cluster

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

This builder for chaining.

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

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

setStageInfo(int index, UpgradeClusterResponse.StageInfo value)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder setStageInfo(int index, UpgradeClusterResponse.StageInfo value)

Array containing stage info associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.StageInfo stage_info = 5;

Parameters
Name Description
index int
value UpgradeClusterResponse.StageInfo
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

setStageInfo(int index, UpgradeClusterResponse.StageInfo.Builder builderForValue)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder setStageInfo(int index, UpgradeClusterResponse.StageInfo.Builder builderForValue)

Array containing stage info associated with this cluster.

repeated .google.cloud.alloydb.v1alpha.UpgradeClusterResponse.StageInfo stage_info = 5;

Parameters
Name Description
index int
builderForValue UpgradeClusterResponse.StageInfo.Builder
Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpgradeStatus(UpgradeClusterResponse.Status value)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder setUpgradeStatus(UpgradeClusterResponse.Status value)

Upgrade status of the cluster.

.google.cloud.alloydb.v1alpha.UpgradeClusterResponse.Status upgrade_status = 2;

Parameter
Name Description
value UpgradeClusterResponse.Status

The upgradeStatus to set.

Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

This builder for chaining.

setUpgradeStatusValue(int value)

public UpgradeClusterResponse.ClusterUpgradeDetails.Builder setUpgradeStatusValue(int value)

Upgrade status of the cluster.

.google.cloud.alloydb.v1alpha.UpgradeClusterResponse.Status upgrade_status = 2;

Parameter
Name Description
value int

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

Returns
Type Description
UpgradeClusterResponse.ClusterUpgradeDetails.Builder

This builder for chaining.