Service Client: Google::Devtools::Build::V1::PublishBuildEvent::PublishBuildEventClient

Client stub representing the remote PublishBuildEvent gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to devtools.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Devtools::Build::V1::PublishBuildEvent - Compiled Protocol Buffers messages for google/devtools/build/v1/publish_build_event.proto

SYNOPSIS

use Google::Devtools::Build::V1::PublishBuildEvent;

my $msg = Google::Devtools::Build::V1::PublishBuildEvent::PublishLifecycleEventRequest->new({
    service_level => $service_level,
    build_event => $build_event,
    stream_timeout => $stream_timeout,
    notification_keywords => $notification_keywords,
});

# Read or update a field
my $val = $msg->service_level();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Devtools::Build::V1::PublishBuildEvent::PublishLifecycleEventRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/devtools/build/v1/publish_build_event.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Devtools::Build::V1::PublishBuildEvent::PublishLifecycleEventRequest

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.

Inherits from Protobuf::Message.

Accessors

  • $msg->service_level() / $msg->service_level($value)

    Type: Enum (Google::Devtools::Build::V1::PublishLifecycleEventRequest::ServiceLevel)

    The interactivity of this build.

  • $msg->build_event() / $msg->build_event($value)

    Type: Message (Google::Devtools::Build::V1::PublishBuildEvent::OrderedBuildEvent)

    Required. The lifecycle build event. If this is a build tool event, the RPC will fail with INVALID_REQUEST.

  • $msg->stream_timeout() / $msg->stream_timeout($value)

    Type: Message (Google::Protobuf::Duration::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.

  • $msg->notification_keywords() / $msg->notification_keywords($value)

    Type: 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.

  • $msg->project_id() / $msg->project_id($value)

    Type: 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).

  • $msg->check_preceding_lifecycle_events_present() / $msg->check_preceding_lifecycle_events_present($value)

    Type: 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.

Enum: PublishLifecycleEventRequest::ServiceLevel

  • NONINTERACTIVE => 0

  • INTERACTIVE => 1

Google::Devtools::Build::V1::PublishBuildEvent::PublishBuildToolEventStreamResponse

States which event has been committed. Any failure to commit will cause RPC errors, hence not recorded by this proto.

Inherits from Protobuf::Message.

Accessors

  • $msg->stream_id() / $msg->stream_id($value)

    Type: Message (Google::Devtools::Build::V1::BuildEvents::StreamId)

    The stream that contains this event.

  • $msg->sequence_number() / $msg->sequence_number($value)

    Type: Int64

    The sequence number of this event that has been committed.

Google::Devtools::Build::V1::PublishBuildEvent::OrderedBuildEvent

Build event with contextual information about the stream it belongs to and its position in that stream.

Inherits from Protobuf::Message.

Accessors

  • $msg->stream_id() / $msg->stream_id($value)

    Type: Message (Google::Devtools::Build::V1::BuildEvents::StreamId)

    Which build event stream this event belongs to.

  • $msg->sequence_number() / $msg->sequence_number($value)

    Type: Int64

    The position of this event in the stream. The sequence numbers for a build event stream should be a sequence of consecutive natural numbers starting from one. (1, 2, 3, ...)

  • $msg->event() / $msg->event($value)

    Type: Message (Google::Devtools::Build::V1::BuildEvents::BuildEvent)

    The actual event.

Google::Devtools::Build::V1::PublishBuildEvent::PublishBuildToolEventStreamRequest

Streaming request message for PublishBuildToolEventStream.

Inherits from Protobuf::Message.

Accessors

  • $msg->ordered_build_event() / $msg->ordered_build_event($value)

    Type: Message (Google::Devtools::Build::V1::PublishBuildEvent::OrderedBuildEvent)

    Required. The build event with position info. New publishing clients should use this field rather than the 3 above.

  • $msg->notification_keywords() / $msg->notification_keywords($value)

    Type: String

    The keywords to be attached to the notification which notifies the start of a new build event stream. BES only reads this field when sequence_number or ordered_build_event.sequence_number is 1 in this message. If this field is empty, BES will not publish notification messages for this stream.

  • $msg->project_id() / $msg->project_id($value)

    Type: 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).

  • $msg->check_preceding_lifecycle_events_present() / $msg->check_preceding_lifecycle_events_present($value)

    Type: Bool

    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.

SEE ALSO

Protobuf, Protobuf::Message, Google::Devtools::Build::V1::PublishBuildEvent::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.