feat: Add field `check_preceding_lifecycle_events_present` to PublishBuildToolEventStreamRequest and PublishLifecycleEventRequest proto messages

PiperOrigin-RevId: 441557687
pull/713/head
Google APIs 3 years ago committed by Copybara-Service
parent 2a273915b3
commit a877d3d3a0
  1. 14
      google/devtools/build/v1/publish_build_event.proto

@ -126,6 +126,14 @@ message PublishLifecycleEventRequest {
// This should match the project used for the initial call to
// PublishLifecycleEvent (containing a BuildEnqueued message).
string project_id = 6 [(google.api.field_behavior) = REQUIRED];
// Whether to require a previously received matching parent lifecycle event
// for the current request's event before continuing processing.
// - InvocationAttemptStarted and BuildFinished events require a BuildEnqueued
// parent event.
// - InvocationAttemptFinished events require an InvocationAttemptStarted
// parent event.
bool check_preceding_lifecycle_events_present = 7;
}
// States which event has been committed. Any failure to commit will cause
@ -170,4 +178,10 @@ message PublishBuildToolEventStreamRequest {
// This should match the project used for the initial call to
// PublishLifecycleEvent (containing a BuildEnqueued message).
string project_id = 6 [(google.api.field_behavior) = REQUIRED];
// Whether to require a previously received matching InvocationAttemptStarted
// event before continuing event processing for the event in the current
// request. BES only performs this check for events with sequence_number 1
// i.e. the first event in the stream.
bool check_preceding_lifecycle_events_present = 7;
}

Loading…
Cancel
Save