Cloud PubSub V1 Client - Class AvroConfig (1.44.0)

Reference documentation and code samples for the Cloud PubSub V1 Client class AvroConfig.

Configuration for writing message data in Avro format.

Message payloads and metadata will be written to files as an Avro binary.

Generated from protobuf message google.pubsub.v1.CloudStorageConfig.AvroConfig

Namespace

Google \ Cloud \ PubSub \ V1 \ CloudStorageConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ write_metadata bool

When true, write the subscription name, message_id, publish_time, attributes, and ordering_key as additional fields in the output.

getWriteMetadata

When true, write the subscription name, message_id, publish_time, attributes, and ordering_key as additional fields in the output.

Returns
TypeDescription
bool

setWriteMetadata

When true, write the subscription name, message_id, publish_time, attributes, and ordering_key as additional fields in the output.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this