Google Cloud Eventarc Publishing V1 Client - Class PublishChannelConnectionEventsRequest (1.1.1)

Reference documentation and code samples for the Google Cloud Eventarc Publishing V1 Client class PublishChannelConnectionEventsRequest.

The request message for the PublishChannelConnectionEvents method.

Generated from protobuf message google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest

Namespace

Google \ Cloud \ Eventarc \ Publishing \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ channel_connection string

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

↳ events array<Google\Protobuf\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.

↳ text_events array

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.

getChannelConnection

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

Returns
Type Description
string

setChannelConnection

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

Parameter
Name Description
var string
Returns
Type Description
$this

getEvents

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.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setEvents

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.

Parameter
Name Description
var array<Google\Protobuf\Any>
Returns
Type Description
$this

getTextEvents

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.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setTextEvents

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.

Parameter
Name Description
var string[]
Returns
Type Description
$this