Class TestCases.TestCasesClient (1.1.0)

public class TestCasesClient : ClientBase<TestCases.TestCasesClient>

Client for TestCases

Inheritance

Object > ClientBase > ClientBase<TestCases.TestCasesClient> > TestCases.TestCasesClient

Namespace

Google.Cloud.Dialogflow.Cx.V3

Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

Constructors

TestCasesClient()

protected TestCasesClient()

Protected parameterless constructor to allow creation of test doubles.

TestCasesClient(CallInvoker)

public TestCasesClient(CallInvoker callInvoker)

Creates a new client for TestCases that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

TestCasesClient(ChannelBase)

public TestCasesClient(ChannelBase channel)

Creates a new client for TestCases

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

TestCasesClient(ClientBase.ClientBaseConfiguration)

protected TestCasesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

BatchDeleteTestCases(BatchDeleteTestCasesRequest, CallOptions)

public virtual Empty BatchDeleteTestCases(BatchDeleteTestCasesRequest request, CallOptions options)

Batch deletes test cases.

Parameters
NameDescription
requestBatchDeleteTestCasesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

BatchDeleteTestCases(BatchDeleteTestCasesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Empty BatchDeleteTestCases(BatchDeleteTestCasesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Batch deletes test cases.

Parameters
NameDescription
requestBatchDeleteTestCasesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Empty

The response received from the server.

BatchDeleteTestCasesAsync(BatchDeleteTestCasesRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> BatchDeleteTestCasesAsync(BatchDeleteTestCasesRequest request, CallOptions options)

Batch deletes test cases.

Parameters
NameDescription
requestBatchDeleteTestCasesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

BatchDeleteTestCasesAsync(BatchDeleteTestCasesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Empty> BatchDeleteTestCasesAsync(BatchDeleteTestCasesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Batch deletes test cases.

Parameters
NameDescription
requestBatchDeleteTestCasesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

BatchRunTestCases(BatchRunTestCasesRequest, CallOptions)

public virtual Operation BatchRunTestCases(BatchRunTestCasesRequest request, CallOptions options)

Kicks off a batch run of test cases.

Parameters
NameDescription
requestBatchRunTestCasesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Google.LongRunning.Operation

The response received from the server.

BatchRunTestCases(BatchRunTestCasesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation BatchRunTestCases(BatchRunTestCasesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Kicks off a batch run of test cases.

Parameters
NameDescription
requestBatchRunTestCasesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Google.LongRunning.Operation

The response received from the server.

BatchRunTestCasesAsync(BatchRunTestCasesRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> BatchRunTestCasesAsync(BatchRunTestCasesRequest request, CallOptions options)

Kicks off a batch run of test cases.

Parameters
NameDescription
requestBatchRunTestCasesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Google.LongRunning.Operation>

The call object.

BatchRunTestCasesAsync(BatchRunTestCasesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> BatchRunTestCasesAsync(BatchRunTestCasesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Kicks off a batch run of test cases.

Parameters
NameDescription
requestBatchRunTestCasesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Google.LongRunning.Operation>

The call object.

CalculateCoverage(CalculateCoverageRequest, CallOptions)

public virtual CalculateCoverageResponse CalculateCoverage(CalculateCoverageRequest request, CallOptions options)

Calculates the test coverage for an agent.

Parameters
NameDescription
requestCalculateCoverageRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
CalculateCoverageResponse

The response received from the server.

CalculateCoverage(CalculateCoverageRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual CalculateCoverageResponse CalculateCoverage(CalculateCoverageRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Calculates the test coverage for an agent.

Parameters
NameDescription
requestCalculateCoverageRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
CalculateCoverageResponse

The response received from the server.

CalculateCoverageAsync(CalculateCoverageRequest, CallOptions)

public virtual AsyncUnaryCall<CalculateCoverageResponse> CalculateCoverageAsync(CalculateCoverageRequest request, CallOptions options)

Calculates the test coverage for an agent.

Parameters
NameDescription
requestCalculateCoverageRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<CalculateCoverageResponse>

The call object.

CalculateCoverageAsync(CalculateCoverageRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<CalculateCoverageResponse> CalculateCoverageAsync(CalculateCoverageRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Calculates the test coverage for an agent.

Parameters
NameDescription
requestCalculateCoverageRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<CalculateCoverageResponse>

The call object.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of Google.LongRunning.Operations.OperationsClient using the same call invoker as this client.

Returns
TypeDescription
Google.LongRunning.Operations.OperationsClient

A new Operations client for the same target as this client.

CreateTestCase(CreateTestCaseRequest, CallOptions)

public virtual TestCase CreateTestCase(CreateTestCaseRequest request, CallOptions options)

Creates a test case for the given agent.

Parameters
NameDescription
requestCreateTestCaseRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
TestCase

The response received from the server.

CreateTestCase(CreateTestCaseRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual TestCase CreateTestCase(CreateTestCaseRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Creates a test case for the given agent.

Parameters
NameDescription
requestCreateTestCaseRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
TestCase

The response received from the server.

CreateTestCaseAsync(CreateTestCaseRequest, CallOptions)

public virtual AsyncUnaryCall<TestCase> CreateTestCaseAsync(CreateTestCaseRequest request, CallOptions options)

Creates a test case for the given agent.

Parameters
NameDescription
requestCreateTestCaseRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<TestCase>

The call object.

CreateTestCaseAsync(CreateTestCaseRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<TestCase> CreateTestCaseAsync(CreateTestCaseRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Creates a test case for the given agent.

Parameters
NameDescription
requestCreateTestCaseRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<TestCase>

The call object.

ExportTestCases(ExportTestCasesRequest, CallOptions)

public virtual Operation ExportTestCases(ExportTestCasesRequest request, CallOptions options)

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.

Parameters
NameDescription
requestExportTestCasesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Google.LongRunning.Operation

The response received from the server.

ExportTestCases(ExportTestCasesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation ExportTestCases(ExportTestCasesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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.

Parameters
NameDescription
requestExportTestCasesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Google.LongRunning.Operation

The response received from the server.

ExportTestCasesAsync(ExportTestCasesRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> ExportTestCasesAsync(ExportTestCasesRequest request, CallOptions options)

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.

Parameters
NameDescription
requestExportTestCasesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Google.LongRunning.Operation>

The call object.

ExportTestCasesAsync(ExportTestCasesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> ExportTestCasesAsync(ExportTestCasesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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.

Parameters
NameDescription
requestExportTestCasesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Google.LongRunning.Operation>

The call object.

GetTestCase(GetTestCaseRequest, CallOptions)

public virtual TestCase GetTestCase(GetTestCaseRequest request, CallOptions options)

Gets a test case.

Parameters
NameDescription
requestGetTestCaseRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
TestCase

The response received from the server.

GetTestCase(GetTestCaseRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual TestCase GetTestCase(GetTestCaseRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Gets a test case.

Parameters
NameDescription
requestGetTestCaseRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
TestCase

The response received from the server.

GetTestCaseAsync(GetTestCaseRequest, CallOptions)

public virtual AsyncUnaryCall<TestCase> GetTestCaseAsync(GetTestCaseRequest request, CallOptions options)

Gets a test case.

Parameters
NameDescription
requestGetTestCaseRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<TestCase>

The call object.

GetTestCaseAsync(GetTestCaseRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<TestCase> GetTestCaseAsync(GetTestCaseRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Gets a test case.

Parameters
NameDescription
requestGetTestCaseRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<TestCase>

The call object.

GetTestCaseResult(GetTestCaseResultRequest, CallOptions)

public virtual TestCaseResult GetTestCaseResult(GetTestCaseResultRequest request, CallOptions options)

Gets a test case result.

Parameters
NameDescription
requestGetTestCaseResultRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
TestCaseResult

The response received from the server.

GetTestCaseResult(GetTestCaseResultRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual TestCaseResult GetTestCaseResult(GetTestCaseResultRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Gets a test case result.

Parameters
NameDescription
requestGetTestCaseResultRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
TestCaseResult

The response received from the server.

GetTestCaseResultAsync(GetTestCaseResultRequest, CallOptions)

public virtual AsyncUnaryCall<TestCaseResult> GetTestCaseResultAsync(GetTestCaseResultRequest request, CallOptions options)

Gets a test case result.

Parameters
NameDescription
requestGetTestCaseResultRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<TestCaseResult>

The call object.

GetTestCaseResultAsync(GetTestCaseResultRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<TestCaseResult> GetTestCaseResultAsync(GetTestCaseResultRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Gets a test case result.

Parameters
NameDescription
requestGetTestCaseResultRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<TestCaseResult>

The call object.

ImportTestCases(ImportTestCasesRequest, CallOptions)

public virtual Operation ImportTestCases(ImportTestCasesRequest request, CallOptions options)

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.

Parameters
NameDescription
requestImportTestCasesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Google.LongRunning.Operation

The response received from the server.

ImportTestCases(ImportTestCasesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation ImportTestCases(ImportTestCasesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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.

Parameters
NameDescription
requestImportTestCasesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Google.LongRunning.Operation

The response received from the server.

ImportTestCasesAsync(ImportTestCasesRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> ImportTestCasesAsync(ImportTestCasesRequest request, CallOptions options)

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.

Parameters
NameDescription
requestImportTestCasesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Google.LongRunning.Operation>

The call object.

ImportTestCasesAsync(ImportTestCasesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> ImportTestCasesAsync(ImportTestCasesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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.

Parameters
NameDescription
requestImportTestCasesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Google.LongRunning.Operation>

The call object.

ListTestCaseResults(ListTestCaseResultsRequest, CallOptions)

public virtual ListTestCaseResultsResponse ListTestCaseResults(ListTestCaseResultsRequest request, CallOptions options)

Fetches a list of results for a given test case.

Parameters
NameDescription
requestListTestCaseResultsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListTestCaseResultsResponse

The response received from the server.

ListTestCaseResults(ListTestCaseResultsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ListTestCaseResultsResponse ListTestCaseResults(ListTestCaseResultsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Fetches a list of results for a given test case.

Parameters
NameDescription
requestListTestCaseResultsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListTestCaseResultsResponse

The response received from the server.

ListTestCaseResultsAsync(ListTestCaseResultsRequest, CallOptions)

public virtual AsyncUnaryCall<ListTestCaseResultsResponse> ListTestCaseResultsAsync(ListTestCaseResultsRequest request, CallOptions options)

Fetches a list of results for a given test case.

Parameters
NameDescription
requestListTestCaseResultsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ListTestCaseResultsResponse>

The call object.

ListTestCaseResultsAsync(ListTestCaseResultsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ListTestCaseResultsResponse> ListTestCaseResultsAsync(ListTestCaseResultsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Fetches a list of results for a given test case.

Parameters
NameDescription
requestListTestCaseResultsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<ListTestCaseResultsResponse>

The call object.

ListTestCases(ListTestCasesRequest, CallOptions)

public virtual ListTestCasesResponse ListTestCases(ListTestCasesRequest request, CallOptions options)

Fetches a list of test cases for a given agent.

Parameters
NameDescription
requestListTestCasesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListTestCasesResponse

The response received from the server.

ListTestCases(ListTestCasesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ListTestCasesResponse ListTestCases(ListTestCasesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Fetches a list of test cases for a given agent.

Parameters
NameDescription
requestListTestCasesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListTestCasesResponse

The response received from the server.

ListTestCasesAsync(ListTestCasesRequest, CallOptions)

public virtual AsyncUnaryCall<ListTestCasesResponse> ListTestCasesAsync(ListTestCasesRequest request, CallOptions options)

Fetches a list of test cases for a given agent.

Parameters
NameDescription
requestListTestCasesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ListTestCasesResponse>

The call object.

ListTestCasesAsync(ListTestCasesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ListTestCasesResponse> ListTestCasesAsync(ListTestCasesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Fetches a list of test cases for a given agent.

Parameters
NameDescription
requestListTestCasesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<ListTestCasesResponse>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override TestCases.TestCasesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
TestCases.TestCasesClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Dialogflow.Cx.V3.TestCases.TestCasesClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

RunTestCase(RunTestCaseRequest, CallOptions)

public virtual Operation RunTestCase(RunTestCaseRequest request, CallOptions options)

Kicks off a test case run.

Parameters
NameDescription
requestRunTestCaseRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Google.LongRunning.Operation

The response received from the server.

RunTestCase(RunTestCaseRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation RunTestCase(RunTestCaseRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Kicks off a test case run.

Parameters
NameDescription
requestRunTestCaseRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Google.LongRunning.Operation

The response received from the server.

RunTestCaseAsync(RunTestCaseRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> RunTestCaseAsync(RunTestCaseRequest request, CallOptions options)

Kicks off a test case run.

Parameters
NameDescription
requestRunTestCaseRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Google.LongRunning.Operation>

The call object.

RunTestCaseAsync(RunTestCaseRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> RunTestCaseAsync(RunTestCaseRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Kicks off a test case run.

Parameters
NameDescription
requestRunTestCaseRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Google.LongRunning.Operation>

The call object.

UpdateTestCase(UpdateTestCaseRequest, CallOptions)

public virtual TestCase UpdateTestCase(UpdateTestCaseRequest request, CallOptions options)

Updates the specified test case.

Parameters
NameDescription
requestUpdateTestCaseRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
TestCase

The response received from the server.

UpdateTestCase(UpdateTestCaseRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual TestCase UpdateTestCase(UpdateTestCaseRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Updates the specified test case.

Parameters
NameDescription
requestUpdateTestCaseRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
TestCase

The response received from the server.

UpdateTestCaseAsync(UpdateTestCaseRequest, CallOptions)

public virtual AsyncUnaryCall<TestCase> UpdateTestCaseAsync(UpdateTestCaseRequest request, CallOptions options)

Updates the specified test case.

Parameters
NameDescription
requestUpdateTestCaseRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<TestCase>

The call object.

UpdateTestCaseAsync(UpdateTestCaseRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<TestCase> UpdateTestCaseAsync(UpdateTestCaseRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Updates the specified test case.

Parameters
NameDescription
requestUpdateTestCaseRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<TestCase>

The call object.