Class HttpJsonBatchServiceStub
java.lang.Object
com.google.cloud.batch.v1alpha.stub.BatchServiceStub
com.google.cloud.batch.v1alpha.stub.HttpJsonBatchServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class HttpJsonBatchServiceStub
extends BatchServiceStub
REST stub implementation for the BatchService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonBatchServiceStub(BatchServiceStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonBatchServiceStub, using the given settings.protectedHttpJsonBatchServiceStub(BatchServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonBatchServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonBatchServiceStubcreate(ClientContext clientContext) static final HttpJsonBatchServiceStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonBatchServiceStubcreate(BatchServiceStubSettings settings) OperationCallable<DeleteJobRequest,com.google.protobuf.Empty, OperationMetadata> OperationCallable<DeleteResourceAllowanceRequest,com.google.protobuf.Empty, OperationMetadata> static List<ApiMethodDescriptor>booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.batch.v1alpha.stub.BatchServiceStub
getOperationsStub
-
Constructor Details
-
HttpJsonBatchServiceStub
protected HttpJsonBatchServiceStub(BatchServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonBatchServiceStub, 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
-
HttpJsonBatchServiceStub
protected HttpJsonBatchServiceStub(BatchServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonBatchServiceStub, 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 Details
-
create
public static final HttpJsonBatchServiceStub create(BatchServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final HttpJsonBatchServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
getHttpJsonOperationsStub
- Overrides:
getHttpJsonOperationsStubin classBatchServiceStub
-
createJobCallable
- Overrides:
createJobCallablein classBatchServiceStub
-
getJobCallable
- Overrides:
getJobCallablein classBatchServiceStub
-
deleteJobCallable
- Overrides:
deleteJobCallablein classBatchServiceStub
-
deleteJobOperationCallable
public OperationCallable<DeleteJobRequest,com.google.protobuf.Empty, deleteJobOperationCallable()OperationMetadata> - Overrides:
deleteJobOperationCallablein classBatchServiceStub
-
cancelJobCallable
- Overrides:
cancelJobCallablein classBatchServiceStub
-
cancelJobOperationCallable
public OperationCallable<CancelJobRequest,CancelJobResponse, cancelJobOperationCallable()OperationMetadata> - Overrides:
cancelJobOperationCallablein classBatchServiceStub
-
updateJobCallable
- Overrides:
updateJobCallablein classBatchServiceStub
-
listJobsCallable
- Overrides:
listJobsCallablein classBatchServiceStub
-
listJobsPagedCallable
public UnaryCallable<ListJobsRequest,BatchServiceClient.ListJobsPagedResponse> listJobsPagedCallable()- Overrides:
listJobsPagedCallablein classBatchServiceStub
-
getTaskCallable
- Overrides:
getTaskCallablein classBatchServiceStub
-
listTasksCallable
- Overrides:
listTasksCallablein classBatchServiceStub
-
listTasksPagedCallable
public UnaryCallable<ListTasksRequest,BatchServiceClient.ListTasksPagedResponse> listTasksPagedCallable()- Overrides:
listTasksPagedCallablein classBatchServiceStub
-
createResourceAllowanceCallable
public UnaryCallable<CreateResourceAllowanceRequest,ResourceAllowance> createResourceAllowanceCallable()- Overrides:
createResourceAllowanceCallablein classBatchServiceStub
-
getResourceAllowanceCallable
- Overrides:
getResourceAllowanceCallablein classBatchServiceStub
-
deleteResourceAllowanceCallable
- Overrides:
deleteResourceAllowanceCallablein classBatchServiceStub
-
deleteResourceAllowanceOperationCallable
public OperationCallable<DeleteResourceAllowanceRequest,com.google.protobuf.Empty, deleteResourceAllowanceOperationCallable()OperationMetadata> - Overrides:
deleteResourceAllowanceOperationCallablein classBatchServiceStub
-
listResourceAllowancesCallable
public UnaryCallable<ListResourceAllowancesRequest,ListResourceAllowancesResponse> listResourceAllowancesCallable()- Overrides:
listResourceAllowancesCallablein classBatchServiceStub
-
listResourceAllowancesPagedCallable
public UnaryCallable<ListResourceAllowancesRequest,BatchServiceClient.ListResourceAllowancesPagedResponse> listResourceAllowancesPagedCallable()- Overrides:
listResourceAllowancesPagedCallablein classBatchServiceStub
-
updateResourceAllowanceCallable
public UnaryCallable<UpdateResourceAllowanceRequest,ResourceAllowance> updateResourceAllowanceCallable()- Overrides:
updateResourceAllowanceCallablein classBatchServiceStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classBatchServiceStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,BatchServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classBatchServiceStub
-
getLocationCallable
- Overrides:
getLocationCallablein classBatchServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classBatchServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-