# Interface FileSearchToolOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public interface FileSearchToolOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getCorpusType()

    public abstract FileSearchTool.CorpusType getCorpusType()

Optional. The type of the corpus. Default is FULLY_MANAGED.

`
.google.cloud.ces.v1beta.FileSearchTool.CorpusType corpus_type = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.FileSearchTool.CorpusType` | The corpusType. |

### getCorpusTypeValue()

    public abstract int getCorpusTypeValue()

Optional. The type of the corpus. Default is FULLY_MANAGED.

`
.google.cloud.ces.v1beta.FileSearchTool.CorpusType corpus_type = 3 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getDescription()

    public abstract String getDescription()

Optional. The tool description.

`string description = 5 [(.google.api.field_behavior) = OPTIONAL];`

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

### getDescriptionBytes()

    public abstract ByteString getDescriptionBytes()

Optional. The tool description.

`string description = 5 [(.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 description. |

### getFileCorpus()

    public abstract String getFileCorpus()

Optional. The corpus where files are stored.
Format:
projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

`string file_corpus = 6 [(.google.api.field_behavior) = OPTIONAL];`

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

### getFileCorpusBytes()

    public abstract ByteString getFileCorpusBytes()

Optional. The corpus where files are stored.
Format:
projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

`string file_corpus = 6 [(.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 fileCorpus. |

### getName()

    public abstract String getName()

Required. The tool name.

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

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

### getNameBytes()

    public abstract ByteString getNameBytes()

Required. The tool name.

`string name = 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 name. |