Class SqlInstancesStartExternalSyncRequest.Builder (0.1.0)

public static final class SqlInstancesStartExternalSyncRequest.Builder extends GeneratedMessage.Builder<SqlInstancesStartExternalSyncRequest.Builder> implements SqlInstancesStartExternalSyncRequestOrBuilder

Protobuf type google.cloud.sql.v1beta4.SqlInstancesStartExternalSyncRequest

Static Methods

getDescriptor()

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

Methods

build()

public SqlInstancesStartExternalSyncRequest build()
Returns
Type Description
SqlInstancesStartExternalSyncRequest

buildPartial()

public SqlInstancesStartExternalSyncRequest buildPartial()
Returns
Type Description
SqlInstancesStartExternalSyncRequest

clear()

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

clearInstance()

public SqlInstancesStartExternalSyncRequest.Builder clearInstance()

Cloud SQL instance ID. This does not include the project ID.

string instance = 1;

Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

This builder for chaining.

clearMigrationType()

public SqlInstancesStartExternalSyncRequest.Builder clearMigrationType()

Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are LOGICAL or PHYSICAL. Only applicable to MySQL.

.google.cloud.sql.v1beta4.SqlInstancesVerifyExternalSyncSettingsRequest.MigrationType migration_type = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

This builder for chaining.

clearMysqlSyncConfig()

public SqlInstancesStartExternalSyncRequest.Builder clearMysqlSyncConfig()

MySQL-specific settings for start external sync.

.google.cloud.sql.v1beta4.MySqlSyncConfig mysql_sync_config = 6;

Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

clearProject()

public SqlInstancesStartExternalSyncRequest.Builder clearProject()

ID of the project that contains the instance.

string project = 2;

Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

This builder for chaining.

clearReplicaOverwriteEnabled()

public SqlInstancesStartExternalSyncRequest.Builder clearReplicaOverwriteEnabled()

Optional. MySQL only. True if end-user has confirmed that this SES call will wipe replica databases overlapping with the proposed selected_objects. If this field is not set and there are both overlapping and additional databases proposed, an error will be returned.

bool replica_overwrite_enabled = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

This builder for chaining.

clearSkipVerification()

public SqlInstancesStartExternalSyncRequest.Builder clearSkipVerification()

Whether to skip the verification step (VESS).

bool skip_verification = 4;

Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

This builder for chaining.

clearSyncConfig()

public SqlInstancesStartExternalSyncRequest.Builder clearSyncConfig()
Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

clearSyncMode()

public SqlInstancesStartExternalSyncRequest.Builder clearSyncMode()

External sync mode.

.google.cloud.sql.v1beta4.SqlInstancesVerifyExternalSyncSettingsRequest.ExternalSyncMode sync_mode = 3;

Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

This builder for chaining.

clearSyncParallelLevel()

public SqlInstancesStartExternalSyncRequest.Builder clearSyncParallelLevel()

Optional. Parallel level for initial data sync. Currently only applicable for MySQL.

.google.cloud.sql.v1beta4.ExternalSyncParallelLevel sync_parallel_level = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public SqlInstancesStartExternalSyncRequest getDefaultInstanceForType()
Returns
Type Description
SqlInstancesStartExternalSyncRequest

getDescriptorForType()

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

getInstance()

public String getInstance()

Cloud SQL instance ID. This does not include the project ID.

string instance = 1;

Returns
Type Description
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

Cloud SQL instance ID. This does not include the project ID.

string instance = 1;

Returns
Type Description
ByteString

The bytes for instance.

getMigrationType()

public SqlInstancesVerifyExternalSyncSettingsRequest.MigrationType getMigrationType()

Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are LOGICAL or PHYSICAL. Only applicable to MySQL.

.google.cloud.sql.v1beta4.SqlInstancesVerifyExternalSyncSettingsRequest.MigrationType migration_type = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SqlInstancesVerifyExternalSyncSettingsRequest.MigrationType

The migrationType.

getMigrationTypeValue()

public int getMigrationTypeValue()

Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are LOGICAL or PHYSICAL. Only applicable to MySQL.

.google.cloud.sql.v1beta4.SqlInstancesVerifyExternalSyncSettingsRequest.MigrationType migration_type = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for migrationType.

getMysqlSyncConfig()

public MySqlSyncConfig getMysqlSyncConfig()

MySQL-specific settings for start external sync.

.google.cloud.sql.v1beta4.MySqlSyncConfig mysql_sync_config = 6;

Returns
Type Description
MySqlSyncConfig

The mysqlSyncConfig.

getMysqlSyncConfigBuilder()

public MySqlSyncConfig.Builder getMysqlSyncConfigBuilder()

MySQL-specific settings for start external sync.

.google.cloud.sql.v1beta4.MySqlSyncConfig mysql_sync_config = 6;

Returns
Type Description
MySqlSyncConfig.Builder

getMysqlSyncConfigOrBuilder()

public MySqlSyncConfigOrBuilder getMysqlSyncConfigOrBuilder()

MySQL-specific settings for start external sync.

.google.cloud.sql.v1beta4.MySqlSyncConfig mysql_sync_config = 6;

Returns
Type Description
MySqlSyncConfigOrBuilder

getProject()

public String getProject()

ID of the project that contains the instance.

string project = 2;

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

ID of the project that contains the instance.

string project = 2;

Returns
Type Description
ByteString

The bytes for project.

getReplicaOverwriteEnabled()

public boolean getReplicaOverwriteEnabled()

Optional. MySQL only. True if end-user has confirmed that this SES call will wipe replica databases overlapping with the proposed selected_objects. If this field is not set and there are both overlapping and additional databases proposed, an error will be returned.

bool replica_overwrite_enabled = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The replicaOverwriteEnabled.

getSkipVerification()

public boolean getSkipVerification()

Whether to skip the verification step (VESS).

bool skip_verification = 4;

Returns
Type Description
boolean

The skipVerification.

getSyncConfigCase()

public SqlInstancesStartExternalSyncRequest.SyncConfigCase getSyncConfigCase()
Returns
Type Description
SqlInstancesStartExternalSyncRequest.SyncConfigCase

getSyncMode()

public SqlInstancesVerifyExternalSyncSettingsRequest.ExternalSyncMode getSyncMode()

External sync mode.

.google.cloud.sql.v1beta4.SqlInstancesVerifyExternalSyncSettingsRequest.ExternalSyncMode sync_mode = 3;

Returns
Type Description
SqlInstancesVerifyExternalSyncSettingsRequest.ExternalSyncMode

The syncMode.

getSyncModeValue()

public int getSyncModeValue()

External sync mode.

.google.cloud.sql.v1beta4.SqlInstancesVerifyExternalSyncSettingsRequest.ExternalSyncMode sync_mode = 3;

Returns
Type Description
int

The enum numeric value on the wire for syncMode.

getSyncParallelLevel()

public ExternalSyncParallelLevel getSyncParallelLevel()

Optional. Parallel level for initial data sync. Currently only applicable for MySQL.

.google.cloud.sql.v1beta4.ExternalSyncParallelLevel sync_parallel_level = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExternalSyncParallelLevel

The syncParallelLevel.

getSyncParallelLevelValue()

public int getSyncParallelLevelValue()

Optional. Parallel level for initial data sync. Currently only applicable for MySQL.

.google.cloud.sql.v1beta4.ExternalSyncParallelLevel sync_parallel_level = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for syncParallelLevel.

hasMysqlSyncConfig()

public boolean hasMysqlSyncConfig()

MySQL-specific settings for start external sync.

.google.cloud.sql.v1beta4.MySqlSyncConfig mysql_sync_config = 6;

Returns
Type Description
boolean

Whether the mysqlSyncConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SqlInstancesStartExternalSyncRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMysqlSyncConfig(MySqlSyncConfig value)

public SqlInstancesStartExternalSyncRequest.Builder mergeMysqlSyncConfig(MySqlSyncConfig value)

MySQL-specific settings for start external sync.

.google.cloud.sql.v1beta4.MySqlSyncConfig mysql_sync_config = 6;

Parameter
Name Description
value MySqlSyncConfig
Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

setInstance(String value)

public SqlInstancesStartExternalSyncRequest.Builder setInstance(String value)

Cloud SQL instance ID. This does not include the project ID.

string instance = 1;

Parameter
Name Description
value String

The instance to set.

Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public SqlInstancesStartExternalSyncRequest.Builder setInstanceBytes(ByteString value)

Cloud SQL instance ID. This does not include the project ID.

string instance = 1;

Parameter
Name Description
value ByteString

The bytes for instance to set.

Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

This builder for chaining.

setMigrationType(SqlInstancesVerifyExternalSyncSettingsRequest.MigrationType value)

public SqlInstancesStartExternalSyncRequest.Builder setMigrationType(SqlInstancesVerifyExternalSyncSettingsRequest.MigrationType value)

Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are LOGICAL or PHYSICAL. Only applicable to MySQL.

.google.cloud.sql.v1beta4.SqlInstancesVerifyExternalSyncSettingsRequest.MigrationType migration_type = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SqlInstancesVerifyExternalSyncSettingsRequest.MigrationType

The migrationType to set.

Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

This builder for chaining.

setMigrationTypeValue(int value)

public SqlInstancesStartExternalSyncRequest.Builder setMigrationTypeValue(int value)

Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are LOGICAL or PHYSICAL. Only applicable to MySQL.

.google.cloud.sql.v1beta4.SqlInstancesVerifyExternalSyncSettingsRequest.MigrationType migration_type = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

This builder for chaining.

setMysqlSyncConfig(MySqlSyncConfig value)

public SqlInstancesStartExternalSyncRequest.Builder setMysqlSyncConfig(MySqlSyncConfig value)

MySQL-specific settings for start external sync.

.google.cloud.sql.v1beta4.MySqlSyncConfig mysql_sync_config = 6;

Parameter
Name Description
value MySqlSyncConfig
Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

setMysqlSyncConfig(MySqlSyncConfig.Builder builderForValue)

public SqlInstancesStartExternalSyncRequest.Builder setMysqlSyncConfig(MySqlSyncConfig.Builder builderForValue)

MySQL-specific settings for start external sync.

.google.cloud.sql.v1beta4.MySqlSyncConfig mysql_sync_config = 6;

Parameter
Name Description
builderForValue MySqlSyncConfig.Builder
Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

setProject(String value)

public SqlInstancesStartExternalSyncRequest.Builder setProject(String value)

ID of the project that contains the instance.

string project = 2;

Parameter
Name Description
value String

The project to set.

Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public SqlInstancesStartExternalSyncRequest.Builder setProjectBytes(ByteString value)

ID of the project that contains the instance.

string project = 2;

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

This builder for chaining.

setReplicaOverwriteEnabled(boolean value)

public SqlInstancesStartExternalSyncRequest.Builder setReplicaOverwriteEnabled(boolean value)

Optional. MySQL only. True if end-user has confirmed that this SES call will wipe replica databases overlapping with the proposed selected_objects. If this field is not set and there are both overlapping and additional databases proposed, an error will be returned.

bool replica_overwrite_enabled = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The replicaOverwriteEnabled to set.

Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

This builder for chaining.

setSkipVerification(boolean value)

public SqlInstancesStartExternalSyncRequest.Builder setSkipVerification(boolean value)

Whether to skip the verification step (VESS).

bool skip_verification = 4;

Parameter
Name Description
value boolean

The skipVerification to set.

Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

This builder for chaining.

setSyncMode(SqlInstancesVerifyExternalSyncSettingsRequest.ExternalSyncMode value)

public SqlInstancesStartExternalSyncRequest.Builder setSyncMode(SqlInstancesVerifyExternalSyncSettingsRequest.ExternalSyncMode value)

External sync mode.

.google.cloud.sql.v1beta4.SqlInstancesVerifyExternalSyncSettingsRequest.ExternalSyncMode sync_mode = 3;

Parameter
Name Description
value SqlInstancesVerifyExternalSyncSettingsRequest.ExternalSyncMode

The syncMode to set.

Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

This builder for chaining.

setSyncModeValue(int value)

public SqlInstancesStartExternalSyncRequest.Builder setSyncModeValue(int value)

External sync mode.

.google.cloud.sql.v1beta4.SqlInstancesVerifyExternalSyncSettingsRequest.ExternalSyncMode sync_mode = 3;

Parameter
Name Description
value int

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

Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

This builder for chaining.

setSyncParallelLevel(ExternalSyncParallelLevel value)

public SqlInstancesStartExternalSyncRequest.Builder setSyncParallelLevel(ExternalSyncParallelLevel value)

Optional. Parallel level for initial data sync. Currently only applicable for MySQL.

.google.cloud.sql.v1beta4.ExternalSyncParallelLevel sync_parallel_level = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ExternalSyncParallelLevel

The syncParallelLevel to set.

Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

This builder for chaining.

setSyncParallelLevelValue(int value)

public SqlInstancesStartExternalSyncRequest.Builder setSyncParallelLevelValue(int value)

Optional. Parallel level for initial data sync. Currently only applicable for MySQL.

.google.cloud.sql.v1beta4.ExternalSyncParallelLevel sync_parallel_level = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
SqlInstancesStartExternalSyncRequest.Builder

This builder for chaining.