Class GrpcAnalyticsServiceStub (2.43.0)

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.

Inheritance

java.lang.Object > AnalyticsServiceStub > GrpcAnalyticsServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcAnalyticsServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcAnalyticsServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcAnalyticsServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcAnalyticsServiceStub
Exceptions
TypeDescription
IOException

create(AnalyticsServiceStubSettings settings)

public static final GrpcAnalyticsServiceStub create(AnalyticsServiceStubSettings settings)
Parameter
NameDescription
settingsAnalyticsServiceStubSettings
Returns
TypeDescription
GrpcAnalyticsServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcAnalyticsServiceStub(AnalyticsServiceStubSettings settings, ClientContext clientContext)

protected GrpcAnalyticsServiceStub(AnalyticsServiceStubSettings settings, ClientContext clientContext)

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.

Parameters
NameDescription
settingsAnalyticsServiceStubSettings
clientContextClientContext

GrpcAnalyticsServiceStub(AnalyticsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcAnalyticsServiceStub(AnalyticsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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.

Parameters
NameDescription
settingsAnalyticsServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

exportAnalyticsMetricsCallable()

public UnaryCallable<ExportAnalyticsMetricsRequest,Operation> exportAnalyticsMetricsCallable()
Returns
TypeDescription
UnaryCallable<ExportAnalyticsMetricsRequest,Operation>
Overrides

exportAnalyticsMetricsOperationCallable()

public OperationCallable<ExportAnalyticsMetricsRequest,ExportAnalyticsMetricsResponse,ExportMetadata> exportAnalyticsMetricsOperationCallable()
Returns
TypeDescription
OperationCallable<ExportAnalyticsMetricsRequest,ExportAnalyticsMetricsResponse,ExportMetadata>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()