Eventarc Publishing v1 API - Class Publisher.PublisherClient (2.0.0-beta03)

public class PublisherClient : ClientBase<Publisher.PublisherClient>

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

Client for Publisher

Inheritance

Object > ClientBase > ClientBase<Publisher.PublisherClient> > Publisher.PublisherClient

Namespace

Google.Cloud.Eventarc.Publishing.V1

Assembly

Google.Cloud.Eventarc.Publishing.V1.dll

Constructors

PublisherClient()

protected PublisherClient()

Protected parameterless constructor to allow creation of test doubles.

PublisherClient(CallInvoker)

public PublisherClient(CallInvoker callInvoker)

Creates a new client for Publisher that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

PublisherClient(ChannelBase)

public PublisherClient(ChannelBase channel)

Creates a new client for Publisher

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

PublisherClient(ClientBase.ClientBaseConfiguration)

protected PublisherClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

NewInstance(ClientBase.ClientBaseConfiguration)

protected override Publisher.PublisherClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
Publisher.PublisherClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Eventarc.Publishing.V1.Publisher.PublisherClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

PublishChannelConnectionEvents(PublishChannelConnectionEventsRequest, CallOptions)

public virtual PublishChannelConnectionEventsResponse PublishChannelConnectionEvents(PublishChannelConnectionEventsRequest request, CallOptions options)

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

Parameters
NameDescription
requestPublishChannelConnectionEventsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
PublishChannelConnectionEventsResponse

The response received from the server.

PublishChannelConnectionEvents(PublishChannelConnectionEventsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual PublishChannelConnectionEventsResponse PublishChannelConnectionEvents(PublishChannelConnectionEventsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

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

Parameters
NameDescription
requestPublishChannelConnectionEventsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
PublishChannelConnectionEventsResponse

The response received from the server.

PublishChannelConnectionEventsAsync(PublishChannelConnectionEventsRequest, CallOptions)

public virtual AsyncUnaryCall<PublishChannelConnectionEventsResponse> PublishChannelConnectionEventsAsync(PublishChannelConnectionEventsRequest request, CallOptions options)

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

Parameters
NameDescription
requestPublishChannelConnectionEventsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<PublishChannelConnectionEventsResponse>

The call object.

PublishChannelConnectionEventsAsync(PublishChannelConnectionEventsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<PublishChannelConnectionEventsResponse> PublishChannelConnectionEventsAsync(PublishChannelConnectionEventsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

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

Parameters
NameDescription
requestPublishChannelConnectionEventsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<PublishChannelConnectionEventsResponse>

The call object.

PublishEvents(PublishEventsRequest, CallOptions)

public virtual PublishEventsResponse PublishEvents(PublishEventsRequest request, CallOptions options)

Publish events to a subscriber's channel.

Parameters
NameDescription
requestPublishEventsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
PublishEventsResponse

The response received from the server.

PublishEvents(PublishEventsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual PublishEventsResponse PublishEvents(PublishEventsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Publish events to a subscriber's channel.

Parameters
NameDescription
requestPublishEventsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
PublishEventsResponse

The response received from the server.

PublishEventsAsync(PublishEventsRequest, CallOptions)

public virtual AsyncUnaryCall<PublishEventsResponse> PublishEventsAsync(PublishEventsRequest request, CallOptions options)

Publish events to a subscriber's channel.

Parameters
NameDescription
requestPublishEventsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<PublishEventsResponse>

The call object.

PublishEventsAsync(PublishEventsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<PublishEventsResponse> PublishEventsAsync(PublishEventsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Publish events to a subscriber's channel.

Parameters
NameDescription
requestPublishEventsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<PublishEventsResponse>

The call object.