Class HttpJsonTestCasesStub (0.14.2)

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
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonTestCasesStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonTestCasesStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonTestCasesStub
Exceptions
TypeDescription
IOException

create(TestCasesStubSettings settings)

public static final HttpJsonTestCasesStub create(TestCasesStubSettings settings)
Parameter
NameDescription
settingsTestCasesStubSettings
Returns
TypeDescription
HttpJsonTestCasesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsTestCasesStubSettings
clientContextClientContext

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
NameDescription
settingsTestCasesStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

batchDeleteTestCasesCallable()

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

batchRunTestCasesCallable()

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

batchRunTestCasesOperationCallable()

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

calculateCoverageCallable()

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

close()

public final void close()
Overrides

createTestCaseCallable()

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

exportTestCasesCallable()

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

exportTestCasesOperationCallable()

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getLocationCallable()

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

getTestCaseCallable()

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

getTestCaseResultCallable()

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

importTestCasesCallable()

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

importTestCasesOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listLocationsCallable()

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

listLocationsPagedCallable()

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

listTestCaseResultsCallable()

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

listTestCaseResultsPagedCallable()

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

listTestCasesCallable()

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

listTestCasesPagedCallable()

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

runTestCaseCallable()

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

runTestCaseOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateTestCaseCallable()

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