Represents a Contexts
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2beta1.ContextsPackage
@google-cloud/dialogflowConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Contexts 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): Contexts;
Creates new Contexts 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 |
Contexts | RPC service. Useful where requests and/or responses are streamed. |
createContext(request, callback)
public createContext(request: google.cloud.dialogflow.v2beta1.ICreateContextRequest, callback: google.cloud.dialogflow.v2beta1.Contexts.CreateContextCallback): void;
Calls CreateContext.
Name | Description |
request |
ICreateContextRequest
CreateContextRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Contexts.CreateContextCallback
Node-style callback called with the error, if any, and Context |
Type | Description |
void |
createContext(request)
public createContext(request: google.cloud.dialogflow.v2beta1.ICreateContextRequest): Promise<google.cloud.dialogflow.v2beta1.Context>;
Calls CreateContext.
Name | Description |
request |
ICreateContextRequest
CreateContextRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.v2beta1.Context> | Promise |
deleteAllContexts(request, callback)
public deleteAllContexts(request: google.cloud.dialogflow.v2beta1.IDeleteAllContextsRequest, callback: google.cloud.dialogflow.v2beta1.Contexts.DeleteAllContextsCallback): void;
Calls DeleteAllContexts.
Name | Description |
request |
IDeleteAllContextsRequest
DeleteAllContextsRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Contexts.DeleteAllContextsCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
deleteAllContexts(request)
public deleteAllContexts(request: google.cloud.dialogflow.v2beta1.IDeleteAllContextsRequest): Promise<google.protobuf.Empty>;
Calls DeleteAllContexts.
Name | Description |
request |
IDeleteAllContextsRequest
DeleteAllContextsRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
deleteContext(request, callback)
public deleteContext(request: google.cloud.dialogflow.v2beta1.IDeleteContextRequest, callback: google.cloud.dialogflow.v2beta1.Contexts.DeleteContextCallback): void;
Calls DeleteContext.
Name | Description |
request |
google.cloud.dialogflow.v2beta1.IDeleteContextRequest
DeleteContextRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Contexts.DeleteContextCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
deleteContext(request)
public deleteContext(request: google.cloud.dialogflow.v2beta1.IDeleteContextRequest): Promise<google.protobuf.Empty>;
Calls DeleteContext.
Name | Description |
request |
google.cloud.dialogflow.v2beta1.IDeleteContextRequest
DeleteContextRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
getContext(request, callback)
public getContext(request: google.cloud.dialogflow.v2beta1.IGetContextRequest, callback: google.cloud.dialogflow.v2beta1.Contexts.GetContextCallback): void;
Calls GetContext.
Name | Description |
request |
google.cloud.dialogflow.v2beta1.IGetContextRequest
GetContextRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Contexts.GetContextCallback
Node-style callback called with the error, if any, and Context |
Type | Description |
void |
getContext(request)
public getContext(request: google.cloud.dialogflow.v2beta1.IGetContextRequest): Promise<google.cloud.dialogflow.v2beta1.Context>;
Calls GetContext.
Name | Description |
request |
google.cloud.dialogflow.v2beta1.IGetContextRequest
GetContextRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.v2beta1.Context> | Promise |
listContexts(request, callback)
public listContexts(request: google.cloud.dialogflow.v2beta1.IListContextsRequest, callback: google.cloud.dialogflow.v2beta1.Contexts.ListContextsCallback): void;
Calls ListContexts.
Name | Description |
request |
IListContextsRequest
ListContextsRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Contexts.ListContextsCallback
Node-style callback called with the error, if any, and ListContextsResponse |
Type | Description |
void |
listContexts(request)
public listContexts(request: google.cloud.dialogflow.v2beta1.IListContextsRequest): Promise<google.cloud.dialogflow.v2beta1.ListContextsResponse>;
Calls ListContexts.
Name | Description |
request |
IListContextsRequest
ListContextsRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.v2beta1.ListContextsResponse> | Promise |
updateContext(request, callback)
public updateContext(request: google.cloud.dialogflow.v2beta1.IUpdateContextRequest, callback: google.cloud.dialogflow.v2beta1.Contexts.UpdateContextCallback): void;
Calls UpdateContext.
Name | Description |
request |
IUpdateContextRequest
UpdateContextRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Contexts.UpdateContextCallback
Node-style callback called with the error, if any, and Context |
Type | Description |
void |
updateContext(request)
public updateContext(request: google.cloud.dialogflow.v2beta1.IUpdateContextRequest): Promise<google.cloud.dialogflow.v2beta1.Context>;
Calls UpdateContext.
Name | Description |
request |
IUpdateContextRequest
UpdateContextRequest message or plain object |
Type | Description |
Promise<google.cloud.dialogflow.v2beta1.Context> | Promise |