Package com.google.cloud.retail.v2.stub
Class GrpcAnalyticsServiceStub
java.lang.Object
com.google.cloud.retail.v2.stub.AnalyticsServiceStub
com.google.cloud.retail.v2.stub.GrpcAnalyticsServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class GrpcAnalyticsServiceStub
extends AnalyticsServiceStub
gRPC stub implementation for the AnalyticsService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcAnalyticsServiceStub(AnalyticsServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcAnalyticsServiceStub, using the given settings.protectedGrpcAnalyticsServiceStub(AnalyticsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcAnalyticsServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcAnalyticsServiceStubcreate(ClientContext clientContext) static final GrpcAnalyticsServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcAnalyticsServiceStubcreate(AnalyticsServiceStubSettings settings) booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.retail.v2.stub.AnalyticsServiceStub
getHttpJsonOperationsStub
-
Constructor Details
-
GrpcAnalyticsServiceStub
protected GrpcAnalyticsServiceStub(AnalyticsServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcAnalyticsServiceStub, 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
-
GrpcAnalyticsServiceStub
protected GrpcAnalyticsServiceStub(AnalyticsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcAnalyticsServiceStub, 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 GrpcAnalyticsServiceStub create(AnalyticsServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcAnalyticsServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classAnalyticsServiceStub
-
exportAnalyticsMetricsCallable
- Overrides:
exportAnalyticsMetricsCallablein classAnalyticsServiceStub
-
exportAnalyticsMetricsOperationCallable
public OperationCallable<ExportAnalyticsMetricsRequest,ExportAnalyticsMetricsResponse, exportAnalyticsMetricsOperationCallable()ExportMetadata> - Overrides:
exportAnalyticsMetricsOperationCallablein classAnalyticsServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classAnalyticsServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-