#[non_exhaustive]pub struct UploadRagFileRequest {
pub parent: String,
pub rag_file: Option<RagFile>,
pub upload_rag_file_config: Option<UploadRagFileConfig>,
/* private fields */
}Available on crate feature
vertex-rag-data-service only.Expand description
Request message for VertexRagDataService.UploadRagFile.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The name of the RagCorpus resource into which to upload the file.
Format:
projects/{project}/locations/{location}/ragCorpora/{rag_corpus}
rag_file: Option<RagFile>Required. The RagFile to upload.
upload_rag_file_config: Option<UploadRagFileConfig>Required. The config for the RagFiles to be uploaded into the RagCorpus. VertexRagDataService.UploadRagFile.
Implementations§
Source§impl UploadRagFileRequest
impl UploadRagFileRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_rag_file<T>(self, v: T) -> Self
pub fn set_rag_file<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_rag_file<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_rag_file<T>(self, v: Option<T>) -> Self
Sourcepub fn set_upload_rag_file_config<T>(self, v: T) -> Selfwhere
T: Into<UploadRagFileConfig>,
pub fn set_upload_rag_file_config<T>(self, v: T) -> Selfwhere
T: Into<UploadRagFileConfig>,
Sets the value of upload_rag_file_config.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::UploadRagFileConfig;
let x = UploadRagFileRequest::new().set_upload_rag_file_config(UploadRagFileConfig::default()/* use setters */);Sourcepub fn set_or_clear_upload_rag_file_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<UploadRagFileConfig>,
pub fn set_or_clear_upload_rag_file_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<UploadRagFileConfig>,
Sets or clears the value of upload_rag_file_config.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::UploadRagFileConfig;
let x = UploadRagFileRequest::new().set_or_clear_upload_rag_file_config(Some(UploadRagFileConfig::default()/* use setters */));
let x = UploadRagFileRequest::new().set_or_clear_upload_rag_file_config(None::<UploadRagFileConfig>);Trait Implementations§
Source§impl Clone for UploadRagFileRequest
impl Clone for UploadRagFileRequest
Source§fn clone(&self) -> UploadRagFileRequest
fn clone(&self) -> UploadRagFileRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UploadRagFileRequest
impl Debug for UploadRagFileRequest
Source§impl Default for UploadRagFileRequest
impl Default for UploadRagFileRequest
Source§fn default() -> UploadRagFileRequest
fn default() -> UploadRagFileRequest
Returns the “default value” for a type. Read more
Source§impl Message for UploadRagFileRequest
impl Message for UploadRagFileRequest
Source§impl PartialEq for UploadRagFileRequest
impl PartialEq for UploadRagFileRequest
impl StructuralPartialEq for UploadRagFileRequest
Auto Trait Implementations§
impl Freeze for UploadRagFileRequest
impl RefUnwindSafe for UploadRagFileRequest
impl Send for UploadRagFileRequest
impl Sync for UploadRagFileRequest
impl Unpin for UploadRagFileRequest
impl UnwindSafe for UploadRagFileRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more