Class protos.google.cloud.dialogflow.cx.v3.TestCases

Represents a TestCases

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3.TestCases

Package

@google-cloud/dialogflow-cx

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new TestCases service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

batchDeleteTestCases(request, callback)

public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCasesCallback): void;

Calls BatchDeleteTestCases.

Parameters
NameDescription
request IBatchDeleteTestCasesRequest

BatchDeleteTestCasesRequest message or plain object

callback google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCasesCallback

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

Returns
TypeDescription
void

batchDeleteTestCases(request)

public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest): Promise<google.protobuf.Empty>;

Calls BatchDeleteTestCases.

Parameter
NameDescription
request IBatchDeleteTestCasesRequest

BatchDeleteTestCasesRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

batchRunTestCases(request, callback)

public batchRunTestCases(request: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCasesCallback): void;

Calls BatchRunTestCases.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest

BatchRunTestCasesRequest message or plain object

callback google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCasesCallback

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

Returns
TypeDescription
void

batchRunTestCases(request)

public batchRunTestCases(request: google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest): Promise<google.longrunning.Operation>;

Calls BatchRunTestCases.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest

BatchRunTestCasesRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

calculateCoverage(request, callback)

public calculateCoverage(request: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverageCallback): void;

Calls CalculateCoverage.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest

CalculateCoverageRequest message or plain object

callback google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverageCallback

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

Returns
TypeDescription
void

calculateCoverage(request)

public calculateCoverage(request: google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest): Promise<google.cloud.dialogflow.cx.v3.CalculateCoverageResponse>;

Calls CalculateCoverage.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest

CalculateCoverageRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.CalculateCoverageResponse>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TestCases;

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

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

createTestCase(request, callback)

public createTestCase(request: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.CreateTestCaseCallback): void;

Calls CreateTestCase.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest

CreateTestCaseRequest message or plain object

callback google.cloud.dialogflow.cx.v3.TestCases.CreateTestCaseCallback

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

Returns
TypeDescription
void

createTestCase(request)

public createTestCase(request: google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest): Promise<google.cloud.dialogflow.cx.v3.TestCase>;

Calls CreateTestCase.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest

CreateTestCaseRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.TestCase>

Promise

exportTestCases(request, callback)

public exportTestCases(request: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.ExportTestCasesCallback): void;

Calls ExportTestCases.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3.IExportTestCasesRequest

ExportTestCasesRequest message or plain object

callback google.cloud.dialogflow.cx.v3.TestCases.ExportTestCasesCallback

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

Returns
TypeDescription
void

exportTestCases(request)

public exportTestCases(request: google.cloud.dialogflow.cx.v3.IExportTestCasesRequest): Promise<google.longrunning.Operation>;

Calls ExportTestCases.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3.IExportTestCasesRequest

ExportTestCasesRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getTestCase(request, callback)

public getTestCase(request: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseCallback): void;

Calls GetTestCase.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3.IGetTestCaseRequest

GetTestCaseRequest message or plain object

callback google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseCallback

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

Returns
TypeDescription
void

getTestCase(request)

public getTestCase(request: google.cloud.dialogflow.cx.v3.IGetTestCaseRequest): Promise<google.cloud.dialogflow.cx.v3.TestCase>;

Calls GetTestCase.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3.IGetTestCaseRequest

GetTestCaseRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.TestCase>

Promise

getTestCaseResult(request, callback)

public getTestCaseResult(request: google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResultCallback): void;

Calls GetTestCaseResult.

Parameters
NameDescription
request IGetTestCaseResultRequest

GetTestCaseResultRequest message or plain object

callback google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResultCallback

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

Returns
TypeDescription
void

getTestCaseResult(request)

public getTestCaseResult(request: google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest): Promise<google.cloud.dialogflow.cx.v3.TestCaseResult>;

Calls GetTestCaseResult.

Parameter
NameDescription
request IGetTestCaseResultRequest

GetTestCaseResultRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.TestCaseResult>

Promise

importTestCases(request, callback)

public importTestCases(request: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.ImportTestCasesCallback): void;

Calls ImportTestCases.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3.IImportTestCasesRequest

ImportTestCasesRequest message or plain object

callback google.cloud.dialogflow.cx.v3.TestCases.ImportTestCasesCallback

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

Returns
TypeDescription
void

importTestCases(request)

public importTestCases(request: google.cloud.dialogflow.cx.v3.IImportTestCasesRequest): Promise<google.longrunning.Operation>;

Calls ImportTestCases.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3.IImportTestCasesRequest

ImportTestCasesRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

listTestCaseResults(request, callback)

public listTestCaseResults(request: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResultsCallback): void;

Calls ListTestCaseResults.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest

ListTestCaseResultsRequest message or plain object

callback google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResultsCallback

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

Returns
TypeDescription
void

listTestCaseResults(request)

public listTestCaseResults(request: google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest): Promise<google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse>;

Calls ListTestCaseResults.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest

ListTestCaseResultsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse>

Promise

listTestCases(request, callback)

public listTestCases(request: google.cloud.dialogflow.cx.v3.IListTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.ListTestCasesCallback): void;

Calls ListTestCases.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3.IListTestCasesRequest

ListTestCasesRequest message or plain object

callback google.cloud.dialogflow.cx.v3.TestCases.ListTestCasesCallback

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

Returns
TypeDescription
void

listTestCases(request)

public listTestCases(request: google.cloud.dialogflow.cx.v3.IListTestCasesRequest): Promise<google.cloud.dialogflow.cx.v3.ListTestCasesResponse>;

Calls ListTestCases.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3.IListTestCasesRequest

ListTestCasesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.ListTestCasesResponse>

Promise

runTestCase(request, callback)

public runTestCase(request: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.RunTestCaseCallback): void;

Calls RunTestCase.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3.IRunTestCaseRequest

RunTestCaseRequest message or plain object

callback google.cloud.dialogflow.cx.v3.TestCases.RunTestCaseCallback

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

Returns
TypeDescription
void

runTestCase(request)

public runTestCase(request: google.cloud.dialogflow.cx.v3.IRunTestCaseRequest): Promise<google.longrunning.Operation>;

Calls RunTestCase.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3.IRunTestCaseRequest

RunTestCaseRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

updateTestCase(request, callback)

public updateTestCase(request: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCaseCallback): void;

Calls UpdateTestCase.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest

UpdateTestCaseRequest message or plain object

callback google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCaseCallback

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

Returns
TypeDescription
void

updateTestCase(request)

public updateTestCase(request: google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest): Promise<google.cloud.dialogflow.cx.v3.TestCase>;

Calls UpdateTestCase.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest

UpdateTestCaseRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.TestCase>

Promise