Class GrpcCampaignDraftServiceStub
java.lang.Object
com.google.ads.googleads.v18.services.stub.CampaignDraftServiceStub
com.google.ads.googleads.v18.services.stub.GrpcCampaignDraftServiceStub
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class GrpcCampaignDraftServiceStub
extends CampaignDraftServiceStub
gRPC stub implementation for the CampaignDraftService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcCampaignDraftServiceStub(CampaignDraftServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) Constructs an instance of GrpcCampaignDraftServiceStub, using the given settings.protectedGrpcCampaignDraftServiceStub(CampaignDraftServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcCampaignDraftServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcCampaignDraftServiceStubcreate(CampaignDraftServiceStubSettings settings) static final GrpcCampaignDraftServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext) static final GrpcCampaignDraftServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) com.google.longrunning.stub.GrpcOperationsStubbooleanbooleancom.google.api.gax.rpc.UnaryCallable<ListCampaignDraftAsyncErrorsRequest,ListCampaignDraftAsyncErrorsResponse> com.google.api.gax.rpc.UnaryCallable<ListCampaignDraftAsyncErrorsRequest,CampaignDraftServiceClient.ListCampaignDraftAsyncErrorsPagedResponse> com.google.api.gax.rpc.UnaryCallable<MutateCampaignDraftsRequest,MutateCampaignDraftsResponse> com.google.api.gax.rpc.UnaryCallable<PromoteCampaignDraftRequest,com.google.longrunning.Operation> com.google.api.gax.rpc.OperationCallable<PromoteCampaignDraftRequest,com.google.protobuf.Empty, com.google.protobuf.Empty> voidshutdown()void
-
Constructor Details
-
GrpcCampaignDraftServiceStub
protected GrpcCampaignDraftServiceStub(CampaignDraftServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException Constructs an instance of GrpcCampaignDraftServiceStub, 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
-
GrpcCampaignDraftServiceStub
protected GrpcCampaignDraftServiceStub(CampaignDraftServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcCampaignDraftServiceStub, 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 GrpcCampaignDraftServiceStub create(CampaignDraftServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcCampaignDraftServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcCampaignDraftServiceStub 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 classCampaignDraftServiceStub
-
mutateCampaignDraftsCallable
public com.google.api.gax.rpc.UnaryCallable<MutateCampaignDraftsRequest,MutateCampaignDraftsResponse> mutateCampaignDraftsCallable()- Overrides:
mutateCampaignDraftsCallablein classCampaignDraftServiceStub
-
promoteCampaignDraftCallable
public com.google.api.gax.rpc.UnaryCallable<PromoteCampaignDraftRequest,com.google.longrunning.Operation> promoteCampaignDraftCallable()- Overrides:
promoteCampaignDraftCallablein classCampaignDraftServiceStub
-
promoteCampaignDraftOperationCallable
public com.google.api.gax.rpc.OperationCallable<PromoteCampaignDraftRequest,com.google.protobuf.Empty, promoteCampaignDraftOperationCallable()com.google.protobuf.Empty> - Overrides:
promoteCampaignDraftOperationCallablein classCampaignDraftServiceStub
-
listCampaignDraftAsyncErrorsCallable
public com.google.api.gax.rpc.UnaryCallable<ListCampaignDraftAsyncErrorsRequest,ListCampaignDraftAsyncErrorsResponse> listCampaignDraftAsyncErrorsCallable()- Overrides:
listCampaignDraftAsyncErrorsCallablein classCampaignDraftServiceStub
-
listCampaignDraftAsyncErrorsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListCampaignDraftAsyncErrorsRequest,CampaignDraftServiceClient.ListCampaignDraftAsyncErrorsPagedResponse> listCampaignDraftAsyncErrorsPagedCallable()- Overrides:
listCampaignDraftAsyncErrorsPagedCallablein classCampaignDraftServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classCampaignDraftServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-