Skip to content

Commit

Permalink
fix: use correct child_type annotation (#6578)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 558967926
Source-Link: googleapis/googleapis@1c4f24e
Source-Link: googleapis/googleapis-gen@a25a444
Copy-Tag: eyJwIjoiVmlkZW9TdGl0Y2hlci8uT3dsQm90LnlhbWwiLCJoIjoiYTI1YTQ0NDZiNWQ3YWYyMDQ1NzQzMmMzODU2YmMyNTlkNDU4NWRmOSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Aug 22, 2023
1 parent 7b93667 commit a6a62dd
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 41 deletions.
3 changes: 1 addition & 2 deletions VideoStitcher/metadata/V1/VideoStitcherService.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*
* @param string $formattedParent The project and location in which the live session should be
* created, in the form of `projects/{project_number}/locations/{location}`. Please see
* {@see VideoStitcherServiceClient::liveSessionName()} for help formatting this field.
* {@see VideoStitcherServiceClient::locationName()} for help formatting this field.
* @param string $formattedLiveSessionLiveConfig The resource name of the live config for this session, in the
* form of `projects/{project}/locations/{location}/liveConfigs/{id}`. Please see
* {@see VideoStitcherServiceClient::liveConfigName()} for help formatting this field.
Expand Down Expand Up @@ -73,11 +73,7 @@ function create_live_session_sample(
*/
function callSample(): void
{
$formattedParent = VideoStitcherServiceClient::liveSessionName(
'[PROJECT]',
'[LOCATION]',
'[LIVE_SESSION]'
);
$formattedParent = VideoStitcherServiceClient::locationName('[PROJECT]', '[LOCATION]');
$formattedLiveSessionLiveConfig = VideoStitcherServiceClient::liveConfigName(
'[PROJECT]',
'[LOCATION]',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@
* {@see VideoStitcherServiceClient::locationName()} for help formatting this field.
* @param string $vodSessionSourceUri URI of the media to stitch.
* @param string $vodSessionAdTagUri Ad tag URI.
* @param int $vodSessionAdTracking Determines how the ad should be tracked. If
* [gam_vod_config][google.cloud.video.stitcher.v1.VodSession.gam_vod_config]
* is set, the value must be `CLIENT` because the IMA SDK handles ad tracking.
* @param int $vodSessionAdTracking Determines how the ad should be tracked.
*/
function create_vod_session_sample(
string $formattedParent,
Expand Down
2 changes: 1 addition & 1 deletion VideoStitcher/src/V1/CreateLiveSessionRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ public function createLiveConfig(
* ```
* $videoStitcherServiceClient = new VideoStitcherServiceClient();
* try {
* $formattedParent = $videoStitcherServiceClient->liveSessionName('[PROJECT]', '[LOCATION]', '[LIVE_SESSION]');
* $formattedParent = $videoStitcherServiceClient->locationName('[PROJECT]', '[LOCATION]');
* $liveSession = new LiveSession();
* $response = $videoStitcherServiceClient->createLiveSession($formattedParent, $liveSession);
* } finally {
Expand Down
3 changes: 1 addition & 2 deletions VideoStitcher/src/V1/LiveSession/GamSettings.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion VideoStitcher/src/V1/VodAdTagDetail.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 4 additions & 12 deletions VideoStitcher/src/V1/VodSession.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion VideoStitcher/src/V1/VodStitchDetail.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
},
"CreateLiveConfig": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
"CreateLiveSession": {
"timeout_millis": 60000,
Expand All @@ -70,8 +70,8 @@
},
"DeleteLiveConfig": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
"DeleteSlate": {
"timeout_millis": 60000,
Expand All @@ -90,8 +90,8 @@
},
"GetLiveConfig": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
"GetLiveSession": {
"timeout_millis": 60000,
Expand Down Expand Up @@ -130,8 +130,8 @@
},
"ListLiveConfigs": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
"ListSlates": {
"timeout_millis": 60000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ public function createLiveSessionTest()
$expectedResponse->setLiveConfig($liveConfig);
$transport->addResponse($expectedResponse);
// Mock request
$formattedParent = $gapicClient->liveSessionName('[PROJECT]', '[LOCATION]', '[LIVE_SESSION]');
$formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
$liveSession = new LiveSession();
$liveSessionLiveConfig = $gapicClient->liveConfigName('[PROJECT]', '[LOCATION]', '[LIVE_CONFIG]');
$liveSession->setLiveConfig($liveSessionLiveConfig);
Expand Down Expand Up @@ -447,7 +447,7 @@ public function createLiveSessionExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
$formattedParent = $gapicClient->liveSessionName('[PROJECT]', '[LOCATION]', '[LIVE_SESSION]');
$formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
$liveSession = new LiveSession();
$liveSessionLiveConfig = $gapicClient->liveConfigName('[PROJECT]', '[LOCATION]', '[LIVE_CONFIG]');
$liveSession->setLiveConfig($liveSessionLiveConfig);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ public function createLiveSessionTest()
$expectedResponse->setLiveConfig($liveConfig);
$transport->addResponse($expectedResponse);
// Mock request
$formattedParent = $gapicClient->liveSessionName('[PROJECT]', '[LOCATION]', '[LIVE_SESSION]');
$formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
$liveSession = new LiveSession();
$liveSessionLiveConfig = $gapicClient->liveConfigName('[PROJECT]', '[LOCATION]', '[LIVE_CONFIG]');
$liveSession->setLiveConfig($liveSessionLiveConfig);
Expand Down Expand Up @@ -404,7 +404,7 @@ public function createLiveSessionExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
$formattedParent = $gapicClient->liveSessionName('[PROJECT]', '[LOCATION]', '[LIVE_SESSION]');
$formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
$liveSession = new LiveSession();
$liveSessionLiveConfig = $gapicClient->liveConfigName('[PROJECT]', '[LOCATION]', '[LIVE_CONFIG]');
$liveSession->setLiveConfig($liveSessionLiveConfig);
Expand Down

0 comments on commit a6a62dd

Please sign in to comment.