Represents a Sessions
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3.SessionsPackage
@google-cloud/dialogflow-cxConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Sessions service.
Name | Description |
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.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
Sessions | RPC service. Useful where requests and/or responses are streamed. |
detectIntent(request, callback)
public detectIntent(request: google.cloud.dialogflow.cx.v3.IDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.DetectIntentCallback): void;
Calls DetectIntent.
Name | Description |
request |
IDetectIntentRequest
DetectIntentRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3.Sessions.DetectIntentCallback
Node-style callback called with the error, if any, and DetectIntentResponse |
Type | Description |
void |
detectIntent(request)
public detectIntent(request: google.cloud.dialogflow.cx.v3.IDetectIntentRequest): Promise<google.cloud.dialogflow.cx.v3.DetectIntentResponse>;
Calls DetectIntent.
Name | Description |
request |
IDetectIntentRequest
DetectIntentRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.cx.v3.DetectIntentResponse> | Promise |
fulfillIntent(request, callback)
public fulfillIntent(request: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.FulfillIntentCallback): void;
Calls FulfillIntent.
Name | Description |
request |
google.cloud.dialogflow.cx.v3.IFulfillIntentRequest
FulfillIntentRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3.Sessions.FulfillIntentCallback
Node-style callback called with the error, if any, and FulfillIntentResponse |
Type | Description |
void |
fulfillIntent(request)
public fulfillIntent(request: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest): Promise<google.cloud.dialogflow.cx.v3.FulfillIntentResponse>;
Calls FulfillIntent.
Name | Description |
request |
google.cloud.dialogflow.cx.v3.IFulfillIntentRequest
FulfillIntentRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.cx.v3.FulfillIntentResponse> | Promise |
matchIntent(request, callback)
public matchIntent(request: google.cloud.dialogflow.cx.v3.IMatchIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.MatchIntentCallback): void;
Calls MatchIntent.
Name | Description |
request |
IMatchIntentRequest
MatchIntentRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3.Sessions.MatchIntentCallback
Node-style callback called with the error, if any, and MatchIntentResponse |
Type | Description |
void |
matchIntent(request)
public matchIntent(request: google.cloud.dialogflow.cx.v3.IMatchIntentRequest): Promise<google.cloud.dialogflow.cx.v3.MatchIntentResponse>;
Calls MatchIntent.
Name | Description |
request |
IMatchIntentRequest
MatchIntentRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.cx.v3.MatchIntentResponse> | Promise |
streamingDetectIntent(request, callback)
public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntentCallback): void;
Calls StreamingDetectIntent.
Name | Description |
request |
google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest
StreamingDetectIntentRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntentCallback
Node-style callback called with the error, if any, and StreamingDetectIntentResponse |
Type | Description |
void |
streamingDetectIntent(request)
public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest): Promise<google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse>;
Calls StreamingDetectIntent.
Name | Description |
request |
google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest
StreamingDetectIntentRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse> | Promise |