#[non_exhaustive]pub struct GeneratorEvaluationConfig {
pub input_data_config: Option<InputDataConfig>,
pub output_gcs_bucket_path: String,
pub evaluation_feature_config: Option<EvaluationFeatureConfig>,
/* private fields */
}generator-evaluations only.Expand description
Generator evaluation input 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.input_data_config: Option<InputDataConfig>Required. The config/source of input data.
output_gcs_bucket_path: StringRequired. The output Cloud Storage bucket path to store eval files, e.g. per_summary_accuracy_score report. This path is provided by customer and files stored in it are visible to customer, no internal data should be stored in this path.
evaluation_feature_config: Option<EvaluationFeatureConfig>Feature used for evaluation.
Implementations§
Source§impl GeneratorEvaluationConfig
impl GeneratorEvaluationConfig
pub fn new() -> Self
Sourcepub fn set_input_data_config<T>(self, v: T) -> Selfwhere
T: Into<InputDataConfig>,
pub fn set_input_data_config<T>(self, v: T) -> Selfwhere
T: Into<InputDataConfig>,
Sets the value of input_data_config.
§Example
use google_cloud_dialogflow_v2::model::generator_evaluation_config::InputDataConfig;
let x = GeneratorEvaluationConfig::new().set_input_data_config(InputDataConfig::default()/* use setters */);Sourcepub fn set_or_clear_input_data_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InputDataConfig>,
pub fn set_or_clear_input_data_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InputDataConfig>,
Sets or clears the value of input_data_config.
§Example
use google_cloud_dialogflow_v2::model::generator_evaluation_config::InputDataConfig;
let x = GeneratorEvaluationConfig::new().set_or_clear_input_data_config(Some(InputDataConfig::default()/* use setters */));
let x = GeneratorEvaluationConfig::new().set_or_clear_input_data_config(None::<InputDataConfig>);Sourcepub fn set_output_gcs_bucket_path<T: Into<String>>(self, v: T) -> Self
pub fn set_output_gcs_bucket_path<T: Into<String>>(self, v: T) -> Self
Sets the value of output_gcs_bucket_path.
§Example
let x = GeneratorEvaluationConfig::new().set_output_gcs_bucket_path("example");Sourcepub fn set_evaluation_feature_config<T: Into<Option<EvaluationFeatureConfig>>>(
self,
v: T,
) -> Self
pub fn set_evaluation_feature_config<T: Into<Option<EvaluationFeatureConfig>>>( self, v: T, ) -> Self
Sets the value of evaluation_feature_config.
Note that all the setters affecting evaluation_feature_config are mutually
exclusive.
§Example
use google_cloud_dialogflow_v2::model::generator_evaluation_config::SummarizationConfig;
let x = GeneratorEvaluationConfig::new().set_evaluation_feature_config(Some(
google_cloud_dialogflow_v2::model::generator_evaluation_config::EvaluationFeatureConfig::SummarizationConfig(SummarizationConfig::default().into())));Sourcepub fn summarization_config(&self) -> Option<&Box<SummarizationConfig>>
pub fn summarization_config(&self) -> Option<&Box<SummarizationConfig>>
The value of evaluation_feature_config
if it holds a SummarizationConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_summarization_config<T: Into<Box<SummarizationConfig>>>(
self,
v: T,
) -> Self
pub fn set_summarization_config<T: Into<Box<SummarizationConfig>>>( self, v: T, ) -> Self
Sets the value of evaluation_feature_config
to hold a SummarizationConfig.
Note that all the setters affecting evaluation_feature_config are
mutually exclusive.
§Example
use google_cloud_dialogflow_v2::model::generator_evaluation_config::SummarizationConfig;
let x = GeneratorEvaluationConfig::new().set_summarization_config(SummarizationConfig::default()/* use setters */);
assert!(x.summarization_config().is_some());Trait Implementations§
Source§impl Clone for GeneratorEvaluationConfig
impl Clone for GeneratorEvaluationConfig
Source§fn clone(&self) -> GeneratorEvaluationConfig
fn clone(&self) -> GeneratorEvaluationConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more