Class GrpcJobServiceStub (2.22.0)

public class GrpcJobServiceStub extends JobServiceStub

gRPC stub implementation for the JobService service API.

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

Inheritance

java.lang.Object > JobServiceStub > GrpcJobServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcJobServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcJobServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcJobServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcJobServiceStub
Exceptions
TypeDescription
IOException

create(JobServiceStubSettings settings)

public static final GrpcJobServiceStub create(JobServiceStubSettings settings)
Parameter
NameDescription
settingsJobServiceStubSettings
Returns
TypeDescription
GrpcJobServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcJobServiceStub(JobServiceStubSettings settings, ClientContext clientContext)

protected GrpcJobServiceStub(JobServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcJobServiceStub, 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
settingsJobServiceStubSettings
clientContextClientContext

GrpcJobServiceStub(JobServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcJobServiceStub(JobServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcJobServiceStub, 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
settingsJobServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

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

batchCreateJobsCallable()

public UnaryCallable<BatchCreateJobsRequest,Operation> batchCreateJobsCallable()
Returns
TypeDescription
UnaryCallable<BatchCreateJobsRequest,Operation>
Overrides

batchCreateJobsOperationCallable()

public OperationCallable<BatchCreateJobsRequest,BatchCreateJobsResponse,BatchOperationMetadata> batchCreateJobsOperationCallable()
Returns
TypeDescription
OperationCallable<BatchCreateJobsRequest,BatchCreateJobsResponse,BatchOperationMetadata>
Overrides

batchDeleteJobsCallable()

public UnaryCallable<BatchDeleteJobsRequest,Operation> batchDeleteJobsCallable()
Returns
TypeDescription
UnaryCallable<BatchDeleteJobsRequest,Operation>
Overrides

batchDeleteJobsOperationCallable()

public OperationCallable<BatchDeleteJobsRequest,BatchDeleteJobsResponse,BatchOperationMetadata> batchDeleteJobsOperationCallable()
Returns
TypeDescription
OperationCallable<BatchDeleteJobsRequest,BatchDeleteJobsResponse,BatchOperationMetadata>
Overrides

batchUpdateJobsCallable()

public UnaryCallable<BatchUpdateJobsRequest,Operation> batchUpdateJobsCallable()
Returns
TypeDescription
UnaryCallable<BatchUpdateJobsRequest,Operation>
Overrides

batchUpdateJobsOperationCallable()

public OperationCallable<BatchUpdateJobsRequest,BatchUpdateJobsResponse,BatchOperationMetadata> batchUpdateJobsOperationCallable()
Returns
TypeDescription
OperationCallable<BatchUpdateJobsRequest,BatchUpdateJobsResponse,BatchOperationMetadata>
Overrides

close()

public final void close()
Overrides

createJobCallable()

public UnaryCallable<CreateJobRequest,Job> createJobCallable()
Returns
TypeDescription
UnaryCallable<CreateJobRequest,Job>
Overrides

deleteJobCallable()

public UnaryCallable<DeleteJobRequest,Empty> deleteJobCallable()
Returns
TypeDescription
UnaryCallable<DeleteJobRequest,Empty>
Overrides

getJobCallable()

public UnaryCallable<GetJobRequest,Job> getJobCallable()
Returns
TypeDescription
UnaryCallable<GetJobRequest,Job>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listJobsCallable()

public UnaryCallable<ListJobsRequest,ListJobsResponse> listJobsCallable()
Returns
TypeDescription
UnaryCallable<ListJobsRequest,ListJobsResponse>
Overrides

listJobsPagedCallable()

public UnaryCallable<ListJobsRequest,JobServiceClient.ListJobsPagedResponse> listJobsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListJobsRequest,ListJobsPagedResponse>
Overrides

searchJobsCallable()

public UnaryCallable<SearchJobsRequest,SearchJobsResponse> searchJobsCallable()
Returns
TypeDescription
UnaryCallable<SearchJobsRequest,SearchJobsResponse>
Overrides

searchJobsForAlertCallable()

public UnaryCallable<SearchJobsRequest,SearchJobsResponse> searchJobsForAlertCallable()
Returns
TypeDescription
UnaryCallable<SearchJobsRequest,SearchJobsResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateJobCallable()

public UnaryCallable<UpdateJobRequest,Job> updateJobCallable()
Returns
TypeDescription
UnaryCallable<UpdateJobRequest,Job>
Overrides