Class GrpcBatchJobServiceStub
java.lang.Object
com.google.ads.googleads.v18.services.stub.BatchJobServiceStub
com.google.ads.googleads.v18.services.stub.GrpcBatchJobServiceStub
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class GrpcBatchJobServiceStub
extends BatchJobServiceStub
gRPC stub implementation for the BatchJobService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcBatchJobServiceStub(BatchJobServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) Constructs an instance of GrpcBatchJobServiceStub, using the given settings.protectedGrpcBatchJobServiceStub(BatchJobServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcBatchJobServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.gax.rpc.UnaryCallable<AddBatchJobOperationsRequest,AddBatchJobOperationsResponse> booleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcBatchJobServiceStubcreate(BatchJobServiceStubSettings settings) static final GrpcBatchJobServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext) static final GrpcBatchJobServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) com.google.longrunning.stub.GrpcOperationsStubbooleanbooleancom.google.api.gax.rpc.UnaryCallable<ListBatchJobResultsRequest,ListBatchJobResultsResponse> com.google.api.gax.rpc.UnaryCallable<ListBatchJobResultsRequest,BatchJobServiceClient.ListBatchJobResultsPagedResponse> com.google.api.gax.rpc.UnaryCallable<MutateBatchJobRequest,MutateBatchJobResponse> com.google.api.gax.rpc.UnaryCallable<RunBatchJobRequest,com.google.longrunning.Operation> com.google.api.gax.rpc.OperationCallable<RunBatchJobRequest,com.google.protobuf.Empty, BatchJob.BatchJobMetadata> voidshutdown()void
-
Constructor Details
-
GrpcBatchJobServiceStub
protected GrpcBatchJobServiceStub(BatchJobServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException Constructs an instance of GrpcBatchJobServiceStub, 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
-
GrpcBatchJobServiceStub
protected GrpcBatchJobServiceStub(BatchJobServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcBatchJobServiceStub, 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 GrpcBatchJobServiceStub create(BatchJobServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcBatchJobServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcBatchJobServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()- Overrides:
getOperationsStubin classBatchJobServiceStub
-
mutateBatchJobCallable
public com.google.api.gax.rpc.UnaryCallable<MutateBatchJobRequest,MutateBatchJobResponse> mutateBatchJobCallable()- Overrides:
mutateBatchJobCallablein classBatchJobServiceStub
-
listBatchJobResultsCallable
public com.google.api.gax.rpc.UnaryCallable<ListBatchJobResultsRequest,ListBatchJobResultsResponse> listBatchJobResultsCallable()- Overrides:
listBatchJobResultsCallablein classBatchJobServiceStub
-
listBatchJobResultsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListBatchJobResultsRequest,BatchJobServiceClient.ListBatchJobResultsPagedResponse> listBatchJobResultsPagedCallable()- Overrides:
listBatchJobResultsPagedCallablein classBatchJobServiceStub
-
runBatchJobCallable
public com.google.api.gax.rpc.UnaryCallable<RunBatchJobRequest,com.google.longrunning.Operation> runBatchJobCallable()- Overrides:
runBatchJobCallablein classBatchJobServiceStub
-
runBatchJobOperationCallable
public com.google.api.gax.rpc.OperationCallable<RunBatchJobRequest,com.google.protobuf.Empty, runBatchJobOperationCallable()BatchJob.BatchJobMetadata> - Overrides:
runBatchJobOperationCallablein classBatchJobServiceStub
-
addBatchJobOperationsCallable
public com.google.api.gax.rpc.UnaryCallable<AddBatchJobOperationsRequest,AddBatchJobOperationsResponse> addBatchJobOperationsCallable()- Overrides:
addBatchJobOperationsCallablein classBatchJobServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classBatchJobServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-