#[non_exhaustive]pub struct ConversationProfile {Show 16 fields
pub name: String,
pub display_name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub automated_agent_config: Option<AutomatedAgentConfig>,
pub human_agent_assistant_config: Option<HumanAgentAssistantConfig>,
pub human_agent_handoff_config: Option<HumanAgentHandoffConfig>,
pub notification_config: Option<NotificationConfig>,
pub logging_config: Option<LoggingConfig>,
pub new_message_event_notification_config: Option<NotificationConfig>,
pub new_recognition_result_notification_config: Option<NotificationConfig>,
pub stt_config: Option<SpeechToTextConfig>,
pub language_code: String,
pub time_zone: String,
pub security_settings: String,
pub tts_config: Option<SynthesizeSpeechConfig>,
/* private fields */
}conversation-profiles or conversations only.Expand description
Defines the services to connect to incoming Dialogflow conversations.
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.name: StringThe unique identifier of this conversation profile.
Format: projects/<Project ID>/locations/<Location ID>/conversationProfiles/<Conversation Profile ID>.
display_name: StringRequired. Human readable name for this profile. Max length 1024 bytes.
create_time: Option<Timestamp>Output only. Create time of the conversation profile.
update_time: Option<Timestamp>Output only. Update time of the conversation profile.
automated_agent_config: Option<AutomatedAgentConfig>Configuration for an automated agent to use with this profile.
human_agent_assistant_config: Option<HumanAgentAssistantConfig>Configuration for agent assistance to use with this profile.
human_agent_handoff_config: Option<HumanAgentHandoffConfig>Configuration for connecting to a live agent.
Currently, this feature is not general available, please contact Google to get access.
notification_config: Option<NotificationConfig>Configuration for publishing conversation lifecycle events.
logging_config: Option<LoggingConfig>Configuration for logging conversation lifecycle events.
new_message_event_notification_config: Option<NotificationConfig>Configuration for publishing new message events. Event will be sent in format of ConversationEvent
new_recognition_result_notification_config: Option<NotificationConfig>Optional. Configuration for publishing transcription intermediate results. Event will be sent in format of ConversationEvent. If configured, the following information will be populated as ConversationEvent Pub/Sub message attributes:
- “participant_id”
- “participant_role”
- “message_id”
stt_config: Option<SpeechToTextConfig>Settings for speech transcription.
language_code: StringLanguage code for the conversation profile. If not specified, the language is en-US. Language at ConversationProfile should be set for all non en-US languages. This should be a BCP-47 language tag. Example: “en-US”.
time_zone: StringThe time zone of this conversational profile from the time zone database, e.g., America/New_York, Europe/Paris. Defaults to America/New_York.
security_settings: StringName of the CX SecuritySettings reference for the agent.
Format: projects/<Project ID>/locations/<Location ID>/securitySettings/<Security Settings ID>.
tts_config: Option<SynthesizeSpeechConfig>Configuration for Text-to-Speech synthesization.
Used by Phone Gateway to specify synthesization options. If agent defines synthesization options as well, agent settings overrides the option here.
Implementations§
Source§impl ConversationProfile
impl ConversationProfile
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
§Example
let x = ConversationProfile::new().set_display_name("example");Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = ConversationProfile::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = ConversationProfile::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = ConversationProfile::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
use wkt::Timestamp;
let x = ConversationProfile::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
use wkt::Timestamp;
let x = ConversationProfile::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = ConversationProfile::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_automated_agent_config<T>(self, v: T) -> Selfwhere
T: Into<AutomatedAgentConfig>,
pub fn set_automated_agent_config<T>(self, v: T) -> Selfwhere
T: Into<AutomatedAgentConfig>,
Sets the value of automated_agent_config.
§Example
use google_cloud_dialogflow_v2::model::AutomatedAgentConfig;
let x = ConversationProfile::new().set_automated_agent_config(AutomatedAgentConfig::default()/* use setters */);Sourcepub fn set_or_clear_automated_agent_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutomatedAgentConfig>,
pub fn set_or_clear_automated_agent_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<AutomatedAgentConfig>,
Sets or clears the value of automated_agent_config.
§Example
use google_cloud_dialogflow_v2::model::AutomatedAgentConfig;
let x = ConversationProfile::new().set_or_clear_automated_agent_config(Some(AutomatedAgentConfig::default()/* use setters */));
let x = ConversationProfile::new().set_or_clear_automated_agent_config(None::<AutomatedAgentConfig>);Sourcepub fn set_human_agent_assistant_config<T>(self, v: T) -> Selfwhere
T: Into<HumanAgentAssistantConfig>,
pub fn set_human_agent_assistant_config<T>(self, v: T) -> Selfwhere
T: Into<HumanAgentAssistantConfig>,
Sets the value of human_agent_assistant_config.
§Example
use google_cloud_dialogflow_v2::model::HumanAgentAssistantConfig;
let x = ConversationProfile::new().set_human_agent_assistant_config(HumanAgentAssistantConfig::default()/* use setters */);Sourcepub fn set_or_clear_human_agent_assistant_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<HumanAgentAssistantConfig>,
pub fn set_or_clear_human_agent_assistant_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<HumanAgentAssistantConfig>,
Sets or clears the value of human_agent_assistant_config.
§Example
use google_cloud_dialogflow_v2::model::HumanAgentAssistantConfig;
let x = ConversationProfile::new().set_or_clear_human_agent_assistant_config(Some(HumanAgentAssistantConfig::default()/* use setters */));
let x = ConversationProfile::new().set_or_clear_human_agent_assistant_config(None::<HumanAgentAssistantConfig>);Sourcepub fn set_human_agent_handoff_config<T>(self, v: T) -> Selfwhere
T: Into<HumanAgentHandoffConfig>,
pub fn set_human_agent_handoff_config<T>(self, v: T) -> Selfwhere
T: Into<HumanAgentHandoffConfig>,
Sets the value of human_agent_handoff_config.
§Example
use google_cloud_dialogflow_v2::model::HumanAgentHandoffConfig;
let x = ConversationProfile::new().set_human_agent_handoff_config(HumanAgentHandoffConfig::default()/* use setters */);Sourcepub fn set_or_clear_human_agent_handoff_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<HumanAgentHandoffConfig>,
pub fn set_or_clear_human_agent_handoff_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<HumanAgentHandoffConfig>,
Sets or clears the value of human_agent_handoff_config.
§Example
use google_cloud_dialogflow_v2::model::HumanAgentHandoffConfig;
let x = ConversationProfile::new().set_or_clear_human_agent_handoff_config(Some(HumanAgentHandoffConfig::default()/* use setters */));
let x = ConversationProfile::new().set_or_clear_human_agent_handoff_config(None::<HumanAgentHandoffConfig>);Sourcepub fn set_notification_config<T>(self, v: T) -> Selfwhere
T: Into<NotificationConfig>,
pub fn set_notification_config<T>(self, v: T) -> Selfwhere
T: Into<NotificationConfig>,
Sets the value of notification_config.
§Example
use google_cloud_dialogflow_v2::model::NotificationConfig;
let x = ConversationProfile::new().set_notification_config(NotificationConfig::default()/* use setters */);Sourcepub fn set_or_clear_notification_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NotificationConfig>,
pub fn set_or_clear_notification_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NotificationConfig>,
Sets or clears the value of notification_config.
§Example
use google_cloud_dialogflow_v2::model::NotificationConfig;
let x = ConversationProfile::new().set_or_clear_notification_config(Some(NotificationConfig::default()/* use setters */));
let x = ConversationProfile::new().set_or_clear_notification_config(None::<NotificationConfig>);Sourcepub fn set_logging_config<T>(self, v: T) -> Selfwhere
T: Into<LoggingConfig>,
pub fn set_logging_config<T>(self, v: T) -> Selfwhere
T: Into<LoggingConfig>,
Sets the value of logging_config.
§Example
use google_cloud_dialogflow_v2::model::LoggingConfig;
let x = ConversationProfile::new().set_logging_config(LoggingConfig::default()/* use setters */);Sourcepub fn set_or_clear_logging_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<LoggingConfig>,
pub fn set_or_clear_logging_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<LoggingConfig>,
Sets or clears the value of logging_config.
§Example
use google_cloud_dialogflow_v2::model::LoggingConfig;
let x = ConversationProfile::new().set_or_clear_logging_config(Some(LoggingConfig::default()/* use setters */));
let x = ConversationProfile::new().set_or_clear_logging_config(None::<LoggingConfig>);Sourcepub fn set_new_message_event_notification_config<T>(self, v: T) -> Selfwhere
T: Into<NotificationConfig>,
pub fn set_new_message_event_notification_config<T>(self, v: T) -> Selfwhere
T: Into<NotificationConfig>,
Sets the value of new_message_event_notification_config.
§Example
use google_cloud_dialogflow_v2::model::NotificationConfig;
let x = ConversationProfile::new().set_new_message_event_notification_config(NotificationConfig::default()/* use setters */);Sourcepub fn set_or_clear_new_message_event_notification_config<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<NotificationConfig>,
pub fn set_or_clear_new_message_event_notification_config<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<NotificationConfig>,
Sets or clears the value of new_message_event_notification_config.
§Example
use google_cloud_dialogflow_v2::model::NotificationConfig;
let x = ConversationProfile::new().set_or_clear_new_message_event_notification_config(Some(NotificationConfig::default()/* use setters */));
let x = ConversationProfile::new().set_or_clear_new_message_event_notification_config(None::<NotificationConfig>);Sourcepub fn set_new_recognition_result_notification_config<T>(self, v: T) -> Selfwhere
T: Into<NotificationConfig>,
pub fn set_new_recognition_result_notification_config<T>(self, v: T) -> Selfwhere
T: Into<NotificationConfig>,
Sets the value of new_recognition_result_notification_config.
§Example
use google_cloud_dialogflow_v2::model::NotificationConfig;
let x = ConversationProfile::new().set_new_recognition_result_notification_config(NotificationConfig::default()/* use setters */);Sourcepub fn set_or_clear_new_recognition_result_notification_config<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<NotificationConfig>,
pub fn set_or_clear_new_recognition_result_notification_config<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<NotificationConfig>,
Sets or clears the value of new_recognition_result_notification_config.
§Example
use google_cloud_dialogflow_v2::model::NotificationConfig;
let x = ConversationProfile::new().set_or_clear_new_recognition_result_notification_config(Some(NotificationConfig::default()/* use setters */));
let x = ConversationProfile::new().set_or_clear_new_recognition_result_notification_config(None::<NotificationConfig>);Sourcepub fn set_stt_config<T>(self, v: T) -> Selfwhere
T: Into<SpeechToTextConfig>,
pub fn set_stt_config<T>(self, v: T) -> Selfwhere
T: Into<SpeechToTextConfig>,
Sets the value of stt_config.
§Example
use google_cloud_dialogflow_v2::model::SpeechToTextConfig;
let x = ConversationProfile::new().set_stt_config(SpeechToTextConfig::default()/* use setters */);Sourcepub fn set_or_clear_stt_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<SpeechToTextConfig>,
pub fn set_or_clear_stt_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<SpeechToTextConfig>,
Sets or clears the value of stt_config.
§Example
use google_cloud_dialogflow_v2::model::SpeechToTextConfig;
let x = ConversationProfile::new().set_or_clear_stt_config(Some(SpeechToTextConfig::default()/* use setters */));
let x = ConversationProfile::new().set_or_clear_stt_config(None::<SpeechToTextConfig>);Sourcepub fn set_language_code<T: Into<String>>(self, v: T) -> Self
pub fn set_language_code<T: Into<String>>(self, v: T) -> Self
Sets the value of language_code.
§Example
let x = ConversationProfile::new().set_language_code("example");Sourcepub fn set_time_zone<T: Into<String>>(self, v: T) -> Self
pub fn set_time_zone<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_security_settings<T: Into<String>>(self, v: T) -> Self
pub fn set_security_settings<T: Into<String>>(self, v: T) -> Self
Sets the value of security_settings.
§Example
let x = ConversationProfile::new().set_security_settings("example");Sourcepub fn set_tts_config<T>(self, v: T) -> Selfwhere
T: Into<SynthesizeSpeechConfig>,
pub fn set_tts_config<T>(self, v: T) -> Selfwhere
T: Into<SynthesizeSpeechConfig>,
Sets the value of tts_config.
§Example
use google_cloud_dialogflow_v2::model::SynthesizeSpeechConfig;
let x = ConversationProfile::new().set_tts_config(SynthesizeSpeechConfig::default()/* use setters */);Sourcepub fn set_or_clear_tts_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<SynthesizeSpeechConfig>,
pub fn set_or_clear_tts_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<SynthesizeSpeechConfig>,
Sets or clears the value of tts_config.
§Example
use google_cloud_dialogflow_v2::model::SynthesizeSpeechConfig;
let x = ConversationProfile::new().set_or_clear_tts_config(Some(SynthesizeSpeechConfig::default()/* use setters */));
let x = ConversationProfile::new().set_or_clear_tts_config(None::<SynthesizeSpeechConfig>);Trait Implementations§
Source§impl Clone for ConversationProfile
impl Clone for ConversationProfile
Source§fn clone(&self) -> ConversationProfile
fn clone(&self) -> ConversationProfile
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more