Class MigrationJob.Builder (2.39.0)

public static final class MigrationJob.Builder extends GeneratedMessageV3.Builder<MigrationJob.Builder> implements MigrationJobOrBuilder

Represents a Database Migration Service migration job object.

Protobuf type google.cloud.clouddms.v1.MigrationJob

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MigrationJob.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MigrationJob.Builder
Overrides

build()

public MigrationJob build()
Returns
TypeDescription
MigrationJob

buildPartial()

public MigrationJob buildPartial()
Returns
TypeDescription
MigrationJob

clear()

public MigrationJob.Builder clear()
Returns
TypeDescription
MigrationJob.Builder
Overrides

clearCmekKeyName()

public MigrationJob.Builder clearCmekKeyName()

The CMEK (customer-managed encryption key) fully qualified key name used for the migration job. This field supports all migration jobs types except for:

  • Mysql to Mysql (use the cmek field in the cloudsql connection profile instead).
  • PostrgeSQL to PostgreSQL (use the cmek field in the cloudsql connection profile instead).
  • PostgreSQL to AlloyDB (use the kms_key_name field in the alloydb connection profile instead). Each Cloud CMEK key has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]

string cmek_key_name = 21;

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

clearConnectivity()

public MigrationJob.Builder clearConnectivity()
Returns
TypeDescription
MigrationJob.Builder

clearConversionWorkspace()

public MigrationJob.Builder clearConversionWorkspace()

The conversion workspace used by the migration.

.google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18;

Returns
TypeDescription
MigrationJob.Builder

clearCreateTime()

public MigrationJob.Builder clearCreateTime()

Output only. The timestamp when the migration job resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MigrationJob.Builder

clearDestination()

public MigrationJob.Builder clearDestination()

Required. The resource name (URI) of the destination connection profile.

string destination = 11 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

clearDestinationDatabase()

public MigrationJob.Builder clearDestinationDatabase()

The database engine type and provider of the destination.

.google.cloud.clouddms.v1.DatabaseType destination_database = 15;

Returns
TypeDescription
MigrationJob.Builder

clearDisplayName()

public MigrationJob.Builder clearDisplayName()

The migration job display name.

string display_name = 5;

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

clearDumpFlags()

public MigrationJob.Builder clearDumpFlags()

The initial dump flags. This field and the "dump_path" field are mutually exclusive.

.google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17;

Returns
TypeDescription
MigrationJob.Builder

clearDumpPath()

public MigrationJob.Builder clearDumpPath()

The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the "dump_flags" field are mutually exclusive.

string dump_path = 9;

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

clearDuration()

public MigrationJob.Builder clearDuration()

Output only. The duration of the migration job (in seconds). A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".

.google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MigrationJob.Builder

clearEndTime()

public MigrationJob.Builder clearEndTime()

Output only. If the migration job is completed, the time when it was completed.

.google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MigrationJob.Builder

clearError()

public MigrationJob.Builder clearError()

Output only. The error details in case of state FAILED.

.google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MigrationJob.Builder

clearField(Descriptors.FieldDescriptor field)

public MigrationJob.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MigrationJob.Builder
Overrides

clearFilter()

public MigrationJob.Builder clearFilter()

This field can be used to select the entities to migrate as part of the migration job. It uses AIP-160 notation to select a subset of the entities configured on the associated conversion-workspace. This field should not be set on migration-jobs that are not associated with a conversion workspace.

string filter = 20;

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

clearLabels()

public MigrationJob.Builder clearLabels()
Returns
TypeDescription
MigrationJob.Builder

clearName()

public MigrationJob.Builder clearName()

The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.

string name = 1;

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MigrationJob.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MigrationJob.Builder
Overrides

clearPerformanceConfig()

public MigrationJob.Builder clearPerformanceConfig()

Optional. Data dump parallelism settings used by the migration. Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.

.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MigrationJob.Builder

clearPhase()

public MigrationJob.Builder clearPhase()

Output only. The current migration job phase.

.google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

clearReverseSshConnectivity()

public MigrationJob.Builder clearReverseSshConnectivity()

The details needed to communicate to the source over Reverse SSH tunnel connectivity.

.google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101;

Returns
TypeDescription
MigrationJob.Builder

clearSource()

public MigrationJob.Builder clearSource()

Required. The resource name (URI) of the source connection profile.

string source = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

clearSourceDatabase()

public MigrationJob.Builder clearSourceDatabase()

The database engine type and provider of the source.

.google.cloud.clouddms.v1.DatabaseType source_database = 14;

Returns
TypeDescription
MigrationJob.Builder

clearState()

public MigrationJob.Builder clearState()

The current migration job state.

.google.cloud.clouddms.v1.MigrationJob.State state = 6;

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

clearStaticIpConnectivity()

public MigrationJob.Builder clearStaticIpConnectivity()

static ip connectivity data (default, no additional details needed).

.google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103;

Returns
TypeDescription
MigrationJob.Builder

clearType()

public MigrationJob.Builder clearType()

Required. The migration job type.

.google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

clearUpdateTime()

public MigrationJob.Builder clearUpdateTime()

Output only. The timestamp when the migration job resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MigrationJob.Builder

clearVpcPeeringConnectivity()

public MigrationJob.Builder clearVpcPeeringConnectivity()

The details of the VPC network that the source database is located in.

.google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102;

Returns
TypeDescription
MigrationJob.Builder

clone()

public MigrationJob.Builder clone()
Returns
TypeDescription
MigrationJob.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

The resource labels for migration job to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCmekKeyName()

public String getCmekKeyName()

The CMEK (customer-managed encryption key) fully qualified key name used for the migration job. This field supports all migration jobs types except for:

  • Mysql to Mysql (use the cmek field in the cloudsql connection profile instead).
  • PostrgeSQL to PostgreSQL (use the cmek field in the cloudsql connection profile instead).
  • PostgreSQL to AlloyDB (use the kms_key_name field in the alloydb connection profile instead). Each Cloud CMEK key has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]

string cmek_key_name = 21;

Returns
TypeDescription
String

The cmekKeyName.

getCmekKeyNameBytes()

public ByteString getCmekKeyNameBytes()

The CMEK (customer-managed encryption key) fully qualified key name used for the migration job. This field supports all migration jobs types except for:

  • Mysql to Mysql (use the cmek field in the cloudsql connection profile instead).
  • PostrgeSQL to PostgreSQL (use the cmek field in the cloudsql connection profile instead).
  • PostgreSQL to AlloyDB (use the kms_key_name field in the alloydb connection profile instead). Each Cloud CMEK key has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]

string cmek_key_name = 21;

Returns
TypeDescription
ByteString

The bytes for cmekKeyName.

getConnectivityCase()

public MigrationJob.ConnectivityCase getConnectivityCase()
Returns
TypeDescription
MigrationJob.ConnectivityCase

getConversionWorkspace()

public ConversionWorkspaceInfo getConversionWorkspace()

The conversion workspace used by the migration.

.google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18;

Returns
TypeDescription
ConversionWorkspaceInfo

The conversionWorkspace.

getConversionWorkspaceBuilder()

public ConversionWorkspaceInfo.Builder getConversionWorkspaceBuilder()

The conversion workspace used by the migration.

.google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18;

Returns
TypeDescription
ConversionWorkspaceInfo.Builder

getConversionWorkspaceOrBuilder()

public ConversionWorkspaceInfoOrBuilder getConversionWorkspaceOrBuilder()

The conversion workspace used by the migration.

.google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18;

Returns
TypeDescription
ConversionWorkspaceInfoOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when the migration job resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp when the migration job resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when the migration job resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public MigrationJob getDefaultInstanceForType()
Returns
TypeDescription
MigrationJob

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDestination()

public String getDestination()

Required. The resource name (URI) of the destination connection profile.

string destination = 11 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The destination.

getDestinationBytes()

public ByteString getDestinationBytes()

Required. The resource name (URI) of the destination connection profile.

string destination = 11 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for destination.

getDestinationDatabase()

public DatabaseType getDestinationDatabase()

The database engine type and provider of the destination.

.google.cloud.clouddms.v1.DatabaseType destination_database = 15;

Returns
TypeDescription
DatabaseType

The destinationDatabase.

getDestinationDatabaseBuilder()

public DatabaseType.Builder getDestinationDatabaseBuilder()

The database engine type and provider of the destination.

.google.cloud.clouddms.v1.DatabaseType destination_database = 15;

Returns
TypeDescription
DatabaseType.Builder

getDestinationDatabaseOrBuilder()

public DatabaseTypeOrBuilder getDestinationDatabaseOrBuilder()

The database engine type and provider of the destination.

.google.cloud.clouddms.v1.DatabaseType destination_database = 15;

Returns
TypeDescription
DatabaseTypeOrBuilder

getDisplayName()

public String getDisplayName()

The migration job display name.

string display_name = 5;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The migration job display name.

string display_name = 5;

Returns
TypeDescription
ByteString

The bytes for displayName.

getDumpFlags()

public MigrationJob.DumpFlags getDumpFlags()

The initial dump flags. This field and the "dump_path" field are mutually exclusive.

.google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17;

Returns
TypeDescription
MigrationJob.DumpFlags

The dumpFlags.

getDumpFlagsBuilder()

public MigrationJob.DumpFlags.Builder getDumpFlagsBuilder()

The initial dump flags. This field and the "dump_path" field are mutually exclusive.

.google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17;

Returns
TypeDescription
MigrationJob.DumpFlags.Builder

getDumpFlagsOrBuilder()

public MigrationJob.DumpFlagsOrBuilder getDumpFlagsOrBuilder()

The initial dump flags. This field and the "dump_path" field are mutually exclusive.

.google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17;

Returns
TypeDescription
MigrationJob.DumpFlagsOrBuilder

getDumpPath()

public String getDumpPath()

The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the "dump_flags" field are mutually exclusive.

string dump_path = 9;

Returns
TypeDescription
String

The dumpPath.

getDumpPathBytes()

public ByteString getDumpPathBytes()

The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the "dump_flags" field are mutually exclusive.

string dump_path = 9;

Returns
TypeDescription
ByteString

The bytes for dumpPath.

getDuration()

public Duration getDuration()

Output only. The duration of the migration job (in seconds). A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".

.google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Duration

The duration.

getDurationBuilder()

public Duration.Builder getDurationBuilder()

Output only. The duration of the migration job (in seconds). A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".

.google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getDurationOrBuilder()

public DurationOrBuilder getDurationOrBuilder()

Output only. The duration of the migration job (in seconds). A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".

.google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
DurationOrBuilder

getEndTime()

public Timestamp getEndTime()

Output only. If the migration job is completed, the time when it was completed.

.google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Output only. If the migration job is completed, the time when it was completed.

.google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. If the migration job is completed, the time when it was completed.

.google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getError()

public Status getError()

Output only. The error details in case of state FAILED.

.google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

Output only. The error details in case of state FAILED.

.google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Output only. The error details in case of state FAILED.

.google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getFilter()

public String getFilter()

This field can be used to select the entities to migrate as part of the migration job. It uses AIP-160 notation to select a subset of the entities configured on the associated conversion-workspace. This field should not be set on migration-jobs that are not associated with a conversion workspace.

string filter = 20;

Returns
TypeDescription
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

This field can be used to select the entities to migrate as part of the migration job. It uses AIP-160 notation to select a subset of the entities configured on the associated conversion-workspace. This field should not be set on migration-jobs that are not associated with a conversion workspace.

string filter = 20;

Returns
TypeDescription
ByteString

The bytes for filter.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

The resource labels for migration job to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

The resource labels for migration job to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

The resource labels for migration job to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

The resource labels for migration job to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getPerformanceConfig()

public MigrationJob.PerformanceConfig getPerformanceConfig()

Optional. Data dump parallelism settings used by the migration. Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.

.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MigrationJob.PerformanceConfig

The performanceConfig.

getPerformanceConfigBuilder()

public MigrationJob.PerformanceConfig.Builder getPerformanceConfigBuilder()

Optional. Data dump parallelism settings used by the migration. Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.

.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MigrationJob.PerformanceConfig.Builder

getPerformanceConfigOrBuilder()

public MigrationJob.PerformanceConfigOrBuilder getPerformanceConfigOrBuilder()

Optional. Data dump parallelism settings used by the migration. Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.

.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
MigrationJob.PerformanceConfigOrBuilder

getPhase()

public MigrationJob.Phase getPhase()

Output only. The current migration job phase.

.google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MigrationJob.Phase

The phase.

getPhaseValue()

public int getPhaseValue()

Output only. The current migration job phase.

.google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for phase.

getReverseSshConnectivity()

public ReverseSshConnectivity getReverseSshConnectivity()

The details needed to communicate to the source over Reverse SSH tunnel connectivity.

.google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101;

Returns
TypeDescription
ReverseSshConnectivity

The reverseSshConnectivity.

getReverseSshConnectivityBuilder()

public ReverseSshConnectivity.Builder getReverseSshConnectivityBuilder()

The details needed to communicate to the source over Reverse SSH tunnel connectivity.

.google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101;

Returns
TypeDescription
ReverseSshConnectivity.Builder

getReverseSshConnectivityOrBuilder()

public ReverseSshConnectivityOrBuilder getReverseSshConnectivityOrBuilder()

The details needed to communicate to the source over Reverse SSH tunnel connectivity.

.google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101;

Returns
TypeDescription
ReverseSshConnectivityOrBuilder

getSource()

public String getSource()

Required. The resource name (URI) of the source connection profile.

string source = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The source.

getSourceBytes()

public ByteString getSourceBytes()

Required. The resource name (URI) of the source connection profile.

string source = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for source.

getSourceDatabase()

public DatabaseType getSourceDatabase()

The database engine type and provider of the source.

.google.cloud.clouddms.v1.DatabaseType source_database = 14;

Returns
TypeDescription
DatabaseType

The sourceDatabase.

getSourceDatabaseBuilder()

public DatabaseType.Builder getSourceDatabaseBuilder()

The database engine type and provider of the source.

.google.cloud.clouddms.v1.DatabaseType source_database = 14;

Returns
TypeDescription
DatabaseType.Builder

getSourceDatabaseOrBuilder()

public DatabaseTypeOrBuilder getSourceDatabaseOrBuilder()

The database engine type and provider of the source.

.google.cloud.clouddms.v1.DatabaseType source_database = 14;

Returns
TypeDescription
DatabaseTypeOrBuilder

getState()

public MigrationJob.State getState()

The current migration job state.

.google.cloud.clouddms.v1.MigrationJob.State state = 6;

Returns
TypeDescription
MigrationJob.State

The state.

getStateValue()

public int getStateValue()

The current migration job state.

.google.cloud.clouddms.v1.MigrationJob.State state = 6;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getStaticIpConnectivity()

public StaticIpConnectivity getStaticIpConnectivity()

static ip connectivity data (default, no additional details needed).

.google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103;

Returns
TypeDescription
StaticIpConnectivity

The staticIpConnectivity.

getStaticIpConnectivityBuilder()

public StaticIpConnectivity.Builder getStaticIpConnectivityBuilder()

static ip connectivity data (default, no additional details needed).

.google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103;

Returns
TypeDescription
StaticIpConnectivity.Builder

getStaticIpConnectivityOrBuilder()

public StaticIpConnectivityOrBuilder getStaticIpConnectivityOrBuilder()

static ip connectivity data (default, no additional details needed).

.google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103;

Returns
TypeDescription
StaticIpConnectivityOrBuilder

getType()

public MigrationJob.Type getType()

Required. The migration job type.

.google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
MigrationJob.Type

The type.

getTypeValue()

public int getTypeValue()

Required. The migration job type.

.google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for type.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp when the migration job resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The timestamp when the migration job resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when the migration job resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getVpcPeeringConnectivity()

public VpcPeeringConnectivity getVpcPeeringConnectivity()

The details of the VPC network that the source database is located in.

.google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102;

Returns
TypeDescription
VpcPeeringConnectivity

The vpcPeeringConnectivity.

getVpcPeeringConnectivityBuilder()

public VpcPeeringConnectivity.Builder getVpcPeeringConnectivityBuilder()

The details of the VPC network that the source database is located in.

.google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102;

Returns
TypeDescription
VpcPeeringConnectivity.Builder

getVpcPeeringConnectivityOrBuilder()

public VpcPeeringConnectivityOrBuilder getVpcPeeringConnectivityOrBuilder()

The details of the VPC network that the source database is located in.

.google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102;

Returns
TypeDescription
VpcPeeringConnectivityOrBuilder

hasConversionWorkspace()

public boolean hasConversionWorkspace()

The conversion workspace used by the migration.

.google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18;

Returns
TypeDescription
boolean

Whether the conversionWorkspace field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when the migration job resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDestinationDatabase()

public boolean hasDestinationDatabase()

The database engine type and provider of the destination.

.google.cloud.clouddms.v1.DatabaseType destination_database = 15;

Returns
TypeDescription
boolean

Whether the destinationDatabase field is set.

hasDumpFlags()

public boolean hasDumpFlags()

The initial dump flags. This field and the "dump_path" field are mutually exclusive.

.google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17;

Returns
TypeDescription
boolean

Whether the dumpFlags field is set.

hasDuration()

public boolean hasDuration()

Output only. The duration of the migration job (in seconds). A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".

.google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the duration field is set.

hasEndTime()

public boolean hasEndTime()

Output only. If the migration job is completed, the time when it was completed.

.google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasError()

public boolean hasError()

Output only. The error details in case of state FAILED.

.google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the error field is set.

hasPerformanceConfig()

public boolean hasPerformanceConfig()

Optional. Data dump parallelism settings used by the migration. Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.

.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the performanceConfig field is set.

hasReverseSshConnectivity()

public boolean hasReverseSshConnectivity()

The details needed to communicate to the source over Reverse SSH tunnel connectivity.

.google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101;

Returns
TypeDescription
boolean

Whether the reverseSshConnectivity field is set.

hasSourceDatabase()

public boolean hasSourceDatabase()

The database engine type and provider of the source.

.google.cloud.clouddms.v1.DatabaseType source_database = 14;

Returns
TypeDescription
boolean

Whether the sourceDatabase field is set.

hasStaticIpConnectivity()

public boolean hasStaticIpConnectivity()

static ip connectivity data (default, no additional details needed).

.google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103;

Returns
TypeDescription
boolean

Whether the staticIpConnectivity field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp when the migration job resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hasVpcPeeringConnectivity()

public boolean hasVpcPeeringConnectivity()

The details of the VPC network that the source database is located in.

.google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102;

Returns
TypeDescription
boolean

Whether the vpcPeeringConnectivity field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeConversionWorkspace(ConversionWorkspaceInfo value)

public MigrationJob.Builder mergeConversionWorkspace(ConversionWorkspaceInfo value)

The conversion workspace used by the migration.

.google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18;

Parameter
NameDescription
valueConversionWorkspaceInfo
Returns
TypeDescription
MigrationJob.Builder

mergeCreateTime(Timestamp value)

public MigrationJob.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when the migration job resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
MigrationJob.Builder

mergeDestinationDatabase(DatabaseType value)

public MigrationJob.Builder mergeDestinationDatabase(DatabaseType value)

The database engine type and provider of the destination.

.google.cloud.clouddms.v1.DatabaseType destination_database = 15;

Parameter
NameDescription
valueDatabaseType
Returns
TypeDescription
MigrationJob.Builder

mergeDumpFlags(MigrationJob.DumpFlags value)

public MigrationJob.Builder mergeDumpFlags(MigrationJob.DumpFlags value)

The initial dump flags. This field and the "dump_path" field are mutually exclusive.

.google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17;

Parameter
NameDescription
valueMigrationJob.DumpFlags
Returns
TypeDescription
MigrationJob.Builder

mergeDuration(Duration value)

public MigrationJob.Builder mergeDuration(Duration value)

Output only. The duration of the migration job (in seconds). A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".

.google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueDuration
Returns
TypeDescription
MigrationJob.Builder

mergeEndTime(Timestamp value)

public MigrationJob.Builder mergeEndTime(Timestamp value)

Output only. If the migration job is completed, the time when it was completed.

.google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
MigrationJob.Builder

mergeError(Status value)

public MigrationJob.Builder mergeError(Status value)

Output only. The error details in case of state FAILED.

.google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
MigrationJob.Builder

mergeFrom(MigrationJob other)

public MigrationJob.Builder mergeFrom(MigrationJob other)
Parameter
NameDescription
otherMigrationJob
Returns
TypeDescription
MigrationJob.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MigrationJob.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MigrationJob.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MigrationJob.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MigrationJob.Builder
Overrides

mergePerformanceConfig(MigrationJob.PerformanceConfig value)

public MigrationJob.Builder mergePerformanceConfig(MigrationJob.PerformanceConfig value)

Optional. Data dump parallelism settings used by the migration. Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.

.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueMigrationJob.PerformanceConfig
Returns
TypeDescription
MigrationJob.Builder

mergeReverseSshConnectivity(ReverseSshConnectivity value)

public MigrationJob.Builder mergeReverseSshConnectivity(ReverseSshConnectivity value)

The details needed to communicate to the source over Reverse SSH tunnel connectivity.

.google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101;

Parameter
NameDescription
valueReverseSshConnectivity
Returns
TypeDescription
MigrationJob.Builder

mergeSourceDatabase(DatabaseType value)

public MigrationJob.Builder mergeSourceDatabase(DatabaseType value)

The database engine type and provider of the source.

.google.cloud.clouddms.v1.DatabaseType source_database = 14;

Parameter
NameDescription
valueDatabaseType
Returns
TypeDescription
MigrationJob.Builder

mergeStaticIpConnectivity(StaticIpConnectivity value)

public MigrationJob.Builder mergeStaticIpConnectivity(StaticIpConnectivity value)

static ip connectivity data (default, no additional details needed).

.google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103;

Parameter
NameDescription
valueStaticIpConnectivity
Returns
TypeDescription
MigrationJob.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MigrationJob.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MigrationJob.Builder
Overrides

mergeUpdateTime(Timestamp value)

public MigrationJob.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp when the migration job resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
MigrationJob.Builder

mergeVpcPeeringConnectivity(VpcPeeringConnectivity value)

public MigrationJob.Builder mergeVpcPeeringConnectivity(VpcPeeringConnectivity value)

The details of the VPC network that the source database is located in.

.google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102;

Parameter
NameDescription
valueVpcPeeringConnectivity
Returns
TypeDescription
MigrationJob.Builder

putAllLabels(Map<String,String> values)

public MigrationJob.Builder putAllLabels(Map<String,String> values)

The resource labels for migration job to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> labels = 4;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
MigrationJob.Builder

putLabels(String key, String value)

public MigrationJob.Builder putLabels(String key, String value)

The resource labels for migration job to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
MigrationJob.Builder

removeLabels(String key)

public MigrationJob.Builder removeLabels(String key)

The resource labels for migration job to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
MigrationJob.Builder

setCmekKeyName(String value)

public MigrationJob.Builder setCmekKeyName(String value)

The CMEK (customer-managed encryption key) fully qualified key name used for the migration job. This field supports all migration jobs types except for:

  • Mysql to Mysql (use the cmek field in the cloudsql connection profile instead).
  • PostrgeSQL to PostgreSQL (use the cmek field in the cloudsql connection profile instead).
  • PostgreSQL to AlloyDB (use the kms_key_name field in the alloydb connection profile instead). Each Cloud CMEK key has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]

string cmek_key_name = 21;

Parameter
NameDescription
valueString

The cmekKeyName to set.

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

setCmekKeyNameBytes(ByteString value)

public MigrationJob.Builder setCmekKeyNameBytes(ByteString value)

The CMEK (customer-managed encryption key) fully qualified key name used for the migration job. This field supports all migration jobs types except for:

  • Mysql to Mysql (use the cmek field in the cloudsql connection profile instead).
  • PostrgeSQL to PostgreSQL (use the cmek field in the cloudsql connection profile instead).
  • PostgreSQL to AlloyDB (use the kms_key_name field in the alloydb connection profile instead). Each Cloud CMEK key has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]

string cmek_key_name = 21;

Parameter
NameDescription
valueByteString

The bytes for cmekKeyName to set.

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

setConversionWorkspace(ConversionWorkspaceInfo value)

public MigrationJob.Builder setConversionWorkspace(ConversionWorkspaceInfo value)

The conversion workspace used by the migration.

.google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18;

Parameter
NameDescription
valueConversionWorkspaceInfo
Returns
TypeDescription
MigrationJob.Builder

setConversionWorkspace(ConversionWorkspaceInfo.Builder builderForValue)

public MigrationJob.Builder setConversionWorkspace(ConversionWorkspaceInfo.Builder builderForValue)

The conversion workspace used by the migration.

.google.cloud.clouddms.v1.ConversionWorkspaceInfo conversion_workspace = 18;

Parameter
NameDescription
builderForValueConversionWorkspaceInfo.Builder
Returns
TypeDescription
MigrationJob.Builder

setCreateTime(Timestamp value)

public MigrationJob.Builder setCreateTime(Timestamp value)

Output only. The timestamp when the migration job resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
MigrationJob.Builder

setCreateTime(Timestamp.Builder builderForValue)

public MigrationJob.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the migration job resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
MigrationJob.Builder

setDestination(String value)

public MigrationJob.Builder setDestination(String value)

Required. The resource name (URI) of the destination connection profile.

string destination = 11 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The destination to set.

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

setDestinationBytes(ByteString value)

public MigrationJob.Builder setDestinationBytes(ByteString value)

Required. The resource name (URI) of the destination connection profile.

string destination = 11 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for destination to set.

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

setDestinationDatabase(DatabaseType value)

public MigrationJob.Builder setDestinationDatabase(DatabaseType value)

The database engine type and provider of the destination.

.google.cloud.clouddms.v1.DatabaseType destination_database = 15;

Parameter
NameDescription
valueDatabaseType
Returns
TypeDescription
MigrationJob.Builder

setDestinationDatabase(DatabaseType.Builder builderForValue)

public MigrationJob.Builder setDestinationDatabase(DatabaseType.Builder builderForValue)

The database engine type and provider of the destination.

.google.cloud.clouddms.v1.DatabaseType destination_database = 15;

Parameter
NameDescription
builderForValueDatabaseType.Builder
Returns
TypeDescription
MigrationJob.Builder

setDisplayName(String value)

public MigrationJob.Builder setDisplayName(String value)

The migration job display name.

string display_name = 5;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public MigrationJob.Builder setDisplayNameBytes(ByteString value)

The migration job display name.

string display_name = 5;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

setDumpFlags(MigrationJob.DumpFlags value)

public MigrationJob.Builder setDumpFlags(MigrationJob.DumpFlags value)

The initial dump flags. This field and the "dump_path" field are mutually exclusive.

.google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17;

Parameter
NameDescription
valueMigrationJob.DumpFlags
Returns
TypeDescription
MigrationJob.Builder

setDumpFlags(MigrationJob.DumpFlags.Builder builderForValue)

public MigrationJob.Builder setDumpFlags(MigrationJob.DumpFlags.Builder builderForValue)

The initial dump flags. This field and the "dump_path" field are mutually exclusive.

.google.cloud.clouddms.v1.MigrationJob.DumpFlags dump_flags = 17;

Parameter
NameDescription
builderForValueMigrationJob.DumpFlags.Builder
Returns
TypeDescription
MigrationJob.Builder

setDumpPath(String value)

public MigrationJob.Builder setDumpPath(String value)

The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the "dump_flags" field are mutually exclusive.

string dump_path = 9;

Parameter
NameDescription
valueString

The dumpPath to set.

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

setDumpPathBytes(ByteString value)

public MigrationJob.Builder setDumpPathBytes(ByteString value)

The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the "dump_flags" field are mutually exclusive.

string dump_path = 9;

Parameter
NameDescription
valueByteString

The bytes for dumpPath to set.

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

setDuration(Duration value)

public MigrationJob.Builder setDuration(Duration value)

Output only. The duration of the migration job (in seconds). A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".

.google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueDuration
Returns
TypeDescription
MigrationJob.Builder

setDuration(Duration.Builder builderForValue)

public MigrationJob.Builder setDuration(Duration.Builder builderForValue)

Output only. The duration of the migration job (in seconds). A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".

.google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
MigrationJob.Builder

setEndTime(Timestamp value)

public MigrationJob.Builder setEndTime(Timestamp value)

Output only. If the migration job is completed, the time when it was completed.

.google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
MigrationJob.Builder

setEndTime(Timestamp.Builder builderForValue)

public MigrationJob.Builder setEndTime(Timestamp.Builder builderForValue)

Output only. If the migration job is completed, the time when it was completed.

.google.protobuf.Timestamp end_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
MigrationJob.Builder

setError(Status value)

public MigrationJob.Builder setError(Status value)

Output only. The error details in case of state FAILED.

.google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
MigrationJob.Builder

setError(Status.Builder builderForValue)

public MigrationJob.Builder setError(Status.Builder builderForValue)

Output only. The error details in case of state FAILED.

.google.rpc.Status error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
MigrationJob.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MigrationJob.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MigrationJob.Builder
Overrides

setFilter(String value)

public MigrationJob.Builder setFilter(String value)

This field can be used to select the entities to migrate as part of the migration job. It uses AIP-160 notation to select a subset of the entities configured on the associated conversion-workspace. This field should not be set on migration-jobs that are not associated with a conversion workspace.

string filter = 20;

Parameter
NameDescription
valueString

The filter to set.

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

setFilterBytes(ByteString value)

public MigrationJob.Builder setFilterBytes(ByteString value)

This field can be used to select the entities to migrate as part of the migration job. It uses AIP-160 notation to select a subset of the entities configured on the associated conversion-workspace. This field should not be set on migration-jobs that are not associated with a conversion workspace.

string filter = 20;

Parameter
NameDescription
valueByteString

The bytes for filter to set.

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

setName(String value)

public MigrationJob.Builder setName(String value)

The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

setNameBytes(ByteString value)

public MigrationJob.Builder setNameBytes(ByteString value)

The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

setPerformanceConfig(MigrationJob.PerformanceConfig value)

public MigrationJob.Builder setPerformanceConfig(MigrationJob.PerformanceConfig value)

Optional. Data dump parallelism settings used by the migration. Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.

.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueMigrationJob.PerformanceConfig
Returns
TypeDescription
MigrationJob.Builder

setPerformanceConfig(MigrationJob.PerformanceConfig.Builder builderForValue)

public MigrationJob.Builder setPerformanceConfig(MigrationJob.PerformanceConfig.Builder builderForValue)

Optional. Data dump parallelism settings used by the migration. Currently applicable only for MySQL to Cloud SQL for MySQL migrations only.

.google.cloud.clouddms.v1.MigrationJob.PerformanceConfig performance_config = 22 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueMigrationJob.PerformanceConfig.Builder
Returns
TypeDescription
MigrationJob.Builder

setPhase(MigrationJob.Phase value)

public MigrationJob.Builder setPhase(MigrationJob.Phase value)

Output only. The current migration job phase.

.google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueMigrationJob.Phase

The phase to set.

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

setPhaseValue(int value)

public MigrationJob.Builder setPhaseValue(int value)

Output only. The current migration job phase.

.google.cloud.clouddms.v1.MigrationJob.Phase phase = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public MigrationJob.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MigrationJob.Builder
Overrides

setReverseSshConnectivity(ReverseSshConnectivity value)

public MigrationJob.Builder setReverseSshConnectivity(ReverseSshConnectivity value)

The details needed to communicate to the source over Reverse SSH tunnel connectivity.

.google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101;

Parameter
NameDescription
valueReverseSshConnectivity
Returns
TypeDescription
MigrationJob.Builder

setReverseSshConnectivity(ReverseSshConnectivity.Builder builderForValue)

public MigrationJob.Builder setReverseSshConnectivity(ReverseSshConnectivity.Builder builderForValue)

The details needed to communicate to the source over Reverse SSH tunnel connectivity.

.google.cloud.clouddms.v1.ReverseSshConnectivity reverse_ssh_connectivity = 101;

Parameter
NameDescription
builderForValueReverseSshConnectivity.Builder
Returns
TypeDescription
MigrationJob.Builder

setSource(String value)

public MigrationJob.Builder setSource(String value)

Required. The resource name (URI) of the source connection profile.

string source = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The source to set.

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

setSourceBytes(ByteString value)

public MigrationJob.Builder setSourceBytes(ByteString value)

Required. The resource name (URI) of the source connection profile.

string source = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for source to set.

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

setSourceDatabase(DatabaseType value)

public MigrationJob.Builder setSourceDatabase(DatabaseType value)

The database engine type and provider of the source.

.google.cloud.clouddms.v1.DatabaseType source_database = 14;

Parameter
NameDescription
valueDatabaseType
Returns
TypeDescription
MigrationJob.Builder

setSourceDatabase(DatabaseType.Builder builderForValue)

public MigrationJob.Builder setSourceDatabase(DatabaseType.Builder builderForValue)

The database engine type and provider of the source.

.google.cloud.clouddms.v1.DatabaseType source_database = 14;

Parameter
NameDescription
builderForValueDatabaseType.Builder
Returns
TypeDescription
MigrationJob.Builder

setState(MigrationJob.State value)

public MigrationJob.Builder setState(MigrationJob.State value)

The current migration job state.

.google.cloud.clouddms.v1.MigrationJob.State state = 6;

Parameter
NameDescription
valueMigrationJob.State

The state to set.

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

setStateValue(int value)

public MigrationJob.Builder setStateValue(int value)

The current migration job state.

.google.cloud.clouddms.v1.MigrationJob.State state = 6;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

setStaticIpConnectivity(StaticIpConnectivity value)

public MigrationJob.Builder setStaticIpConnectivity(StaticIpConnectivity value)

static ip connectivity data (default, no additional details needed).

.google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103;

Parameter
NameDescription
valueStaticIpConnectivity
Returns
TypeDescription
MigrationJob.Builder

setStaticIpConnectivity(StaticIpConnectivity.Builder builderForValue)

public MigrationJob.Builder setStaticIpConnectivity(StaticIpConnectivity.Builder builderForValue)

static ip connectivity data (default, no additional details needed).

.google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 103;

Parameter
NameDescription
builderForValueStaticIpConnectivity.Builder
Returns
TypeDescription
MigrationJob.Builder

setType(MigrationJob.Type value)

public MigrationJob.Builder setType(MigrationJob.Type value)

Required. The migration job type.

.google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueMigrationJob.Type

The type to set.

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

setTypeValue(int value)

public MigrationJob.Builder setTypeValue(int value)

Required. The migration job type.

.google.cloud.clouddms.v1.MigrationJob.Type type = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
MigrationJob.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final MigrationJob.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MigrationJob.Builder
Overrides

setUpdateTime(Timestamp value)

public MigrationJob.Builder setUpdateTime(Timestamp value)

Output only. The timestamp when the migration job resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
MigrationJob.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public MigrationJob.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the migration job resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
MigrationJob.Builder

setVpcPeeringConnectivity(VpcPeeringConnectivity value)

public MigrationJob.Builder setVpcPeeringConnectivity(VpcPeeringConnectivity value)

The details of the VPC network that the source database is located in.

.google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102;

Parameter
NameDescription
valueVpcPeeringConnectivity
Returns
TypeDescription
MigrationJob.Builder

setVpcPeeringConnectivity(VpcPeeringConnectivity.Builder builderForValue)

public MigrationJob.Builder setVpcPeeringConnectivity(VpcPeeringConnectivity.Builder builderForValue)

The details of the VPC network that the source database is located in.

.google.cloud.clouddms.v1.VpcPeeringConnectivity vpc_peering_connectivity = 102;

Parameter
NameDescription
builderForValueVpcPeeringConnectivity.Builder
Returns
TypeDescription
MigrationJob.Builder