Class GrpcBenchmarksServiceStub
java.lang.Object
com.google.ads.googleads.v23.services.stub.BenchmarksServiceStub
com.google.ads.googleads.v23.services.stub.GrpcBenchmarksServiceStub
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class GrpcBenchmarksServiceStub
extends BenchmarksServiceStub
gRPC stub implementation for the BenchmarksService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcBenchmarksServiceStub(BenchmarksServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) Constructs an instance of GrpcBenchmarksServiceStub, using the given settings.protectedGrpcBenchmarksServiceStub(BenchmarksServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcBenchmarksServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcBenchmarksServiceStubcreate(BenchmarksServiceStubSettings settings) static final GrpcBenchmarksServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext) static final GrpcBenchmarksServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) com.google.api.gax.rpc.UnaryCallable<GenerateBenchmarksMetricsRequest,GenerateBenchmarksMetricsResponse> com.google.longrunning.stub.GrpcOperationsStubbooleanbooleancom.google.api.gax.rpc.UnaryCallable<ListBenchmarksAvailableDatesRequest,ListBenchmarksAvailableDatesResponse> com.google.api.gax.rpc.UnaryCallable<ListBenchmarksLocationsRequest,ListBenchmarksLocationsResponse> com.google.api.gax.rpc.UnaryCallable<ListBenchmarksProductsRequest,ListBenchmarksProductsResponse> com.google.api.gax.rpc.UnaryCallable<ListBenchmarksSourcesRequest,ListBenchmarksSourcesResponse> voidshutdown()void
-
Constructor Details
-
GrpcBenchmarksServiceStub
protected GrpcBenchmarksServiceStub(BenchmarksServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException Constructs an instance of GrpcBenchmarksServiceStub, 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
-
GrpcBenchmarksServiceStub
protected GrpcBenchmarksServiceStub(BenchmarksServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcBenchmarksServiceStub, 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 GrpcBenchmarksServiceStub create(BenchmarksServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcBenchmarksServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcBenchmarksServiceStub 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() -
listBenchmarksAvailableDatesCallable
public com.google.api.gax.rpc.UnaryCallable<ListBenchmarksAvailableDatesRequest,ListBenchmarksAvailableDatesResponse> listBenchmarksAvailableDatesCallable()- Overrides:
listBenchmarksAvailableDatesCallablein classBenchmarksServiceStub
-
listBenchmarksLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<ListBenchmarksLocationsRequest,ListBenchmarksLocationsResponse> listBenchmarksLocationsCallable()- Overrides:
listBenchmarksLocationsCallablein classBenchmarksServiceStub
-
listBenchmarksProductsCallable
public com.google.api.gax.rpc.UnaryCallable<ListBenchmarksProductsRequest,ListBenchmarksProductsResponse> listBenchmarksProductsCallable()- Overrides:
listBenchmarksProductsCallablein classBenchmarksServiceStub
-
listBenchmarksSourcesCallable
public com.google.api.gax.rpc.UnaryCallable<ListBenchmarksSourcesRequest,ListBenchmarksSourcesResponse> listBenchmarksSourcesCallable()- Overrides:
listBenchmarksSourcesCallablein classBenchmarksServiceStub
-
generateBenchmarksMetricsCallable
public com.google.api.gax.rpc.UnaryCallable<GenerateBenchmarksMetricsRequest,GenerateBenchmarksMetricsResponse> generateBenchmarksMetricsCallable()- Overrides:
generateBenchmarksMetricsCallablein classBenchmarksServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classBenchmarksServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-