#[non_exhaustive]pub struct ImportRagFilesResponse {
pub imported_rag_files_count: i64,
pub failed_rag_files_count: i64,
pub skipped_rag_files_count: i64,
pub partial_failure_sink: Option<PartialFailureSink>,
/* private fields */
}vertex-rag-data-service only.Expand description
Response message for VertexRagDataService.ImportRagFiles.
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.imported_rag_files_count: i64The number of RagFiles that had been imported into the RagCorpus.
failed_rag_files_count: i64The number of RagFiles that had failed while importing into the RagCorpus.
skipped_rag_files_count: i64The number of RagFiles that was skipped while importing into the RagCorpus.
partial_failure_sink: Option<PartialFailureSink>The location into which the partial failures were written.
Implementations§
Source§impl ImportRagFilesResponse
impl ImportRagFilesResponse
pub fn new() -> Self
Sourcepub fn set_imported_rag_files_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_imported_rag_files_count<T: Into<i64>>(self, v: T) -> Self
Sets the value of imported_rag_files_count.
§Example
let x = ImportRagFilesResponse::new().set_imported_rag_files_count(42);Sourcepub fn set_failed_rag_files_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_failed_rag_files_count<T: Into<i64>>(self, v: T) -> Self
Sets the value of failed_rag_files_count.
§Example
let x = ImportRagFilesResponse::new().set_failed_rag_files_count(42);Sourcepub fn set_skipped_rag_files_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_skipped_rag_files_count<T: Into<i64>>(self, v: T) -> Self
Sets the value of skipped_rag_files_count.
§Example
let x = ImportRagFilesResponse::new().set_skipped_rag_files_count(42);Sourcepub fn set_partial_failure_sink<T: Into<Option<PartialFailureSink>>>(
self,
v: T,
) -> Self
pub fn set_partial_failure_sink<T: Into<Option<PartialFailureSink>>>( self, v: T, ) -> Self
Sets the value of partial_failure_sink.
Note that all the setters affecting partial_failure_sink are mutually
exclusive.
§Example
use google_cloud_aiplatform_v1::model::import_rag_files_response::PartialFailureSink;
let x = ImportRagFilesResponse::new().set_partial_failure_sink(Some(PartialFailureSink::PartialFailuresGcsPath("example".to_string())));Sourcepub fn partial_failures_gcs_path(&self) -> Option<&String>
pub fn partial_failures_gcs_path(&self) -> Option<&String>
The value of partial_failure_sink
if it holds a PartialFailuresGcsPath, None if the field is not set or
holds a different branch.
Sourcepub fn set_partial_failures_gcs_path<T: Into<String>>(self, v: T) -> Self
pub fn set_partial_failures_gcs_path<T: Into<String>>(self, v: T) -> Self
Sets the value of partial_failure_sink
to hold a PartialFailuresGcsPath.
Note that all the setters affecting partial_failure_sink are
mutually exclusive.
§Example
let x = ImportRagFilesResponse::new().set_partial_failures_gcs_path("example");
assert!(x.partial_failures_gcs_path().is_some());
assert!(x.partial_failures_bigquery_table().is_none());Sourcepub fn partial_failures_bigquery_table(&self) -> Option<&String>
pub fn partial_failures_bigquery_table(&self) -> Option<&String>
The value of partial_failure_sink
if it holds a PartialFailuresBigqueryTable, None if the field is not set or
holds a different branch.
Sourcepub fn set_partial_failures_bigquery_table<T: Into<String>>(self, v: T) -> Self
pub fn set_partial_failures_bigquery_table<T: Into<String>>(self, v: T) -> Self
Sets the value of partial_failure_sink
to hold a PartialFailuresBigqueryTable.
Note that all the setters affecting partial_failure_sink are
mutually exclusive.
§Example
let x = ImportRagFilesResponse::new().set_partial_failures_bigquery_table("example");
assert!(x.partial_failures_bigquery_table().is_some());
assert!(x.partial_failures_gcs_path().is_none());Trait Implementations§
Source§impl Clone for ImportRagFilesResponse
impl Clone for ImportRagFilesResponse
Source§fn clone(&self) -> ImportRagFilesResponse
fn clone(&self) -> ImportRagFilesResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more