Interface representing a Boogle Cloud Pub/Sub message.

param

Payload of a Pub/Sub message.

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Parameters

    • data: any

    Returns Message

Properties

attributes

attributes: object

User-defined attributes published with the message, if any.

Type declaration

  • [key: string]: string

data

data: string

The data payload of this message object as a base64-encoded string.

Accessors

json

  • get json(): any
  • The JSON data payload of this message object, if any.

    Returns any

Methods

toJSON

  • toJSON(): any
  • Returns a JSON-serializable representation of this object.

    Returns any

    A JSON-serializable representation of this object.