# Interface IngestionDataSourceSettings.CloudStorageOrBuilder (1.151.0)

1.151.0 (latest) 1.150.1 1.149.0 1.148.0 1.147.0 1.145.0 1.143.1 1.142.0 1.141.5 1.140.2 1.139.4 1.138.0 1.137.1 1.136.1 1.135.0 1.134.2 1.133.1 1.132.2 1.131.0 1.130.0 1.129.6 1.127.3 1.126.6 1.125.13 1.123.18 1.122.2 1.121.1 1.120.24 1.119.1 1.118.0 1.117.0 1.116.4 1.115.5

    public static interface IngestionDataSourceSettings.CloudStorageOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAvroFormat()

    public abstract IngestionDataSourceSettings.CloudStorage.AvroFormat getAvroFormat()

Optional. Data from Cloud Storage will be interpreted in Avro format.

`
.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat` | The avroFormat. |

### getAvroFormatOrBuilder()

    public abstract IngestionDataSourceSettings.CloudStorage.AvroFormatOrBuilder getAvroFormatOrBuilder()

Optional. Data from Cloud Storage will be interpreted in Avro format.

`
.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormatOrBuilder` |   |

### getBucket()

    public abstract String getBucket()

Optional. Cloud Storage bucket. The bucket name must be without any
prefix like "gs://". See the [bucket naming requirements](https://cloud.google.com/storage/docs/buckets#naming).

`string bucket = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getBucketBytes()

    public abstract ByteString getBucketBytes()

Optional. Cloud Storage bucket. The bucket name must be without any
prefix like "gs://". See the [bucket naming requirements](https://cloud.google.com/storage/docs/buckets#naming).

`string bucket = 2 [(.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 bucket. |

### getInputFormatCase()

    public abstract IngestionDataSourceSettings.CloudStorage.InputFormatCase getInputFormatCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.InputFormatCase` |   |

### getMatchGlob()

    public abstract String getMatchGlob()

Optional. Glob pattern used to match objects that will be ingested. If
unset, all objects will be ingested. See the [supported
patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).

`string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL];`

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

### getMatchGlobBytes()

    public abstract ByteString getMatchGlobBytes()

Optional. Glob pattern used to match objects that will be ingested. If
unset, all objects will be ingested. See the [supported
patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).

`string match_glob = 9 [(.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 matchGlob. |

### getMinimumObjectCreateTime()

    public abstract Timestamp getMinimumObjectCreateTime()

Optional. Only objects with a larger or equal creation timestamp will be
ingested.

`
.google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getMinimumObjectCreateTimeOrBuilder()

    public abstract TimestampOrBuilder getMinimumObjectCreateTimeOrBuilder()

Optional. Only objects with a larger or equal creation timestamp will be
ingested.

`
.google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getPubsubAvroFormat()

    public abstract IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat getPubsubAvroFormat()

Optional. It will be assumed data from Cloud Storage was written via
[Cloud Storage
subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).

`
.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat` | The pubsubAvroFormat. |

### getPubsubAvroFormatOrBuilder()

    public abstract IngestionDataSourceSettings.CloudStorage.PubSubAvroFormatOrBuilder getPubsubAvroFormatOrBuilder()

Optional. It will be assumed data from Cloud Storage was written via
[Cloud Storage
subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).

`
.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormatOrBuilder` |   |

### getState()

    public abstract IngestionDataSourceSettings.CloudStorage.State getState()

Output only. An output-only field that indicates the state of the Cloud
Storage ingestion source.

`
.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State` | The state. |

### getStateValue()

    public abstract int getStateValue()

Output only. An output-only field that indicates the state of the Cloud
Storage ingestion source.

`
.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for state. |

### getTextFormat()

    public abstract IngestionDataSourceSettings.CloudStorage.TextFormat getTextFormat()

Optional. Data from Cloud Storage will be interpreted as text.

`
.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat` | The textFormat. |

### getTextFormatOrBuilder()

    public abstract IngestionDataSourceSettings.CloudStorage.TextFormatOrBuilder getTextFormatOrBuilder()

Optional. Data from Cloud Storage will be interpreted as text.

`
.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatOrBuilder` |   |

### hasAvroFormat()

    public abstract boolean hasAvroFormat()

Optional. Data from Cloud Storage will be interpreted in Avro format.

`
.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasMinimumObjectCreateTime()

    public abstract boolean hasMinimumObjectCreateTime()

Optional. Only objects with a larger or equal creation timestamp will be
ingested.

`
.google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasPubsubAvroFormat()

    public abstract boolean hasPubsubAvroFormat()

Optional. It will be assumed data from Cloud Storage was written via
[Cloud Storage
subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).

`
.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasTextFormat()

    public abstract boolean hasTextFormat()

Optional. Data from Cloud Storage will be interpreted as text.

`
.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL];
`

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