Class PreCheckMajorVersionUpgradeContext.Builder (0.1.0)

public static final class PreCheckMajorVersionUpgradeContext.Builder extends GeneratedMessage.Builder<PreCheckMajorVersionUpgradeContext.Builder> implements PreCheckMajorVersionUpgradeContextOrBuilder

Pre-check major version upgrade context.

Protobuf type google.cloud.sql.v1.PreCheckMajorVersionUpgradeContext

Static Methods

getDescriptor()

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

Methods

addAllPreCheckResponse(Iterable<? extends PreCheckResponse> values)

public PreCheckMajorVersionUpgradeContext.Builder addAllPreCheckResponse(Iterable<? extends PreCheckResponse> values)

Output only. The responses from the precheck operation.

repeated .google.cloud.sql.v1.PreCheckResponse pre_check_response = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.sql.v1.PreCheckResponse>
Returns
Type Description
PreCheckMajorVersionUpgradeContext.Builder

addPreCheckResponse(PreCheckResponse value)

public PreCheckMajorVersionUpgradeContext.Builder addPreCheckResponse(PreCheckResponse value)

Output only. The responses from the precheck operation.

repeated .google.cloud.sql.v1.PreCheckResponse pre_check_response = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value PreCheckResponse
Returns
Type Description
PreCheckMajorVersionUpgradeContext.Builder

addPreCheckResponse(PreCheckResponse.Builder builderForValue)

public PreCheckMajorVersionUpgradeContext.Builder addPreCheckResponse(PreCheckResponse.Builder builderForValue)

Output only. The responses from the precheck operation.

repeated .google.cloud.sql.v1.PreCheckResponse pre_check_response = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue PreCheckResponse.Builder
Returns
Type Description
PreCheckMajorVersionUpgradeContext.Builder

addPreCheckResponse(int index, PreCheckResponse value)

public PreCheckMajorVersionUpgradeContext.Builder addPreCheckResponse(int index, PreCheckResponse value)

Output only. The responses from the precheck operation.

repeated .google.cloud.sql.v1.PreCheckResponse pre_check_response = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value PreCheckResponse
Returns
Type Description
PreCheckMajorVersionUpgradeContext.Builder

addPreCheckResponse(int index, PreCheckResponse.Builder builderForValue)

public PreCheckMajorVersionUpgradeContext.Builder addPreCheckResponse(int index, PreCheckResponse.Builder builderForValue)

Output only. The responses from the precheck operation.

repeated .google.cloud.sql.v1.PreCheckResponse pre_check_response = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue PreCheckResponse.Builder
Returns
Type Description
PreCheckMajorVersionUpgradeContext.Builder

addPreCheckResponseBuilder()

public PreCheckResponse.Builder addPreCheckResponseBuilder()

Output only. The responses from the precheck operation.

repeated .google.cloud.sql.v1.PreCheckResponse pre_check_response = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PreCheckResponse.Builder

addPreCheckResponseBuilder(int index)

public PreCheckResponse.Builder addPreCheckResponseBuilder(int index)

Output only. The responses from the precheck operation.

repeated .google.cloud.sql.v1.PreCheckResponse pre_check_response = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PreCheckResponse.Builder

build()

public PreCheckMajorVersionUpgradeContext build()
Returns
Type Description
PreCheckMajorVersionUpgradeContext

buildPartial()

public PreCheckMajorVersionUpgradeContext buildPartial()
Returns
Type Description
PreCheckMajorVersionUpgradeContext

clear()

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

clearKind()

public PreCheckMajorVersionUpgradeContext.Builder clearKind()

Optional. This is always sql#preCheckMajorVersionUpgradeContext.

string kind = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PreCheckMajorVersionUpgradeContext.Builder

This builder for chaining.

clearPreCheckResponse()

public PreCheckMajorVersionUpgradeContext.Builder clearPreCheckResponse()

Output only. The responses from the precheck operation.

repeated .google.cloud.sql.v1.PreCheckResponse pre_check_response = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PreCheckMajorVersionUpgradeContext.Builder

clearTargetDatabaseVersion()

public PreCheckMajorVersionUpgradeContext.Builder clearTargetDatabaseVersion()

Required. The target database version to upgrade to.

.google.cloud.sql.v1.SqlDatabaseVersion target_database_version = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PreCheckMajorVersionUpgradeContext.Builder

This builder for chaining.

getDefaultInstanceForType()

public PreCheckMajorVersionUpgradeContext getDefaultInstanceForType()
Returns
Type Description
PreCheckMajorVersionUpgradeContext

getDescriptorForType()

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

getKind()

public String getKind()

Optional. This is always sql#preCheckMajorVersionUpgradeContext.

string kind = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

Optional. This is always sql#preCheckMajorVersionUpgradeContext.

string kind = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for kind.

getPreCheckResponse(int index)

public PreCheckResponse getPreCheckResponse(int index)

Output only. The responses from the precheck operation.

repeated .google.cloud.sql.v1.PreCheckResponse pre_check_response = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PreCheckResponse

getPreCheckResponseBuilder(int index)

public PreCheckResponse.Builder getPreCheckResponseBuilder(int index)

Output only. The responses from the precheck operation.

repeated .google.cloud.sql.v1.PreCheckResponse pre_check_response = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PreCheckResponse.Builder

getPreCheckResponseBuilderList()

public List<PreCheckResponse.Builder> getPreCheckResponseBuilderList()

Output only. The responses from the precheck operation.

repeated .google.cloud.sql.v1.PreCheckResponse pre_check_response = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getPreCheckResponseCount()

public int getPreCheckResponseCount()

Output only. The responses from the precheck operation.

repeated .google.cloud.sql.v1.PreCheckResponse pre_check_response = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getPreCheckResponseList()

public List<PreCheckResponse> getPreCheckResponseList()

Output only. The responses from the precheck operation.

repeated .google.cloud.sql.v1.PreCheckResponse pre_check_response = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<PreCheckResponse>

getPreCheckResponseOrBuilder(int index)

public PreCheckResponseOrBuilder getPreCheckResponseOrBuilder(int index)

Output only. The responses from the precheck operation.

repeated .google.cloud.sql.v1.PreCheckResponse pre_check_response = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PreCheckResponseOrBuilder

getPreCheckResponseOrBuilderList()

public List<? extends PreCheckResponseOrBuilder> getPreCheckResponseOrBuilderList()

Output only. The responses from the precheck operation.

repeated .google.cloud.sql.v1.PreCheckResponse pre_check_response = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.sql.v1.PreCheckResponseOrBuilder>

getTargetDatabaseVersion()

public SqlDatabaseVersion getTargetDatabaseVersion()

Required. The target database version to upgrade to.

.google.cloud.sql.v1.SqlDatabaseVersion target_database_version = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SqlDatabaseVersion

The targetDatabaseVersion.

getTargetDatabaseVersionValue()

public int getTargetDatabaseVersionValue()

Required. The target database version to upgrade to.

.google.cloud.sql.v1.SqlDatabaseVersion target_database_version = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for targetDatabaseVersion.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PreCheckMajorVersionUpgradeContext other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removePreCheckResponse(int index)

public PreCheckMajorVersionUpgradeContext.Builder removePreCheckResponse(int index)

Output only. The responses from the precheck operation.

repeated .google.cloud.sql.v1.PreCheckResponse pre_check_response = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
PreCheckMajorVersionUpgradeContext.Builder

setKind(String value)

public PreCheckMajorVersionUpgradeContext.Builder setKind(String value)

Optional. This is always sql#preCheckMajorVersionUpgradeContext.

string kind = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
PreCheckMajorVersionUpgradeContext.Builder

This builder for chaining.

setKindBytes(ByteString value)

public PreCheckMajorVersionUpgradeContext.Builder setKindBytes(ByteString value)

Optional. This is always sql#preCheckMajorVersionUpgradeContext.

string kind = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
PreCheckMajorVersionUpgradeContext.Builder

This builder for chaining.

setPreCheckResponse(int index, PreCheckResponse value)

public PreCheckMajorVersionUpgradeContext.Builder setPreCheckResponse(int index, PreCheckResponse value)

Output only. The responses from the precheck operation.

repeated .google.cloud.sql.v1.PreCheckResponse pre_check_response = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value PreCheckResponse
Returns
Type Description
PreCheckMajorVersionUpgradeContext.Builder

setPreCheckResponse(int index, PreCheckResponse.Builder builderForValue)

public PreCheckMajorVersionUpgradeContext.Builder setPreCheckResponse(int index, PreCheckResponse.Builder builderForValue)

Output only. The responses from the precheck operation.

repeated .google.cloud.sql.v1.PreCheckResponse pre_check_response = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue PreCheckResponse.Builder
Returns
Type Description
PreCheckMajorVersionUpgradeContext.Builder

setTargetDatabaseVersion(SqlDatabaseVersion value)

public PreCheckMajorVersionUpgradeContext.Builder setTargetDatabaseVersion(SqlDatabaseVersion value)

Required. The target database version to upgrade to.

.google.cloud.sql.v1.SqlDatabaseVersion target_database_version = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SqlDatabaseVersion

The targetDatabaseVersion to set.

Returns
Type Description
PreCheckMajorVersionUpgradeContext.Builder

This builder for chaining.

setTargetDatabaseVersionValue(int value)

public PreCheckMajorVersionUpgradeContext.Builder setTargetDatabaseVersionValue(int value)

Required. The target database version to upgrade to.

.google.cloud.sql.v1.SqlDatabaseVersion target_database_version = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
PreCheckMajorVersionUpgradeContext.Builder

This builder for chaining.