Eventarc Publishing v1 API - Class PublisherClientImpl (2.0.0-beta07)

public sealed class PublisherClientImpl : PublisherClient

Reference documentation and code samples for the Eventarc Publishing v1 API class PublisherClientImpl.

Publisher client wrapper implementation, for convenient use.

Inheritance

object > PublisherClient > PublisherClientImpl

Namespace

Google.Cloud.Eventarc.Publishing.V1

Assembly

Google.Cloud.Eventarc.Publishing.V1.dll

Remarks

Eventarc processes events generated by an event provider and delivers them to a subscriber.

An event provider is a software-as-a-service (SaaS) system or product that can generate and deliver events through Eventarc.

A third-party event provider is an event provider from outside of Google.

A partner is a third-party event provider that is integrated with Eventarc.

A subscriber is a GCP customer interested in receiving events.

Channel is a first-class Eventarc resource that is created and managed by the subscriber in their GCP project. A Channel represents a subscriber's intent to receive events from an event provider. A Channel is associated with exactly one event provider.

ChannelConnection is a first-class Eventarc resource that is created and managed by the partner in their GCP project. A ChannelConnection represents a connection between a partner and a subscriber's Channel. A ChannelConnection has a one-to-one mapping with a Channel.

Publisher allows an event provider to publish events to Eventarc.

Constructors

PublisherClientImpl(PublisherClient, PublisherSettings, ILogger)

public PublisherClientImpl(Publisher.PublisherClient grpcClient, PublisherSettings settings, ILogger logger)

Constructs a client wrapper for the Publisher service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient PublisherPublisherClient

The underlying gRPC client.

settings PublisherSettings

The base PublisherSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override Publisher.PublisherClient GrpcClient { get; }

The underlying gRPC Publisher client

Property Value
Type Description
PublisherPublisherClient
Overrides

Methods

Publish(PublishRequest, CallSettings)

public override PublishResponse Publish(PublishRequest request, CallSettings callSettings = null)

Publish events to a message bus.

Parameters
Name Description
request PublishRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PublishResponse

The RPC response.

Overrides

PublishAsync(PublishRequest, CallSettings)

public override Task<PublishResponse> PublishAsync(PublishRequest request, CallSettings callSettings = null)

Publish events to a message bus.

Parameters
Name Description
request PublishRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPublishResponse

A Task containing the RPC response.

Overrides

PublishChannelConnectionEvents(PublishChannelConnectionEventsRequest, CallSettings)

public override PublishChannelConnectionEventsResponse PublishChannelConnectionEvents(PublishChannelConnectionEventsRequest request, CallSettings callSettings = null)

Publish events to a ChannelConnection in a partner's project.

Parameters
Name Description
request PublishChannelConnectionEventsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PublishChannelConnectionEventsResponse

The RPC response.

Overrides

PublishChannelConnectionEventsAsync(PublishChannelConnectionEventsRequest, CallSettings)

public override Task<PublishChannelConnectionEventsResponse> PublishChannelConnectionEventsAsync(PublishChannelConnectionEventsRequest request, CallSettings callSettings = null)

Publish events to a ChannelConnection in a partner's project.

Parameters
Name Description
request PublishChannelConnectionEventsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPublishChannelConnectionEventsResponse

A Task containing the RPC response.

Overrides

PublishEvents(PublishEventsRequest, CallSettings)

public override PublishEventsResponse PublishEvents(PublishEventsRequest request, CallSettings callSettings = null)

Publish events to a subscriber's channel.

Parameters
Name Description
request PublishEventsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PublishEventsResponse

The RPC response.

Overrides

PublishEventsAsync(PublishEventsRequest, CallSettings)

public override Task<PublishEventsResponse> PublishEventsAsync(PublishEventsRequest request, CallSettings callSettings = null)

Publish events to a subscriber's channel.

Parameters
Name Description
request PublishEventsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPublishEventsResponse

A Task containing the RPC response.

Overrides