Class protos.google.cloud.dialogflow.v2.ConversationModels (5.7.1)

Represents a ConversationModels

Inheritance

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

Package

@google-cloud/dialogflow

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

createConversationModel(request, callback)

public createConversationModel(request: google.cloud.dialogflow.v2.ICreateConversationModelRequest, callback: google.cloud.dialogflow.v2.ConversationModels.CreateConversationModelCallback): void;

Calls CreateConversationModel.

Parameters
NameDescription
request ICreateConversationModelRequest

CreateConversationModelRequest message or plain object

callback google.cloud.dialogflow.v2.ConversationModels.CreateConversationModelCallback

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

Returns
TypeDescription
void

createConversationModel(request)

public createConversationModel(request: google.cloud.dialogflow.v2.ICreateConversationModelRequest): Promise<google.longrunning.Operation>;

Calls CreateConversationModel.

Parameter
NameDescription
request ICreateConversationModelRequest

CreateConversationModelRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

createConversationModelEvaluation(request, callback)

public createConversationModelEvaluation(request: google.cloud.dialogflow.v2.ICreateConversationModelEvaluationRequest, callback: google.cloud.dialogflow.v2.ConversationModels.CreateConversationModelEvaluationCallback): void;

Calls CreateConversationModelEvaluation.

Parameters
NameDescription
request ICreateConversationModelEvaluationRequest

CreateConversationModelEvaluationRequest message or plain object

callback google.cloud.dialogflow.v2.ConversationModels.CreateConversationModelEvaluationCallback

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

Returns
TypeDescription
void

createConversationModelEvaluation(request)

public createConversationModelEvaluation(request: google.cloud.dialogflow.v2.ICreateConversationModelEvaluationRequest): Promise<google.longrunning.Operation>;

Calls CreateConversationModelEvaluation.

Parameter
NameDescription
request ICreateConversationModelEvaluationRequest

CreateConversationModelEvaluationRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteConversationModel(request, callback)

public deleteConversationModel(request: google.cloud.dialogflow.v2.IDeleteConversationModelRequest, callback: google.cloud.dialogflow.v2.ConversationModels.DeleteConversationModelCallback): void;

Calls DeleteConversationModel.

Parameters
NameDescription
request IDeleteConversationModelRequest

DeleteConversationModelRequest message or plain object

callback google.cloud.dialogflow.v2.ConversationModels.DeleteConversationModelCallback

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

Returns
TypeDescription
void

deleteConversationModel(request)

public deleteConversationModel(request: google.cloud.dialogflow.v2.IDeleteConversationModelRequest): Promise<google.longrunning.Operation>;

Calls DeleteConversationModel.

Parameter
NameDescription
request IDeleteConversationModelRequest

DeleteConversationModelRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deployConversationModel(request, callback)

public deployConversationModel(request: google.cloud.dialogflow.v2.IDeployConversationModelRequest, callback: google.cloud.dialogflow.v2.ConversationModels.DeployConversationModelCallback): void;

Calls DeployConversationModel.

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

DeployConversationModelRequest message or plain object

callback google.cloud.dialogflow.v2.ConversationModels.DeployConversationModelCallback

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

Returns
TypeDescription
void

deployConversationModel(request)

public deployConversationModel(request: google.cloud.dialogflow.v2.IDeployConversationModelRequest): Promise<google.longrunning.Operation>;

Calls DeployConversationModel.

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

DeployConversationModelRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getConversationModel(request, callback)

public getConversationModel(request: google.cloud.dialogflow.v2.IGetConversationModelRequest, callback: google.cloud.dialogflow.v2.ConversationModels.GetConversationModelCallback): void;

Calls GetConversationModel.

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

GetConversationModelRequest message or plain object

callback google.cloud.dialogflow.v2.ConversationModels.GetConversationModelCallback

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

Returns
TypeDescription
void

getConversationModel(request)

public getConversationModel(request: google.cloud.dialogflow.v2.IGetConversationModelRequest): Promise<google.cloud.dialogflow.v2.ConversationModel>;

Calls GetConversationModel.

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

GetConversationModelRequest message or plain object

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

Promise

getConversationModelEvaluation(request, callback)

public getConversationModelEvaluation(request: google.cloud.dialogflow.v2.IGetConversationModelEvaluationRequest, callback: google.cloud.dialogflow.v2.ConversationModels.GetConversationModelEvaluationCallback): void;

Calls GetConversationModelEvaluation.

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

GetConversationModelEvaluationRequest message or plain object

callback google.cloud.dialogflow.v2.ConversationModels.GetConversationModelEvaluationCallback

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

Returns
TypeDescription
void

getConversationModelEvaluation(request)

public getConversationModelEvaluation(request: google.cloud.dialogflow.v2.IGetConversationModelEvaluationRequest): Promise<google.cloud.dialogflow.v2.ConversationModelEvaluation>;

Calls GetConversationModelEvaluation.

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

GetConversationModelEvaluationRequest message or plain object

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

Promise

listConversationModelEvaluations(request, callback)

public listConversationModelEvaluations(request: google.cloud.dialogflow.v2.IListConversationModelEvaluationsRequest, callback: google.cloud.dialogflow.v2.ConversationModels.ListConversationModelEvaluationsCallback): void;

Calls ListConversationModelEvaluations.

Parameters
NameDescription
request IListConversationModelEvaluationsRequest

ListConversationModelEvaluationsRequest message or plain object

callback google.cloud.dialogflow.v2.ConversationModels.ListConversationModelEvaluationsCallback

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

Returns
TypeDescription
void

listConversationModelEvaluations(request)

public listConversationModelEvaluations(request: google.cloud.dialogflow.v2.IListConversationModelEvaluationsRequest): Promise<google.cloud.dialogflow.v2.ListConversationModelEvaluationsResponse>;

Calls ListConversationModelEvaluations.

Parameter
NameDescription
request IListConversationModelEvaluationsRequest

ListConversationModelEvaluationsRequest message or plain object

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

Promise

listConversationModels(request, callback)

public listConversationModels(request: google.cloud.dialogflow.v2.IListConversationModelsRequest, callback: google.cloud.dialogflow.v2.ConversationModels.ListConversationModelsCallback): void;

Calls ListConversationModels.

Parameters
NameDescription
request IListConversationModelsRequest

ListConversationModelsRequest message or plain object

callback google.cloud.dialogflow.v2.ConversationModels.ListConversationModelsCallback

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

Returns
TypeDescription
void

listConversationModels(request)

public listConversationModels(request: google.cloud.dialogflow.v2.IListConversationModelsRequest): Promise<google.cloud.dialogflow.v2.ListConversationModelsResponse>;

Calls ListConversationModels.

Parameter
NameDescription
request IListConversationModelsRequest

ListConversationModelsRequest message or plain object

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

Promise

undeployConversationModel(request, callback)

public undeployConversationModel(request: google.cloud.dialogflow.v2.IUndeployConversationModelRequest, callback: google.cloud.dialogflow.v2.ConversationModels.UndeployConversationModelCallback): void;

Calls UndeployConversationModel.

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

UndeployConversationModelRequest message or plain object

callback google.cloud.dialogflow.v2.ConversationModels.UndeployConversationModelCallback

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

Returns
TypeDescription
void

undeployConversationModel(request)

public undeployConversationModel(request: google.cloud.dialogflow.v2.IUndeployConversationModelRequest): Promise<google.longrunning.Operation>;

Calls UndeployConversationModel.

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

UndeployConversationModelRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise