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.
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> |
batchCreateJobsOperationCallable()
public OperationCallable<BatchCreateJobsRequest,BatchCreateJobsResponse,BatchOperationMetadata> batchCreateJobsOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<BatchCreateJobsRequest,BatchCreateJobsResponse,BatchOperationMetadata> |
batchDeleteJobsCallable()
public UnaryCallable<BatchDeleteJobsRequest,Operation> batchDeleteJobsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<BatchDeleteJobsRequest,Operation> |
batchDeleteJobsOperationCallable()
public OperationCallable<BatchDeleteJobsRequest,BatchDeleteJobsResponse,BatchOperationMetadata> batchDeleteJobsOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<BatchDeleteJobsRequest,BatchDeleteJobsResponse,BatchOperationMetadata> |
batchUpdateJobsCallable()
public UnaryCallable<BatchUpdateJobsRequest,Operation> batchUpdateJobsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<BatchUpdateJobsRequest,Operation> |
batchUpdateJobsOperationCallable()
public OperationCallable<BatchUpdateJobsRequest,BatchUpdateJobsResponse,BatchOperationMetadata> batchUpdateJobsOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<BatchUpdateJobsRequest,BatchUpdateJobsResponse,BatchOperationMetadata> |
close()
public final void close()
createJobCallable()
public UnaryCallable<CreateJobRequest,Job> createJobCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateJobRequest,Job> |
deleteJobCallable()
public UnaryCallable<DeleteJobRequest,Empty> deleteJobCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteJobRequest,Empty> |
getJobCallable()
public UnaryCallable<GetJobRequest,Job> getJobCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetJobRequest,Job> |
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Returns | |
---|---|
Type | Description |
GrpcOperationsStub |
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> |
listJobsPagedCallable()
public UnaryCallable<ListJobsRequest,JobServiceClient.ListJobsPagedResponse> listJobsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListJobsRequest,ListJobsPagedResponse> |
searchJobsCallable()
public UnaryCallable<SearchJobsRequest,SearchJobsResponse> searchJobsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<SearchJobsRequest,SearchJobsResponse> |
searchJobsForAlertCallable()
public UnaryCallable<SearchJobsRequest,SearchJobsResponse> searchJobsForAlertCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<SearchJobsRequest,SearchJobsResponse> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
updateJobCallable()
public UnaryCallable<UpdateJobRequest,Job> updateJobCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateJobRequest,Job> |