Package com.google.cloud.run.v2.stub
Class HttpJsonJobsStub
- java.lang.Object
-
- com.google.cloud.run.v2.stub.JobsStub
-
- com.google.cloud.run.v2.stub.HttpJsonJobsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonJobsStub extends JobsStub
REST stub implementation for the Jobs service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonJobsStub(JobsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonJobsStub, using the given settings.protected
HttpJsonJobsStub(JobsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonJobsStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static HttpJsonJobsStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonJobsStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonJobsStub
create(JobsStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateJobRequest,com.google.longrunning.Operation>
createJobCallable()
com.google.api.gax.rpc.OperationCallable<CreateJobRequest,Job,Job>
createJobOperationCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteJobRequest,com.google.longrunning.Operation>
deleteJobCallable()
com.google.api.gax.rpc.OperationCallable<DeleteJobRequest,Job,Job>
deleteJobOperationCallable()
com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub
getHttpJsonOperationsStub()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
getIamPolicyCallable()
com.google.api.gax.rpc.UnaryCallable<GetJobRequest,Job>
getJobCallable()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListJobsRequest,ListJobsResponse>
listJobsCallable()
com.google.api.gax.rpc.UnaryCallable<ListJobsRequest,JobsClient.ListJobsPagedResponse>
listJobsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<RunJobRequest,com.google.longrunning.Operation>
runJobCallable()
com.google.api.gax.rpc.OperationCallable<RunJobRequest,Execution,Execution>
runJobOperationCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
setIamPolicyCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
testIamPermissionsCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateJobRequest,com.google.longrunning.Operation>
updateJobCallable()
com.google.api.gax.rpc.OperationCallable<UpdateJobRequest,Job,Job>
updateJobOperationCallable()
-
Methods inherited from class com.google.cloud.run.v2.stub.JobsStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonJobsStub
protected HttpJsonJobsStub(JobsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonJobsStub, 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.- Throws:
IOException
-
HttpJsonJobsStub
protected HttpJsonJobsStub(JobsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonJobsStub, 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.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonJobsStub create(JobsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonJobsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonJobsStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStub
in classJobsStub
-
createJobCallable
public com.google.api.gax.rpc.UnaryCallable<CreateJobRequest,com.google.longrunning.Operation> createJobCallable()
- Overrides:
createJobCallable
in classJobsStub
-
createJobOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateJobRequest,Job,Job> createJobOperationCallable()
- Overrides:
createJobOperationCallable
in classJobsStub
-
getJobCallable
public com.google.api.gax.rpc.UnaryCallable<GetJobRequest,Job> getJobCallable()
- Overrides:
getJobCallable
in classJobsStub
-
listJobsCallable
public com.google.api.gax.rpc.UnaryCallable<ListJobsRequest,ListJobsResponse> listJobsCallable()
- Overrides:
listJobsCallable
in classJobsStub
-
listJobsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListJobsRequest,JobsClient.ListJobsPagedResponse> listJobsPagedCallable()
- Overrides:
listJobsPagedCallable
in classJobsStub
-
updateJobCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateJobRequest,com.google.longrunning.Operation> updateJobCallable()
- Overrides:
updateJobCallable
in classJobsStub
-
updateJobOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateJobRequest,Job,Job> updateJobOperationCallable()
- Overrides:
updateJobOperationCallable
in classJobsStub
-
deleteJobCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteJobRequest,com.google.longrunning.Operation> deleteJobCallable()
- Overrides:
deleteJobCallable
in classJobsStub
-
deleteJobOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteJobRequest,Job,Job> deleteJobOperationCallable()
- Overrides:
deleteJobOperationCallable
in classJobsStub
-
runJobCallable
public com.google.api.gax.rpc.UnaryCallable<RunJobRequest,com.google.longrunning.Operation> runJobCallable()
- Overrides:
runJobCallable
in classJobsStub
-
runJobOperationCallable
public com.google.api.gax.rpc.OperationCallable<RunJobRequest,Execution,Execution> runJobOperationCallable()
- Overrides:
runJobOperationCallable
in classJobsStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classJobsStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classJobsStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classJobsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classJobsStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-