Class HttpJsonJobServiceStub (2.41.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
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonJobServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonJobServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonJobServiceStub
Exceptions
TypeDescription
IOException

create(JobServiceStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsJobServiceStubSettings
clientContextClientContext

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
NameDescription
settingsJobServiceStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getJobCallable()

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