Represents a TestCases
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3.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.v3.IBatchDeleteTestCasesRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCasesCallback): void;Calls BatchDeleteTestCases.
| Parameters | |
|---|---|
| Name | Description |
request |
IBatchDeleteTestCasesRequest
BatchDeleteTestCasesRequest message or plain object |
callback |
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.v3.IBatchDeleteTestCasesRequest): Promise<google.protobuf.Empty>;Calls BatchDeleteTestCases.
| Parameter | |
|---|---|
| Name | Description |
request |
IBatchDeleteTestCasesRequest
BatchDeleteTestCasesRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IBatchRunTestCasesRequest
BatchRunTestCasesRequest message or plain object |
callback |
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.v3.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.v3.ICalculateCoverageRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverageCallback): void;Calls CalculateCoverage.
| Parameters | |
|---|---|
| Name | Description |
request |
ICalculateCoverageRequest
CalculateCoverageRequest message or plain object |
callback |
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.v3.ICalculateCoverageRequest): Promise<google.cloud.dialogflow.cx.v3.CalculateCoverageResponse>;Calls CalculateCoverage.
| Parameter | |
|---|---|
| Name | Description |
request |
ICalculateCoverageRequest
CalculateCoverageRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| 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.v3.ICreateTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.CreateTestCaseCallback): void;Calls CreateTestCase.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateTestCaseRequest
CreateTestCaseRequest message or plain object |
callback |
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.v3.ICreateTestCaseRequest): Promise<google.cloud.dialogflow.cx.v3.TestCase>;Calls CreateTestCase.
| Parameter | |
|---|---|
| Name | Description |
request |
ICreateTestCaseRequest
CreateTestCaseRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IExportTestCasesRequest
ExportTestCasesRequest message or plain object |
callback |
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.v3.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.v3.IGetTestCaseRequest, callback: google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseCallback): void;Calls GetTestCase.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetTestCaseRequest
GetTestCaseRequest message or plain object |
callback |
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.v3.IGetTestCaseRequest): Promise<google.cloud.dialogflow.cx.v3.TestCase>;Calls GetTestCase.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetTestCaseRequest
GetTestCaseRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IGetTestCaseResultRequest
GetTestCaseResultRequest message or plain object |
callback |
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.v3.IGetTestCaseResultRequest): Promise<google.cloud.dialogflow.cx.v3.TestCaseResult>;Calls GetTestCaseResult.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetTestCaseResultRequest
GetTestCaseResultRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IImportTestCasesRequest
ImportTestCasesRequest message or plain object |
callback |
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.v3.IImportTestCasesRequest): Promise<google.longrunning.Operation>;Calls ImportTestCases.
| Parameter | |
|---|---|
| Name | Description |
request |
IImportTestCasesRequest
ImportTestCasesRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IListTestCaseResultsRequest
ListTestCaseResultsRequest message or plain object |
callback |
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.v3.IListTestCaseResultsRequest): Promise<google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse>;Calls ListTestCaseResults.
| Parameter | |
|---|---|
| Name | Description |
request |
IListTestCaseResultsRequest
ListTestCaseResultsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IListTestCasesRequest
ListTestCasesRequest message or plain object |
callback |
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.v3.IListTestCasesRequest): Promise<google.cloud.dialogflow.cx.v3.ListTestCasesResponse>;Calls ListTestCases.
| Parameter | |
|---|---|
| Name | Description |
request |
IListTestCasesRequest
ListTestCasesRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IRunTestCaseRequest
RunTestCaseRequest message or plain object |
callback |
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.v3.IRunTestCaseRequest): Promise<google.longrunning.Operation>;Calls RunTestCase.
| Parameter | |
|---|---|
| Name | Description |
request |
IRunTestCaseRequest
RunTestCaseRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IUpdateTestCaseRequest
UpdateTestCaseRequest message or plain object |
callback |
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.v3.IUpdateTestCaseRequest): Promise<google.cloud.dialogflow.cx.v3.TestCase>;Calls UpdateTestCase.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateTestCaseRequest
UpdateTestCaseRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.dialogflow.cx.v3.TestCase> |
Promise |