Struct gapi_grpc::google::cloud::dialogflow::v2beta1::Conversation[][src]

pub struct Conversation {
    pub name: String,
    pub lifecycle_state: i32,
    pub conversation_profile: String,
    pub phone_number: Option<ConversationPhoneNumber>,
    pub conversation_stage: i32,
    pub start_time: Option<Timestamp>,
    pub end_time: Option<Timestamp>,
}

Represents a conversation. A conversation is an interaction between an agent, including live agents and Dialogflow agents, and a support customer. Conversations can include phone calls and text-based chat sessions.

Fields

name: String

Output only. The unique identifier of this conversation. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>.

lifecycle_state: i32

Output only. The current state of the Conversation.

conversation_profile: String

Required. The Conversation Profile to be used to configure this Conversation. This field cannot be updated. Format: projects/<Project ID>/locations/<Location ID>/conversationProfiles/<Conversation Profile ID>.

phone_number: Option<ConversationPhoneNumber>

Output only. Required if the conversation is to be connected over telephony.

conversation_stage: i32

The stage of a conversation. It indicates whether the virtual agent or a human agent is handling the conversation.

If the conversation is created with the conversation profile that has Dialogflow config set, defaults to [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]; Otherwise, defaults to [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].

If the conversation is created with the conversation profile that has Dialogflow config set but explicitly sets conversation_stage to [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.HUMAN_ASSIST_STAGE], it skips [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE] stage and directly goes to [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].

start_time: Option<Timestamp>

Output only. The time the conversation was started.

end_time: Option<Timestamp>

Output only. The time the conversation was finished.

Implementations

impl Conversation[src]

pub fn lifecycle_state(&self) -> LifecycleState[src]

Returns the enum value of lifecycle_state, or the default if the field is set to an invalid enum value.

pub fn set_lifecycle_state(&mut self, value: LifecycleState)[src]

Sets lifecycle_state to the provided enum value.

pub fn conversation_stage(&self) -> ConversationStage[src]

Returns the enum value of conversation_stage, or the default if the field is set to an invalid enum value.

pub fn set_conversation_stage(&mut self, value: ConversationStage)[src]

Sets conversation_stage to the provided enum value.

Trait Implementations

impl Clone for Conversation[src]

impl Debug for Conversation[src]

impl Default for Conversation[src]

impl Message for Conversation[src]

impl PartialEq<Conversation> for Conversation[src]

impl StructuralPartialEq for Conversation[src]

Auto Trait Implementations

impl RefUnwindSafe for Conversation

impl Send for Conversation

impl Sync for Conversation

impl Unpin for Conversation

impl UnwindSafe for Conversation

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]