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](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.pubsub.v1pubsubmessage#pubsubv1pubsubmessageattributes) | { \[key: string\]: string; } |   |
| [data](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.pubsub.v1pubsubmessage#pubsubv1pubsubmessagedata) | string |   |
| [json](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.pubsub.v1pubsubmessage#pubsubv1pubsubmessagejson) | T |   |
| [messageId](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.pubsub.v1pubsubmessage#pubsubv1pubsubmessagemessageid) | string |   |
| [orderingKey](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.pubsub.v1pubsubmessage#pubsubv1pubsubmessageorderingkey) | string |   |
| [publishTime](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.pubsub.v1pubsubmessage#pubsubv1pubsubmessagepublishtime) | string |   |

## Methods

| Method | Description |
|---|---|
| [toJSON()](https://firebase.google.com/docs/reference/functions/2nd-gen/node/firebase-functions.pubsub.v1pubsubmessage#pubsubv1pubsubmessagetojson) |   |

## 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