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.
Namespace
Google.Cloud.Eventarc.Publishing.V1Assembly
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(Publisher.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 | Publisher.PublisherClient 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 |
Publisher.PublisherClient |
Methods
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. |
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 |
Task<PublishChannelConnectionEventsResponse> | A Task containing the RPC response. |
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. |
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 |
Task<PublishEventsResponse> | A Task containing the RPC response. |