Google Cloud Datastream V1 Client - Class GcsDestinationConfig (2.0.1)

Reference documentation and code samples for the Google Cloud Datastream V1 Client class GcsDestinationConfig.

Google Cloud Storage destination configuration

Generated from protobuf message google.cloud.datastream.v1.GcsDestinationConfig

Namespace

Google \ Cloud \ Datastream \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ path string

Path inside the Cloud Storage bucket to write data to.

↳ file_rotation_mb int

The maximum file size to be saved in the bucket.

↳ file_rotation_interval Google\Protobuf\Duration

The maximum duration for which new events are added before a file is closed and a new file is created. Values within the range of 15-60 seconds are allowed.

↳ avro_file_format AvroFileFormat

AVRO file format configuration.

↳ json_file_format JsonFileFormat

JSON file format configuration.

getPath

Path inside the Cloud Storage bucket to write data to.

Returns
Type Description
string

setPath

Path inside the Cloud Storage bucket to write data to.

Parameter
Name Description
var string
Returns
Type Description
$this

getFileRotationMb

The maximum file size to be saved in the bucket.

Returns
Type Description
int

setFileRotationMb

The maximum file size to be saved in the bucket.

Parameter
Name Description
var int
Returns
Type Description
$this

getFileRotationInterval

The maximum duration for which new events are added before a file is closed and a new file is created. Values within the range of 15-60 seconds are allowed.

Returns
Type Description
Google\Protobuf\Duration|null

hasFileRotationInterval

clearFileRotationInterval

setFileRotationInterval

The maximum duration for which new events are added before a file is closed and a new file is created. Values within the range of 15-60 seconds are allowed.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this

getAvroFileFormat

AVRO file format configuration.

Returns
Type Description
AvroFileFormat|null

hasAvroFileFormat

setAvroFileFormat

AVRO file format configuration.

Parameter
Name Description
var AvroFileFormat
Returns
Type Description
$this

getJsonFileFormat

JSON file format configuration.

Returns
Type Description
JsonFileFormat|null

hasJsonFileFormat

setJsonFileFormat

JSON file format configuration.

Parameter
Name Description
var JsonFileFormat
Returns
Type Description
$this

getFileFormat

Returns
Type Description
string