Constructor
new TestCases(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new TestCases service.
Parameters:
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
| rpcImpl | $protobuf.RPCImpl | RPC implementation | ||
| requestDelimited | boolean | <optional> | false | Whether requests are length-delimited | 
| responseDelimited | boolean | <optional> | false | Whether responses are length-delimited | 
Extends
- $protobuf.rpc.Service
Methods
batchDeleteTestCases(request, callback) → {undefined}
Calls BatchDeleteTestCases.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3.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:
| Type | Description | 
|---|---|
| undefined | 
batchDeleteTestCases(request) → {Promise.<google.protobuf.Empty>}
Calls BatchDeleteTestCases.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3.IBatchDeleteTestCasesRequest | BatchDeleteTestCasesRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.protobuf.Empty> | Promise | 
batchRunTestCases(request, callback) → {undefined}
Calls BatchRunTestCases.
Parameters:
| Name | Type | Description | 
|---|---|---|
| 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:
| Type | Description | 
|---|---|
| undefined | 
batchRunTestCases(request) → {Promise.<google.longrunning.Operation>}
Calls BatchRunTestCases.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3.IBatchRunTestCasesRequest | BatchRunTestCasesRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.longrunning.Operation> | Promise | 
calculateCoverage(request, callback) → {undefined}
Calls CalculateCoverage.
Parameters:
| Name | Type | Description | 
|---|---|---|
| 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:
| Type | Description | 
|---|---|
| undefined | 
calculateCoverage(request) → {Promise.<google.cloud.dialogflow.cx.v3.CalculateCoverageResponse>}
Calls CalculateCoverage.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3.ICalculateCoverageRequest | CalculateCoverageRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.cloud.dialogflow.cx.v3.CalculateCoverageResponse> | Promise | 
createTestCase(request, callback) → {undefined}
Calls CreateTestCase.
Parameters:
| Name | Type | Description | 
|---|---|---|
| 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:
| Type | Description | 
|---|---|
| undefined | 
createTestCase(request) → {Promise.<google.cloud.dialogflow.cx.v3.TestCase>}
Calls CreateTestCase.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3.ICreateTestCaseRequest | CreateTestCaseRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.cloud.dialogflow.cx.v3.TestCase> | Promise | 
exportTestCases(request, callback) → {undefined}
Calls ExportTestCases.
Parameters:
| Name | Type | Description | 
|---|---|---|
| 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:
| Type | Description | 
|---|---|
| undefined | 
exportTestCases(request) → {Promise.<google.longrunning.Operation>}
Calls ExportTestCases.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3.IExportTestCasesRequest | ExportTestCasesRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.longrunning.Operation> | Promise | 
getTestCase(request, callback) → {undefined}
Calls GetTestCase.
Parameters:
| Name | Type | Description | 
|---|---|---|
| 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:
| Type | Description | 
|---|---|
| undefined | 
getTestCase(request) → {Promise.<google.cloud.dialogflow.cx.v3.TestCase>}
Calls GetTestCase.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3.IGetTestCaseRequest | GetTestCaseRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.cloud.dialogflow.cx.v3.TestCase> | Promise | 
getTestCaseResult(request, callback) → {undefined}
Calls GetTestCaseResult.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3.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:
| Type | Description | 
|---|---|
| undefined | 
getTestCaseResult(request) → {Promise.<google.cloud.dialogflow.cx.v3.TestCaseResult>}
Calls GetTestCaseResult.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3.IGetTestCaseResultRequest | GetTestCaseResultRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.cloud.dialogflow.cx.v3.TestCaseResult> | Promise | 
importTestCases(request, callback) → {undefined}
Calls ImportTestCases.
Parameters:
| Name | Type | Description | 
|---|---|---|
| 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:
| Type | Description | 
|---|---|
| undefined | 
importTestCases(request) → {Promise.<google.longrunning.Operation>}
Calls ImportTestCases.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3.IImportTestCasesRequest | ImportTestCasesRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.longrunning.Operation> | Promise | 
listTestCaseResults(request, callback) → {undefined}
Calls ListTestCaseResults.
Parameters:
| Name | Type | Description | 
|---|---|---|
| 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:
| Type | Description | 
|---|---|
| undefined | 
listTestCaseResults(request) → {Promise.<google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse>}
Calls ListTestCaseResults.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3.IListTestCaseResultsRequest | ListTestCaseResultsRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse> | Promise | 
listTestCases(request, callback) → {undefined}
Calls ListTestCases.
Parameters:
| Name | Type | Description | 
|---|---|---|
| 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:
| Type | Description | 
|---|---|
| undefined | 
listTestCases(request) → {Promise.<google.cloud.dialogflow.cx.v3.ListTestCasesResponse>}
Calls ListTestCases.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3.IListTestCasesRequest | ListTestCasesRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.cloud.dialogflow.cx.v3.ListTestCasesResponse> | Promise | 
runTestCase(request, callback) → {undefined}
Calls RunTestCase.
Parameters:
| Name | Type | Description | 
|---|---|---|
| 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:
| Type | Description | 
|---|---|
| undefined | 
runTestCase(request) → {Promise.<google.longrunning.Operation>}
Calls RunTestCase.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3.IRunTestCaseRequest | RunTestCaseRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.longrunning.Operation> | Promise | 
updateTestCase(request, callback) → {undefined}
Calls UpdateTestCase.
Parameters:
| Name | Type | Description | 
|---|---|---|
| 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:
| Type | Description | 
|---|---|
| undefined | 
updateTestCase(request) → {Promise.<google.cloud.dialogflow.cx.v3.TestCase>}
Calls UpdateTestCase.
Parameters:
| Name | Type | Description | 
|---|---|---|
| request | google.cloud.dialogflow.cx.v3.IUpdateTestCaseRequest | UpdateTestCaseRequest message or plain object | 
Returns:
| Type | Description | 
|---|---|
| Promise.<google.cloud.dialogflow.cx.v3.TestCase> | Promise | 
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {TestCases}
Creates new TestCases service using the specified rpc implementation.
Parameters:
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
| rpcImpl | $protobuf.RPCImpl | RPC implementation | ||
| requestDelimited | boolean | <optional> | false | Whether requests are length-delimited | 
| responseDelimited | boolean | <optional> | false | Whether responses are length-delimited | 
Returns:
| Type | Description | 
|---|---|
| TestCases | RPC service. Useful where requests and/or responses are streamed. | 
Type Definitions
BatchDeleteTestCasesCallback(error, responseopt)
Callback as used by batchDeleteTestCases.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.protobuf.Empty | <optional> | Empty | 
BatchRunTestCasesCallback(error, responseopt)
Callback as used by batchRunTestCases.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.longrunning.Operation | <optional> | Operation | 
CalculateCoverageCallback(error, responseopt)
Callback as used by calculateCoverage.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.cloud.dialogflow.cx.v3.CalculateCoverageResponse | <optional> | CalculateCoverageResponse | 
CreateTestCaseCallback(error, responseopt)
Callback as used by createTestCase.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.cloud.dialogflow.cx.v3.TestCase | <optional> | TestCase | 
ExportTestCasesCallback(error, responseopt)
Callback as used by exportTestCases.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.longrunning.Operation | <optional> | Operation | 
GetTestCaseCallback(error, responseopt)
Callback as used by getTestCase.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.cloud.dialogflow.cx.v3.TestCase | <optional> | TestCase | 
GetTestCaseResultCallback(error, responseopt)
Callback as used by getTestCaseResult.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.cloud.dialogflow.cx.v3.TestCaseResult | <optional> | TestCaseResult | 
ImportTestCasesCallback(error, responseopt)
Callback as used by importTestCases.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.longrunning.Operation | <optional> | Operation | 
ListTestCaseResultsCallback(error, responseopt)
Callback as used by listTestCaseResults.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse | <optional> | ListTestCaseResultsResponse | 
ListTestCasesCallback(error, responseopt)
Callback as used by listTestCases.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.cloud.dialogflow.cx.v3.ListTestCasesResponse | <optional> | ListTestCasesResponse | 
RunTestCaseCallback(error, responseopt)
Callback as used by runTestCase.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.longrunning.Operation | <optional> | Operation | 
UpdateTestCaseCallback(error, responseopt)
Callback as used by updateTestCase.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| error | Error | null | Error, if any | |
| response | google.cloud.dialogflow.cx.v3.TestCase | <optional> | TestCase |