#[non_exhaustive]pub struct ImportRagFilesOperationMetadata {
pub generic_metadata: Option<GenericOperationMetadata>,
pub rag_corpus_id: i64,
pub import_rag_files_config: Option<ImportRagFilesConfig>,
pub progress_percentage: i32,
/* private fields */
}Available on crate feature
vertex-rag-data-service only.Expand description
Runtime operation information for VertexRagDataService.ImportRagFiles.
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.generic_metadata: Option<GenericOperationMetadata>The operation generic information.
rag_corpus_id: i64The resource ID of RagCorpus that this operation is executed on.
import_rag_files_config: Option<ImportRagFilesConfig>Output only. The config that was passed in the ImportRagFilesRequest.
progress_percentage: i32The progress percentage of the operation. Value is in the range [0, 100]. This percentage is calculated as follows: progress_percentage = 100 * (successes + failures + skips) / total
Implementations§
Source§impl ImportRagFilesOperationMetadata
impl ImportRagFilesOperationMetadata
pub fn new() -> Self
Sourcepub fn set_generic_metadata<T>(self, v: T) -> Selfwhere
T: Into<GenericOperationMetadata>,
pub fn set_generic_metadata<T>(self, v: T) -> Selfwhere
T: Into<GenericOperationMetadata>,
Sets the value of generic_metadata.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::GenericOperationMetadata;
let x = ImportRagFilesOperationMetadata::new().set_generic_metadata(GenericOperationMetadata::default()/* use setters */);Sourcepub fn set_or_clear_generic_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<GenericOperationMetadata>,
pub fn set_or_clear_generic_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<GenericOperationMetadata>,
Sets or clears the value of generic_metadata.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::GenericOperationMetadata;
let x = ImportRagFilesOperationMetadata::new().set_or_clear_generic_metadata(Some(GenericOperationMetadata::default()/* use setters */));
let x = ImportRagFilesOperationMetadata::new().set_or_clear_generic_metadata(None::<GenericOperationMetadata>);Sourcepub fn set_rag_corpus_id<T: Into<i64>>(self, v: T) -> Self
pub fn set_rag_corpus_id<T: Into<i64>>(self, v: T) -> Self
Sets the value of rag_corpus_id.
§Example
ⓘ
let x = ImportRagFilesOperationMetadata::new().set_rag_corpus_id(42);Sourcepub fn set_import_rag_files_config<T>(self, v: T) -> Selfwhere
T: Into<ImportRagFilesConfig>,
pub fn set_import_rag_files_config<T>(self, v: T) -> Selfwhere
T: Into<ImportRagFilesConfig>,
Sets the value of import_rag_files_config.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::ImportRagFilesConfig;
let x = ImportRagFilesOperationMetadata::new().set_import_rag_files_config(ImportRagFilesConfig::default()/* use setters */);Sourcepub fn set_or_clear_import_rag_files_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ImportRagFilesConfig>,
pub fn set_or_clear_import_rag_files_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ImportRagFilesConfig>,
Sets or clears the value of import_rag_files_config.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::ImportRagFilesConfig;
let x = ImportRagFilesOperationMetadata::new().set_or_clear_import_rag_files_config(Some(ImportRagFilesConfig::default()/* use setters */));
let x = ImportRagFilesOperationMetadata::new().set_or_clear_import_rag_files_config(None::<ImportRagFilesConfig>);Sourcepub fn set_progress_percentage<T: Into<i32>>(self, v: T) -> Self
pub fn set_progress_percentage<T: Into<i32>>(self, v: T) -> Self
Sets the value of progress_percentage.
§Example
ⓘ
let x = ImportRagFilesOperationMetadata::new().set_progress_percentage(42);Trait Implementations§
Source§impl Clone for ImportRagFilesOperationMetadata
impl Clone for ImportRagFilesOperationMetadata
Source§fn clone(&self) -> ImportRagFilesOperationMetadata
fn clone(&self) -> ImportRagFilesOperationMetadata
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 Default for ImportRagFilesOperationMetadata
impl Default for ImportRagFilesOperationMetadata
Source§fn default() -> ImportRagFilesOperationMetadata
fn default() -> ImportRagFilesOperationMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for ImportRagFilesOperationMetadata
impl PartialEq for ImportRagFilesOperationMetadata
Source§fn eq(&self, other: &ImportRagFilesOperationMetadata) -> bool
fn eq(&self, other: &ImportRagFilesOperationMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImportRagFilesOperationMetadata
Auto Trait Implementations§
impl Freeze for ImportRagFilesOperationMetadata
impl RefUnwindSafe for ImportRagFilesOperationMetadata
impl Send for ImportRagFilesOperationMetadata
impl Sync for ImportRagFilesOperationMetadata
impl Unpin for ImportRagFilesOperationMetadata
impl UnwindSafe for ImportRagFilesOperationMetadata
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