From 1c5846d9ae3ded5ca6fab3e637daba8a1254a72d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 15:18:39 -0700 Subject: [PATCH] fix: mark parent/name fields with the REQUIRED field_behavior annotation (#7236) PiperOrigin-RevId: 625048783 Source-Link: https://github.com/googleapis/googleapis/commit/d0205ed355e5f14eb181d6742e754a870885ea29 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d68874be31ac91810d1bc25f13a954ac28e9c9ef Copy-Tag: eyJwIjoiQmlnUXVlcnlEYXRhVHJhbnNmZXIvLk93bEJvdC55YW1sIiwiaCI6ImQ2ODg3NGJlMzFhYzkxODEwZDFiYzI1ZjEzYTk1NGFjMjhlOWM5ZWYifQ== --- .../metadata/V1/Datatransfer.php | Bin 11698 -> 11711 bytes BigQueryDataTransfer/metadata/V1/Transfer.php | Bin 4165 -> 4175 bytes .../src/V1/EnrollDataSourcesRequest.php | 18 ++++++++++------ .../Gapic/DataTransferServiceGapicClient.php | 8 ++++--- .../src/V1/StartManualTransferRunsRequest.php | 14 ++++++------ .../src/V1/TransferConfig.php | 14 ++++++------ BigQueryDataTransfer/src/V1/TransferRun.php | 14 ++++++------ .../src/V1/UnenrollDataSourcesRequest.php | 18 ++++++++++------ ...ata_transfer_service_descriptor_config.php | 20 ++++++++++++++++++ ...ta_transfer_service_rest_client_config.php | 20 ++++++++++++++++++ 10 files changed, 88 insertions(+), 38 deletions(-) diff --git a/BigQueryDataTransfer/metadata/V1/Datatransfer.php b/BigQueryDataTransfer/metadata/V1/Datatransfer.php index d8ce107f2cf909fe1aab4702bd12798d94f4da79..7c3b4d398e0e37883800db349bb6cd247a5c1e07 100644 GIT binary patch delta 120 zcmdlKy+3+GC=1KvATEo^{H$u5>sc5@7`rAnN+?av68G8sMxvRK(QR^pl(di_7fW7Z zZmI;M0;2|}6Y~Q{rpdKJl7>niTvDNVsd+{DIXNzgC5gfLrA5i9#X+fsrK!awSafZ^ ID|J-}0CWK((f|Me delta 110 zcmdlVy(xM_C<{wl5SPVdepa>3^(>4cjO~*fC6ol+x!4L4i&FDSBp4MKH8`EjC)bHv wY<@4%%*f)%CE+^xfRqF;4;M>bVs0u##pDH2QjE@%cT34)h)Zr}mfj--0EwF%eEstring name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $name = ''; /** @@ -37,7 +38,8 @@ class EnrollDataSourcesRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * The name of the project resource in the form: `projects/{project_id}` + * Required. The name of the project resource in the form: + * `projects/{project_id}` * @type array|\Google\Protobuf\Internal\RepeatedField $data_source_ids * Data sources that are enrolled. It is required to provide at least one * data source id. @@ -49,9 +51,10 @@ public function __construct($data = NULL) { } /** - * The name of the project resource in the form: `projects/{project_id}` + * Required. The name of the project resource in the form: + * `projects/{project_id}` * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getName() @@ -60,9 +63,10 @@ public function getName() } /** - * The name of the project resource in the form: `projects/{project_id}` + * Required. The name of the project resource in the form: + * `projects/{project_id}` * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ diff --git a/BigQueryDataTransfer/src/V1/Gapic/DataTransferServiceGapicClient.php b/BigQueryDataTransfer/src/V1/Gapic/DataTransferServiceGapicClient.php index 270627e54d79..15469ac5d2db 100644 --- a/BigQueryDataTransfer/src/V1/Gapic/DataTransferServiceGapicClient.php +++ b/BigQueryDataTransfer/src/V1/Gapic/DataTransferServiceGapicClient.php @@ -835,7 +835,8 @@ public function deleteTransferRun($name, array $optionalArgs = []) * Optional. * * @type string $name - * The name of the project resource in the form: `projects/{project_id}` + * Required. The name of the project resource in the form: + * `projects/{project_id}` * @type string[] $dataSourceIds * Data sources that are enrolled. It is required to provide at least one * data source id. @@ -1374,7 +1375,7 @@ public function scheduleTransferRuns($parent, $startTime, $endTime, array $optio * Optional. * * @type string $parent - * Transfer configuration name in the form: + * Required. Transfer configuration name in the form: * `projects/{project_id}/transferConfigs/{config_id}` or * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`. * @type TimeRange $requestedTimeRange @@ -1440,7 +1441,8 @@ public function startManualTransferRuns(array $optionalArgs = []) * Optional. * * @type string $name - * The name of the project resource in the form: `projects/{project_id}` + * Required. The name of the project resource in the form: + * `projects/{project_id}` * @type string[] $dataSourceIds * Data sources that are unenrolled. It is required to provide at least one * data source id. diff --git a/BigQueryDataTransfer/src/V1/StartManualTransferRunsRequest.php b/BigQueryDataTransfer/src/V1/StartManualTransferRunsRequest.php index 3d8150fad26f..e2402e244c0c 100644 --- a/BigQueryDataTransfer/src/V1/StartManualTransferRunsRequest.php +++ b/BigQueryDataTransfer/src/V1/StartManualTransferRunsRequest.php @@ -16,11 +16,11 @@ class StartManualTransferRunsRequest extends \Google\Protobuf\Internal\Message { /** - * Transfer configuration name in the form: + * Required. Transfer configuration name in the form: * `projects/{project_id}/transferConfigs/{config_id}` or * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`. * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $parent = ''; protected $time; @@ -32,7 +32,7 @@ class StartManualTransferRunsRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $parent - * Transfer configuration name in the form: + * Required. Transfer configuration name in the form: * `projects/{project_id}/transferConfigs/{config_id}` or * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`. * @type \Google\Cloud\BigQuery\DataTransfer\V1\StartManualTransferRunsRequest\TimeRange $requested_time_range @@ -53,11 +53,11 @@ public function __construct($data = NULL) { } /** - * Transfer configuration name in the form: + * Required. Transfer configuration name in the form: * `projects/{project_id}/transferConfigs/{config_id}` or * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`. * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getParent() @@ -66,11 +66,11 @@ public function getParent() } /** - * Transfer configuration name in the form: + * Required. Transfer configuration name in the form: * `projects/{project_id}/transferConfigs/{config_id}` or * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}`. * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ diff --git a/BigQueryDataTransfer/src/V1/TransferConfig.php b/BigQueryDataTransfer/src/V1/TransferConfig.php index 4cbc6e88545f..c3a7c65269c7 100644 --- a/BigQueryDataTransfer/src/V1/TransferConfig.php +++ b/BigQueryDataTransfer/src/V1/TransferConfig.php @@ -21,7 +21,7 @@ class TransferConfig extends \Google\Protobuf\Internal\Message { /** - * The resource name of the transfer config. + * Identifier. The resource name of the transfer config. * Transfer config names have the form either * `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` or * `projects/{project_id}/transferConfigs/{config_id}`, @@ -29,7 +29,7 @@ class TransferConfig extends \Google\Protobuf\Internal\Message * guaranteed or required. The name is ignored when creating a transfer * config. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; */ private $name = ''; /** @@ -169,7 +169,7 @@ class TransferConfig extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * The resource name of the transfer config. + * Identifier. The resource name of the transfer config. * Transfer config names have the form either * `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` or * `projects/{project_id}/transferConfigs/{config_id}`, @@ -250,7 +250,7 @@ public function __construct($data = NULL) { } /** - * The resource name of the transfer config. + * Identifier. The resource name of the transfer config. * Transfer config names have the form either * `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` or * `projects/{project_id}/transferConfigs/{config_id}`, @@ -258,7 +258,7 @@ public function __construct($data = NULL) { * guaranteed or required. The name is ignored when creating a transfer * config. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * @return string */ public function getName() @@ -267,7 +267,7 @@ public function getName() } /** - * The resource name of the transfer config. + * Identifier. The resource name of the transfer config. * Transfer config names have the form either * `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` or * `projects/{project_id}/transferConfigs/{config_id}`, @@ -275,7 +275,7 @@ public function getName() * guaranteed or required. The name is ignored when creating a transfer * config. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * @param string $var * @return $this */ diff --git a/BigQueryDataTransfer/src/V1/TransferRun.php b/BigQueryDataTransfer/src/V1/TransferRun.php index 651506086b71..e5bfac0ddba7 100644 --- a/BigQueryDataTransfer/src/V1/TransferRun.php +++ b/BigQueryDataTransfer/src/V1/TransferRun.php @@ -16,12 +16,12 @@ class TransferRun extends \Google\Protobuf\Internal\Message { /** - * The resource name of the transfer run. + * Identifier. The resource name of the transfer run. * Transfer run names have the form * `projects/{project_id}/locations/{location}/transferConfigs/{config_id}/runs/{run_id}`. * The name is ignored when creating a transfer run. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; */ private $name = ''; /** @@ -127,7 +127,7 @@ class TransferRun extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * The resource name of the transfer run. + * Identifier. The resource name of the transfer run. * Transfer run names have the form * `projects/{project_id}/locations/{location}/transferConfigs/{config_id}/runs/{run_id}`. * The name is ignored when creating a transfer run. @@ -183,12 +183,12 @@ public function __construct($data = NULL) { } /** - * The resource name of the transfer run. + * Identifier. The resource name of the transfer run. * Transfer run names have the form * `projects/{project_id}/locations/{location}/transferConfigs/{config_id}/runs/{run_id}`. * The name is ignored when creating a transfer run. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * @return string */ public function getName() @@ -197,12 +197,12 @@ public function getName() } /** - * The resource name of the transfer run. + * Identifier. The resource name of the transfer run. * Transfer run names have the form * `projects/{project_id}/locations/{location}/transferConfigs/{config_id}/runs/{run_id}`. * The name is ignored when creating a transfer run. * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * @param string $var * @return $this */ diff --git a/BigQueryDataTransfer/src/V1/UnenrollDataSourcesRequest.php b/BigQueryDataTransfer/src/V1/UnenrollDataSourcesRequest.php index 54dfb0777fb4..9801f5ba50db 100644 --- a/BigQueryDataTransfer/src/V1/UnenrollDataSourcesRequest.php +++ b/BigQueryDataTransfer/src/V1/UnenrollDataSourcesRequest.php @@ -17,9 +17,10 @@ class UnenrollDataSourcesRequest extends \Google\Protobuf\Internal\Message { /** - * The name of the project resource in the form: `projects/{project_id}` + * Required. The name of the project resource in the form: + * `projects/{project_id}` * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $name = ''; /** @@ -37,7 +38,8 @@ class UnenrollDataSourcesRequest extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $name - * The name of the project resource in the form: `projects/{project_id}` + * Required. The name of the project resource in the form: + * `projects/{project_id}` * @type array|\Google\Protobuf\Internal\RepeatedField $data_source_ids * Data sources that are unenrolled. It is required to provide at least one * data source id. @@ -49,9 +51,10 @@ public function __construct($data = NULL) { } /** - * The name of the project resource in the form: `projects/{project_id}` + * Required. The name of the project resource in the form: + * `projects/{project_id}` * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getName() @@ -60,9 +63,10 @@ public function getName() } /** - * The name of the project resource in the form: `projects/{project_id}` + * Required. The name of the project resource in the form: + * `projects/{project_id}` * - * Generated from protobuf field string name = 1; + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ diff --git a/BigQueryDataTransfer/src/V1/resources/data_transfer_service_descriptor_config.php b/BigQueryDataTransfer/src/V1/resources/data_transfer_service_descriptor_config.php index 0ba525ab51ce..fa7c2336fc25 100644 --- a/BigQueryDataTransfer/src/V1/resources/data_transfer_service_descriptor_config.php +++ b/BigQueryDataTransfer/src/V1/resources/data_transfer_service_descriptor_config.php @@ -1,4 +1,24 @@ [ diff --git a/BigQueryDataTransfer/src/V1/resources/data_transfer_service_rest_client_config.php b/BigQueryDataTransfer/src/V1/resources/data_transfer_service_rest_client_config.php index a4c615bef14a..ba2556ef3d8d 100644 --- a/BigQueryDataTransfer/src/V1/resources/data_transfer_service_rest_client_config.php +++ b/BigQueryDataTransfer/src/V1/resources/data_transfer_service_rest_client_config.php @@ -1,4 +1,24 @@ [