#[non_exhaustive]pub struct ConversationDataset {
pub name: String,
pub display_name: String,
pub description: String,
pub create_time: Option<Timestamp>,
pub input_config: Option<InputConfig>,
pub conversation_info: Option<ConversationInfo>,
pub conversation_count: i64,
pub satisfies_pzi: Option<bool>,
pub satisfies_pzs: Option<bool>,
/* private fields */
}conversation-datasets only.Expand description
Represents a conversation dataset that a user imports raw data into. The data inside ConversationDataset can not be changed after ImportConversationData finishes (and calling ImportConversationData on a dataset that already has data is not allowed).
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: StringOutput only. ConversationDataset resource name. Format:
projects/<Project ID>/locations/<Location ID>/conversationDatasets/<Conversation Dataset ID>
display_name: StringRequired. The display name of the dataset. Maximum of 64 bytes.
description: StringOptional. The description of the dataset. Maximum of 10000 bytes.
create_time: Option<Timestamp>Output only. Creation time of this dataset.
input_config: Option<InputConfig>Output only. Input configurations set during conversation data import.
conversation_info: Option<ConversationInfo>Output only. Metadata set during conversation data import.
conversation_count: i64Output only. The number of conversations this conversation dataset contains.
satisfies_pzi: Option<bool>Output only. A read only boolean field reflecting Zone Isolation status of the dataset.
satisfies_pzs: Option<bool>Output only. A read only boolean field reflecting Zone Separation status of the dataset.
Implementations§
Source§impl ConversationDataset
impl ConversationDataset
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 = ConversationDataset::new().set_display_name("example");Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
§Example
let x = ConversationDataset::new().set_description("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 = ConversationDataset::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 = ConversationDataset::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = ConversationDataset::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_input_config<T>(self, v: T) -> Selfwhere
T: Into<InputConfig>,
pub fn set_input_config<T>(self, v: T) -> Selfwhere
T: Into<InputConfig>,
Sets the value of input_config.
§Example
use google_cloud_dialogflow_v2::model::InputConfig;
let x = ConversationDataset::new().set_input_config(InputConfig::default()/* use setters */);Sourcepub fn set_or_clear_input_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InputConfig>,
pub fn set_or_clear_input_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InputConfig>,
Sets or clears the value of input_config.
§Example
use google_cloud_dialogflow_v2::model::InputConfig;
let x = ConversationDataset::new().set_or_clear_input_config(Some(InputConfig::default()/* use setters */));
let x = ConversationDataset::new().set_or_clear_input_config(None::<InputConfig>);Sourcepub fn set_conversation_info<T>(self, v: T) -> Selfwhere
T: Into<ConversationInfo>,
pub fn set_conversation_info<T>(self, v: T) -> Selfwhere
T: Into<ConversationInfo>,
Sets the value of conversation_info.
§Example
use google_cloud_dialogflow_v2::model::ConversationInfo;
let x = ConversationDataset::new().set_conversation_info(ConversationInfo::default()/* use setters */);Sourcepub fn set_or_clear_conversation_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConversationInfo>,
pub fn set_or_clear_conversation_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConversationInfo>,
Sets or clears the value of conversation_info.
§Example
use google_cloud_dialogflow_v2::model::ConversationInfo;
let x = ConversationDataset::new().set_or_clear_conversation_info(Some(ConversationInfo::default()/* use setters */));
let x = ConversationDataset::new().set_or_clear_conversation_info(None::<ConversationInfo>);Sourcepub fn set_conversation_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_conversation_count<T: Into<i64>>(self, v: T) -> Self
Sets the value of conversation_count.
§Example
let x = ConversationDataset::new().set_conversation_count(42);Sourcepub fn set_satisfies_pzi<T>(self, v: T) -> Self
pub fn set_satisfies_pzi<T>(self, v: T) -> Self
Sets the value of satisfies_pzi.
§Example
let x = ConversationDataset::new().set_satisfies_pzi(true);Sourcepub fn set_or_clear_satisfies_pzi<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_satisfies_pzi<T>(self, v: Option<T>) -> Self
Sets or clears the value of satisfies_pzi.
§Example
let x = ConversationDataset::new().set_or_clear_satisfies_pzi(Some(false));
let x = ConversationDataset::new().set_or_clear_satisfies_pzi(None::<bool>);Sourcepub fn set_satisfies_pzs<T>(self, v: T) -> Self
pub fn set_satisfies_pzs<T>(self, v: T) -> Self
Sets the value of satisfies_pzs.
§Example
let x = ConversationDataset::new().set_satisfies_pzs(true);Sourcepub fn set_or_clear_satisfies_pzs<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_satisfies_pzs<T>(self, v: Option<T>) -> Self
Sets or clears the value of satisfies_pzs.
§Example
let x = ConversationDataset::new().set_or_clear_satisfies_pzs(Some(false));
let x = ConversationDataset::new().set_or_clear_satisfies_pzs(None::<bool>);Trait Implementations§
Source§impl Clone for ConversationDataset
impl Clone for ConversationDataset
Source§fn clone(&self) -> ConversationDataset
fn clone(&self) -> ConversationDataset
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConversationDataset
impl Debug for ConversationDataset
Source§impl Default for ConversationDataset
impl Default for ConversationDataset
Source§fn default() -> ConversationDataset
fn default() -> ConversationDataset
Source§impl Message for ConversationDataset
impl Message for ConversationDataset
Source§impl PartialEq for ConversationDataset
impl PartialEq for ConversationDataset
impl StructuralPartialEq for ConversationDataset
Auto Trait Implementations§
impl Freeze for ConversationDataset
impl RefUnwindSafe for ConversationDataset
impl Send for ConversationDataset
impl Sync for ConversationDataset
impl Unpin for ConversationDataset
impl UnsafeUnpin for ConversationDataset
impl UnwindSafe for ConversationDataset
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request