Struct google_api_proto::google::devtools::build::v1::PublishLifecycleEventRequest
source · pub struct PublishLifecycleEventRequest {
pub service_level: i32,
pub build_event: Option<OrderedBuildEvent>,
pub stream_timeout: Option<Duration>,
pub notification_keywords: Vec<String>,
pub project_id: String,
pub check_preceding_lifecycle_events_present: bool,
}
Expand description
Publishes ‘lifecycle events’ that update the high-level state of a build:
- BuildEnqueued: When a build is scheduled.
- InvocationAttemptStarted: When work for a build starts; there can be multiple invocations for a build (e.g. retries).
- InvocationAttemptCompleted: When work for a build finishes.
- BuildFinished: When a build is finished.
Fields§
§service_level: i32
The interactivity of this build.
build_event: Option<OrderedBuildEvent>
Required. The lifecycle build event. If this is a build tool event, the RPC will fail with INVALID_REQUEST.
stream_timeout: Option<Duration>
If the next event for this build or invocation (depending on the event type) hasn’t been published after this duration from when {build_event} is written to BES, consider this stream expired. If this field is not set, BES backend will use its own default value.
notification_keywords: Vec<String>
Additional information about a build request. These are define by the event publishers, and the Build Event Service does not validate or interpret them. They are used while notifying internal systems of new builds and invocations if the OrderedBuildEvent.event type is BuildEnqueued/InvocationAttemptStarted.
project_id: String
Required. The project this build is associated with. This should match the project used for the initial call to PublishLifecycleEvent (containing a BuildEnqueued message).
check_preceding_lifecycle_events_present: bool
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.
Implementations§
source§impl PublishLifecycleEventRequest
impl PublishLifecycleEventRequest
sourcepub fn service_level(&self) -> ServiceLevel
pub fn service_level(&self) -> ServiceLevel
Returns the enum value of service_level
, or the default if the field is set to an invalid enum value.
sourcepub fn set_service_level(&mut self, value: ServiceLevel)
pub fn set_service_level(&mut self, value: ServiceLevel)
Sets service_level
to the provided enum value.
Trait Implementations§
source§impl Clone for PublishLifecycleEventRequest
impl Clone for PublishLifecycleEventRequest
source§fn clone(&self) -> PublishLifecycleEventRequest
fn clone(&self) -> PublishLifecycleEventRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PublishLifecycleEventRequest
impl Debug for PublishLifecycleEventRequest
source§impl Message for PublishLifecycleEventRequest
impl Message for PublishLifecycleEventRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for PublishLifecycleEventRequest
impl PartialEq for PublishLifecycleEventRequest
source§fn eq(&self, other: &PublishLifecycleEventRequest) -> bool
fn eq(&self, other: &PublishLifecycleEventRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PublishLifecycleEventRequest
Auto Trait Implementations§
impl !Freeze for PublishLifecycleEventRequest
impl RefUnwindSafe for PublishLifecycleEventRequest
impl Send for PublishLifecycleEventRequest
impl Sync for PublishLifecycleEventRequest
impl Unpin for PublishLifecycleEventRequest
impl UnwindSafe for PublishLifecycleEventRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request