pubsub.V1PubSubMessage interface

A v1-compatible Pub/Sub Message. Note: This is a plain object mimicking the v1 Message structure, not an instance of the v1 Message class.

Signature:

export interface V1PubSubMessage<T = any> 

Properties

Property Type Description
attributes { [key: string]: string; }
data string
json T
messageId string
orderingKey string
publishTime string

Methods

Method Description
toJSON()

pubsub.V1PubSubMessage.attributes

Signature:

readonly attributes: {
        [key: string]: string;
    };

pubsub.V1PubSubMessage.data

Signature:

readonly data: string;

pubsub.V1PubSubMessage.json

Signature:

readonly json: T;

pubsub.V1PubSubMessage.messageId

Signature:

readonly messageId: string;

pubsub.V1PubSubMessage.orderingKey

Signature:

readonly orderingKey?: string;

pubsub.V1PubSubMessage.publishTime

Signature:

readonly publishTime: string;

pubsub.V1PubSubMessage.toJSON()

Signature:

toJSON(): any;

Returns:

any