#[non_exhaustive]pub struct RagFile {
pub name: String,
pub display_name: String,
pub description: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub file_status: Option<FileStatus>,
pub rag_file_source: Option<RagFileSource>,
/* private fields */
}Expand description
A RagFile contains user data for chunking, embedding and indexing.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. The resource name of the RagFile.
display_name: StringRequired. The display name of the RagFile. The name can be up to 128 characters long and can consist of any UTF-8 characters.
description: StringOptional. The description of the RagFile.
create_time: Option<Timestamp>Output only. Timestamp when this RagFile was created.
update_time: Option<Timestamp>Output only. Timestamp when this RagFile was last updated.
file_status: Option<FileStatus>Output only. State of the RagFile.
rag_file_source: Option<RagFileSource>The origin location of the RagFile if it is imported from Google Cloud Storage or Google Drive.
Implementations§
Source§impl RagFile
impl RagFile
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_file_status<T: Into<Option<FileStatus>>>(self, v: T) -> Self
pub fn set_file_status<T: Into<Option<FileStatus>>>(self, v: T) -> Self
Sets the value of file_status.
Sourcepub fn set_rag_file_source<T: Into<Option<RagFileSource>>>(self, v: T) -> Self
pub fn set_rag_file_source<T: Into<Option<RagFileSource>>>(self, v: T) -> Self
Sets the value of rag_file_source.
Note that all the setters affecting rag_file_source are mutually
exclusive.
Sourcepub fn gcs_source(&self) -> Option<&Box<GcsSource>>
pub fn gcs_source(&self) -> Option<&Box<GcsSource>>
The value of rag_file_source
if it holds a GcsSource, None if the field is not set or
holds a different branch.
Sourcepub fn set_gcs_source<T: Into<Box<GcsSource>>>(self, v: T) -> Self
pub fn set_gcs_source<T: Into<Box<GcsSource>>>(self, v: T) -> Self
Sets the value of rag_file_source
to hold a GcsSource.
Note that all the setters affecting rag_file_source are
mutually exclusive.
Sourcepub fn google_drive_source(&self) -> Option<&Box<GoogleDriveSource>>
pub fn google_drive_source(&self) -> Option<&Box<GoogleDriveSource>>
The value of rag_file_source
if it holds a GoogleDriveSource, None if the field is not set or
holds a different branch.
Sourcepub fn set_google_drive_source<T: Into<Box<GoogleDriveSource>>>(
self,
v: T,
) -> Self
pub fn set_google_drive_source<T: Into<Box<GoogleDriveSource>>>( self, v: T, ) -> Self
Sets the value of rag_file_source
to hold a GoogleDriveSource.
Note that all the setters affecting rag_file_source are
mutually exclusive.
Sourcepub fn direct_upload_source(&self) -> Option<&Box<DirectUploadSource>>
pub fn direct_upload_source(&self) -> Option<&Box<DirectUploadSource>>
The value of rag_file_source
if it holds a DirectUploadSource, None if the field is not set or
holds a different branch.
Sourcepub fn set_direct_upload_source<T: Into<Box<DirectUploadSource>>>(
self,
v: T,
) -> Self
pub fn set_direct_upload_source<T: Into<Box<DirectUploadSource>>>( self, v: T, ) -> Self
Sets the value of rag_file_source
to hold a DirectUploadSource.
Note that all the setters affecting rag_file_source are
mutually exclusive.
Sourcepub fn slack_source(&self) -> Option<&Box<SlackSource>>
pub fn slack_source(&self) -> Option<&Box<SlackSource>>
The value of rag_file_source
if it holds a SlackSource, None if the field is not set or
holds a different branch.
Sourcepub fn set_slack_source<T: Into<Box<SlackSource>>>(self, v: T) -> Self
pub fn set_slack_source<T: Into<Box<SlackSource>>>(self, v: T) -> Self
Sets the value of rag_file_source
to hold a SlackSource.
Note that all the setters affecting rag_file_source are
mutually exclusive.
Sourcepub fn jira_source(&self) -> Option<&Box<JiraSource>>
pub fn jira_source(&self) -> Option<&Box<JiraSource>>
The value of rag_file_source
if it holds a JiraSource, None if the field is not set or
holds a different branch.
Sourcepub fn set_jira_source<T: Into<Box<JiraSource>>>(self, v: T) -> Self
pub fn set_jira_source<T: Into<Box<JiraSource>>>(self, v: T) -> Self
Sets the value of rag_file_source
to hold a JiraSource.
Note that all the setters affecting rag_file_source are
mutually exclusive.
The value of rag_file_source
if it holds a SharePointSources, None if the field is not set or
holds a different branch.
Sets the value of rag_file_source
to hold a SharePointSources.
Note that all the setters affecting rag_file_source are
mutually exclusive.