Class protos.google.cloud.dialogflow.v2.Contexts

Represents a Contexts

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2.Contexts

Package

@google-cloud/dialogflow

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new Contexts 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): Contexts;

Creates new Contexts 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
Contexts

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

createContext(request, callback)

public createContext(request: google.cloud.dialogflow.v2.ICreateContextRequest, callback: google.cloud.dialogflow.v2.Contexts.CreateContextCallback): void;

Calls CreateContext.

Parameters
NameDescription
request ICreateContextRequest

CreateContextRequest message or plain object

callback google.cloud.dialogflow.v2.Contexts.CreateContextCallback

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

Returns
TypeDescription
void

createContext(request)

public createContext(request: google.cloud.dialogflow.v2.ICreateContextRequest): Promise<google.cloud.dialogflow.v2.Context>;

Calls CreateContext.

Parameter
NameDescription
request ICreateContextRequest

CreateContextRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.Context>

Promise

deleteAllContexts(request, callback)

public deleteAllContexts(request: google.cloud.dialogflow.v2.IDeleteAllContextsRequest, callback: google.cloud.dialogflow.v2.Contexts.DeleteAllContextsCallback): void;

Calls DeleteAllContexts.

Parameters
NameDescription
request google.cloud.dialogflow.v2.IDeleteAllContextsRequest

DeleteAllContextsRequest message or plain object

callback google.cloud.dialogflow.v2.Contexts.DeleteAllContextsCallback

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

Returns
TypeDescription
void

deleteAllContexts(request)

public deleteAllContexts(request: google.cloud.dialogflow.v2.IDeleteAllContextsRequest): Promise<google.protobuf.Empty>;

Calls DeleteAllContexts.

Parameter
NameDescription
request google.cloud.dialogflow.v2.IDeleteAllContextsRequest

DeleteAllContextsRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

deleteContext(request, callback)

public deleteContext(request: google.cloud.dialogflow.v2.IDeleteContextRequest, callback: google.cloud.dialogflow.v2.Contexts.DeleteContextCallback): void;

Calls DeleteContext.

Parameters
NameDescription
request IDeleteContextRequest

DeleteContextRequest message or plain object

callback google.cloud.dialogflow.v2.Contexts.DeleteContextCallback

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

Returns
TypeDescription
void

deleteContext(request)

public deleteContext(request: google.cloud.dialogflow.v2.IDeleteContextRequest): Promise<google.protobuf.Empty>;

Calls DeleteContext.

Parameter
NameDescription
request IDeleteContextRequest

DeleteContextRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getContext(request, callback)

public getContext(request: google.cloud.dialogflow.v2.IGetContextRequest, callback: google.cloud.dialogflow.v2.Contexts.GetContextCallback): void;

Calls GetContext.

Parameters
NameDescription
request google.cloud.dialogflow.v2.IGetContextRequest

GetContextRequest message or plain object

callback google.cloud.dialogflow.v2.Contexts.GetContextCallback

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

Returns
TypeDescription
void

getContext(request)

public getContext(request: google.cloud.dialogflow.v2.IGetContextRequest): Promise<google.cloud.dialogflow.v2.Context>;

Calls GetContext.

Parameter
NameDescription
request google.cloud.dialogflow.v2.IGetContextRequest

GetContextRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.Context>

Promise

listContexts(request, callback)

public listContexts(request: google.cloud.dialogflow.v2.IListContextsRequest, callback: google.cloud.dialogflow.v2.Contexts.ListContextsCallback): void;

Calls ListContexts.

Parameters
NameDescription
request IListContextsRequest

ListContextsRequest message or plain object

callback google.cloud.dialogflow.v2.Contexts.ListContextsCallback

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

Returns
TypeDescription
void

listContexts(request)

public listContexts(request: google.cloud.dialogflow.v2.IListContextsRequest): Promise<google.cloud.dialogflow.v2.ListContextsResponse>;

Calls ListContexts.

Parameter
NameDescription
request IListContextsRequest

ListContextsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.ListContextsResponse>

Promise

updateContext(request, callback)

public updateContext(request: google.cloud.dialogflow.v2.IUpdateContextRequest, callback: google.cloud.dialogflow.v2.Contexts.UpdateContextCallback): void;

Calls UpdateContext.

Parameters
NameDescription
request google.cloud.dialogflow.v2.IUpdateContextRequest

UpdateContextRequest message or plain object

callback google.cloud.dialogflow.v2.Contexts.UpdateContextCallback

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

Returns
TypeDescription
void

updateContext(request)

public updateContext(request: google.cloud.dialogflow.v2.IUpdateContextRequest): Promise<google.cloud.dialogflow.v2.Context>;

Calls UpdateContext.

Parameter
NameDescription
request google.cloud.dialogflow.v2.IUpdateContextRequest

UpdateContextRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.Context>

Promise