Class HttpJsonTestCasesStub (0.50.0)

public class HttpJsonTestCasesStub extends TestCasesStub

REST stub implementation for the TestCases service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > TestCasesStub > HttpJsonTestCasesStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonTestCasesStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonTestCasesStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonTestCasesStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonTestCasesStub
Exceptions
Type Description
IOException

create(TestCasesStubSettings settings)

public static final HttpJsonTestCasesStub create(TestCasesStubSettings settings)
Parameter
Name Description
settings TestCasesStubSettings
Returns
Type Description
HttpJsonTestCasesStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonTestCasesStub(TestCasesStubSettings settings, ClientContext clientContext)

protected HttpJsonTestCasesStub(TestCasesStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonTestCasesStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings TestCasesStubSettings
clientContext ClientContext

HttpJsonTestCasesStub(TestCasesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonTestCasesStub(TestCasesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonTestCasesStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings TestCasesStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

batchDeleteTestCasesCallable()

public UnaryCallable<BatchDeleteTestCasesRequest,Empty> batchDeleteTestCasesCallable()
Returns
Type Description
UnaryCallable<BatchDeleteTestCasesRequest,Empty>
Overrides

batchRunTestCasesCallable()

public UnaryCallable<BatchRunTestCasesRequest,Operation> batchRunTestCasesCallable()
Returns
Type Description
UnaryCallable<BatchRunTestCasesRequest,Operation>
Overrides

batchRunTestCasesOperationCallable()

public OperationCallable<BatchRunTestCasesRequest,BatchRunTestCasesResponse,BatchRunTestCasesMetadata> batchRunTestCasesOperationCallable()
Returns
Type Description
OperationCallable<BatchRunTestCasesRequest,BatchRunTestCasesResponse,BatchRunTestCasesMetadata>
Overrides

calculateCoverageCallable()

public UnaryCallable<CalculateCoverageRequest,CalculateCoverageResponse> calculateCoverageCallable()
Returns
Type Description
UnaryCallable<CalculateCoverageRequest,CalculateCoverageResponse>
Overrides

close()

public final void close()
Overrides

createTestCaseCallable()

public UnaryCallable<CreateTestCaseRequest,TestCase> createTestCaseCallable()
Returns
Type Description
UnaryCallable<CreateTestCaseRequest,TestCase>
Overrides

exportTestCasesCallable()

public UnaryCallable<ExportTestCasesRequest,Operation> exportTestCasesCallable()
Returns
Type Description
UnaryCallable<ExportTestCasesRequest,Operation>
Overrides

exportTestCasesOperationCallable()

public OperationCallable<ExportTestCasesRequest,ExportTestCasesResponse,ExportTestCasesMetadata> exportTestCasesOperationCallable()
Returns
Type Description
OperationCallable<ExportTestCasesRequest,ExportTestCasesResponse,ExportTestCasesMetadata>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getTestCaseCallable()

public UnaryCallable<GetTestCaseRequest,TestCase> getTestCaseCallable()
Returns
Type Description
UnaryCallable<GetTestCaseRequest,TestCase>
Overrides

getTestCaseResultCallable()

public UnaryCallable<GetTestCaseResultRequest,TestCaseResult> getTestCaseResultCallable()
Returns
Type Description
UnaryCallable<GetTestCaseResultRequest,TestCaseResult>
Overrides

importTestCasesCallable()

public UnaryCallable<ImportTestCasesRequest,Operation> importTestCasesCallable()
Returns
Type Description
UnaryCallable<ImportTestCasesRequest,Operation>
Overrides

importTestCasesOperationCallable()

public OperationCallable<ImportTestCasesRequest,ImportTestCasesResponse,ImportTestCasesMetadata> importTestCasesOperationCallable()
Returns
Type Description
OperationCallable<ImportTestCasesRequest,ImportTestCasesResponse,ImportTestCasesMetadata>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,TestCasesClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listTestCaseResultsCallable()

public UnaryCallable<ListTestCaseResultsRequest,ListTestCaseResultsResponse> listTestCaseResultsCallable()
Returns
Type Description
UnaryCallable<ListTestCaseResultsRequest,ListTestCaseResultsResponse>
Overrides

listTestCaseResultsPagedCallable()

public UnaryCallable<ListTestCaseResultsRequest,TestCasesClient.ListTestCaseResultsPagedResponse> listTestCaseResultsPagedCallable()
Returns
Type Description
UnaryCallable<ListTestCaseResultsRequest,ListTestCaseResultsPagedResponse>
Overrides

listTestCasesCallable()

public UnaryCallable<ListTestCasesRequest,ListTestCasesResponse> listTestCasesCallable()
Returns
Type Description
UnaryCallable<ListTestCasesRequest,ListTestCasesResponse>
Overrides

listTestCasesPagedCallable()

public UnaryCallable<ListTestCasesRequest,TestCasesClient.ListTestCasesPagedResponse> listTestCasesPagedCallable()
Returns
Type Description
UnaryCallable<ListTestCasesRequest,ListTestCasesPagedResponse>
Overrides

runTestCaseCallable()

public UnaryCallable<RunTestCaseRequest,Operation> runTestCaseCallable()
Returns
Type Description
UnaryCallable<RunTestCaseRequest,Operation>
Overrides

runTestCaseOperationCallable()

public OperationCallable<RunTestCaseRequest,RunTestCaseResponse,RunTestCaseMetadata> runTestCaseOperationCallable()
Returns
Type Description
OperationCallable<RunTestCaseRequest,RunTestCaseResponse,RunTestCaseMetadata>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateTestCaseCallable()

public UnaryCallable<UpdateTestCaseRequest,TestCase> updateTestCaseCallable()
Returns
Type Description
UnaryCallable<UpdateTestCaseRequest,TestCase>
Overrides