Google Cloud Datastream V1 Client - Class GcsDestinationConfig (2.4.0)

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

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
Returns
Type
Description
$this

getAvroFileFormat

AVRO file format configuration.

Returns
Type
Description

hasAvroFileFormat

setAvroFileFormat

AVRO file format configuration.

Parameter
Name
Description
Returns
Type
Description
$this

getJsonFileFormat

JSON file format configuration.

Returns
Type
Description

hasJsonFileFormat

setJsonFileFormat

JSON file format configuration.

Parameter
Name
Description
Returns
Type
Description
$this

getFileFormat

Returns
Type
Description
string
Design a Mobile Site
View Site in Mobile | Classic
Share by: