Struct googapis::google::cloud::dialogflow::cx::v3::test_cases_client::TestCasesClient [−][src]
pub struct TestCasesClient<T> { /* fields omitted */ }
Expand description
Service for managing [Test Cases][google.cloud.dialogflow.cx.v3.TestCase] and [Test Case Results][google.cloud.dialogflow.cx.v3.TestCaseResult].
Implementations
impl<T> TestCasesClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> TestCasesClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> TestCasesClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn list_test_cases(
&mut self,
request: impl IntoRequest<ListTestCasesRequest>
) -> Result<Response<ListTestCasesResponse>, Status>
pub async fn list_test_cases(
&mut self,
request: impl IntoRequest<ListTestCasesRequest>
) -> Result<Response<ListTestCasesResponse>, Status>
Fetches a list of test cases for a given agent.
pub async fn batch_delete_test_cases(
&mut self,
request: impl IntoRequest<BatchDeleteTestCasesRequest>
) -> Result<Response<()>, Status>
pub async fn batch_delete_test_cases(
&mut self,
request: impl IntoRequest<BatchDeleteTestCasesRequest>
) -> Result<Response<()>, Status>
Batch deletes test cases.
pub async fn get_test_case(
&mut self,
request: impl IntoRequest<GetTestCaseRequest>
) -> Result<Response<TestCase>, Status>
pub async fn get_test_case(
&mut self,
request: impl IntoRequest<GetTestCaseRequest>
) -> Result<Response<TestCase>, Status>
Gets a test case.
pub async fn create_test_case(
&mut self,
request: impl IntoRequest<CreateTestCaseRequest>
) -> Result<Response<TestCase>, Status>
pub async fn create_test_case(
&mut self,
request: impl IntoRequest<CreateTestCaseRequest>
) -> Result<Response<TestCase>, Status>
Creates a test case for the given agent.
pub async fn update_test_case(
&mut self,
request: impl IntoRequest<UpdateTestCaseRequest>
) -> Result<Response<TestCase>, Status>
pub async fn update_test_case(
&mut self,
request: impl IntoRequest<UpdateTestCaseRequest>
) -> Result<Response<TestCase>, Status>
Updates the specified test case.
pub async fn run_test_case(
&mut self,
request: impl IntoRequest<RunTestCaseRequest>
) -> Result<Response<Operation>, Status>
pub async fn run_test_case(
&mut self,
request: impl IntoRequest<RunTestCaseRequest>
) -> Result<Response<Operation>, Status>
Kicks off a test case run.
This method is a 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]
pub async fn batch_run_test_cases(
&mut self,
request: impl IntoRequest<BatchRunTestCasesRequest>
) -> Result<Response<Operation>, Status>
pub async fn batch_run_test_cases(
&mut self,
request: impl IntoRequest<BatchRunTestCasesRequest>
) -> Result<Response<Operation>, Status>
Kicks off a batch run of test cases.
This method is a 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]
pub async fn calculate_coverage(
&mut self,
request: impl IntoRequest<CalculateCoverageRequest>
) -> Result<Response<CalculateCoverageResponse>, Status>
pub async fn calculate_coverage(
&mut self,
request: impl IntoRequest<CalculateCoverageRequest>
) -> Result<Response<CalculateCoverageResponse>, Status>
Calculates the test coverage for an agent.
pub async fn import_test_cases(
&mut self,
request: impl IntoRequest<ImportTestCasesRequest>
) -> Result<Response<Operation>, Status>
pub async fn import_test_cases(
&mut self,
request: impl IntoRequest<ImportTestCasesRequest>
) -> Result<Response<Operation>, Status>
Imports the test cases from a Cloud Storage bucket or a local file. It always creates new test cases and won’t overwite any existing ones. The provided ID in the imported test case is neglected.
This method is a 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]
pub async fn export_test_cases(
&mut self,
request: impl IntoRequest<ExportTestCasesRequest>
) -> Result<Response<Operation>, Status>
pub async fn export_test_cases(
&mut self,
request: impl IntoRequest<ExportTestCasesRequest>
) -> Result<Response<Operation>, Status>
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.
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]
pub async fn list_test_case_results(
&mut self,
request: impl IntoRequest<ListTestCaseResultsRequest>
) -> Result<Response<ListTestCaseResultsResponse>, Status>
pub async fn list_test_case_results(
&mut self,
request: impl IntoRequest<ListTestCaseResultsRequest>
) -> Result<Response<ListTestCaseResultsResponse>, Status>
Fetches a list of results for a given test case.
pub async fn get_test_case_result(
&mut self,
request: impl IntoRequest<GetTestCaseResultRequest>
) -> Result<Response<TestCaseResult>, Status>
pub async fn get_test_case_result(
&mut self,
request: impl IntoRequest<GetTestCaseResultRequest>
) -> Result<Response<TestCaseResult>, Status>
Gets a test case result.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for TestCasesClient<T> where
T: RefUnwindSafe,
impl<T> Send for TestCasesClient<T> where
T: Send,
impl<T> Sync for TestCasesClient<T> where
T: Sync,
impl<T> Unpin for TestCasesClient<T> where
T: Unpin,
impl<T> UnwindSafe for TestCasesClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more