#[non_exhaustive]pub struct InputDataConfig {
pub input_data_source_type: InputDataSourceType,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub sample_size: i32,
pub is_summary_generation_allowed: bool,
pub summary_generation_option: SummaryGenerationOption,
pub source_specific_config: Option<SourceSpecificConfig>,
/* private fields */
}generator-evaluations only.Expand description
Input data config details
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_source_type: InputDataSourceTypeRequired. The source type of input data.
start_time: Option<Timestamp>Optional. The start timestamp to fetch conversation data.
end_time: Option<Timestamp>Optional. The end timestamp to fetch conversation data.
sample_size: i32Optional. Desired number of conversation-summary pairs to be evaluated.
is_summary_generation_allowed: boolOptional. Whether the summary generation is allowed when the pre-existing qualified summaries are insufficient to cover the sample size.
summary_generation_option: SummaryGenerationOptionOptional. Option to control whether summaries are generated during evaluation.
source_specific_config: Option<SourceSpecificConfig>The source specific config for the input data.
Implementations§
Source§impl InputDataConfig
impl InputDataConfig
pub fn new() -> Self
Sourcepub fn set_input_data_source_type<T: Into<InputDataSourceType>>(
self,
v: T,
) -> Self
👎Deprecated
pub fn set_input_data_source_type<T: Into<InputDataSourceType>>( self, v: T, ) -> Self
Sets the value of input_data_source_type.
§Example
use google_cloud_dialogflow_v2::model::generator_evaluation_config::InputDataSourceType;
let x0 = InputDataConfig::new().set_input_data_source_type(InputDataSourceType::AgentAssistConversations);
let x1 = InputDataConfig::new().set_input_data_source_type(InputDataSourceType::InsightsConversations);Sourcepub fn set_start_time<T>(self, v: T) -> Self
👎Deprecated
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
§Example
use wkt::Timestamp;
let x = InputDataConfig::new().set_start_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
👎Deprecated
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
§Example
use wkt::Timestamp;
let x = InputDataConfig::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = InputDataConfig::new().set_or_clear_start_time(None::<Timestamp>);Sourcepub fn set_end_time<T>(self, v: T) -> Self
👎Deprecated
pub fn set_end_time<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
👎Deprecated
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Sourcepub fn set_sample_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_sample_size<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_is_summary_generation_allowed<T: Into<bool>>(self, v: T) -> Self
👎Deprecated
pub fn set_is_summary_generation_allowed<T: Into<bool>>(self, v: T) -> Self
Sets the value of is_summary_generation_allowed.
§Example
let x = InputDataConfig::new().set_is_summary_generation_allowed(true);Sourcepub fn set_summary_generation_option<T: Into<SummaryGenerationOption>>(
self,
v: T,
) -> Self
pub fn set_summary_generation_option<T: Into<SummaryGenerationOption>>( self, v: T, ) -> Self
Sets the value of summary_generation_option.
§Example
use google_cloud_dialogflow_v2::model::generator_evaluation_config::input_data_config::SummaryGenerationOption;
let x0 = InputDataConfig::new().set_summary_generation_option(SummaryGenerationOption::AlwaysGenerate);
let x1 = InputDataConfig::new().set_summary_generation_option(SummaryGenerationOption::GenerateIfMissing);
let x2 = InputDataConfig::new().set_summary_generation_option(SummaryGenerationOption::DoNotGenerate);Sourcepub fn set_source_specific_config<T: Into<Option<SourceSpecificConfig>>>(
self,
v: T,
) -> Self
pub fn set_source_specific_config<T: Into<Option<SourceSpecificConfig>>>( self, v: T, ) -> Self
Sets the value of source_specific_config.
Note that all the setters affecting source_specific_config are mutually
exclusive.
§Example
use google_cloud_dialogflow_v2::model::generator_evaluation_config::AgentAssistInputDataConfig;
let x = InputDataConfig::new().set_source_specific_config(Some(
google_cloud_dialogflow_v2::model::generator_evaluation_config::input_data_config::SourceSpecificConfig::AgentAssistInputDataConfig(AgentAssistInputDataConfig::default().into())));Sourcepub fn agent_assist_input_data_config(
&self,
) -> Option<&Box<AgentAssistInputDataConfig>>
pub fn agent_assist_input_data_config( &self, ) -> Option<&Box<AgentAssistInputDataConfig>>
The value of source_specific_config
if it holds a AgentAssistInputDataConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_agent_assist_input_data_config<T: Into<Box<AgentAssistInputDataConfig>>>(
self,
v: T,
) -> Self
pub fn set_agent_assist_input_data_config<T: Into<Box<AgentAssistInputDataConfig>>>( self, v: T, ) -> Self
Sets the value of source_specific_config
to hold a AgentAssistInputDataConfig.
Note that all the setters affecting source_specific_config are
mutually exclusive.
§Example
use google_cloud_dialogflow_v2::model::generator_evaluation_config::AgentAssistInputDataConfig;
let x = InputDataConfig::new().set_agent_assist_input_data_config(AgentAssistInputDataConfig::default()/* use setters */);
assert!(x.agent_assist_input_data_config().is_some());
assert!(x.dataset_input_data_config().is_none());Sourcepub fn dataset_input_data_config(&self) -> Option<&Box<DatasetInputDataConfig>>
pub fn dataset_input_data_config(&self) -> Option<&Box<DatasetInputDataConfig>>
The value of source_specific_config
if it holds a DatasetInputDataConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_dataset_input_data_config<T: Into<Box<DatasetInputDataConfig>>>(
self,
v: T,
) -> Self
pub fn set_dataset_input_data_config<T: Into<Box<DatasetInputDataConfig>>>( self, v: T, ) -> Self
Sets the value of source_specific_config
to hold a DatasetInputDataConfig.
Note that all the setters affecting source_specific_config are
mutually exclusive.
§Example
use google_cloud_dialogflow_v2::model::generator_evaluation_config::DatasetInputDataConfig;
let x = InputDataConfig::new().set_dataset_input_data_config(DatasetInputDataConfig::default()/* use setters */);
assert!(x.dataset_input_data_config().is_some());
assert!(x.agent_assist_input_data_config().is_none());Trait Implementations§
Source§impl Clone for InputDataConfig
impl Clone for InputDataConfig
Source§fn clone(&self) -> InputDataConfig
fn clone(&self) -> InputDataConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more