Represents a TestCases
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3beta1.TestCasesPackage
@google-cloud/dialogflow-cxConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new TestCases service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
batchDeleteTestCases(request)
public batchDeleteTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest): Promise<google.protobuf.Empty>;
Calls BatchDeleteTestCases.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.IBatchDeleteTestCasesRequest
BatchDeleteTestCasesRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
batchRunTestCases(request)
public batchRunTestCases(request: google.cloud.dialogflow.cx.v3beta1.IBatchRunTestCasesRequest): Promise<google.longrunning.Operation>;
Calls BatchRunTestCases.
Parameter | |
---|---|
Name | Description |
request |
IBatchRunTestCasesRequest
BatchRunTestCasesRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
calculateCoverage(request)
public calculateCoverage(request: google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest): Promise<google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse>;
Calls CalculateCoverage.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.ICalculateCoverageRequest
CalculateCoverageRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
createTestCase(request)
public createTestCase(request: google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest): Promise<google.cloud.dialogflow.cx.v3beta1.TestCase>;
Calls CreateTestCase.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.ICreateTestCaseRequest
CreateTestCaseRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
exportTestCases(request)
public exportTestCases(request: google.cloud.dialogflow.cx.v3beta1.IExportTestCasesRequest): Promise<google.longrunning.Operation>;
Calls ExportTestCases.
Parameter | |
---|---|
Name | Description |
request |
IExportTestCasesRequest
ExportTestCasesRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
getTestCase(request)
public getTestCase(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseRequest): Promise<google.cloud.dialogflow.cx.v3beta1.TestCase>;
Calls GetTestCase.
Parameter | |
---|---|
Name | Description |
request |
IGetTestCaseRequest
GetTestCaseRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
getTestCaseResult(request)
public getTestCaseResult(request: google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest): Promise<google.cloud.dialogflow.cx.v3beta1.TestCaseResult>;
Calls GetTestCaseResult.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.IGetTestCaseResultRequest
GetTestCaseResultRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
importTestCases(request)
public importTestCases(request: google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest): Promise<google.longrunning.Operation>;
Calls ImportTestCases.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.IImportTestCasesRequest
ImportTestCasesRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
listTestCaseResults(request)
public listTestCaseResults(request: google.cloud.dialogflow.cx.v3beta1.IListTestCaseResultsRequest): Promise<google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse>;
Calls ListTestCaseResults.
Parameter | |
---|---|
Name | Description |
request |
IListTestCaseResultsRequest
ListTestCaseResultsRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
listTestCases(request)
public listTestCases(request: google.cloud.dialogflow.cx.v3beta1.IListTestCasesRequest): Promise<google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse>;
Calls ListTestCases.
Parameter | |
---|---|
Name | Description |
request |
IListTestCasesRequest
ListTestCasesRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
runTestCase(request)
public runTestCase(request: google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest): Promise<google.longrunning.Operation>;
Calls RunTestCase.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.IRunTestCaseRequest
RunTestCaseRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
updateTestCase(request)
public updateTestCase(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTestCaseRequest): Promise<google.cloud.dialogflow.cx.v3beta1.TestCase>;
Calls UpdateTestCase.
Parameter | |
---|---|
Name | Description |
request |
IUpdateTestCaseRequest
UpdateTestCaseRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.TestCase> | Promise |