#[non_exhaustive]pub struct OutputInfo {
pub bigquery_output_table: String,
pub output_location: Option<OutputLocation>,
/* private fields */
}job-service only.Expand description
Further describes this job’s output. Supplements output_config.
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.bigquery_output_table: StringOutput only. The name of the BigQuery table created, in
predictions_<timestamp>
format, into which the prediction output is written.
Can be used by UI to generate the BigQuery output path, for example.
output_location: Option<OutputLocation>The output location into which prediction output is written.
Implementations§
Source§impl OutputInfo
impl OutputInfo
pub fn new() -> Self
Sourcepub fn set_bigquery_output_table<T: Into<String>>(self, v: T) -> Self
pub fn set_bigquery_output_table<T: Into<String>>(self, v: T) -> Self
Sets the value of bigquery_output_table.
§Example
let x = OutputInfo::new().set_bigquery_output_table("example");Sourcepub fn set_output_location<T: Into<Option<OutputLocation>>>(self, v: T) -> Self
pub fn set_output_location<T: Into<Option<OutputLocation>>>(self, v: T) -> Self
Sets the value of output_location.
Note that all the setters affecting output_location are mutually
exclusive.
§Example
use google_cloud_aiplatform_v1::model::batch_prediction_job::output_info::OutputLocation;
let x = OutputInfo::new().set_output_location(Some(OutputLocation::GcsOutputDirectory("example".to_string())));Sourcepub fn gcs_output_directory(&self) -> Option<&String>
pub fn gcs_output_directory(&self) -> Option<&String>
The value of output_location
if it holds a GcsOutputDirectory, None if the field is not set or
holds a different branch.
Sourcepub fn set_gcs_output_directory<T: Into<String>>(self, v: T) -> Self
pub fn set_gcs_output_directory<T: Into<String>>(self, v: T) -> Self
Sets the value of output_location
to hold a GcsOutputDirectory.
Note that all the setters affecting output_location are
mutually exclusive.
§Example
let x = OutputInfo::new().set_gcs_output_directory("example");
assert!(x.gcs_output_directory().is_some());
assert!(x.bigquery_output_dataset().is_none());Sourcepub fn bigquery_output_dataset(&self) -> Option<&String>
pub fn bigquery_output_dataset(&self) -> Option<&String>
The value of output_location
if it holds a BigqueryOutputDataset, None if the field is not set or
holds a different branch.
Sourcepub fn set_bigquery_output_dataset<T: Into<String>>(self, v: T) -> Self
pub fn set_bigquery_output_dataset<T: Into<String>>(self, v: T) -> Self
Sets the value of output_location
to hold a BigqueryOutputDataset.
Note that all the setters affecting output_location are
mutually exclusive.
§Example
let x = OutputInfo::new().set_bigquery_output_dataset("example");
assert!(x.bigquery_output_dataset().is_some());
assert!(x.gcs_output_directory().is_none());Trait Implementations§
Source§impl Clone for OutputInfo
impl Clone for OutputInfo
Source§fn clone(&self) -> OutputInfo
fn clone(&self) -> OutputInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more