diff --git a/BigQueryMigration/metadata/V2/MigrationEntities.php b/BigQueryMigration/metadata/V2/MigrationEntities.php index 5b1f721159f..053eb31309e 100644 Binary files a/BigQueryMigration/metadata/V2/MigrationEntities.php and b/BigQueryMigration/metadata/V2/MigrationEntities.php differ diff --git a/BigQueryMigration/metadata/V2/TranslationConfig.php b/BigQueryMigration/metadata/V2/TranslationConfig.php index 2d1e2c3d800..3944fb40642 100644 Binary files a/BigQueryMigration/metadata/V2/TranslationConfig.php and b/BigQueryMigration/metadata/V2/TranslationConfig.php differ diff --git a/BigQueryMigration/src/V2/ErrorLocation.php b/BigQueryMigration/src/V2/ErrorLocation.php index edd526ceee0..259a9a2069d 100644 --- a/BigQueryMigration/src/V2/ErrorLocation.php +++ b/BigQueryMigration/src/V2/ErrorLocation.php @@ -16,15 +16,15 @@ class ErrorLocation extends \Google\Protobuf\Internal\Message { /** - * Optional. If applicable, denotes the line where the error occurred. A zero value - * means that there is no line information. + * Optional. If applicable, denotes the line where the error occurred. A zero + * value means that there is no line information. * * Generated from protobuf field int32 line = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private $line = 0; /** - * Optional. If applicable, denotes the column where the error occurred. A zero value - * means that there is no columns information. + * Optional. If applicable, denotes the column where the error occurred. A + * zero value means that there is no columns information. * * Generated from protobuf field int32 column = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -37,11 +37,11 @@ class ErrorLocation extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type int $line - * Optional. If applicable, denotes the line where the error occurred. A zero value - * means that there is no line information. + * Optional. If applicable, denotes the line where the error occurred. A zero + * value means that there is no line information. * @type int $column - * Optional. If applicable, denotes the column where the error occurred. A zero value - * means that there is no columns information. + * Optional. If applicable, denotes the column where the error occurred. A + * zero value means that there is no columns information. * } */ public function __construct($data = NULL) { @@ -50,8 +50,8 @@ public function __construct($data = NULL) { } /** - * Optional. If applicable, denotes the line where the error occurred. A zero value - * means that there is no line information. + * Optional. If applicable, denotes the line where the error occurred. A zero + * value means that there is no line information. * * Generated from protobuf field int32 line = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -62,8 +62,8 @@ public function getLine() } /** - * Optional. If applicable, denotes the line where the error occurred. A zero value - * means that there is no line information. + * Optional. If applicable, denotes the line where the error occurred. A zero + * value means that there is no line information. * * Generated from protobuf field int32 line = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var @@ -78,8 +78,8 @@ public function setLine($var) } /** - * Optional. If applicable, denotes the column where the error occurred. A zero value - * means that there is no columns information. + * Optional. If applicable, denotes the column where the error occurred. A + * zero value means that there is no columns information. * * Generated from protobuf field int32 column = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -90,8 +90,8 @@ public function getColumn() } /** - * Optional. If applicable, denotes the column where the error occurred. A zero value - * means that there is no columns information. + * Optional. If applicable, denotes the column where the error occurred. A + * zero value means that there is no columns information. * * Generated from protobuf field int32 column = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/BigQueryMigration/src/V2/Gapic/MigrationServiceGapicClient.php b/BigQueryMigration/src/V2/Gapic/MigrationServiceGapicClient.php index a9e64a1b988..b912e39cc61 100644 --- a/BigQueryMigration/src/V2/Gapic/MigrationServiceGapicClient.php +++ b/BigQueryMigration/src/V2/Gapic/MigrationServiceGapicClient.php @@ -593,9 +593,9 @@ public function getMigrationWorkflow($name, array $optionalArgs = []) * of values will be returned. Any page token used here must have * been generated by a previous call to the API. * @type string $filter - * Optional. The filter to apply. This can be used to get the subtasks of a specific - * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the - * task ID (not the name in the named map). + * Optional. The filter to apply. This can be used to get the subtasks of a + * specific tasks in a workflow, e.g. `migration_task = "ab012"` where + * `"ab012"` is the task ID (not the name in the named map). * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an * associative array of retry settings parameters. See the documentation on diff --git a/BigQueryMigration/src/V2/ListMigrationSubtasksRequest.php b/BigQueryMigration/src/V2/ListMigrationSubtasksRequest.php index 9d56a1f0c34..d05d2c9d816 100644 --- a/BigQueryMigration/src/V2/ListMigrationSubtasksRequest.php +++ b/BigQueryMigration/src/V2/ListMigrationSubtasksRequest.php @@ -29,15 +29,15 @@ class ListMigrationSubtasksRequest extends \Google\Protobuf\Internal\Message */ private $read_mask = null; /** - * Optional. The maximum number of migration tasks to return. The service may return - * fewer than this number. + * Optional. The maximum number of migration tasks to return. The service may + * return fewer than this number. * * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private $page_size = 0; /** - * Optional. A page token, received from previous `ListMigrationSubtasks` call. - * Provide this to retrieve the subsequent page. + * Optional. A page token, received from previous `ListMigrationSubtasks` + * call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to `ListMigrationSubtasks` * must match the call that provided the page token. * @@ -45,9 +45,9 @@ class ListMigrationSubtasksRequest extends \Google\Protobuf\Internal\Message */ private $page_token = ''; /** - * Optional. The filter to apply. This can be used to get the subtasks of a specific - * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the - * task ID (not the name in the named map). + * Optional. The filter to apply. This can be used to get the subtasks of a + * specific tasks in a workflow, e.g. `migration_task = "ab012"` where + * `"ab012"` is the task ID (not the name in the named map). * * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -65,17 +65,17 @@ class ListMigrationSubtasksRequest extends \Google\Protobuf\Internal\Message * @type \Google\Protobuf\FieldMask $read_mask * Optional. The list of fields to be retrieved. * @type int $page_size - * Optional. The maximum number of migration tasks to return. The service may return - * fewer than this number. + * Optional. The maximum number of migration tasks to return. The service may + * return fewer than this number. * @type string $page_token - * Optional. A page token, received from previous `ListMigrationSubtasks` call. - * Provide this to retrieve the subsequent page. + * Optional. A page token, received from previous `ListMigrationSubtasks` + * call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to `ListMigrationSubtasks` * must match the call that provided the page token. * @type string $filter - * Optional. The filter to apply. This can be used to get the subtasks of a specific - * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the - * task ID (not the name in the named map). + * Optional. The filter to apply. This can be used to get the subtasks of a + * specific tasks in a workflow, e.g. `migration_task = "ab012"` where + * `"ab012"` is the task ID (not the name in the named map). * } */ public function __construct($data = NULL) { @@ -148,8 +148,8 @@ public function setReadMask($var) } /** - * Optional. The maximum number of migration tasks to return. The service may return - * fewer than this number. + * Optional. The maximum number of migration tasks to return. The service may + * return fewer than this number. * * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -160,8 +160,8 @@ public function getPageSize() } /** - * Optional. The maximum number of migration tasks to return. The service may return - * fewer than this number. + * Optional. The maximum number of migration tasks to return. The service may + * return fewer than this number. * * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var @@ -176,8 +176,8 @@ public function setPageSize($var) } /** - * Optional. A page token, received from previous `ListMigrationSubtasks` call. - * Provide this to retrieve the subsequent page. + * Optional. A page token, received from previous `ListMigrationSubtasks` + * call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to `ListMigrationSubtasks` * must match the call that provided the page token. * @@ -190,8 +190,8 @@ public function getPageToken() } /** - * Optional. A page token, received from previous `ListMigrationSubtasks` call. - * Provide this to retrieve the subsequent page. + * Optional. A page token, received from previous `ListMigrationSubtasks` + * call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to `ListMigrationSubtasks` * must match the call that provided the page token. * @@ -208,9 +208,9 @@ public function setPageToken($var) } /** - * Optional. The filter to apply. This can be used to get the subtasks of a specific - * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the - * task ID (not the name in the named map). + * Optional. The filter to apply. This can be used to get the subtasks of a + * specific tasks in a workflow, e.g. `migration_task = "ab012"` where + * `"ab012"` is the task ID (not the name in the named map). * * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -221,9 +221,9 @@ public function getFilter() } /** - * Optional. The filter to apply. This can be used to get the subtasks of a specific - * tasks in a workflow, e.g. `migration_task = "ab012"` where `"ab012"` is the - * task ID (not the name in the named map). + * Optional. The filter to apply. This can be used to get the subtasks of a + * specific tasks in a workflow, e.g. `migration_task = "ab012"` where + * `"ab012"` is the task ID (not the name in the named map). * * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/BigQueryMigration/src/V2/MigrationSubtask/State.php b/BigQueryMigration/src/V2/MigrationSubtask/State.php index c4b17ea7f46..42b9912d301 100644 --- a/BigQueryMigration/src/V2/MigrationSubtask/State.php +++ b/BigQueryMigration/src/V2/MigrationSubtask/State.php @@ -50,6 +50,13 @@ class State * Generated from protobuf enum PAUSED = 5; */ const PAUSED = 5; + /** + * The subtask is pending a dependency. It will be scheduled once its + * dependencies are done. + * + * Generated from protobuf enum PENDING_DEPENDENCY = 6; + */ + const PENDING_DEPENDENCY = 6; private static $valueToName = [ self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', @@ -58,6 +65,7 @@ class State self::SUCCEEDED => 'SUCCEEDED', self::FAILED => 'FAILED', self::PAUSED => 'PAUSED', + self::PENDING_DEPENDENCY => 'PENDING_DEPENDENCY', ]; public static function name($value) diff --git a/BigQueryMigration/src/V2/MigrationTask.php b/BigQueryMigration/src/V2/MigrationTask.php index d34c8cc69f2..640914b80b7 100644 --- a/BigQueryMigration/src/V2/MigrationTask.php +++ b/BigQueryMigration/src/V2/MigrationTask.php @@ -29,7 +29,8 @@ class MigrationTask extends \Google\Protobuf\Internal\Message * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, - * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ. + * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, + * Translation_Postgresql2BQ. * * Generated from protobuf field string type = 2; */ @@ -78,7 +79,8 @@ class MigrationTask extends \Google\Protobuf\Internal\Message * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, - * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ. + * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, + * Translation_Postgresql2BQ. * @type int $state * Output only. The current state of the task. * @type \Google\Rpc\ErrorInfo $processing_error @@ -160,7 +162,8 @@ public function setId($var) * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, - * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ. + * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, + * Translation_Postgresql2BQ. * * Generated from protobuf field string type = 2; * @return string @@ -176,7 +179,8 @@ public function getType() * Translation_Oracle2BQ, Translation_HiveQL2BQ, Translation_SparkSQL2BQ, * Translation_Snowflake2BQ, Translation_Netezza2BQ, * Translation_AzureSynapse2BQ, Translation_Vertica2BQ, - * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ. + * Translation_SQLServer2BQ, Translation_Presto2BQ, Translation_MySQL2BQ, + * Translation_Postgresql2BQ. * * Generated from protobuf field string type = 2; * @param string $var diff --git a/BigQueryMigration/src/V2/ResourceErrorDetail.php b/BigQueryMigration/src/V2/ResourceErrorDetail.php index 05fe4ade958..5a05b107ff8 100644 --- a/BigQueryMigration/src/V2/ResourceErrorDetail.php +++ b/BigQueryMigration/src/V2/ResourceErrorDetail.php @@ -28,8 +28,8 @@ class ResourceErrorDetail extends \Google\Protobuf\Internal\Message */ private $error_details; /** - * Required. How many errors there are in total for the resource. Truncation can be - * indicated by having an `error_count` that is higher than the size of + * Required. How many errors there are in total for the resource. Truncation + * can be indicated by having an `error_count` that is higher than the size of * `error_details`. * * Generated from protobuf field int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -47,8 +47,8 @@ class ResourceErrorDetail extends \Google\Protobuf\Internal\Message * @type array<\Google\Cloud\BigQuery\Migration\V2\ErrorDetail>|\Google\Protobuf\Internal\RepeatedField $error_details * Required. The error details for the resource. * @type int $error_count - * Required. How many errors there are in total for the resource. Truncation can be - * indicated by having an `error_count` that is higher than the size of + * Required. How many errors there are in total for the resource. Truncation + * can be indicated by having an `error_count` that is higher than the size of * `error_details`. * } */ @@ -120,8 +120,8 @@ public function setErrorDetails($var) } /** - * Required. How many errors there are in total for the resource. Truncation can be - * indicated by having an `error_count` that is higher than the size of + * Required. How many errors there are in total for the resource. Truncation + * can be indicated by having an `error_count` that is higher than the size of * `error_details`. * * Generated from protobuf field int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -133,8 +133,8 @@ public function getErrorCount() } /** - * Required. How many errors there are in total for the resource. Truncation can be - * indicated by having an `error_count` that is higher than the size of + * Required. How many errors there are in total for the resource. Truncation + * can be indicated by having an `error_count` that is higher than the size of * `error_details`. * * Generated from protobuf field int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/BigQueryMigration/src/V2/TimeSeries.php b/BigQueryMigration/src/V2/TimeSeries.php index f035cf09649..a37ddfc1fee 100644 --- a/BigQueryMigration/src/V2/TimeSeries.php +++ b/BigQueryMigration/src/V2/TimeSeries.php @@ -39,8 +39,8 @@ class TimeSeries extends \Google\Protobuf\Internal\Message */ private $metric_kind = 0; /** - * Required. The data points of this time series. When listing time series, points are - * returned in reverse time order. + * Required. The data points of this time series. When listing time series, + * points are returned in reverse time order. * When creating a time series, this field must contain exactly one point and * the point's type must be the same as the value type of the associated * metric. If the associated metric's descriptor must be auto-created, then @@ -69,8 +69,8 @@ class TimeSeries extends \Google\Protobuf\Internal\Message * this field specifies the metric kind of the new descriptor and must be * either `GAUGE` (the default) or `CUMULATIVE`. * @type array<\Google\Cloud\BigQuery\Migration\V2\Point>|\Google\Protobuf\Internal\RepeatedField $points - * Required. The data points of this time series. When listing time series, points are - * returned in reverse time order. + * Required. The data points of this time series. When listing time series, + * points are returned in reverse time order. * When creating a time series, this field must contain exactly one point and * the point's type must be the same as the value type of the associated * metric. If the associated metric's descriptor must be auto-created, then @@ -172,8 +172,8 @@ public function setMetricKind($var) } /** - * Required. The data points of this time series. When listing time series, points are - * returned in reverse time order. + * Required. The data points of this time series. When listing time series, + * points are returned in reverse time order. * When creating a time series, this field must contain exactly one point and * the point's type must be the same as the value type of the associated * metric. If the associated metric's descriptor must be auto-created, then @@ -189,8 +189,8 @@ public function getPoints() } /** - * Required. The data points of this time series. When listing time series, points are - * returned in reverse time order. + * Required. The data points of this time series. When listing time series, + * points are returned in reverse time order. * When creating a time series, this field must contain exactly one point and * the point's type must be the same as the value type of the associated * metric. If the associated metric's descriptor must be auto-created, then diff --git a/BigQueryMigration/src/V2/TranslationConfigDetails.php b/BigQueryMigration/src/V2/TranslationConfigDetails.php index 0bfdb6bd835..0bb1a25bb82 100644 --- a/BigQueryMigration/src/V2/TranslationConfigDetails.php +++ b/BigQueryMigration/src/V2/TranslationConfigDetails.php @@ -34,6 +34,12 @@ class TranslationConfigDetails extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.bigquery.migration.v2.SourceEnv source_env = 6; */ private $source_env = null; + /** + * The indicator to show translation request initiator. + * + * Generated from protobuf field string request_source = 8; + */ + private $request_source = ''; protected $source_location; protected $target_location; protected $output_name_mapping; @@ -48,14 +54,16 @@ class TranslationConfigDetails extends \Google\Protobuf\Internal\Message * The Cloud Storage path for a directory of files to translate in a task. * @type string $gcs_target_path * The Cloud Storage path to write back the corresponding input files to. + * @type \Google\Cloud\BigQuery\Migration\V2\ObjectNameMappingList $name_mapping_list + * The mapping of objects to their desired output names in list form. * @type \Google\Cloud\BigQuery\Migration\V2\Dialect $source_dialect * The dialect of the input files. * @type \Google\Cloud\BigQuery\Migration\V2\Dialect $target_dialect * The target dialect for the engine to translate the input to. - * @type \Google\Cloud\BigQuery\Migration\V2\ObjectNameMappingList $name_mapping_list - * The mapping of objects to their desired output names in list form. * @type \Google\Cloud\BigQuery\Migration\V2\SourceEnv $source_env * The default source environment values for the translation. + * @type string $request_source + * The indicator to show translation request initiator. * } */ public function __construct($data = NULL) { @@ -125,6 +133,37 @@ public function setGcsTargetPath($var) return $this; } + /** + * The mapping of objects to their desired output names in list form. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; + * @return \Google\Cloud\BigQuery\Migration\V2\ObjectNameMappingList|null + */ + public function getNameMappingList() + { + return $this->readOneof(5); + } + + public function hasNameMappingList() + { + return $this->hasOneof(5); + } + + /** + * The mapping of objects to their desired output names in list form. + * + * Generated from protobuf field .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; + * @param \Google\Cloud\BigQuery\Migration\V2\ObjectNameMappingList $var + * @return $this + */ + public function setNameMappingList($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\ObjectNameMappingList::class); + $this->writeOneof(5, $var); + + return $this; + } + /** * The dialect of the input files. * @@ -197,37 +236,6 @@ public function setTargetDialect($var) return $this; } - /** - * The mapping of objects to their desired output names in list form. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; - * @return \Google\Cloud\BigQuery\Migration\V2\ObjectNameMappingList|null - */ - public function getNameMappingList() - { - return $this->readOneof(5); - } - - public function hasNameMappingList() - { - return $this->hasOneof(5); - } - - /** - * The mapping of objects to their desired output names in list form. - * - * Generated from protobuf field .google.cloud.bigquery.migration.v2.ObjectNameMappingList name_mapping_list = 5; - * @param \Google\Cloud\BigQuery\Migration\V2\ObjectNameMappingList $var - * @return $this - */ - public function setNameMappingList($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Migration\V2\ObjectNameMappingList::class); - $this->writeOneof(5, $var); - - return $this; - } - /** * The default source environment values for the translation. * @@ -264,6 +272,32 @@ public function setSourceEnv($var) return $this; } + /** + * The indicator to show translation request initiator. + * + * Generated from protobuf field string request_source = 8; + * @return string + */ + public function getRequestSource() + { + return $this->request_source; + } + + /** + * The indicator to show translation request initiator. + * + * Generated from protobuf field string request_source = 8; + * @param string $var + * @return $this + */ + public function setRequestSource($var) + { + GPBUtil::checkString($var, True); + $this->request_source = $var; + + return $this; + } + /** * @return string */