Class protos.google.cloud.dialogflow.cx.v3beta1.Sessions (4.3.1)

Represents a Sessions

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3beta1.Sessions

Package

@google-cloud/dialogflow-cx

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new Sessions service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Sessions;

Creates new Sessions service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
Sessions

RPC service. Useful where requests and/or responses are streamed.

detectIntent(request, callback)

public detectIntent(request: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntentCallback): void;

Calls DetectIntent.

Parameters
NameDescription
request IDetectIntentRequest

DetectIntentRequest message or plain object

callback DetectIntentCallback

Node-style callback called with the error, if any, and DetectIntentResponse

Returns
TypeDescription
void

detectIntent(request)

public detectIntent(request: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest): Promise<google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse>;

Calls DetectIntent.

Parameter
NameDescription
request IDetectIntentRequest

DetectIntentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse>

Promise

fulfillIntent(request, callback)

public fulfillIntent(request: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.FulfillIntentCallback): void;

Calls FulfillIntent.

Parameters
NameDescription
request IFulfillIntentRequest

FulfillIntentRequest message or plain object

callback FulfillIntentCallback

Node-style callback called with the error, if any, and FulfillIntentResponse

Returns
TypeDescription
void

fulfillIntent(request)

public fulfillIntent(request: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest): Promise<google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse>;

Calls FulfillIntent.

Parameter
NameDescription
request IFulfillIntentRequest

FulfillIntentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse>

Promise

matchIntent(request, callback)

public matchIntent(request: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntentCallback): void;

Calls MatchIntent.

Parameters
NameDescription
request IMatchIntentRequest

MatchIntentRequest message or plain object

callback MatchIntentCallback

Node-style callback called with the error, if any, and MatchIntentResponse

Returns
TypeDescription
void

matchIntent(request)

public matchIntent(request: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest): Promise<google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse>;

Calls MatchIntent.

Parameter
NameDescription
request IMatchIntentRequest

MatchIntentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse>

Promise

streamingDetectIntent(request, callback)

public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntentCallback): void;

Calls StreamingDetectIntent.

Parameters
NameDescription
request IStreamingDetectIntentRequest

StreamingDetectIntentRequest message or plain object

callback StreamingDetectIntentCallback

Node-style callback called with the error, if any, and StreamingDetectIntentResponse

Returns
TypeDescription
void

streamingDetectIntent(request)

public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest): Promise<google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse>;

Calls StreamingDetectIntent.

Parameter
NameDescription
request IStreamingDetectIntentRequest

StreamingDetectIntentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse>

Promise

submitAnswerFeedback(request, callback)

public submitAnswerFeedback(request: google.cloud.dialogflow.cx.v3beta1.ISubmitAnswerFeedbackRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.SubmitAnswerFeedbackCallback): void;

Calls SubmitAnswerFeedback.

Parameters
NameDescription
request ISubmitAnswerFeedbackRequest

SubmitAnswerFeedbackRequest message or plain object

callback SubmitAnswerFeedbackCallback

Node-style callback called with the error, if any, and AnswerFeedback

Returns
TypeDescription
void

submitAnswerFeedback(request)

public submitAnswerFeedback(request: google.cloud.dialogflow.cx.v3beta1.ISubmitAnswerFeedbackRequest): Promise<google.cloud.dialogflow.cx.v3beta1.AnswerFeedback>;

Calls SubmitAnswerFeedback.

Parameter
NameDescription
request ISubmitAnswerFeedbackRequest

SubmitAnswerFeedbackRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3beta1.AnswerFeedback>

Promise