/// <summary> /// Creates a new conversation. Conversations are auto-completed after 24 /// hours. /// /// Conversation Lifecycle: /// There are two stages during a conversation: Automated Agent Stage and /// Assist Stage. /// /// For Automated Agent Stage, there will be a dialogflow agent responding to /// user queries. /// /// For Assist Stage, there's no dialogflow agent responding to user queries. /// But we will provide suggestions which are generated from conversation. /// /// If [Conversation.conversation_profile][google.cloud.dialogflow.v2.Conversation.conversation_profile] is configured for a dialogflow /// agent, conversation will start from `Automated Agent Stage`, otherwise, it /// will start from `Assist Stage`. And during `Automated Agent Stage`, once an /// [Intent][google.cloud.dialogflow.v2.Intent] with [Intent.live_agent_handoff][google.cloud.dialogflow.v2.Intent.live_agent_handoff] is triggered, conversation /// will transfer to Assist Stage. /// </summary> /// <param name="request">The request to send to the server.</param> /// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param> /// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param> /// <param name="cancellationToken">An optional token for canceling the call.</param> /// <returns>The call object.</returns> public virtual grpc::AsyncUnaryCall <global::Google.Cloud.Dialogflow.V2.Conversation> CreateConversationAsync(global::Google.Cloud.Dialogflow.V2.CreateConversationRequest request, grpc::Metadata headers = null, global::System.DateTime?deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return(CreateConversationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken))); }
/// <summary> /// Creates a new conversation. Conversations are auto-completed after 24 /// hours. /// /// Conversation Lifecycle: /// There are two stages during a conversation: Automated Agent Stage and /// Assist Stage. /// /// For Automated Agent Stage, there will be a dialogflow agent responding to /// user queries. /// /// For Assist Stage, there's no dialogflow agent responding to user queries. /// But we will provide suggestions which are generated from conversation. /// /// If [Conversation.conversation_profile][google.cloud.dialogflow.v2.Conversation.conversation_profile] is configured for a dialogflow /// agent, conversation will start from `Automated Agent Stage`, otherwise, it /// will start from `Assist Stage`. And during `Automated Agent Stage`, once an /// [Intent][google.cloud.dialogflow.v2.Intent] with [Intent.live_agent_handoff][google.cloud.dialogflow.v2.Intent.live_agent_handoff] is triggered, conversation /// will transfer to Assist Stage. /// </summary> /// <param name="request">The request to send to the server.</param> /// <param name="options">The options for the call.</param> /// <returns>The call object.</returns> public virtual grpc::AsyncUnaryCall <global::Google.Cloud.Dialogflow.V2.Conversation> CreateConversationAsync(global::Google.Cloud.Dialogflow.V2.CreateConversationRequest request, grpc::CallOptions options) { return(CallInvoker.AsyncUnaryCall(__Method_CreateConversation, null, options, request)); }
/// <summary> /// Creates a new conversation. Conversations are auto-completed after 24 /// hours. /// /// Conversation Lifecycle: /// There are two stages during a conversation: Automated Agent Stage and /// Assist Stage. /// /// For Automated Agent Stage, there will be a dialogflow agent responding to /// user queries. /// /// For Assist Stage, there's no dialogflow agent responding to user queries. /// But we will provide suggestions which are generated from conversation. /// /// If [Conversation.conversation_profile][google.cloud.dialogflow.v2.Conversation.conversation_profile] is configured for a dialogflow /// agent, conversation will start from `Automated Agent Stage`, otherwise, it /// will start from `Assist Stage`. And during `Automated Agent Stage`, once an /// [Intent][google.cloud.dialogflow.v2.Intent] with [Intent.live_agent_handoff][google.cloud.dialogflow.v2.Intent.live_agent_handoff] is triggered, conversation /// will transfer to Assist Stage. /// </summary> /// <param name="request">The request received from the client.</param> /// <param name="context">The context of the server-side call handler being invoked.</param> /// <returns>The response to send back to the client (wrapped by a task).</returns> public virtual global::System.Threading.Tasks.Task <global::Google.Cloud.Dialogflow.V2.Conversation> CreateConversation(global::Google.Cloud.Dialogflow.V2.CreateConversationRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); }