Class GrpcExperimentServiceStub
java.lang.Object
com.google.ads.googleads.v18.services.stub.ExperimentServiceStub
com.google.ads.googleads.v18.services.stub.GrpcExperimentServiceStub
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class GrpcExperimentServiceStub
extends ExperimentServiceStub
gRPC stub implementation for the ExperimentService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcExperimentServiceStub(ExperimentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) Constructs an instance of GrpcExperimentServiceStub, using the given settings.protectedGrpcExperimentServiceStub(ExperimentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcExperimentServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcExperimentServiceStubcreate(ExperimentServiceStubSettings settings) static final GrpcExperimentServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext) static final GrpcExperimentServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) com.google.api.gax.rpc.UnaryCallable<EndExperimentRequest,com.google.protobuf.Empty> com.google.longrunning.stub.GrpcOperationsStubcom.google.api.gax.rpc.UnaryCallable<GraduateExperimentRequest,com.google.protobuf.Empty> booleanbooleancom.google.api.gax.rpc.UnaryCallable<ListExperimentAsyncErrorsRequest,ListExperimentAsyncErrorsResponse> com.google.api.gax.rpc.UnaryCallable<ListExperimentAsyncErrorsRequest,ExperimentServiceClient.ListExperimentAsyncErrorsPagedResponse> com.google.api.gax.rpc.UnaryCallable<MutateExperimentsRequest,MutateExperimentsResponse> com.google.api.gax.rpc.UnaryCallable<PromoteExperimentRequest,com.google.longrunning.Operation> com.google.api.gax.rpc.OperationCallable<PromoteExperimentRequest,com.google.protobuf.Empty, PromoteExperimentMetadata> com.google.api.gax.rpc.UnaryCallable<ScheduleExperimentRequest,com.google.longrunning.Operation> com.google.api.gax.rpc.OperationCallable<ScheduleExperimentRequest,com.google.protobuf.Empty, ScheduleExperimentMetadata> voidshutdown()void
-
Constructor Details
-
GrpcExperimentServiceStub
protected GrpcExperimentServiceStub(ExperimentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException Constructs an instance of GrpcExperimentServiceStub, 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
-
GrpcExperimentServiceStub
protected GrpcExperimentServiceStub(ExperimentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcExperimentServiceStub, 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 GrpcExperimentServiceStub create(ExperimentServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcExperimentServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcExperimentServiceStub 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 classExperimentServiceStub
-
mutateExperimentsCallable
public com.google.api.gax.rpc.UnaryCallable<MutateExperimentsRequest,MutateExperimentsResponse> mutateExperimentsCallable()- Overrides:
mutateExperimentsCallablein classExperimentServiceStub
-
endExperimentCallable
public com.google.api.gax.rpc.UnaryCallable<EndExperimentRequest,com.google.protobuf.Empty> endExperimentCallable()- Overrides:
endExperimentCallablein classExperimentServiceStub
-
listExperimentAsyncErrorsCallable
public com.google.api.gax.rpc.UnaryCallable<ListExperimentAsyncErrorsRequest,ListExperimentAsyncErrorsResponse> listExperimentAsyncErrorsCallable()- Overrides:
listExperimentAsyncErrorsCallablein classExperimentServiceStub
-
listExperimentAsyncErrorsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListExperimentAsyncErrorsRequest,ExperimentServiceClient.ListExperimentAsyncErrorsPagedResponse> listExperimentAsyncErrorsPagedCallable()- Overrides:
listExperimentAsyncErrorsPagedCallablein classExperimentServiceStub
-
graduateExperimentCallable
public com.google.api.gax.rpc.UnaryCallable<GraduateExperimentRequest,com.google.protobuf.Empty> graduateExperimentCallable()- Overrides:
graduateExperimentCallablein classExperimentServiceStub
-
scheduleExperimentCallable
public com.google.api.gax.rpc.UnaryCallable<ScheduleExperimentRequest,com.google.longrunning.Operation> scheduleExperimentCallable()- Overrides:
scheduleExperimentCallablein classExperimentServiceStub
-
scheduleExperimentOperationCallable
public com.google.api.gax.rpc.OperationCallable<ScheduleExperimentRequest,com.google.protobuf.Empty, scheduleExperimentOperationCallable()ScheduleExperimentMetadata> - Overrides:
scheduleExperimentOperationCallablein classExperimentServiceStub
-
promoteExperimentCallable
public com.google.api.gax.rpc.UnaryCallable<PromoteExperimentRequest,com.google.longrunning.Operation> promoteExperimentCallable()- Overrides:
promoteExperimentCallablein classExperimentServiceStub
-
promoteExperimentOperationCallable
public com.google.api.gax.rpc.OperationCallable<PromoteExperimentRequest,com.google.protobuf.Empty, promoteExperimentOperationCallable()PromoteExperimentMetadata> - Overrides:
promoteExperimentOperationCallablein classExperimentServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classExperimentServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-