Class GrpcMetricsServiceV2Stub (3.16.2)

public class GrpcMetricsServiceV2Stub extends MetricsServiceV2Stub

gRPC stub implementation for the MetricsServiceV2 service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > MetricsServiceV2Stub > GrpcMetricsServiceV2Stub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(MetricsServiceV2StubSettings settings)

public static final GrpcMetricsServiceV2Stub create(MetricsServiceV2StubSettings settings)
Parameter
NameDescription
settingsMetricsServiceV2StubSettings
Returns
TypeDescription
GrpcMetricsServiceV2Stub
Exceptions
TypeDescription
IOException

Constructors

GrpcMetricsServiceV2Stub(MetricsServiceV2StubSettings settings, ClientContext clientContext)

protected GrpcMetricsServiceV2Stub(MetricsServiceV2StubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcMetricsServiceV2Stub, 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
settingsMetricsServiceV2StubSettings
clientContextClientContext

GrpcMetricsServiceV2Stub(MetricsServiceV2StubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcMetricsServiceV2Stub(MetricsServiceV2StubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcMetricsServiceV2Stub, 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
settingsMetricsServiceV2StubSettings
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

createLogMetricCallable()

public UnaryCallable<CreateLogMetricRequest,LogMetric> createLogMetricCallable()
Returns
TypeDescription
UnaryCallable<CreateLogMetricRequest,LogMetric>
Overrides

deleteLogMetricCallable()

public UnaryCallable<DeleteLogMetricRequest,Empty> deleteLogMetricCallable()
Returns
TypeDescription
UnaryCallable<DeleteLogMetricRequest,Empty>
Overrides

getLogMetricCallable()

public UnaryCallable<GetLogMetricRequest,LogMetric> getLogMetricCallable()
Returns
TypeDescription
UnaryCallable<GetLogMetricRequest,LogMetric>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listLogMetricsCallable()

public UnaryCallable<ListLogMetricsRequest,ListLogMetricsResponse> listLogMetricsCallable()
Returns
TypeDescription
UnaryCallable<ListLogMetricsRequest,ListLogMetricsResponse>
Overrides

listLogMetricsPagedCallable()

public UnaryCallable<ListLogMetricsRequest,MetricsClient.ListLogMetricsPagedResponse> listLogMetricsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListLogMetricsRequest,ListLogMetricsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateLogMetricCallable()

public UnaryCallable<UpdateLogMetricRequest,LogMetric> updateLogMetricCallable()
Returns
TypeDescription
UnaryCallable<UpdateLogMetricRequest,LogMetric>
Overrides