public static final class TestCasesGrpc.TestCasesStub extends io.grpc.stub.AbstractAsyncStub<TestCasesGrpc.TestCasesStub>
Service for managing [Test Cases][google.cloud.dialogflow.cx.v3.TestCase] and [Test Case Results][google.cloud.dialogflow.cx.v3.TestCaseResult].
| Modifier and Type | Method and Description |
|---|---|
void |
batchDeleteTestCases(BatchDeleteTestCasesRequest request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Batch deletes test cases.
|
void |
batchRunTestCases(BatchRunTestCasesRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Kicks off a batch run of test cases.
|
protected TestCasesGrpc.TestCasesStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
void |
calculateCoverage(CalculateCoverageRequest request,
io.grpc.stub.StreamObserver<CalculateCoverageResponse> responseObserver)
Calculates the test coverage for an agent.
|
void |
createTestCase(CreateTestCaseRequest request,
io.grpc.stub.StreamObserver<TestCase> responseObserver)
Creates a test case for the given agent.
|
void |
exportTestCases(ExportTestCasesRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Exports the test cases under the agent to a Cloud Storage bucket or a local
file.
|
void |
getTestCase(GetTestCaseRequest request,
io.grpc.stub.StreamObserver<TestCase> responseObserver)
Gets a test case.
|
void |
getTestCaseResult(GetTestCaseResultRequest request,
io.grpc.stub.StreamObserver<TestCaseResult> responseObserver)
Gets a test case result.
|
void |
importTestCases(ImportTestCasesRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Imports the test cases from a Cloud Storage bucket or a local file.
|
void |
listTestCaseResults(ListTestCaseResultsRequest request,
io.grpc.stub.StreamObserver<ListTestCaseResultsResponse> responseObserver)
Fetches the list of run results for the given test case.
|
void |
listTestCases(ListTestCasesRequest request,
io.grpc.stub.StreamObserver<ListTestCasesResponse> responseObserver)
Fetches a list of test cases for a given agent.
|
void |
runTestCase(RunTestCaseRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Kicks off a test case run.
|
void |
updateTestCase(UpdateTestCaseRequest request,
io.grpc.stub.StreamObserver<TestCase> responseObserver)
Updates the specified test case.
|
protected TestCasesGrpc.TestCasesStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<TestCasesGrpc.TestCasesStub>public void listTestCases(ListTestCasesRequest request, io.grpc.stub.StreamObserver<ListTestCasesResponse> responseObserver)
Fetches a list of test cases for a given agent.
public void batchDeleteTestCases(BatchDeleteTestCasesRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Batch deletes test cases.
public void getTestCase(GetTestCaseRequest request, io.grpc.stub.StreamObserver<TestCase> responseObserver)
Gets a test case.
public void createTestCase(CreateTestCaseRequest request, io.grpc.stub.StreamObserver<TestCase> responseObserver)
Creates a test case for the given agent.
public void updateTestCase(UpdateTestCaseRequest request, io.grpc.stub.StreamObserver<TestCase> responseObserver)
Updates the specified test case.
public void runTestCase(RunTestCaseRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Kicks off a test case run. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [RunTestCaseMetadata][google.cloud.dialogflow.cx.v3.RunTestCaseMetadata] - `response`: [RunTestCaseResponse][google.cloud.dialogflow.cx.v3.RunTestCaseResponse]
public void batchRunTestCases(BatchRunTestCasesRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Kicks off a batch run of test cases. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata] - `response`: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse]
public void calculateCoverage(CalculateCoverageRequest request, io.grpc.stub.StreamObserver<CalculateCoverageResponse> responseObserver)
Calculates the test coverage for an agent.
public void importTestCases(ImportTestCasesRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Imports the test cases from a Cloud Storage bucket or a local file. It always creates new test cases and won't overwrite any existing ones. The provided ID in the imported test case is neglected. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata] - `response`: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse]
public void exportTestCases(ExportTestCasesRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Exports the test cases under the agent to a Cloud Storage bucket or a local file. Filter can be applied to export a subset of test cases. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata] - `response`: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse]
public void listTestCaseResults(ListTestCaseResultsRequest request, io.grpc.stub.StreamObserver<ListTestCaseResultsResponse> responseObserver)
Fetches the list of run results for the given test case. A maximum of 100 results are kept for each test case.
public void getTestCaseResult(GetTestCaseResultRequest request, io.grpc.stub.StreamObserver<TestCaseResult> responseObserver)
Gets a test case result.
Copyright © 2023 Google LLC. All rights reserved.