Class protos.google.cloud.eventarc.publishing.v1.Publisher (2.2.1)

Represents a Publisher

Inheritance

$protobuf.rpc.Service > protos.google.cloud.eventarc.publishing.v1.Publisher

Package

@google-cloud/eventarc-publishing

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new Publisher service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Publisher;

Creates new Publisher service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
Publisher

RPC service. Useful where requests and/or responses are streamed.

publishChannelConnectionEvents(request, callback)

public publishChannelConnectionEvents(request: google.cloud.eventarc.publishing.v1.IPublishChannelConnectionEventsRequest, callback: google.cloud.eventarc.publishing.v1.Publisher.PublishChannelConnectionEventsCallback): void;

Calls PublishChannelConnectionEvents.

Parameters
NameDescription
request google.cloud.eventarc.publishing.v1.IPublishChannelConnectionEventsRequest

PublishChannelConnectionEventsRequest message or plain object

callback google.cloud.eventarc.publishing.v1.Publisher.PublishChannelConnectionEventsCallback

Node-style callback called with the error, if any, and PublishChannelConnectionEventsResponse

Returns
TypeDescription
void

publishChannelConnectionEvents(request)

public publishChannelConnectionEvents(request: google.cloud.eventarc.publishing.v1.IPublishChannelConnectionEventsRequest): Promise<google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse>;

Calls PublishChannelConnectionEvents.

Parameter
NameDescription
request google.cloud.eventarc.publishing.v1.IPublishChannelConnectionEventsRequest

PublishChannelConnectionEventsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse>

Promise

publishEvents(request, callback)

public publishEvents(request: google.cloud.eventarc.publishing.v1.IPublishEventsRequest, callback: google.cloud.eventarc.publishing.v1.Publisher.PublishEventsCallback): void;

Calls PublishEvents.

Parameters
NameDescription
request google.cloud.eventarc.publishing.v1.IPublishEventsRequest

PublishEventsRequest message or plain object

callback google.cloud.eventarc.publishing.v1.Publisher.PublishEventsCallback

Node-style callback called with the error, if any, and PublishEventsResponse

Returns
TypeDescription
void

publishEvents(request)

public publishEvents(request: google.cloud.eventarc.publishing.v1.IPublishEventsRequest): Promise<google.cloud.eventarc.publishing.v1.PublishEventsResponse>;

Calls PublishEvents.

Parameter
NameDescription
request google.cloud.eventarc.publishing.v1.IPublishEventsRequest

PublishEventsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.eventarc.publishing.v1.PublishEventsResponse>

Promise