Class GrpcJobServiceStub (2.54.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
Name Description
clientContext ClientContext
Returns
Type Description
GrpcJobServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(JobServiceStubSettings settings)

public static final GrpcJobServiceStub create(JobServiceStubSettings settings)
Parameter
Name Description
settings JobServiceStubSettings
Returns
Type Description
GrpcJobServiceStub
Exceptions
Type Description
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
Name Description
settings JobServiceStubSettings
clientContext ClientContext

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
Name Description
settings JobServiceStubSettings
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

batchCreateJobsCallable()

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

batchCreateJobsOperationCallable()

public OperationCallable<BatchCreateJobsRequest,JobOperationResult,BatchOperationMetadata> batchCreateJobsOperationCallable()
Returns
Type Description
OperationCallable<BatchCreateJobsRequest,JobOperationResult,BatchOperationMetadata>
Overrides

batchDeleteJobsCallable()

public UnaryCallable<BatchDeleteJobsRequest,Empty> batchDeleteJobsCallable()
Returns
Type Description
UnaryCallable<BatchDeleteJobsRequest,Empty>
Overrides

batchUpdateJobsCallable()

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

batchUpdateJobsOperationCallable()

public OperationCallable<BatchUpdateJobsRequest,JobOperationResult,BatchOperationMetadata> batchUpdateJobsOperationCallable()
Returns
Type Description
OperationCallable<BatchUpdateJobsRequest,JobOperationResult,BatchOperationMetadata>
Overrides

close()

public final void close()
Overrides

createJobCallable()

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

deleteJobCallable()

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

getJobCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listJobsCallable()

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

listJobsPagedCallable()

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

searchJobsCallable()

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

searchJobsForAlertCallable()

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

searchJobsForAlertPagedCallable()

public UnaryCallable<SearchJobsRequest,JobServiceClient.SearchJobsForAlertPagedResponse> searchJobsForAlertPagedCallable()
Returns
Type Description
UnaryCallable<SearchJobsRequest,SearchJobsForAlertPagedResponse>
Overrides

searchJobsPagedCallable()

public UnaryCallable<SearchJobsRequest,JobServiceClient.SearchJobsPagedResponse> searchJobsPagedCallable()
Returns
Type Description
UnaryCallable<SearchJobsRequest,SearchJobsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateJobCallable()

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