    public interface ExportContextOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getBakExportOptions()

    public abstract ExportContext.SqlBakExportOptions getBakExportOptions()

Options for exporting data as BAK files.

`.google.cloud.sql.v1.ExportContext.SqlBakExportOptions bak_export_options = 9;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.ExportContext.SqlBakExportOptions` | The bakExportOptions. |

### getBakExportOptionsOrBuilder()

    public abstract ExportContext.SqlBakExportOptionsOrBuilder getBakExportOptionsOrBuilder()

Options for exporting data as BAK files.

`.google.cloud.sql.v1.ExportContext.SqlBakExportOptions bak_export_options = 9;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.ExportContext.SqlBakExportOptionsOrBuilder` |   |

### getCsvExportOptions()

    public abstract ExportContext.SqlCsvExportOptions getCsvExportOptions()

Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.

`.google.cloud.sql.v1.ExportContext.SqlCsvExportOptions csv_export_options = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.ExportContext.SqlCsvExportOptions` | The csvExportOptions. |

### getCsvExportOptionsOrBuilder()

    public abstract ExportContext.SqlCsvExportOptionsOrBuilder getCsvExportOptionsOrBuilder()

Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.

`.google.cloud.sql.v1.ExportContext.SqlCsvExportOptions csv_export_options = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.ExportContext.SqlCsvExportOptionsOrBuilder` |   |

### getDatabases(int index)

    public abstract String getDatabases(int index)

Databases to be exported. \<br /\> `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. \<br /\> `PostgreSQL instances:` If you don't specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. \<br /\> `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.

`repeated string databases = 2;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The databases at the given index. |

### getDatabasesBytes(int index)

    public abstract ByteString getDatabasesBytes(int index)

Databases to be exported. \<br /\> `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. \<br /\> `PostgreSQL instances:` If you don't specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. \<br /\> `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.

`repeated string databases = 2;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the databases at the given index. |

### getDatabasesCount()

    public abstract int getDatabasesCount()

Databases to be exported. \<br /\> `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. \<br /\> `PostgreSQL instances:` If you don't specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. \<br /\> `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.

`repeated string databases = 2;`

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

### getDatabasesList()

    public abstract List<String> getDatabasesList()

Databases to be exported. \<br /\> `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. \<br /\> `PostgreSQL instances:` If you don't specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. \<br /\> `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.

`repeated string databases = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the databases. |

### getFileType()

    public abstract SqlFileType getFileType()

The file type for the specified uri.

`.google.cloud.sql.v1.SqlFileType file_type = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.SqlFileType` | The fileType. |

### getFileTypeValue()

    public abstract int getFileTypeValue()

The file type for the specified uri.

`.google.cloud.sql.v1.SqlFileType file_type = 6;`

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

### getKind()

    public abstract String getKind()

This is always `sql#exportContext`.

`string kind = 3;`

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

### getKindBytes()

    public abstract ByteString getKindBytes()

This is always `sql#exportContext`.

`string kind = 3;`

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

### getOffload()

    public abstract BoolValue getOffload()

Whether to perform a serverless export.

`.google.protobuf.BoolValue offload = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.BoolValue.html` | The offload. |

### getOffloadOrBuilder()

    public abstract BoolValueOrBuilder getOffloadOrBuilder()

Whether to perform a serverless export.

`.google.protobuf.BoolValue offload = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.BoolValueOrBuilder.html` |   |

### getSqlExportOptions()

    public abstract ExportContext.SqlExportOptions getSqlExportOptions()

Options for exporting data as SQL statements.

`.google.cloud.sql.v1.ExportContext.SqlExportOptions sql_export_options = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.ExportContext.SqlExportOptions` | The sqlExportOptions. |

### getSqlExportOptionsOrBuilder()

    public abstract ExportContext.SqlExportOptionsOrBuilder getSqlExportOptionsOrBuilder()

Options for exporting data as SQL statements.

`.google.cloud.sql.v1.ExportContext.SqlExportOptions sql_export_options = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.ExportContext.SqlExportOptionsOrBuilder` |   |

### getTdeExportOptions()

    public abstract ExportContext.SqlTdeExportOptions getTdeExportOptions()

Optional. Export parameters specific to SQL Server TDE certificates

` .google.cloud.sql.v1.ExportContext.SqlTdeExportOptions tde_export_options = 10 [(.google.api.field_behavior) = OPTIONAL]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.ExportContext.SqlTdeExportOptions` | The tdeExportOptions. |

### getTdeExportOptionsOrBuilder()

    public abstract ExportContext.SqlTdeExportOptionsOrBuilder getTdeExportOptionsOrBuilder()

Optional. Export parameters specific to SQL Server TDE certificates

` .google.cloud.sql.v1.ExportContext.SqlTdeExportOptions tde_export_options = 10 [(.google.api.field_behavior) = OPTIONAL]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.ExportContext.SqlTdeExportOptionsOrBuilder` |   |

### getUri()

    public abstract String getUri()

The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.

`string uri = 1;`

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

### getUriBytes()

    public abstract ByteString getUriBytes()

The path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.

`string uri = 1;`

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

### hasBakExportOptions()

    public abstract boolean hasBakExportOptions()

Options for exporting data as BAK files.

`.google.cloud.sql.v1.ExportContext.SqlBakExportOptions bak_export_options = 9;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the bakExportOptions field is set. |

### hasCsvExportOptions()

    public abstract boolean hasCsvExportOptions()

Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.

`.google.cloud.sql.v1.ExportContext.SqlCsvExportOptions csv_export_options = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the csvExportOptions field is set. |

### hasOffload()

    public abstract boolean hasOffload()

Whether to perform a serverless export.

`.google.protobuf.BoolValue offload = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the offload field is set. |

### hasSqlExportOptions()

    public abstract boolean hasSqlExportOptions()

Options for exporting data as SQL statements.

`.google.cloud.sql.v1.ExportContext.SqlExportOptions sql_export_options = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the sqlExportOptions field is set. |

### hasTdeExportOptions()

    public abstract boolean hasTdeExportOptions()

Optional. Export parameters specific to SQL Server TDE certificates

` .google.cloud.sql.v1.ExportContext.SqlTdeExportOptions tde_export_options = 10 [(.google.api.field_behavior) = OPTIONAL]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the tdeExportOptions field is set. |