Class protos.google.cloud.dialogflow.cx.v3beta1.TestCases (3.4.2)

Represents a TestCases

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.IBatchDeleteTestCasesRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.BatchDeleteTestCasesCallback): void;

Calls BatchDeleteTestCases.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest

BatchDeleteTestCasesRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.IBatchDeleteTestCasesRequest): Promise<google.protobuf.Empty>;

Calls BatchDeleteTestCases.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest

BatchDeleteTestCasesRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

batchRunTestCases(request, callback)

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

Calls BatchRunTestCases.

Parameters
NameDescription
request IBatchRunTestCasesRequest

BatchRunTestCasesRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.IBatchRunTestCasesRequest): Promise<google.longrunning.Operation>;

Calls BatchRunTestCases.

Parameter
NameDescription
request IBatchRunTestCasesRequest

BatchRunTestCasesRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

calculateCoverage(request, callback)

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

Calls CalculateCoverage.

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

CalculateCoverageRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.ICalculateCoverageRequest): Promise<google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse>;

Calls CalculateCoverage.

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

CalculateCoverageRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3beta1.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.v3beta1.ICreateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3beta1.TestCases.CreateTestCaseCallback): void;

Calls CreateTestCase.

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

CreateTestCaseRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.ICreateTestCaseRequest): Promise<google.cloud.dialogflow.cx.v3beta1.TestCase>;

Calls CreateTestCase.

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

CreateTestCaseRequest message or plain object

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

Promise

exportTestCases(request, callback)

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

Calls ExportTestCases.

Parameters
NameDescription
request IExportTestCasesRequest

ExportTestCasesRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.IExportTestCasesRequest): Promise<google.longrunning.Operation>;

Calls ExportTestCases.

Parameter
NameDescription
request IExportTestCasesRequest

ExportTestCasesRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getTestCase(request, callback)

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

Calls GetTestCase.

Parameters
NameDescription
request IGetTestCaseRequest

GetTestCaseRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.IGetTestCaseRequest): Promise<google.cloud.dialogflow.cx.v3beta1.TestCase>;

Calls GetTestCase.

Parameter
NameDescription
request IGetTestCaseRequest

GetTestCaseRequest message or plain object

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

Promise

getTestCaseResult(request, callback)

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

Calls GetTestCaseResult.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest

GetTestCaseResultRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.IGetTestCaseResultRequest): Promise<google.cloud.dialogflow.cx.v3beta1.TestCaseResult>;

Calls GetTestCaseResult.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest

GetTestCaseResultRequest message or plain object

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

Promise

importTestCases(request, callback)

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

Calls ImportTestCases.

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

ImportTestCasesRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.IImportTestCasesRequest): Promise<google.longrunning.Operation>;

Calls ImportTestCases.

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

ImportTestCasesRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

listTestCaseResults(request, callback)

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

Calls ListTestCaseResults.

Parameters
NameDescription
request IListTestCaseResultsRequest

ListTestCaseResultsRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.IListTestCaseResultsRequest): Promise<google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse>;

Calls ListTestCaseResults.

Parameter
NameDescription
request IListTestCaseResultsRequest

ListTestCaseResultsRequest message or plain object

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

Promise

listTestCases(request, callback)

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

Calls ListTestCases.

Parameters
NameDescription
request IListTestCasesRequest

ListTestCasesRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.IListTestCasesRequest): Promise<google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse>;

Calls ListTestCases.

Parameter
NameDescription
request IListTestCasesRequest

ListTestCasesRequest message or plain object

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

Promise

runTestCase(request, callback)

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

Calls RunTestCase.

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

RunTestCaseRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.IRunTestCaseRequest): Promise<google.longrunning.Operation>;

Calls RunTestCase.

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

RunTestCaseRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

updateTestCase(request, callback)

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

Calls UpdateTestCase.

Parameters
NameDescription
request IUpdateTestCaseRequest

UpdateTestCaseRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.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.v3beta1.IUpdateTestCaseRequest): Promise<google.cloud.dialogflow.cx.v3beta1.TestCase>;

Calls UpdateTestCase.

Parameter
NameDescription
request IUpdateTestCaseRequest

UpdateTestCaseRequest message or plain object

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

Promise