# Datastream V1alpha1 API - Class Google::Cloud::Datastream::V1alpha1::GcsDestinationConfig (v0.14.0)

0.14.0 (latest) 0.13.1 0.12.0 0.11.1 0.10.1 0.9.0 0.8.0 0.7.1 0.6.2 0.5.0 0.4.0 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the Datastream V1alpha1 API class Google::Cloud::Datastream::V1alpha1::GcsDestinationConfig.

Google Cloud Storage destination configuration

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #avro_file_format

    def avro_file_format() -> ::Google::Cloud::Datastream::V1alpha1::AvroFileFormat

**Returns**

- ([::Google::Cloud::Datastream::V1alpha1::AvroFileFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1alpha1/latest/Google-Cloud-Datastream-V1alpha1-AvroFileFormat)) --- AVRO file format configuration.


  Note: The following fields are mutually exclusive: `avro_file_format`, `json_file_format`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #avro_file_format=

    def avro_file_format=(value) -> ::Google::Cloud::Datastream::V1alpha1::AvroFileFormat

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1alpha1::AvroFileFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1alpha1/latest/Google-Cloud-Datastream-V1alpha1-AvroFileFormat)) --- AVRO file format configuration.


  Note: The following fields are mutually exclusive: `avro_file_format`, `json_file_format`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Datastream::V1alpha1::AvroFileFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1alpha1/latest/Google-Cloud-Datastream-V1alpha1-AvroFileFormat)) --- AVRO file format configuration.


  Note: The following fields are mutually exclusive: `avro_file_format`, `json_file_format`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #file_rotation_interval

    def file_rotation_interval() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1alpha1/latest/Google-Protobuf-Duration)) --- The maximum duration for which new events are added before a file is closed and a new file is created.

### #file_rotation_interval=

    def file_rotation_interval=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1alpha1/latest/Google-Protobuf-Duration)) --- The maximum duration for which new events are added before a file is closed and a new file is created.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1alpha1/latest/Google-Protobuf-Duration)) --- The maximum duration for which new events are added before a file is closed and a new file is created.

### #file_rotation_mb

    def file_rotation_mb() -> ::Integer

**Returns**

- (::Integer) --- The maximum file size to be saved in the bucket.

### #file_rotation_mb=

    def file_rotation_mb=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The maximum file size to be saved in the bucket.
**Returns**

- (::Integer) --- The maximum file size to be saved in the bucket.

### #gcs_file_format

    def gcs_file_format() -> ::Google::Cloud::Datastream::V1alpha1::GcsFileFormat

**Returns**

- ([::Google::Cloud::Datastream::V1alpha1::GcsFileFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1alpha1/latest/Google-Cloud-Datastream-V1alpha1-GcsFileFormat)) --- File format that data should be written in. Deprecated field - use file_format instead.

### #gcs_file_format=

    def gcs_file_format=(value) -> ::Google::Cloud::Datastream::V1alpha1::GcsFileFormat

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1alpha1::GcsFileFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1alpha1/latest/Google-Cloud-Datastream-V1alpha1-GcsFileFormat)) --- File format that data should be written in. Deprecated field - use file_format instead.
**Returns**

- ([::Google::Cloud::Datastream::V1alpha1::GcsFileFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1alpha1/latest/Google-Cloud-Datastream-V1alpha1-GcsFileFormat)) --- File format that data should be written in. Deprecated field - use file_format instead.

### #json_file_format

    def json_file_format() -> ::Google::Cloud::Datastream::V1alpha1::JsonFileFormat

**Returns**

- ([::Google::Cloud::Datastream::V1alpha1::JsonFileFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1alpha1/latest/Google-Cloud-Datastream-V1alpha1-JsonFileFormat)) --- JSON file format configuration.


  Note: The following fields are mutually exclusive: `json_file_format`, `avro_file_format`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #json_file_format=

    def json_file_format=(value) -> ::Google::Cloud::Datastream::V1alpha1::JsonFileFormat

**Parameter**

- **value** ([::Google::Cloud::Datastream::V1alpha1::JsonFileFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1alpha1/latest/Google-Cloud-Datastream-V1alpha1-JsonFileFormat)) --- JSON file format configuration.


  Note: The following fields are mutually exclusive: `json_file_format`, `avro_file_format`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Datastream::V1alpha1::JsonFileFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-datastream-v1alpha1/latest/Google-Cloud-Datastream-V1alpha1-JsonFileFormat)) --- JSON file format configuration.


  Note: The following fields are mutually exclusive: `json_file_format`, `avro_file_format`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #path

    def path() -> ::String

**Returns**

- (::String) --- Path inside the Cloud Storage bucket to write data to.

### #path=

    def path=(value) -> ::String

**Parameter**

- **value** (::String) --- Path inside the Cloud Storage bucket to write data to.
**Returns**

- (::String) --- Path inside the Cloud Storage bucket to write data to.