# Interface GcsDestinationConfigOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.GcsDestinationConfigOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.datastream.v1.GcsDestinationConfigOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.datastream.v1.GcsDestinationConfigOrBuilder)

    public interface GcsDestinationConfigOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getAvroFileFormat()

    public abstract AvroFileFormat getAvroFileFormat()

AVRO file format configuration.

`.google.events.cloud.datastream.v1.AvroFileFormat avro_file_format = 100;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.AvroFileFormat` | The avroFileFormat. |

### getAvroFileFormatOrBuilder()

    public abstract AvroFileFormatOrBuilder getAvroFileFormatOrBuilder()

AVRO file format configuration.

`.google.events.cloud.datastream.v1.AvroFileFormat avro_file_format = 100;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.AvroFileFormatOrBuilder` |   |

### getFileFormatCase()

    public abstract GcsDestinationConfig.FileFormatCase getFileFormatCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.GcsDestinationConfig.FileFormatCase` |   |

### getFileRotationInterval()

    public abstract Duration getFileRotationInterval()

The maximum duration for which new events are added before a file is
closed and a new file is created.

`.google.protobuf.Duration file_rotation_interval = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Duration.html` | The fileRotationInterval. |

### getFileRotationIntervalOrBuilder()

    public abstract DurationOrBuilder getFileRotationIntervalOrBuilder()

The maximum duration for which new events are added before a file is
closed and a new file is created.

`.google.protobuf.Duration file_rotation_interval = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.DurationOrBuilder.html` |   |

### getFileRotationMb()

    public abstract int getFileRotationMb()

The maximum file size to be saved in the bucket.

`int32 file_rotation_mb = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The fileRotationMb. |

### getJsonFileFormat()

    public abstract JsonFileFormat getJsonFileFormat()

JSON file format configuration.

`.google.events.cloud.datastream.v1.JsonFileFormat json_file_format = 101;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.JsonFileFormat` | The jsonFileFormat. |

### getJsonFileFormatOrBuilder()

    public abstract JsonFileFormatOrBuilder getJsonFileFormatOrBuilder()

JSON file format configuration.

`.google.events.cloud.datastream.v1.JsonFileFormat json_file_format = 101;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.datastream.v1.JsonFileFormatOrBuilder` |   |

### getPath()

    public abstract String getPath()

Path inside the Cloud Storage bucket to write data to.

`string path = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The path. |

### getPathBytes()

    public abstract ByteString getPathBytes()

Path inside the Cloud Storage bucket to write data to.

`string path = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for path. |

### hasAvroFileFormat()

    public abstract boolean hasAvroFileFormat()

AVRO file format configuration.

`.google.events.cloud.datastream.v1.AvroFileFormat avro_file_format = 100;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the avroFileFormat field is set. |

### hasFileRotationInterval()

    public abstract boolean hasFileRotationInterval()

The maximum duration for which new events are added before a file is
closed and a new file is created.

`.google.protobuf.Duration file_rotation_interval = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the fileRotationInterval field is set. |

### hasJsonFileFormat()

    public abstract boolean hasJsonFileFormat()

JSON file format configuration.

`.google.events.cloud.datastream.v1.JsonFileFormat json_file_format = 101;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the jsonFileFormat field is set. |