# Interface GcsDestinationOrBuilder (0.16.0)

0.16.0 (latest) 0.14.0 0.11.0 0.10.0 0.8.0 0.6.0 0.5.0 0.4.0 0.3.0 0.1.0

    public interface GcsDestinationOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getBucket()

    public abstract String getBucket()

Required. The bucket name to which the export will be stored.

`string bucket = 3 [(.google.api.field_behavior) = REQUIRED];`

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

### getBucketBytes()

    public abstract ByteString getBucketBytes()

Required. The bucket name to which the export will be stored.

`string bucket = 3 [(.google.api.field_behavior) = REQUIRED];`

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

### getForce()

    public abstract boolean getForce()

Optional. Flag to indicate overwrite in case file already exists.

`bool force = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getObject()

    public abstract String getObject()

Required. The object name to which the export will be stored.

`string object = 4 [(.google.api.field_behavior) = REQUIRED];`

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

### getObjectBytes()

    public abstract ByteString getObjectBytes()

Required. The object name to which the export will be stored.

`string object = 4 [(.google.api.field_behavior) = REQUIRED];`

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

### getUri()

    public abstract String getUri()

Optional. The path to the file in Cloud Storage where the export will be
stored. The URI is in the form `gs://bucketName/fileName`. If the file
already exists, the request succeeds, but the operation fails.

`string uri = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### getUriBytes()

    public abstract ByteString getUriBytes()

Optional. The path to the file in Cloud Storage where the export will be
stored. The URI is in the form `gs://bucketName/fileName`. If the file
already exists, the request succeeds, but the operation fails.

`string uri = 1 [(.google.api.field_behavior) = OPTIONAL];`

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