Cloud PubSub V1 Client - Class TextFormat (2.8.0)

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

Configuration for reading Cloud Storage data in text format. Each line of text as specified by the delimiter will be set to the data field of a Pub/Sub message.

Generated from protobuf message google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat

Namespace

Google \ Cloud \ PubSub \ V1 \ IngestionDataSourceSettings \ CloudStorage

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ delimiter string

Optional. When unset, '\n' is used.

getDelimiter

Optional. When unset, '\n' is used.

Returns
Type Description
string

hasDelimiter

clearDelimiter

setDelimiter

Optional. When unset, '\n' is used.

Parameter
Name Description
var string
Returns
Type Description
$this