Google Cloud Dialogflow v2beta1 API - Class Conversation (1.0.0-beta15)

public sealed class Conversation : IMessage<Conversation>, IEquatable<Conversation>, IDeepCloneable<Conversation>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class Conversation.

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.

Inheritance

object > Conversation

Namespace

Google.Cloud.Dialogflow.V2Beta1

Assembly

Google.Cloud.Dialogflow.V2Beta1.dll

Constructors

Conversation()

public Conversation()

Conversation(Conversation)

public Conversation(Conversation other)
Parameter
NameDescription
otherConversation

Properties

ConversationName

public ConversationName ConversationName { get; set; }

ConversationName-typed view over the Name resource name property.

Property Value
TypeDescription
ConversationName

ConversationProfile

public string ConversationProfile { get; set; }

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>.

Property Value
TypeDescription
string

ConversationProfileAsConversationProfileName

public ConversationProfileName ConversationProfileAsConversationProfileName { get; set; }

ConversationProfileName-typed view over the ConversationProfile resource name property.

Property Value
TypeDescription
ConversationProfileName

ConversationStage

public Conversation.Types.ConversationStage ConversationStage { get; set; }

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].

Property Value
TypeDescription
ConversationTypesConversationStage

EndTime

public Timestamp EndTime { get; set; }

Output only. The time the conversation was finished.

Property Value
TypeDescription
Timestamp

LifecycleState

public Conversation.Types.LifecycleState LifecycleState { get; set; }

Output only. The current state of the Conversation.

Property Value
TypeDescription
ConversationTypesLifecycleState

Name

public string Name { get; set; }

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

Property Value
TypeDescription
string

PhoneNumber

public ConversationPhoneNumber PhoneNumber { get; set; }

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

Property Value
TypeDescription
ConversationPhoneNumber

StartTime

public Timestamp StartTime { get; set; }

Output only. The time the conversation was started.

Property Value
TypeDescription
Timestamp