public static final class ExportContext.Builder extends GeneratedMessage.Builder<ExportContext.Builder> implements ExportContextOrBuilderDatabase instance export context.
Protobuf type google.cloud.sql.v1beta4.ExportContext
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ExportContext.BuilderImplements
ExportContextOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDatabases(Iterable<String> values)
public ExportContext.Builder addAllDatabases(Iterable<String> values) 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 |
values |
Iterable<String>The databases to add. |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
This builder for chaining. |
addDatabases(String value)
public ExportContext.Builder addDatabases(String value) 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 |
value |
StringThe databases to add. |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
This builder for chaining. |
addDatabasesBytes(ByteString value)
public ExportContext.Builder addDatabasesBytes(ByteString value) 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 |
value |
ByteStringThe bytes of the databases to add. |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
This builder for chaining. |
build()
public ExportContext build()| Returns | |
|---|---|
| Type | Description |
ExportContext |
|
buildPartial()
public ExportContext buildPartial()| Returns | |
|---|---|
| Type | Description |
ExportContext |
|
clear()
public ExportContext.Builder clear()| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
clearBakExportOptions()
public ExportContext.Builder clearBakExportOptions()Options for exporting data as BAK files.
.google.cloud.sql.v1beta4.ExportContext.SqlBakExportOptions bak_export_options = 9;
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
clearCsvExportOptions()
public ExportContext.Builder clearCsvExportOptions() Options for exporting data as CSV. MySQL and PostgreSQL
instances only.
.google.cloud.sql.v1beta4.ExportContext.SqlCsvExportOptions csv_export_options = 5;
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
clearDatabases()
public ExportContext.Builder clearDatabases() 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 |
ExportContext.Builder |
This builder for chaining. |
clearFileType()
public ExportContext.Builder clearFileType()The file type for the specified uri.
.google.cloud.sql.v1beta4.SqlFileType file_type = 6;
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
This builder for chaining. |
clearKind()
public ExportContext.Builder clearKind() This is always sql#exportContext.
string kind = 3;
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
This builder for chaining. |
clearOffload()
public ExportContext.Builder clearOffload()Whether to perform a serverless export.
.google.protobuf.BoolValue offload = 8;
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
clearSqlExportOptions()
public ExportContext.Builder clearSqlExportOptions()Options for exporting data as SQL statements.
.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions sql_export_options = 4;
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
clearTdeExportOptions()
public ExportContext.Builder clearTdeExportOptions()Optional. Export parameters specific to SQL Server TDE certificates
.google.cloud.sql.v1beta4.ExportContext.SqlTdeExportOptions tde_export_options = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
clearUri()
public ExportContext.Builder clearUri() 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 |
ExportContext.Builder |
This builder for chaining. |
getBakExportOptions()
public ExportContext.SqlBakExportOptions getBakExportOptions()Options for exporting data as BAK files.
.google.cloud.sql.v1beta4.ExportContext.SqlBakExportOptions bak_export_options = 9;
| Returns | |
|---|---|
| Type | Description |
ExportContext.SqlBakExportOptions |
The bakExportOptions. |
getBakExportOptionsBuilder()
public ExportContext.SqlBakExportOptions.Builder getBakExportOptionsBuilder()Options for exporting data as BAK files.
.google.cloud.sql.v1beta4.ExportContext.SqlBakExportOptions bak_export_options = 9;
| Returns | |
|---|---|
| Type | Description |
ExportContext.SqlBakExportOptions.Builder |
|
getBakExportOptionsOrBuilder()
public ExportContext.SqlBakExportOptionsOrBuilder getBakExportOptionsOrBuilder()Options for exporting data as BAK files.
.google.cloud.sql.v1beta4.ExportContext.SqlBakExportOptions bak_export_options = 9;
| Returns | |
|---|---|
| Type | Description |
ExportContext.SqlBakExportOptionsOrBuilder |
|
getCsvExportOptions()
public ExportContext.SqlCsvExportOptions getCsvExportOptions() Options for exporting data as CSV. MySQL and PostgreSQL
instances only.
.google.cloud.sql.v1beta4.ExportContext.SqlCsvExportOptions csv_export_options = 5;
| Returns | |
|---|---|
| Type | Description |
ExportContext.SqlCsvExportOptions |
The csvExportOptions. |
getCsvExportOptionsBuilder()
public ExportContext.SqlCsvExportOptions.Builder getCsvExportOptionsBuilder() Options for exporting data as CSV. MySQL and PostgreSQL
instances only.
.google.cloud.sql.v1beta4.ExportContext.SqlCsvExportOptions csv_export_options = 5;
| Returns | |
|---|---|
| Type | Description |
ExportContext.SqlCsvExportOptions.Builder |
|
getCsvExportOptionsOrBuilder()
public ExportContext.SqlCsvExportOptionsOrBuilder getCsvExportOptionsOrBuilder() Options for exporting data as CSV. MySQL and PostgreSQL
instances only.
.google.cloud.sql.v1beta4.ExportContext.SqlCsvExportOptions csv_export_options = 5;
| Returns | |
|---|---|
| Type | Description |
ExportContext.SqlCsvExportOptionsOrBuilder |
|
getDatabases(int index)
public 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 |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The databases at the given index. |
getDatabasesBytes(int index)
public 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 |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the databases at the given index. |
getDatabasesCount()
public 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 |
int |
The count of databases. |
getDatabasesList()
public ProtocolStringList 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 |
ProtocolStringList |
A list containing the databases. |
getDefaultInstanceForType()
public ExportContext getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ExportContext |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFileType()
public SqlFileType getFileType()The file type for the specified uri.
.google.cloud.sql.v1beta4.SqlFileType file_type = 6;
| Returns | |
|---|---|
| Type | Description |
SqlFileType |
The fileType. |
getFileTypeValue()
public int getFileTypeValue()The file type for the specified uri.
.google.cloud.sql.v1beta4.SqlFileType file_type = 6;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for fileType. |
getKind()
public String getKind() This is always sql#exportContext.
string kind = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The kind. |
getKindBytes()
public ByteString getKindBytes() This is always sql#exportContext.
string kind = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kind. |
getOffload()
public BoolValue getOffload()Whether to perform a serverless export.
.google.protobuf.BoolValue offload = 8;
| Returns | |
|---|---|
| Type | Description |
BoolValue |
The offload. |
getOffloadBuilder()
public BoolValue.Builder getOffloadBuilder()Whether to perform a serverless export.
.google.protobuf.BoolValue offload = 8;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getOffloadOrBuilder()
public BoolValueOrBuilder getOffloadOrBuilder()Whether to perform a serverless export.
.google.protobuf.BoolValue offload = 8;
| Returns | |
|---|---|
| Type | Description |
BoolValueOrBuilder |
|
getSqlExportOptions()
public ExportContext.SqlExportOptions getSqlExportOptions()Options for exporting data as SQL statements.
.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions sql_export_options = 4;
| Returns | |
|---|---|
| Type | Description |
ExportContext.SqlExportOptions |
The sqlExportOptions. |
getSqlExportOptionsBuilder()
public ExportContext.SqlExportOptions.Builder getSqlExportOptionsBuilder()Options for exporting data as SQL statements.
.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions sql_export_options = 4;
| Returns | |
|---|---|
| Type | Description |
ExportContext.SqlExportOptions.Builder |
|
getSqlExportOptionsOrBuilder()
public ExportContext.SqlExportOptionsOrBuilder getSqlExportOptionsOrBuilder()Options for exporting data as SQL statements.
.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions sql_export_options = 4;
| Returns | |
|---|---|
| Type | Description |
ExportContext.SqlExportOptionsOrBuilder |
|
getTdeExportOptions()
public ExportContext.SqlTdeExportOptions getTdeExportOptions()Optional. Export parameters specific to SQL Server TDE certificates
.google.cloud.sql.v1beta4.ExportContext.SqlTdeExportOptions tde_export_options = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportContext.SqlTdeExportOptions |
The tdeExportOptions. |
getTdeExportOptionsBuilder()
public ExportContext.SqlTdeExportOptions.Builder getTdeExportOptionsBuilder()Optional. Export parameters specific to SQL Server TDE certificates
.google.cloud.sql.v1beta4.ExportContext.SqlTdeExportOptions tde_export_options = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportContext.SqlTdeExportOptions.Builder |
|
getTdeExportOptionsOrBuilder()
public ExportContext.SqlTdeExportOptionsOrBuilder getTdeExportOptionsOrBuilder()Optional. Export parameters specific to SQL Server TDE certificates
.google.cloud.sql.v1beta4.ExportContext.SqlTdeExportOptions tde_export_options = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportContext.SqlTdeExportOptionsOrBuilder |
|
getUri()
public 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 |
String |
The uri. |
getUriBytes()
public 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 |
ByteString |
The bytes for uri. |
hasBakExportOptions()
public boolean hasBakExportOptions()Options for exporting data as BAK files.
.google.cloud.sql.v1beta4.ExportContext.SqlBakExportOptions bak_export_options = 9;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the bakExportOptions field is set. |
hasCsvExportOptions()
public boolean hasCsvExportOptions() Options for exporting data as CSV. MySQL and PostgreSQL
instances only.
.google.cloud.sql.v1beta4.ExportContext.SqlCsvExportOptions csv_export_options = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the csvExportOptions field is set. |
hasOffload()
public boolean hasOffload()Whether to perform a serverless export.
.google.protobuf.BoolValue offload = 8;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the offload field is set. |
hasSqlExportOptions()
public boolean hasSqlExportOptions()Options for exporting data as SQL statements.
.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions sql_export_options = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sqlExportOptions field is set. |
hasTdeExportOptions()
public boolean hasTdeExportOptions()Optional. Export parameters specific to SQL Server TDE certificates
.google.cloud.sql.v1beta4.ExportContext.SqlTdeExportOptions tde_export_options = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the tdeExportOptions field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeBakExportOptions(ExportContext.SqlBakExportOptions value)
public ExportContext.Builder mergeBakExportOptions(ExportContext.SqlBakExportOptions value)Options for exporting data as BAK files.
.google.cloud.sql.v1beta4.ExportContext.SqlBakExportOptions bak_export_options = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
ExportContext.SqlBakExportOptions |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
mergeCsvExportOptions(ExportContext.SqlCsvExportOptions value)
public ExportContext.Builder mergeCsvExportOptions(ExportContext.SqlCsvExportOptions value) Options for exporting data as CSV. MySQL and PostgreSQL
instances only.
.google.cloud.sql.v1beta4.ExportContext.SqlCsvExportOptions csv_export_options = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ExportContext.SqlCsvExportOptions |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
mergeFrom(ExportContext other)
public ExportContext.Builder mergeFrom(ExportContext other)| Parameter | |
|---|---|
| Name | Description |
other |
ExportContext |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ExportContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ExportContext.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
mergeOffload(BoolValue value)
public ExportContext.Builder mergeOffload(BoolValue value)Whether to perform a serverless export.
.google.protobuf.BoolValue offload = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
BoolValue |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
mergeSqlExportOptions(ExportContext.SqlExportOptions value)
public ExportContext.Builder mergeSqlExportOptions(ExportContext.SqlExportOptions value)Options for exporting data as SQL statements.
.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions sql_export_options = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ExportContext.SqlExportOptions |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
mergeTdeExportOptions(ExportContext.SqlTdeExportOptions value)
public ExportContext.Builder mergeTdeExportOptions(ExportContext.SqlTdeExportOptions value)Optional. Export parameters specific to SQL Server TDE certificates
.google.cloud.sql.v1beta4.ExportContext.SqlTdeExportOptions tde_export_options = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ExportContext.SqlTdeExportOptions |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
setBakExportOptions(ExportContext.SqlBakExportOptions value)
public ExportContext.Builder setBakExportOptions(ExportContext.SqlBakExportOptions value)Options for exporting data as BAK files.
.google.cloud.sql.v1beta4.ExportContext.SqlBakExportOptions bak_export_options = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
ExportContext.SqlBakExportOptions |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
setBakExportOptions(ExportContext.SqlBakExportOptions.Builder builderForValue)
public ExportContext.Builder setBakExportOptions(ExportContext.SqlBakExportOptions.Builder builderForValue)Options for exporting data as BAK files.
.google.cloud.sql.v1beta4.ExportContext.SqlBakExportOptions bak_export_options = 9;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ExportContext.SqlBakExportOptions.Builder |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
setCsvExportOptions(ExportContext.SqlCsvExportOptions value)
public ExportContext.Builder setCsvExportOptions(ExportContext.SqlCsvExportOptions value) Options for exporting data as CSV. MySQL and PostgreSQL
instances only.
.google.cloud.sql.v1beta4.ExportContext.SqlCsvExportOptions csv_export_options = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ExportContext.SqlCsvExportOptions |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
setCsvExportOptions(ExportContext.SqlCsvExportOptions.Builder builderForValue)
public ExportContext.Builder setCsvExportOptions(ExportContext.SqlCsvExportOptions.Builder builderForValue) Options for exporting data as CSV. MySQL and PostgreSQL
instances only.
.google.cloud.sql.v1beta4.ExportContext.SqlCsvExportOptions csv_export_options = 5;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ExportContext.SqlCsvExportOptions.Builder |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
setDatabases(int index, String value)
public ExportContext.Builder setDatabases(int index, String value) 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;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe databases to set. |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
This builder for chaining. |
setFileType(SqlFileType value)
public ExportContext.Builder setFileType(SqlFileType value)The file type for the specified uri.
.google.cloud.sql.v1beta4.SqlFileType file_type = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
SqlFileTypeThe fileType to set. |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
This builder for chaining. |
setFileTypeValue(int value)
public ExportContext.Builder setFileTypeValue(int value)The file type for the specified uri.
.google.cloud.sql.v1beta4.SqlFileType file_type = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for fileType to set. |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
This builder for chaining. |
setKind(String value)
public ExportContext.Builder setKind(String value) This is always sql#exportContext.
string kind = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe kind to set. |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
This builder for chaining. |
setKindBytes(ByteString value)
public ExportContext.Builder setKindBytes(ByteString value) This is always sql#exportContext.
string kind = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for kind to set. |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
This builder for chaining. |
setOffload(BoolValue value)
public ExportContext.Builder setOffload(BoolValue value)Whether to perform a serverless export.
.google.protobuf.BoolValue offload = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
BoolValue |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
setOffload(BoolValue.Builder builderForValue)
public ExportContext.Builder setOffload(BoolValue.Builder builderForValue)Whether to perform a serverless export.
.google.protobuf.BoolValue offload = 8;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
setSqlExportOptions(ExportContext.SqlExportOptions value)
public ExportContext.Builder setSqlExportOptions(ExportContext.SqlExportOptions value)Options for exporting data as SQL statements.
.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions sql_export_options = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ExportContext.SqlExportOptions |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
setSqlExportOptions(ExportContext.SqlExportOptions.Builder builderForValue)
public ExportContext.Builder setSqlExportOptions(ExportContext.SqlExportOptions.Builder builderForValue)Options for exporting data as SQL statements.
.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions sql_export_options = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ExportContext.SqlExportOptions.Builder |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
setTdeExportOptions(ExportContext.SqlTdeExportOptions value)
public ExportContext.Builder setTdeExportOptions(ExportContext.SqlTdeExportOptions value)Optional. Export parameters specific to SQL Server TDE certificates
.google.cloud.sql.v1beta4.ExportContext.SqlTdeExportOptions tde_export_options = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ExportContext.SqlTdeExportOptions |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
setTdeExportOptions(ExportContext.SqlTdeExportOptions.Builder builderForValue)
public ExportContext.Builder setTdeExportOptions(ExportContext.SqlTdeExportOptions.Builder builderForValue)Optional. Export parameters specific to SQL Server TDE certificates
.google.cloud.sql.v1beta4.ExportContext.SqlTdeExportOptions tde_export_options = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ExportContext.SqlTdeExportOptions.Builder |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
|
setUri(String value)
public ExportContext.Builder setUri(String value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe uri to set. |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
This builder for chaining. |
setUriBytes(ByteString value)
public ExportContext.Builder setUriBytes(ByteString value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for uri to set. |
| Returns | |
|---|---|
| Type | Description |
ExportContext.Builder |
This builder for chaining. |