Class GrpcExperimentServiceStub
- java.lang.Object
-
- com.google.ads.googleads.v10.services.stub.ExperimentServiceStub
-
- com.google.ads.googleads.v10.services.stub.GrpcExperimentServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,java.lang.AutoCloseable
@Generated("by gapic-generator-java") public class GrpcExperimentServiceStub extends ExperimentServiceStubgRPC stub implementation for the ExperimentService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcExperimentServiceStub(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, java.util.concurrent.TimeUnit unit)voidclose()static GrpcExperimentServiceStubcreate(ExperimentServiceStubSettings settings)static GrpcExperimentServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static 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>endExperimentCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()com.google.api.gax.rpc.UnaryCallable<GraduateExperimentRequest,com.google.protobuf.Empty>graduateExperimentCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListExperimentAsyncErrorsRequest,ListExperimentAsyncErrorsResponse>listExperimentAsyncErrorsCallable()com.google.api.gax.rpc.UnaryCallable<ListExperimentAsyncErrorsRequest,ExperimentServiceClient.ListExperimentAsyncErrorsPagedResponse>listExperimentAsyncErrorsPagedCallable()com.google.api.gax.rpc.UnaryCallable<MutateExperimentsRequest,MutateExperimentsResponse>mutateExperimentsCallable()com.google.api.gax.rpc.UnaryCallable<PromoteExperimentRequest,com.google.longrunning.Operation>promoteExperimentCallable()com.google.api.gax.rpc.OperationCallable<PromoteExperimentRequest,com.google.protobuf.Empty,PromoteExperimentMetadata>promoteExperimentOperationCallable()com.google.api.gax.rpc.UnaryCallable<ScheduleExperimentRequest,com.google.longrunning.Operation>scheduleExperimentCallable()com.google.api.gax.rpc.OperationCallable<ScheduleExperimentRequest,com.google.protobuf.Empty,ScheduleExperimentMetadata>scheduleExperimentOperationCallable()voidshutdown()voidshutdownNow()
-
-
-
Constructor Detail
-
GrpcExperimentServiceStub
protected GrpcExperimentServiceStub(ExperimentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws java.io.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:
java.io.IOException
-
GrpcExperimentServiceStub
protected GrpcExperimentServiceStub(ExperimentServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws java.io.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:
java.io.IOException
-
-
Method Detail
-
create
public static final GrpcExperimentServiceStub create(ExperimentServiceStubSettings settings) throws java.io.IOException
- Throws:
java.io.IOException
-
create
public static final GrpcExperimentServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws java.io.IOException
- Throws:
java.io.IOException
-
create
public static final GrpcExperimentServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws java.io.IOException
- Throws:
java.io.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,ScheduleExperimentMetadata> scheduleExperimentOperationCallable()
- 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,PromoteExperimentMetadata> promoteExperimentOperationCallable()
- Overrides:
promoteExperimentOperationCallablein classExperimentServiceStub
-
close
public final void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein classExperimentServiceStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
-