Class protos.google.cloud.dialogflow.v2beta1.Contexts (4.4.0)

Represents a Contexts

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2beta1.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.v2beta1.ICreateContextRequest, callback: google.cloud.dialogflow.v2beta1.Contexts.CreateContextCallback): void;

Calls CreateContext.

Parameters
NameDescription
request google.cloud.dialogflow.v2beta1.ICreateContextRequest

CreateContextRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Contexts.CreateContextCallback

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

Returns
TypeDescription
void

createContext(request)

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

Calls CreateContext.

Parameter
NameDescription
request google.cloud.dialogflow.v2beta1.ICreateContextRequest

CreateContextRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

deleteAllContexts(request)

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

Calls DeleteAllContexts.

Parameter
NameDescription
request IDeleteAllContextsRequest

DeleteAllContextsRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
request IDeleteContextRequest

DeleteContextRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Contexts.DeleteContextCallback

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

Returns
TypeDescription
void

deleteContext(request)

public deleteContext(request: google.cloud.dialogflow.v2beta1.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.v2beta1.IGetContextRequest, callback: google.cloud.dialogflow.v2beta1.Contexts.GetContextCallback): void;

Calls GetContext.

Parameters
NameDescription
request IGetContextRequest

GetContextRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Contexts.GetContextCallback

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

Returns
TypeDescription
void

getContext(request)

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

Calls GetContext.

Parameter
NameDescription
request IGetContextRequest

GetContextRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

listContexts(request)

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

Calls ListContexts.

Parameter
NameDescription
request IListContextsRequest

ListContextsRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

updateContext(request)

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

Calls UpdateContext.

Parameter
NameDescription
request IUpdateContextRequest

UpdateContextRequest message or plain object

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

Promise