Google Cloud BigQuery Migration V2 Client - Class MigrationSubtask (0.3.3)

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

A subtask for a migration which carries details about the configuration of the subtask. The content of the details should not matter to the end user, but is a contract between the subtask creator and subtask worker.

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

Namespace

Google \ Cloud \ BigQuery \ Migration \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. Immutable. The resource name for the migration subtask. The ID is server-generated. Example: projects/123/locations/us/workflows/345/subtasks/678

↳ task_id string

The unique ID of the task to which this subtask belongs.

↳ type string

The type of the Subtask. The migration service does not check whether this is a known type. It is up to the task creator (i.e. orchestrator or worker) to ensure it only creates subtasks for which there are compatible workers polling for Subtasks.

↳ state int

Output only. The current state of the subtask.

↳ processing_error Google\Rpc\ErrorInfo

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

↳ resource_error_details array<Google\Cloud\BigQuery\Migration\V2\ResourceErrorDetail>

Output only. Provides details to errors and issues encountered while processing the subtask. Presence of error details does not mean that the subtask 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.

↳ create_time Google\Protobuf\Timestamp

Time when the subtask was created.

↳ last_update_time Google\Protobuf\Timestamp

Time when the subtask was last updated.

↳ metrics array<Google\Cloud\BigQuery\Migration\V2\TimeSeries>

The metrics for the subtask.

getName

Output only. Immutable. The resource name for the migration subtask. The ID is server-generated.

Example: projects/123/locations/us/workflows/345/subtasks/678

Returns
TypeDescription
string

setName

Output only. Immutable. The resource name for the migration subtask. The ID is server-generated.

Example: projects/123/locations/us/workflows/345/subtasks/678

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTaskId

The unique ID of the task to which this subtask belongs.

Returns
TypeDescription
string

setTaskId

The unique ID of the task to which this subtask belongs.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

The type of the Subtask. The migration service does not check whether this is a known type. It is up to the task creator (i.e. orchestrator or worker) to ensure it only creates subtasks for which there are compatible workers polling for Subtasks.

Returns
TypeDescription
string

setType

The type of the Subtask. The migration service does not check whether this is a known type. It is up to the task creator (i.e. orchestrator or worker) to ensure it only creates subtasks for which there are compatible workers polling for Subtasks.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

Output only. The current state of the subtask.

Returns
TypeDescription
int

setState

Output only. The current state of the subtask.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getProcessingError

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

Returns
TypeDescription
Google\Rpc\ErrorInfo|null

hasProcessingError

clearProcessingError

setProcessingError

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

Parameter
NameDescription
var Google\Rpc\ErrorInfo
Returns
TypeDescription
$this

getResourceErrorDetails

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setResourceErrorDetails

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

Parameter
NameDescription
var array<Google\Cloud\BigQuery\Migration\V2\ResourceErrorDetail>
Returns
TypeDescription
$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.

Returns
TypeDescription
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.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCreateTime

Time when the subtask was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Time when the subtask was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getLastUpdateTime

Time when the subtask was last updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasLastUpdateTime

clearLastUpdateTime

setLastUpdateTime

Time when the subtask was last updated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getMetrics

The metrics for the subtask.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setMetrics

The metrics for the subtask.

Parameter
NameDescription
var array<Google\Cloud\BigQuery\Migration\V2\TimeSeries>
Returns
TypeDescription
$this