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 \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ translation_config_details
↳ translation_details
↳ 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: Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, Translation_Snowflake2BQ, Translation_Netezza2BQ, Translation_AzureSynapse2BQ, Translation_Vertica2BQ, Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.
↳ 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
↳ last_update_time
↳ 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
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
↳ task_result
↳ total_processing_error_count
int
Count of all the processing errors in this task and its subtasks.
↳ total_resource_error_count
int
Count of all the resource errors in this task and its subtasks.
getTranslationConfigDetails
Task configuration for CW Batch/Offline SQL Translation.
hasTranslationConfigDetails
setTranslationConfigDetails
Task configuration for CW Batch/Offline SQL Translation.
$this
getTranslationDetails
Task details for unified SQL Translation.
hasTranslationDetails
setTranslationDetails
Task details for unified SQL Translation.
$this
getId
Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.
string
setId
Output only. Immutable. The unique identifier for the migration task. The ID is server-generated.
var
string
$this
getType
The type of the task. This must be one of the supported task types: Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, Translation_Snowflake2BQ, Translation_Netezza2BQ, Translation_AzureSynapse2BQ, Translation_Vertica2BQ, Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.
string
setType
The type of the task. This must be one of the supported task types: Translation_Teradata2BQ, Translation_Redshift2BQ, Translation_Bteq2BQ, Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, Translation_Snowflake2BQ, Translation_Netezza2BQ, Translation_AzureSynapse2BQ, Translation_Vertica2BQ, Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, Translation_Postgresql2BQ, Translation_SQLite2BQ, Translation_Greenplum2BQ.
var
string
$this
getState
Output only. The current state of the task.
int
setState
Output only. The current state of the task.
var
int
$this
getProcessingError
Output only. An explanation that may be populated when the task is in FAILED state.
hasProcessingError
clearProcessingError
setProcessingError
Output only. An explanation that may be populated when the task is in FAILED state.
$this
getCreateTime
Time when the task was created.
hasCreateTime
clearCreateTime
setCreateTime
Time when the task was created.
$this
getLastUpdateTime
Time when the task was last updated.
hasLastUpdateTime
clearLastUpdateTime
setLastUpdateTime
Time when the task was last updated.
$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.
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.
$this
getResourceErrorCount
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
.
int
setResourceErrorCount
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
.
var
int
$this
getMetrics
The metrics for the task.
setMetrics
The metrics for the task.
$this
getTaskResult
Output only. The result of the task.
hasTaskResult
clearTaskResult
setTaskResult
Output only. The result of the task.
$this
getTotalProcessingErrorCount
Count of all the processing errors in this task and its subtasks.
int
setTotalProcessingErrorCount
Count of all the processing errors in this task and its subtasks.
var
int
$this
getTotalResourceErrorCount
Count of all the resource errors in this task and its subtasks.
int
setTotalResourceErrorCount
Count of all the resource errors in this task and its subtasks.
var
int
$this
getTaskDetails
string