Method | Description | |
---|---|---|
__construct ( array $message, array $metadata ) | ||
ackId ( ) : string | Get the message ackId. | |
attribute ( string $key ) : string | null | Retrieve a single message attribute. | |
attributes ( ) : array | Retrieve all message attributes. | |
data ( ) : string | The message payload. | |
id ( ) : string | Get the message ID. | |
info ( ) : array | Get the message data. | |
publishTime ( ) : DateTimeImmutable | Get the message published time. | |
subscription ( ) : |
Get the subcription through which the message was obtained. |
public __construct ( array $message, array $metadata ) | ||
$message | array | See [PubsubMessage](https://cloud.google.com/pubsub/docs/reference/rest/v1/PubsubMessage). |
$metadata | array | { Message metadata @type string $ackId The message ackId. This is only set when messages are pulled from the PubSub service. @type Subscription $subscription The subscription the message was obtained from. This is only set when messages are delivered by pushDelivery. |
public attributes ( ) : array | ||
return | array |
public publishTime ( ) : DateTimeImmutable | ||
return | DateTimeImmutable |
public subscription ( ) : |
||
return |