Google Cloud BigQuery Migration V2 Client - Class MigrationTask (1.3.0)

Reference documentation and code samples for the Google Cloud BigQuery Migration V2 Client class MigrationTask.

A single task for a migration which has details about the configuration of the task.

Generated from protobuf message google.cloud.bigquery.migration.v2.MigrationTask

Namespace

Google \ Cloud \ BigQuery \ Migration \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ assessment_task_details AssessmentTaskDetails

Task configuration for Assessment.

↳ translation_config_details TranslationConfigDetails

Task configuration for CW Batch/Offline SQL Translation.

↳ translation_details TranslationDetails

Task details for unified SQL Translation.

↳ id string

Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.

↳ type string

The type of the task. This must be one of the supported task types. Assessment: - Assessment_Hive - Assessment for Hive. - Assessment_Redshift - Assessment for Redshift. - Assessment_Snowflake - Assessment for Snowflake. - Assessment_Teradata_v2 - Assessment for Teradata. - Assessment_Oracle - Assessment for Oracle. - Assessment_Hadoop - Assessment for Hadoop. - Assessment_Informatica - Assessment for Informatica. Translation: See Supported Task Types for a list of supported task types.

↳ state int

Output only. The current state of the task.

↳ processing_error Google\Rpc\ErrorInfo

Output only. An explanation that may be populated when the task is in FAILED state.

↳ create_time Google\Protobuf\Timestamp

Output only. Time when the task was created.

↳ last_update_time Google\Protobuf\Timestamp

Output only. Time when the task was last updated.

↳ resource_error_details array<ResourceErrorDetail>

Output only. Provides details to errors and issues encountered while processing the task. Presence of error details does not mean that the task failed.

↳ resource_error_count int

Output only. The number or resources with errors. Note: This is not the total number of errors as each resource can have more than one error. This is used to indicate truncation by having a resource_error_count that is higher than the size of resource_error_details.

↳ metrics array<TimeSeries>

Output only. The metrics for the task.

↳ task_result MigrationTaskResult

Output only. The result of the task.

↳ total_processing_error_count int

Output only. Count of all the processing errors in this task and its subtasks.

↳ total_resource_error_count int

Output only. Count of all the resource errors in this task and its subtasks.

getAssessmentTaskDetails

Task configuration for Assessment.

Returns
Type Description
AssessmentTaskDetails|null

hasAssessmentTaskDetails

setAssessmentTaskDetails

Task configuration for Assessment.

Parameter
Name Description
var AssessmentTaskDetails
Returns
Type Description
$this

getTranslationConfigDetails

Task configuration for CW Batch/Offline SQL Translation.

Returns
Type Description
TranslationConfigDetails|null

hasTranslationConfigDetails

setTranslationConfigDetails

Task configuration for CW Batch/Offline SQL Translation.

Parameter
Name Description
var TranslationConfigDetails
Returns
Type Description
$this

getTranslationDetails

Task details for unified SQL Translation.

Returns
Type Description
TranslationDetails|null

hasTranslationDetails

setTranslationDetails

Task details for unified SQL Translation.

Parameter
Name Description
var TranslationDetails
Returns
Type Description
$this

getId

Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.

Returns
Type Description
string

setId

Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.

Parameter
Name Description
var string
Returns
Type Description
$this

getType

The type of the task. This must be one of the supported task types.

Assessment:

  • Assessment_Hive - Assessment for Hive.
  • Assessment_Redshift - Assessment for Redshift.
  • Assessment_Snowflake - Assessment for Snowflake.
  • Assessment_Teradata_v2 - Assessment for Teradata.
  • Assessment_Oracle - Assessment for Oracle.
  • Assessment_Hadoop - Assessment for Hadoop.
  • Assessment_Informatica - Assessment for Informatica. Translation: See Supported Task Types for a list of supported task types.
Returns
Type Description
string

setType

The type of the task. This must be one of the supported task types.

Assessment:

  • Assessment_Hive - Assessment for Hive.
  • Assessment_Redshift - Assessment for Redshift.
  • Assessment_Snowflake - Assessment for Snowflake.
  • Assessment_Teradata_v2 - Assessment for Teradata.
  • Assessment_Oracle - Assessment for Oracle.
  • Assessment_Hadoop - Assessment for Hadoop.
  • Assessment_Informatica - Assessment for Informatica. Translation: See Supported Task Types for a list of supported task types.
Parameter
Name Description
var string
Returns
Type Description
$this

getState

Output only. The current state of the task.

Returns
Type Description
int Enum of type State.

setState

Output only. The current state of the task.

Parameter
Name Description
var int

Enum of type State.

Returns
Type Description
$this

getProcessingError

Output only. An explanation that may be populated when the task is in FAILED state.

Returns
Type Description
Google\Rpc\ErrorInfo|null

hasProcessingError

clearProcessingError

setProcessingError

Output only. An explanation that may be populated when the task is in FAILED state.

Parameter
Name Description
var Google\Rpc\ErrorInfo
Returns
Type Description
$this

getCreateTime

Output only. Time when the task was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Time when the task was created.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getLastUpdateTime

Output only. Time when the task was last updated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasLastUpdateTime

clearLastUpdateTime

setLastUpdateTime

Output only. Time when the task was last updated.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getResourceErrorDetails

Output only. Provides details to errors and issues encountered while processing the task. Presence of error details does not mean that the task failed.

Returns
Type Description
Google\Protobuf\RepeatedField<ResourceErrorDetail>

setResourceErrorDetails

Output only. Provides details to errors and issues encountered while processing the task. Presence of error details does not mean that the task failed.

Parameter
Name Description
var array<ResourceErrorDetail>
Returns
Type Description
$this

getResourceErrorCount

Output only. The number or resources with errors. Note: This is not the total number of errors as each resource can have more than one error. This is used to indicate truncation by having a resource_error_count that is higher than the size of resource_error_details.

Returns
Type Description
int

setResourceErrorCount

Output only. The number or resources with errors. Note: This is not the total number of errors as each resource can have more than one error. This is used to indicate truncation by having a resource_error_count that is higher than the size of resource_error_details.

Parameter
Name Description
var int
Returns
Type Description
$this

getMetrics

Output only. The metrics for the task.

Returns
Type Description
Google\Protobuf\RepeatedField<TimeSeries>

setMetrics

Output only. The metrics for the task.

Parameter
Name Description
var array<TimeSeries>
Returns
Type Description
$this

getTaskResult

Output only. The result of the task.

Returns
Type Description
MigrationTaskResult|null

hasTaskResult

clearTaskResult

setTaskResult

Output only. The result of the task.

Parameter
Name Description
var MigrationTaskResult
Returns
Type Description
$this

getTotalProcessingErrorCount

Output only. Count of all the processing errors in this task and its subtasks.

Returns
Type Description
int

setTotalProcessingErrorCount

Output only. Count of all the processing errors in this task and its subtasks.

Parameter
Name Description
var int
Returns
Type Description
$this

getTotalResourceErrorCount

Output only. Count of all the resource errors in this task and its subtasks.

Returns
Type Description
int

setTotalResourceErrorCount

Output only. Count of all the resource errors in this task and its subtasks.

Parameter
Name Description
var int
Returns
Type Description
$this

getTaskDetails

Returns
Type Description
string