Show / Hide Table of Contents

Class ProjectsResource.ConversationsResource.CreateRequest

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 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 with Intent.live_agent_handoff is triggered, conversation will transfer to Assist Stage.

Inheritance
System.Object
ClientServiceRequest
ClientServiceRequest<GoogleCloudDialogflowV2Conversation>
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Conversation>
ProjectsResource.ConversationsResource.CreateRequest
Implements
IClientServiceRequest<GoogleCloudDialogflowV2Conversation>
IClientServiceRequest
Inherited Members
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Conversation>.Xgafv
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Conversation>.AccessToken
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Conversation>.Alt
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Conversation>.Callback
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Conversation>.Fields
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Conversation>.Key
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Conversation>.OauthToken
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Conversation>.PrettyPrint
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Conversation>.QuotaUser
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Conversation>.UploadType
DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Conversation>.UploadProtocol
ClientServiceRequest<GoogleCloudDialogflowV2Conversation>.Execute()
ClientServiceRequest<GoogleCloudDialogflowV2Conversation>.ExecuteAsStream()
ClientServiceRequest<GoogleCloudDialogflowV2Conversation>.ExecuteAsync()
ClientServiceRequest<GoogleCloudDialogflowV2Conversation>.ExecuteAsync(CancellationToken)
ClientServiceRequest<GoogleCloudDialogflowV2Conversation>.ExecuteAsStreamAsync()
ClientServiceRequest<GoogleCloudDialogflowV2Conversation>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<GoogleCloudDialogflowV2Conversation>.CreateRequest(Nullable<Boolean>)
ClientServiceRequest<GoogleCloudDialogflowV2Conversation>.GenerateRequestUri()
ClientServiceRequest<GoogleCloudDialogflowV2Conversation>.GetDefaultETagAction(String)
ClientServiceRequest<GoogleCloudDialogflowV2Conversation>.ETagAction
ClientServiceRequest<GoogleCloudDialogflowV2Conversation>.ModifyRequest
ClientServiceRequest<GoogleCloudDialogflowV2Conversation>.ValidateParameters
ClientServiceRequest<GoogleCloudDialogflowV2Conversation>.RequestParameters
ClientServiceRequest<GoogleCloudDialogflowV2Conversation>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Dialogflow.v2
Assembly: Google.Apis.Dialogflow.v2.dll
Syntax
public class CreateRequest : DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Conversation>, IClientServiceRequest<GoogleCloudDialogflowV2Conversation>, IClientServiceRequest

Constructors

CreateRequest(IClientService, GoogleCloudDialogflowV2Conversation, String)

Constructs a new Create request.

Declaration
public CreateRequest(IClientService service, GoogleCloudDialogflowV2Conversation body, string parent)
Parameters
Type Name Description
IClientService service
GoogleCloudDialogflowV2Conversation body
System.String parent

Properties

ConversationId

Optional. Identifier of the conversation. Generally it's auto generated by Google. Only set it if you cannot wait for the response to return a auto-generated one to you. The conversation ID must be compliant with the regression fomula "a-zA-Z*" with the characters length in range of [3,64]. If the field is provided, the caller is resposible for 1. the uniqueness of the ID, otherwise the request will be rejected. 2. the consistency for whether to use custom ID or not under a project to better ensure uniqueness.

Declaration
[RequestParameter("conversationId", RequestParameterType.Query)]
public virtual string ConversationId { get; set; }
Property Value
Type Description
System.String

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Dialogflow.v2.Data.GoogleCloudDialogflowV2Conversation>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Dialogflow.v2.Data.GoogleCloudDialogflowV2Conversation>.MethodName

Parent

Required. Resource identifier of the project creating the conversation. Format: projects//locations/.

Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type Description
System.String

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Dialogflow.v2.Data.GoogleCloudDialogflowV2Conversation>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
System.Object
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Dialogflow.v2.Data.GoogleCloudDialogflowV2Conversation>.GetBody()

InitParameters()

Initializes Create parameter list.

Declaration
protected override void InitParameters()
Overrides
Google.Apis.Dialogflow.v2.DialogflowBaseServiceRequest<Google.Apis.Dialogflow.v2.Data.GoogleCloudDialogflowV2Conversation>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In This Article
Back to top