Class HttpJsonJobServiceStub (2.48.0)

public class HttpJsonJobServiceStub extends JobServiceStub

REST stub implementation for the JobService service API.

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

Inheritance

java.lang.Object > JobServiceStub > HttpJsonJobServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(JobServiceStubSettings settings)

public static final HttpJsonJobServiceStub create(JobServiceStubSettings settings)
Parameter
Name Description
settings JobServiceStubSettings
Returns
Type Description
HttpJsonJobServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonJobServiceStub(JobServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonJobServiceStub(JobServiceStubSettings settings, ClientContext clientContext)

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

HttpJsonJobServiceStub(JobServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonJobServiceStub(JobServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getJobCallable()

public UnaryCallable<GetJobRequest,Job> getJobCallable()
Returns
Type Description
UnaryCallable<GetJobRequest,Job>
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