Cloud PubSub V1 Client - Class NoWrapper (1.45.2)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Cloud PubSub V1 Client class NoWrapper.
Sets the data field as the HTTP body for delivery.
Generated from protobuf message google.pubsub.v1.PushConfig.NoWrapper
Namespace
Google \ Cloud \ PubSub \ V1 \ PushConfig
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ write_metadata
bool
When true, writes the Pub/Sub message metadata to x-goog-pubsub-<KEY>:<VAL> headers of the HTTP request. Writes the Pub/Sub message attributes to <KEY>:<VAL> headers of the HTTP request.
getWriteMetadata
When true, writes the Pub/Sub message metadata to
x-goog-pubsub-<KEY>:<VAL> headers of the HTTP request. Writes the
Pub/Sub message attributes to <KEY>:<VAL> headers of the HTTP request.
Returns
Type
Description
bool
setWriteMetadata
When true, writes the Pub/Sub message metadata to
x-goog-pubsub-<KEY>:<VAL> headers of the HTTP request. Writes the
Pub/Sub message attributes to <KEY>:<VAL> headers of the HTTP request.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-18 UTC."],[],[]]