Represents a Publisher
Inheritance
$protobuf.rpc.Service > protos.google.cloud.eventarc.publishing.v1.PublisherPackage
@google-cloud/eventarc-publishingConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Publisher service.
Name | Description |
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.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
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.
Name | Description |
request |
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 |
Type | Description |
void |
publishChannelConnectionEvents(request)
public publishChannelConnectionEvents(request: google.cloud.eventarc.publishing.v1.IPublishChannelConnectionEventsRequest): Promise<google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse>;
Calls PublishChannelConnectionEvents.
Name | Description |
request |
IPublishChannelConnectionEventsRequest
PublishChannelConnectionEventsRequest message or plain object |
Type | Description |
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.
Name | Description |
request |
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 |
Type | Description |
void |
publishEvents(request)
public publishEvents(request: google.cloud.eventarc.publishing.v1.IPublishEventsRequest): Promise<google.cloud.eventarc.publishing.v1.PublishEventsResponse>;
Calls PublishEvents.
Name | Description |
request |
IPublishEventsRequest
PublishEventsRequest message or plain object |
Type | Description |
Promise<google.cloud.eventarc.publishing.v1.PublishEventsResponse> | Promise |