Class HttpJsonAnalyticsServiceStub
java.lang.Object
com.google.cloud.retail.v2alpha.stub.AnalyticsServiceStub
com.google.cloud.retail.v2alpha.stub.HttpJsonAnalyticsServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class HttpJsonAnalyticsServiceStub
extends AnalyticsServiceStub
REST stub implementation for the AnalyticsService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonAnalyticsServiceStub(AnalyticsServiceStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonAnalyticsServiceStub, using the given settings.protectedHttpJsonAnalyticsServiceStub(AnalyticsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonAnalyticsServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonAnalyticsServiceStubcreate(ClientContext clientContext) static final HttpJsonAnalyticsServiceStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonAnalyticsServiceStubcreate(AnalyticsServiceStubSettings settings) static List<ApiMethodDescriptor>booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.retail.v2alpha.stub.AnalyticsServiceStub
getOperationsStub
-
Constructor Details
-
HttpJsonAnalyticsServiceStub
protected HttpJsonAnalyticsServiceStub(AnalyticsServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonAnalyticsServiceStub, 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
-
HttpJsonAnalyticsServiceStub
protected HttpJsonAnalyticsServiceStub(AnalyticsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonAnalyticsServiceStub, 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 HttpJsonAnalyticsServiceStub create(AnalyticsServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final HttpJsonAnalyticsServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final HttpJsonAnalyticsServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
getHttpJsonOperationsStub
- Overrides:
getHttpJsonOperationsStubin 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
-