# Interface RagFileOrBuilder (1.48.0)

1.48.0 (latest) 1.47.0 1.45.0 1.43.0 1.42.0 1.40.0 1.38.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.0 1.30.0 1.28.0 1.27.0 1.24.0 1.23.0 1.22.0 1.20.1 1.19.0 1.18.0 1.17.0 1.16.0 1.15.0 1.14.0 1.13.0 1.12.0 1.11.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.8.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface RagFileOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getCreateTime()

    public abstract Timestamp getCreateTime()

Output only. Timestamp when this RagFile was created.

`.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getCreateTimeOrBuilder()

    public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp when this RagFile was created.

`.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getDescription()

    public abstract String getDescription()

Optional. The description of the RagFile.

`string description = 3 [(.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 description of the RagFile.

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

### getDirectUploadSource()

    public abstract DirectUploadSource getDirectUploadSource()

Output only. The RagFile is encapsulated and uploaded in the
UploadRagFile request.

`
.google.cloud.vertexai.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.DirectUploadSource` | The directUploadSource. |

### getDirectUploadSourceOrBuilder()

    public abstract DirectUploadSourceOrBuilder getDirectUploadSourceOrBuilder()

Output only. The RagFile is encapsulated and uploaded in the
UploadRagFile request.

`
.google.cloud.vertexai.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.DirectUploadSourceOrBuilder` |   |

### getDisplayName()

    public abstract String getDisplayName()

Required. The display name of the RagFile.
The name can be up to 128 characters long and can consist of any UTF-8
characters.

`string display_name = 2 [(.google.api.field_behavior) = REQUIRED];`

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

### getDisplayNameBytes()

    public abstract ByteString getDisplayNameBytes()

Required. The display name of the RagFile.
The name can be up to 128 characters long and can consist of any UTF-8
characters.

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

### getFileStatus()

    public abstract FileStatus getFileStatus()

Output only. State of the RagFile.

`
.google.cloud.vertexai.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.FileStatus` | The fileStatus. |

### getFileStatusOrBuilder()

    public abstract FileStatusOrBuilder getFileStatusOrBuilder()

Output only. State of the RagFile.

`
.google.cloud.vertexai.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.FileStatusOrBuilder` |   |

### getGcsSource()

    public abstract GcsSource getGcsSource()

Output only. Google Cloud Storage location of the RagFile.
It does not support wildcards in the Cloud Storage uri for now.

`
.google.cloud.vertexai.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.GcsSource` | The gcsSource. |

### getGcsSourceOrBuilder()

    public abstract GcsSourceOrBuilder getGcsSourceOrBuilder()

Output only. Google Cloud Storage location of the RagFile.
It does not support wildcards in the Cloud Storage uri for now.

`
.google.cloud.vertexai.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.GcsSourceOrBuilder` |   |

### getGoogleDriveSource()

    public abstract GoogleDriveSource getGoogleDriveSource()

Output only. Google Drive location. Supports importing individual files
as well as Google Drive folders.

`
.google.cloud.vertexai.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.GoogleDriveSource` | The googleDriveSource. |

### getGoogleDriveSourceOrBuilder()

    public abstract GoogleDriveSourceOrBuilder getGoogleDriveSourceOrBuilder()

Output only. Google Drive location. Supports importing individual files
as well as Google Drive folders.

`
.google.cloud.vertexai.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.GoogleDriveSourceOrBuilder` |   |

### getJiraSource()

    public abstract JiraSource getJiraSource()

The RagFile is imported from a Jira query.

`.google.cloud.vertexai.v1.JiraSource jira_source = 12;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.JiraSource` | The jiraSource. |

### getJiraSourceOrBuilder()

    public abstract JiraSourceOrBuilder getJiraSourceOrBuilder()

The RagFile is imported from a Jira query.

`.google.cloud.vertexai.v1.JiraSource jira_source = 12;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.JiraSourceOrBuilder` |   |

### getName()

    public abstract String getName()

Output only. The resource name of the RagFile.

`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getNameBytes()

    public abstract ByteString getNameBytes()

Output only. The resource name of the RagFile.

`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getRagFileSourceCase()

    public abstract RagFile.RagFileSourceCase getRagFileSourceCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.RagFile.RagFileSourceCase` |   |

### getSharePointSources()

    public abstract SharePointSources getSharePointSources()

The RagFile is imported from a SharePoint source.

`.google.cloud.vertexai.v1.SharePointSources share_point_sources = 14;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.SharePointSources` | The sharePointSources. |

### getSharePointSourcesOrBuilder()

    public abstract SharePointSourcesOrBuilder getSharePointSourcesOrBuilder()

The RagFile is imported from a SharePoint source.

`.google.cloud.vertexai.v1.SharePointSources share_point_sources = 14;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.SharePointSourcesOrBuilder` |   |

### getSlackSource()

    public abstract SlackSource getSlackSource()

The RagFile is imported from a Slack channel.

`.google.cloud.vertexai.v1.SlackSource slack_source = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.SlackSource` | The slackSource. |

### getSlackSourceOrBuilder()

    public abstract SlackSourceOrBuilder getSlackSourceOrBuilder()

The RagFile is imported from a Slack channel.

`.google.cloud.vertexai.v1.SlackSource slack_source = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.api.SlackSourceOrBuilder` |   |

### getUpdateTime()

    public abstract Timestamp getUpdateTime()

Output only. Timestamp when this RagFile was last updated.

`.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getUpdateTimeOrBuilder()

    public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Timestamp when this RagFile was last updated.

`.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasCreateTime()

    public abstract boolean hasCreateTime()

Output only. Timestamp when this RagFile was created.

`.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasDirectUploadSource()

    public abstract boolean hasDirectUploadSource()

Output only. The RagFile is encapsulated and uploaded in the
UploadRagFile request.

`
.google.cloud.vertexai.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasFileStatus()

    public abstract boolean hasFileStatus()

Output only. State of the RagFile.

`
.google.cloud.vertexai.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasGcsSource()

    public abstract boolean hasGcsSource()

Output only. Google Cloud Storage location of the RagFile.
It does not support wildcards in the Cloud Storage uri for now.

`
.google.cloud.vertexai.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasGoogleDriveSource()

    public abstract boolean hasGoogleDriveSource()

Output only. Google Drive location. Supports importing individual files
as well as Google Drive folders.

`
.google.cloud.vertexai.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasJiraSource()

    public abstract boolean hasJiraSource()

The RagFile is imported from a Jira query.

`.google.cloud.vertexai.v1.JiraSource jira_source = 12;`

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

### hasSharePointSources()

    public abstract boolean hasSharePointSources()

The RagFile is imported from a SharePoint source.

`.google.cloud.vertexai.v1.SharePointSources share_point_sources = 14;`

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

### hasSlackSource()

    public abstract boolean hasSlackSource()

The RagFile is imported from a Slack channel.

`.google.cloud.vertexai.v1.SlackSource slack_source = 11;`

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

### hasUpdateTime()

    public abstract boolean hasUpdateTime()

Output only. Timestamp when this RagFile was last updated.

`.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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