Class GrpcTestCasesStub (0.31.0)

public class GrpcTestCasesStub extends TestCasesStub

gRPC stub implementation for the TestCases service API.

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

Inheritance

java.lang.Object > TestCasesStub > GrpcTestCasesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(TestCasesStubSettings settings)

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

Constructors

GrpcTestCasesStub(TestCasesStubSettings settings, ClientContext clientContext)

protected GrpcTestCasesStub(TestCasesStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcTestCasesStub, 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

GrpcTestCasesStub(TestCasesStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcTestCasesStub(TestCasesStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcTestCasesStub, 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 GrpcStubCallableFactory

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

getLocationCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
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