NAME
Google::Cloud::Bigquery::Migration::V2::MigrationEntities - Compiled Protocol Buffers messages for google/cloud/bigquery/migration/v2/migration_entities.proto
SYNOPSIS
use Google::Cloud::Bigquery::Migration::V2::MigrationEntities;
my $msg = Google::Cloud::Bigquery::Migration::V2::MigrationEntities::MigrationWorkflow->new({
name => $name,
display_name => $display_name,
tasks => $tasks,
state => $state,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Bigquery::Migration::V2::MigrationEntities::MigrationWorkflow->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/bigquery/migration/v2/migration_entities.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Bigquery::Migration::V2::MigrationEntities::MigrationWorkflow
A migration workflow which specifies what needs to be done for an EDW migration.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Immutable. Identifier. The unique identifier for the migration workflow. The ID is server-generated.
Example: `projects/123/locations/us/workflows/345`
$msg->display_name()/$msg->display_name($value)Type:
StringThe display name of the workflow. This can be set to give a workflow a descriptive name. There is no guarantee or enforcement of uniqueness.
$msg->tasks()/$msg->tasks($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2::MigrationEntities::MigrationWorkflow::TasksEntry)The tasks in a workflow in a named map. The name (i.e. key) has no meaning and is merely a convenient way to address a specific task in a workflow.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Bigquery::Migration::V2::MigrationWorkflow::State)Output only. That status of the workflow.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time when the workflow was created.
$msg->last_update_time()/$msg->last_update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time when the workflow was last updated.
Enum: MigrationWorkflow::State
STATE_UNSPECIFIED=>0DRAFT=>1RUNNING=>2PAUSED=>3COMPLETED=>4
Google::Cloud::Bigquery::Migration::V2::MigrationEntities::MigrationTask
A single task for a migration which has details about the configuration of the task.
Inherits from Protobuf::Message.
Accessors
$msg->assessment_task_details()/$msg->assessment_task_details($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2::AssessmentTask::AssessmentTaskDetails)Task configuration for Assessment.
$msg->translation_config_details()/$msg->translation_config_details($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2::TranslationConfig::TranslationConfigDetails)Task configuration for CW Batch/Offline SQL Translation.
$msg->translation_details()/$msg->translation_details($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2::TranslationDetails::TranslationDetails)Task details for unified SQL Translation.
$msg->id()/$msg->id($value)Type:
StringOutput only. Immutable. The unique identifier for the migration task. The ID is server-generated.
$msg->type()/$msg->type($value)Type:
StringThe 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](https://docs.cloud.google.com/bigquery/docs/api-sql-translator#supported_task_types) for a list of supported task types.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Bigquery::Migration::V2::MigrationTask::State)Output only. The current state of the task.
$msg->processing_error()/$msg->processing_error($value)Type:
Message(Google::Rpc::ErrorDetails::ErrorInfo)Output only. An explanation that may be populated when the task is in FAILED state.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time when the task was created.
$msg->last_update_time()/$msg->last_update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time when the task was last updated.
$msg->resource_error_details()/$msg->resource_error_details($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2::MigrationErrorDetails::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.
$msg->resource_error_count()/$msg->resource_error_count($value)Type:
Int32Output 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`.
$msg->metrics()/$msg->metrics($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2::MigrationMetrics::TimeSeries)Output only. The metrics for the task.
$msg->task_result()/$msg->task_result($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2::MigrationEntities::MigrationTaskResult)Output only. The result of the task.
$msg->total_processing_error_count()/$msg->total_processing_error_count($value)Type:
Int32Output only. Count of all the processing errors in this task and its subtasks.
$msg->total_resource_error_count()/$msg->total_resource_error_count($value)Type:
Int32Output only. Count of all the resource errors in this task and its subtasks.
Enum: MigrationTask::State
STATE_UNSPECIFIED=>0PENDING=>1ORCHESTRATING=>2RUNNING=>3PAUSED=>4SUCCEEDED=>5FAILED=>6
Google::Cloud::Bigquery::Migration::V2::MigrationEntities::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.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Immutable. The resource name for the migration subtask. The ID is server-generated.
Example: `projects/123/locations/us/workflows/345/subtasks/678`
$msg->task_id()/$msg->task_id($value)Type:
StringThe unique ID of the task to which this subtask belongs.
$msg->type()/$msg->type($value)Type:
StringThe 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.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Bigquery::Migration::V2::MigrationSubtask::State)Output only. The current state of the subtask.
$msg->processing_error()/$msg->processing_error($value)Type:
Message(Google::Rpc::ErrorDetails::ErrorInfo)Output only. An explanation that may be populated when the task is in FAILED state.
$msg->resource_error_details()/$msg->resource_error_details($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2::MigrationErrorDetails::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.
$msg->resource_error_count()/$msg->resource_error_count($value)Type:
Int32Output 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`.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time when the subtask was created.
$msg->last_update_time()/$msg->last_update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time when the subtask was last updated.
$msg->metrics()/$msg->metrics($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2::MigrationMetrics::TimeSeries)Output only. The metrics for the subtask.
Enum: MigrationSubtask::State
STATE_UNSPECIFIED=>0ACTIVE=>1RUNNING=>2SUCCEEDED=>3FAILED=>4PAUSED=>5PENDING_DEPENDENCY=>6
Google::Cloud::Bigquery::Migration::V2::MigrationEntities::MigrationTaskResult
The migration task result.
Inherits from Protobuf::Message.
Accessors
$msg->translation_task_result()/$msg->translation_task_result($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2::MigrationEntities::TranslationTaskResult)Details specific to translation task types.
$msg->task_outputs()/$msg->task_outputs($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2::MigrationEntities::MigrationTaskResult::TaskOutputsEntry)The map of task output types to the task outputs, e.g. "LINEAGE".
Google::Cloud::Bigquery::Migration::V2::MigrationEntities::TranslationTaskResult
Translation specific result details from the migration task.
Inherits from Protobuf::Message.
Accessors
$msg->translated_literals()/$msg->translated_literals($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2::TranslationDetails::Literal)The list of the translated literals.
$msg->report_log_messages()/$msg->report_log_messages($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2::TranslationUsability::GcsReportLogMessage)The records from the aggregate CSV report for a migration workflow.
$msg->console_uri()/$msg->console_uri($value)Type:
StringThe Cloud Console URI for the migration workflow.
Google::Cloud::Bigquery::Migration::V2::MigrationEntities::TaskOutput
The task output for a task type including the status and any errors.
Inherits from Protobuf::Message.
Accessors
$msg->lineage_output()/$msg->lineage_output($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2::MigrationEntities::LineageOutput)The output of the task with output type "LINEAGE".
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Bigquery::Migration::V2::TaskOutput::State)Output only. The current state of the task output.
$msg->processing_error()/$msg->processing_error($value)Type:
Message(Google::Rpc::ErrorDetails::ErrorInfo)An explanation that may be populated when the task output is in FAILED state.
Enum: TaskOutput::State
STATE_UNSPECIFIED=>0PENDING=>1SUCCEEDED=>2FAILED=>3
Google::Cloud::Bigquery::Migration::V2::MigrationEntities::LineageOutput
The output of a task with output type "LINEAGE".
Actual generated lineage can be queried separately (see [webapp_uri][google.cloud.bigquery.migration.v2.LineageOutput.webapp_uri]), this message contains only metadata: processing status, errors, etc.
Inherits from Protobuf::Message.
Accessors
$msg->webapp_uri()/$msg->webapp_uri($value)Type:
StringThe URI of the webapp that visualizes the lineage. The user needs the `bigquerymigration.googleapis.com/lineageDbs.query` IAM permission to use the webapp.
$msg->recognized_inputs()/$msg->recognized_inputs($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2::MigrationEntities::LineageOutput::RecognizedInput)Output only. Recognized lineage inputs.
All inputs are processed only if the task succeeds and all work is in state [SUCCEEDED](ProgressReport.WorkSummary.State.SUCCEEDED) (in particular, nothing is [SKIPPED](ProgressReport.WorkSummary.State.SKIPPED)).
Even with all inputs processed successfully, there may be transpiler errors present leading to inaccurate lineage.
$msg->processing_progress_reports()/$msg->processing_progress_reports($value)Type:
Message(Google::Cloud::Bigquery::Migration::V2::MigrationEntities::LineageOutput::ProgressReport)Output only. Work processing progress reports broken up by processing stage.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Bigquery::Migration::V2::MigrationEntities::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.