Class PublisherConnection (2.29.0-rc)

This interface defines virtual methods for each of the user-facing overload sets in PublisherClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type PublisherClient.

To create a concrete instance, see MakePublisherConnection().

For mocking, see eventarc_publishing_v1_mocks::MockPublisherConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual PublishChannelConnectionEvents(google::cloud::eventarc::publishing::v1::PublishChannelConnectionEventsRequest const &)

Parameter
Name Description
request google::cloud::eventarc::publishing::v1::PublishChannelConnectionEventsRequest const &
Returns
Type Description
StatusOr< google::cloud::eventarc::publishing::v1::PublishChannelConnectionEventsResponse >

virtual PublishEvents(google::cloud::eventarc::publishing::v1::PublishEventsRequest const &)

Parameter
Name Description
request google::cloud::eventarc::publishing::v1::PublishEventsRequest const &
Returns
Type Description
StatusOr< google::cloud::eventarc::publishing::v1::PublishEventsResponse >