Class GrpcJobServiceStub (2.41.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,JobOperationResult,BatchOperationMetadata> batchCreateJobsOperationCallable()
Returns
TypeDescription
OperationCallable<BatchCreateJobsRequest,JobOperationResult,BatchOperationMetadata>
Overrides

batchDeleteJobsCallable()

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

batchUpdateJobsCallable()

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

batchUpdateJobsOperationCallable()

public OperationCallable<BatchUpdateJobsRequest,JobOperationResult,BatchOperationMetadata> batchUpdateJobsOperationCallable()
Returns
TypeDescription
OperationCallable<BatchUpdateJobsRequest,JobOperationResult,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

searchJobsForAlertPagedCallable()

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

searchJobsPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateJobCallable()

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