# Interface DataStoreTool.EngineSourceOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public static interface DataStoreTool.EngineSourceOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getDataStoreSources(int index)

    public abstract DataStoreTool.DataStoreSource getDataStoreSources(int index)

Optional. Use to target specific DataStores within the Engine.
If empty, the search applies to all DataStores associated with the
Engine.

`
repeated .google.cloud.ces.v1beta.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.DataStoreTool.DataStoreSource` |   |

### getDataStoreSourcesCount()

    public abstract int getDataStoreSourcesCount()

Optional. Use to target specific DataStores within the Engine.
If empty, the search applies to all DataStores associated with the
Engine.

`
repeated .google.cloud.ces.v1beta.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getDataStoreSourcesList()

    public abstract List<DataStoreTool.DataStoreSource> getDataStoreSourcesList()

Optional. Use to target specific DataStores within the Engine.
If empty, the search applies to all DataStores associated with the
Engine.

`
repeated .google.cloud.ces.v1beta.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.DataStoreTool.DataStoreSource>` |   |

### getDataStoreSourcesOrBuilder(int index)

    public abstract DataStoreTool.DataStoreSourceOrBuilder getDataStoreSourcesOrBuilder(int index)

Optional. Use to target specific DataStores within the Engine.
If empty, the search applies to all DataStores associated with the
Engine.

`
repeated .google.cloud.ces.v1beta.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.DataStoreTool.DataStoreSourceOrBuilder` |   |

### getDataStoreSourcesOrBuilderList()

    public abstract List<? extends DataStoreTool.DataStoreSourceOrBuilder> getDataStoreSourcesOrBuilderList()

Optional. Use to target specific DataStores within the Engine.
If empty, the search applies to all DataStores associated with the
Engine.

`
repeated .google.cloud.ces.v1beta.DataStoreTool.DataStoreSource data_store_sources = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.ces.v1beta.DataStoreTool.DataStoreSourceOrBuilder>` |   |

### getEngine()

    public abstract String getEngine()

Required. Full resource name of the Engine.
Format:
`projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`

`string engine = 1 [(.google.api.field_behavior) = REQUIRED];`

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

### getEngineBytes()

    public abstract ByteString getEngineBytes()

Required. Full resource name of the Engine.
Format:
`projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`

`string engine = 1 [(.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 engine. |

### getFilter()

    public abstract String getFilter()

Optional. A filter applied to the search across the Engine. Not relevant
and not used if 'data_store_sources' is provided. See:
<https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata>

`string filter = 3 [(.google.api.field_behavior) = OPTIONAL];`

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

### getFilterBytes()

    public abstract ByteString getFilterBytes()

Optional. A filter applied to the search across the Engine. Not relevant
and not used if 'data_store_sources' is provided. See:
<https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata>

`string filter = 3 [(.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 filter. |