Class GrpcCloudSchedulerStub (2.12.0)

public class GrpcCloudSchedulerStub extends CloudSchedulerStub

gRPC stub implementation for the CloudScheduler service API.

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

Inheritance

java.lang.Object > CloudSchedulerStub > GrpcCloudSchedulerStub

Static Methods

create(ClientContext clientContext)

public static final GrpcCloudSchedulerStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcCloudSchedulerStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcCloudSchedulerStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcCloudSchedulerStub
Exceptions
TypeDescription
IOException

create(CloudSchedulerStubSettings settings)

public static final GrpcCloudSchedulerStub create(CloudSchedulerStubSettings settings)
Parameter
NameDescription
settingsCloudSchedulerStubSettings
Returns
TypeDescription
GrpcCloudSchedulerStub
Exceptions
TypeDescription
IOException

Constructors

GrpcCloudSchedulerStub(CloudSchedulerStubSettings settings, ClientContext clientContext)

protected GrpcCloudSchedulerStub(CloudSchedulerStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcCloudSchedulerStub, 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
settingsCloudSchedulerStubSettings
clientContextClientContext

GrpcCloudSchedulerStub(CloudSchedulerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcCloudSchedulerStub(CloudSchedulerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

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

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

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,CloudSchedulerClient.ListJobsPagedResponse> listJobsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListJobsRequest,ListJobsPagedResponse>
Overrides

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,CloudSchedulerClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

pauseJobCallable()

public UnaryCallable<PauseJobRequest,Job> pauseJobCallable()
Returns
TypeDescription
UnaryCallable<PauseJobRequest,Job>
Overrides

resumeJobCallable()

public UnaryCallable<ResumeJobRequest,Job> resumeJobCallable()
Returns
TypeDescription
UnaryCallable<ResumeJobRequest,Job>
Overrides

runJobCallable()

public UnaryCallable<RunJobRequest,Job> runJobCallable()
Returns
TypeDescription
UnaryCallable<RunJobRequest,Job>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateJobCallable()

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