Skip to content

Commit 0bb44a5

Browse files
feat: [Build] Add field check_preceding_lifecycle_events_present to PublishBuildToolEventStreamRequest and PublishLifecycleEventRequest proto messages (#5220)
* feat: Add field `check_preceding_lifecycle_events_present` to PublishBuildToolEventStreamRequest and PublishLifecycleEventRequest proto messages PiperOrigin-RevId: 441557687 Source-Link: googleapis/googleapis@a877d3d Source-Link: googleapis/googleapis-gen@fbf3156 Copy-Tag: eyJwIjoiQnVpbGQvLk93bEJvdC55YW1sIiwiaCI6ImZiZjMxNTY3MjQ2ZmQxMzA3MmRjOTM3YWJjOWIzNWQyMzM4ZGYzNTYifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 3b9605f commit 0bb44a5

4 files changed

Lines changed: 111 additions & 0 deletions

File tree

100 Bytes
Binary file not shown.

Build/src/V1/Gapic/PublishBuildEventGapicClient.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,13 @@ public function publishBuildToolEventStream(array $optionalArgs = [])
328328
* them. They are used while notifying internal systems of new builds and
329329
* invocations if the OrderedBuildEvent.event type is
330330
* BuildEnqueued/InvocationAttemptStarted.
331+
* @type bool $checkPrecedingLifecycleEventsPresent
332+
* Whether to require a previously received matching parent lifecycle event
333+
* for the current request's event before continuing processing.
334+
* - InvocationAttemptStarted and BuildFinished events require a BuildEnqueued
335+
* parent event.
336+
* - InvocationAttemptFinished events require an InvocationAttemptStarted
337+
* parent event.
331338
* @type RetrySettings|array $retrySettings
332339
* Retry settings to use for this call. Can be a
333340
* {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
@@ -356,6 +363,10 @@ public function publishLifecycleEvent($buildEvent, $projectId, array $optionalAr
356363
$request->setNotificationKeywords($optionalArgs['notificationKeywords']);
357364
}
358365

366+
if (isset($optionalArgs['checkPrecedingLifecycleEventsPresent'])) {
367+
$request->setCheckPrecedingLifecycleEventsPresent($optionalArgs['checkPrecedingLifecycleEventsPresent']);
368+
}
369+
359370
$requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
360371
$optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
361372
return $this->startCall('PublishLifecycleEvent', GPBEmpty::class, $optionalArgs, $request)->wait();

Build/src/V1/PublishBuildToolEventStreamRequest.php

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Build/src/V1/PublishLifecycleEventRequest.php

Lines changed: 54 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)