Class ExportContext.SqlExportOptions.Builder (0.1.0)

public static final class ExportContext.SqlExportOptions.Builder extends GeneratedMessage.Builder<ExportContext.SqlExportOptions.Builder> implements ExportContext.SqlExportOptionsOrBuilder

Protobuf type google.cloud.sql.v1beta4.ExportContext.SqlExportOptions

Static Methods

getDescriptor()

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

Methods

addAllTables(Iterable<String> values)

public ExportContext.SqlExportOptions.Builder addAllTables(Iterable<String> values)

Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.

repeated string tables = 1;

Parameter
Name Description
values Iterable<String>

The tables to add.

Returns
Type Description
ExportContext.SqlExportOptions.Builder

This builder for chaining.

addTables(String value)

public ExportContext.SqlExportOptions.Builder addTables(String value)

Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.

repeated string tables = 1;

Parameter
Name Description
value String

The tables to add.

Returns
Type Description
ExportContext.SqlExportOptions.Builder

This builder for chaining.

addTablesBytes(ByteString value)

public ExportContext.SqlExportOptions.Builder addTablesBytes(ByteString value)

Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.

repeated string tables = 1;

Parameter
Name Description
value ByteString

The bytes of the tables to add.

Returns
Type Description
ExportContext.SqlExportOptions.Builder

This builder for chaining.

build()

public ExportContext.SqlExportOptions build()
Returns
Type Description
ExportContext.SqlExportOptions

buildPartial()

public ExportContext.SqlExportOptions buildPartial()
Returns
Type Description
ExportContext.SqlExportOptions

clear()

public ExportContext.SqlExportOptions.Builder clear()
Returns
Type Description
ExportContext.SqlExportOptions.Builder
Overrides

clearMysqlExportOptions()

public ExportContext.SqlExportOptions.Builder clearMysqlExportOptions()

.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.MysqlExportOptions mysql_export_options = 3;

Returns
Type Description
ExportContext.SqlExportOptions.Builder

clearParallel()

public ExportContext.SqlExportOptions.Builder clearParallel()

Optional. Whether or not the export should be parallel.

.google.protobuf.BoolValue parallel = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExportContext.SqlExportOptions.Builder

clearPostgresExportOptions()

public ExportContext.SqlExportOptions.Builder clearPostgresExportOptions()

Optional. Options for exporting from a Cloud SQL for PostgreSQL instance.

.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.PostgresExportOptions postgres_export_options = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExportContext.SqlExportOptions.Builder

clearSchemaOnly()

public ExportContext.SqlExportOptions.Builder clearSchemaOnly()

Export only schemas.

.google.protobuf.BoolValue schema_only = 2;

Returns
Type Description
ExportContext.SqlExportOptions.Builder

clearTables()

public ExportContext.SqlExportOptions.Builder clearTables()

Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.

repeated string tables = 1;

Returns
Type Description
ExportContext.SqlExportOptions.Builder

This builder for chaining.

clearThreads()

public ExportContext.SqlExportOptions.Builder clearThreads()

Optional. The number of threads to use for parallel export.

.google.protobuf.Int32Value threads = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExportContext.SqlExportOptions.Builder

getDefaultInstanceForType()

public ExportContext.SqlExportOptions getDefaultInstanceForType()
Returns
Type Description
ExportContext.SqlExportOptions

getDescriptorForType()

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

getMysqlExportOptions()

public ExportContext.SqlExportOptions.MysqlExportOptions getMysqlExportOptions()

.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.MysqlExportOptions mysql_export_options = 3;

Returns
Type Description
ExportContext.SqlExportOptions.MysqlExportOptions

The mysqlExportOptions.

getMysqlExportOptionsBuilder()

public ExportContext.SqlExportOptions.MysqlExportOptions.Builder getMysqlExportOptionsBuilder()

.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.MysqlExportOptions mysql_export_options = 3;

Returns
Type Description
ExportContext.SqlExportOptions.MysqlExportOptions.Builder

getMysqlExportOptionsOrBuilder()

public ExportContext.SqlExportOptions.MysqlExportOptionsOrBuilder getMysqlExportOptionsOrBuilder()

.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.MysqlExportOptions mysql_export_options = 3;

Returns
Type Description
ExportContext.SqlExportOptions.MysqlExportOptionsOrBuilder

getParallel()

public BoolValue getParallel()

Optional. Whether or not the export should be parallel.

.google.protobuf.BoolValue parallel = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BoolValue

The parallel.

getParallelBuilder()

public BoolValue.Builder getParallelBuilder()

Optional. Whether or not the export should be parallel.

.google.protobuf.BoolValue parallel = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getParallelOrBuilder()

public BoolValueOrBuilder getParallelOrBuilder()

Optional. Whether or not the export should be parallel.

.google.protobuf.BoolValue parallel = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BoolValueOrBuilder

getPostgresExportOptions()

public ExportContext.SqlExportOptions.PostgresExportOptions getPostgresExportOptions()

Optional. Options for exporting from a Cloud SQL for PostgreSQL instance.

.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.PostgresExportOptions postgres_export_options = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExportContext.SqlExportOptions.PostgresExportOptions

The postgresExportOptions.

getPostgresExportOptionsBuilder()

public ExportContext.SqlExportOptions.PostgresExportOptions.Builder getPostgresExportOptionsBuilder()

Optional. Options for exporting from a Cloud SQL for PostgreSQL instance.

.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.PostgresExportOptions postgres_export_options = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExportContext.SqlExportOptions.PostgresExportOptions.Builder

getPostgresExportOptionsOrBuilder()

public ExportContext.SqlExportOptions.PostgresExportOptionsOrBuilder getPostgresExportOptionsOrBuilder()

Optional. Options for exporting from a Cloud SQL for PostgreSQL instance.

.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.PostgresExportOptions postgres_export_options = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExportContext.SqlExportOptions.PostgresExportOptionsOrBuilder

getSchemaOnly()

public BoolValue getSchemaOnly()

Export only schemas.

.google.protobuf.BoolValue schema_only = 2;

Returns
Type Description
BoolValue

The schemaOnly.

getSchemaOnlyBuilder()

public BoolValue.Builder getSchemaOnlyBuilder()

Export only schemas.

.google.protobuf.BoolValue schema_only = 2;

Returns
Type Description
Builder

getSchemaOnlyOrBuilder()

public BoolValueOrBuilder getSchemaOnlyOrBuilder()

Export only schemas.

.google.protobuf.BoolValue schema_only = 2;

Returns
Type Description
BoolValueOrBuilder

getTables(int index)

public String getTables(int index)

Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.

repeated string tables = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The tables at the given index.

getTablesBytes(int index)

public ByteString getTablesBytes(int index)

Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.

repeated string tables = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the tables at the given index.

getTablesCount()

public int getTablesCount()

Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.

repeated string tables = 1;

Returns
Type Description
int

The count of tables.

getTablesList()

public ProtocolStringList getTablesList()

Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.

repeated string tables = 1;

Returns
Type Description
ProtocolStringList

A list containing the tables.

getThreads()

public Int32Value getThreads()

Optional. The number of threads to use for parallel export.

.google.protobuf.Int32Value threads = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Int32Value

The threads.

getThreadsBuilder()

public Int32Value.Builder getThreadsBuilder()

Optional. The number of threads to use for parallel export.

.google.protobuf.Int32Value threads = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getThreadsOrBuilder()

public Int32ValueOrBuilder getThreadsOrBuilder()

Optional. The number of threads to use for parallel export.

.google.protobuf.Int32Value threads = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Int32ValueOrBuilder

hasMysqlExportOptions()

public boolean hasMysqlExportOptions()

.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.MysqlExportOptions mysql_export_options = 3;

Returns
Type Description
boolean

Whether the mysqlExportOptions field is set.

hasParallel()

public boolean hasParallel()

Optional. Whether or not the export should be parallel.

.google.protobuf.BoolValue parallel = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the parallel field is set.

hasPostgresExportOptions()

public boolean hasPostgresExportOptions()

Optional. Options for exporting from a Cloud SQL for PostgreSQL instance.

.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.PostgresExportOptions postgres_export_options = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the postgresExportOptions field is set.

hasSchemaOnly()

public boolean hasSchemaOnly()

Export only schemas.

.google.protobuf.BoolValue schema_only = 2;

Returns
Type Description
boolean

Whether the schemaOnly field is set.

hasThreads()

public boolean hasThreads()

Optional. The number of threads to use for parallel export.

.google.protobuf.Int32Value threads = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the threads field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExportContext.SqlExportOptions other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMysqlExportOptions(ExportContext.SqlExportOptions.MysqlExportOptions value)

public ExportContext.SqlExportOptions.Builder mergeMysqlExportOptions(ExportContext.SqlExportOptions.MysqlExportOptions value)

.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.MysqlExportOptions mysql_export_options = 3;

Parameter
Name Description
value ExportContext.SqlExportOptions.MysqlExportOptions
Returns
Type Description
ExportContext.SqlExportOptions.Builder

mergeParallel(BoolValue value)

public ExportContext.SqlExportOptions.Builder mergeParallel(BoolValue value)

Optional. Whether or not the export should be parallel.

.google.protobuf.BoolValue parallel = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value BoolValue
Returns
Type Description
ExportContext.SqlExportOptions.Builder

mergePostgresExportOptions(ExportContext.SqlExportOptions.PostgresExportOptions value)

public ExportContext.SqlExportOptions.Builder mergePostgresExportOptions(ExportContext.SqlExportOptions.PostgresExportOptions value)

Optional. Options for exporting from a Cloud SQL for PostgreSQL instance.

.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.PostgresExportOptions postgres_export_options = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ExportContext.SqlExportOptions.PostgresExportOptions
Returns
Type Description
ExportContext.SqlExportOptions.Builder

mergeSchemaOnly(BoolValue value)

public ExportContext.SqlExportOptions.Builder mergeSchemaOnly(BoolValue value)

Export only schemas.

.google.protobuf.BoolValue schema_only = 2;

Parameter
Name Description
value BoolValue
Returns
Type Description
ExportContext.SqlExportOptions.Builder

mergeThreads(Int32Value value)

public ExportContext.SqlExportOptions.Builder mergeThreads(Int32Value value)

Optional. The number of threads to use for parallel export.

.google.protobuf.Int32Value threads = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Int32Value
Returns
Type Description
ExportContext.SqlExportOptions.Builder

setMysqlExportOptions(ExportContext.SqlExportOptions.MysqlExportOptions value)

public ExportContext.SqlExportOptions.Builder setMysqlExportOptions(ExportContext.SqlExportOptions.MysqlExportOptions value)

.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.MysqlExportOptions mysql_export_options = 3;

Parameter
Name Description
value ExportContext.SqlExportOptions.MysqlExportOptions
Returns
Type Description
ExportContext.SqlExportOptions.Builder

setMysqlExportOptions(ExportContext.SqlExportOptions.MysqlExportOptions.Builder builderForValue)

public ExportContext.SqlExportOptions.Builder setMysqlExportOptions(ExportContext.SqlExportOptions.MysqlExportOptions.Builder builderForValue)

.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.MysqlExportOptions mysql_export_options = 3;

Parameter
Name Description
builderForValue ExportContext.SqlExportOptions.MysqlExportOptions.Builder
Returns
Type Description
ExportContext.SqlExportOptions.Builder

setParallel(BoolValue value)

public ExportContext.SqlExportOptions.Builder setParallel(BoolValue value)

Optional. Whether or not the export should be parallel.

.google.protobuf.BoolValue parallel = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value BoolValue
Returns
Type Description
ExportContext.SqlExportOptions.Builder

setParallel(BoolValue.Builder builderForValue)

public ExportContext.SqlExportOptions.Builder setParallel(BoolValue.Builder builderForValue)

Optional. Whether or not the export should be parallel.

.google.protobuf.BoolValue parallel = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ExportContext.SqlExportOptions.Builder

setPostgresExportOptions(ExportContext.SqlExportOptions.PostgresExportOptions value)

public ExportContext.SqlExportOptions.Builder setPostgresExportOptions(ExportContext.SqlExportOptions.PostgresExportOptions value)

Optional. Options for exporting from a Cloud SQL for PostgreSQL instance.

.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.PostgresExportOptions postgres_export_options = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ExportContext.SqlExportOptions.PostgresExportOptions
Returns
Type Description
ExportContext.SqlExportOptions.Builder

setPostgresExportOptions(ExportContext.SqlExportOptions.PostgresExportOptions.Builder builderForValue)

public ExportContext.SqlExportOptions.Builder setPostgresExportOptions(ExportContext.SqlExportOptions.PostgresExportOptions.Builder builderForValue)

Optional. Options for exporting from a Cloud SQL for PostgreSQL instance.

.google.cloud.sql.v1beta4.ExportContext.SqlExportOptions.PostgresExportOptions postgres_export_options = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ExportContext.SqlExportOptions.PostgresExportOptions.Builder
Returns
Type Description
ExportContext.SqlExportOptions.Builder

setSchemaOnly(BoolValue value)

public ExportContext.SqlExportOptions.Builder setSchemaOnly(BoolValue value)

Export only schemas.

.google.protobuf.BoolValue schema_only = 2;

Parameter
Name Description
value BoolValue
Returns
Type Description
ExportContext.SqlExportOptions.Builder

setSchemaOnly(BoolValue.Builder builderForValue)

public ExportContext.SqlExportOptions.Builder setSchemaOnly(BoolValue.Builder builderForValue)

Export only schemas.

.google.protobuf.BoolValue schema_only = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ExportContext.SqlExportOptions.Builder

setTables(int index, String value)

public ExportContext.SqlExportOptions.Builder setTables(int index, String value)

Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database. For PostgreSQL instances, you can specify only one table.

repeated string tables = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The tables to set.

Returns
Type Description
ExportContext.SqlExportOptions.Builder

This builder for chaining.

setThreads(Int32Value value)

public ExportContext.SqlExportOptions.Builder setThreads(Int32Value value)

Optional. The number of threads to use for parallel export.

.google.protobuf.Int32Value threads = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Int32Value
Returns
Type Description
ExportContext.SqlExportOptions.Builder

setThreads(Int32Value.Builder builderForValue)

public ExportContext.SqlExportOptions.Builder setThreads(Int32Value.Builder builderForValue)

Optional. The number of threads to use for parallel export.

.google.protobuf.Int32Value threads = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ExportContext.SqlExportOptions.Builder