    public interface PreCheckMajorVersionUpgradeContextOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getKind()

    public abstract String getKind()

Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The kind. |

### getKindBytes()

    public abstract ByteString getKindBytes()

Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for kind. |

### getPreCheckResponse(int index)

    public abstract PreCheckResponse getPreCheckResponse(int index)

Output only. The responses from the precheck operation.

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1beta4.PreCheckResponse` |   |

### getPreCheckResponseCount()

    public abstract int getPreCheckResponseCount()

Output only. The responses from the precheck operation.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getPreCheckResponseList()

    public abstract List<PreCheckResponse> getPreCheckResponseList()

Output only. The responses from the precheck operation.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1beta4.PreCheckResponse>` |   |

### getPreCheckResponseOrBuilder(int index)

    public abstract PreCheckResponseOrBuilder getPreCheckResponseOrBuilder(int index)

Output only. The responses from the precheck operation.

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1beta4.PreCheckResponseOrBuilder` |   |

### getPreCheckResponseOrBuilderList()

    public abstract List<? extends PreCheckResponseOrBuilder> getPreCheckResponseOrBuilderList()

Output only. The responses from the precheck operation.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.sql.v1beta4.PreCheckResponseOrBuilder>` |   |

### getTargetDatabaseVersion()

    public abstract SqlDatabaseVersion getTargetDatabaseVersion()

Required. The target database version to upgrade to.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1beta4.SqlDatabaseVersion` | The targetDatabaseVersion. |

### getTargetDatabaseVersionValue()

    public abstract int getTargetDatabaseVersionValue()

Required. The target database version to upgrade to.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for targetDatabaseVersion. |