Service Client: Google::Cloud::Eventarc::Publishing::V1::Publisher::PublisherClient

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

target

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

credentials

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

NAME

Google::Cloud::Eventarc::Publishing::V1::Publisher - Compiled Protocol Buffers messages for google/cloud/eventarc/publishing/v1/publisher.proto

SYNOPSIS

use Google::Cloud::Eventarc::Publishing::V1::Publisher;

my $msg = Google::Cloud::Eventarc::Publishing::V1::Publisher::PublishChannelConnectionEventsRequest->new({
    channel_connection => $channel_connection,
    events => $events,
    text_events => $text_events,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Eventarc::Publishing::V1::Publisher::PublishChannelConnectionEventsRequest->parse($bytes);

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

DESCRIPTION

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

MESSAGES

Google::Cloud::Eventarc::Publishing::V1::Publisher::PublishChannelConnectionEventsRequest

The request message for the PublishChannelConnectionEvents method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The channel_connection that the events are published from. For example: `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.

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

    Type: Message (Google::Protobuf::Any::Any)

    The CloudEvents v1.0 events to publish. No other types are allowed. If this field is set, then the `text_events` fields must not be set.

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

    Type: String

    The text representation of events to publish. CloudEvent v1.0 in JSON format is the only allowed type. Refer to https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md for specification. If this field is set, then the `events` fields must not be set.

Google::Cloud::Eventarc::Publishing::V1::Publisher::PublishChannelConnectionEventsResponse

The response message for the PublishChannelConnectionEvents method.

Inherits from Protobuf::Message.

Google::Cloud::Eventarc::Publishing::V1::Publisher::PublishEventsRequest

The request message for the PublishEvents method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The full name of the channel to publish to. For example: `projects/{project}/locations/{location}/channels/{channel-id}`.

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

    Type: Message (Google::Protobuf::Any::Any)

    The CloudEvents v1.0 events to publish. No other types are allowed. If this field is set, then the `text_events` fields must not be set.

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

    Type: String

    The text representation of events to publish. CloudEvent v1.0 in JSON format is the only allowed type. Refer to https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md for specification. If this field is set, then the `events` fields must not be set.

Google::Cloud::Eventarc::Publishing::V1::Publisher::PublishEventsResponse

The response message for the PublishEvents method.

Inherits from Protobuf::Message.

Google::Cloud::Eventarc::Publishing::V1::Publisher::PublishRequest

The request message for the Publish method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The full name of the message bus to publish events to. Format: `projects/{project}/locations/{location}/messageBuses/{messageBus}`.

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

    Type: Message (Google::Cloud::Eventarc::Publishing::V1::CloudEvent::CloudEvent)

    The Protobuf format of the CloudEvent being published. Specification can be found here: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/protobuf-format.md

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

    Type: String

    The JSON format of the CloudEvent being published. Specification can be found here: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md

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

    Type: Bytes

    The Avro format of the CloudEvent being published. Specification can be found here: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/avro-format.md

Google::Cloud::Eventarc::Publishing::V1::Publisher::PublishResponse

The response message for the Publish method.

Inherits from Protobuf::Message.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Eventarc::Publishing::V1::Publisher::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.