Publisher

google.cloud.eventarc.publishing.v1. Publisher

Represents a Publisher

Constructor

new Publisher(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new Publisher service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

publishChannelConnectionEvents(request, callback) → {undefined}

Calls PublishChannelConnectionEvents.

Parameters:
Name Type Description
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:
Type Description
undefined

publishChannelConnectionEvents(request) → {Promise.<google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse>}

Calls PublishChannelConnectionEvents.

Parameters:
Name Type Description
request google.cloud.eventarc.publishing.v1.IPublishChannelConnectionEventsRequest

PublishChannelConnectionEventsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse>

Promise

publishEvents(request, callback) → {undefined}

Calls PublishEvents.

Parameters:
Name Type Description
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:
Type Description
undefined

publishEvents(request) → {Promise.<google.cloud.eventarc.publishing.v1.PublishEventsResponse>}

Calls PublishEvents.

Parameters:
Name Type Description
request google.cloud.eventarc.publishing.v1.IPublishEventsRequest

PublishEventsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.eventarc.publishing.v1.PublishEventsResponse>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {Publisher}

Creates new Publisher service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
Publisher

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

Type Definitions

PublishChannelConnectionEventsCallback(error, responseopt)

Callback as used by publishChannelConnectionEvents.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse <optional>

PublishChannelConnectionEventsResponse

PublishEventsCallback(error, responseopt)

Callback as used by publishEvents.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.eventarc.publishing.v1.PublishEventsResponse <optional>

PublishEventsResponse