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.
Static Methods
create(ClientContext clientContext)
public static final GrpcMetricsServiceV2Stub create(ClientContext clientContext)
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcMetricsServiceV2Stub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
create(MetricsServiceV2StubSettings settings)
public static final GrpcMetricsServiceV2Stub create(MetricsServiceV2StubSettings settings)
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.
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.
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
close()
public final void close()
Overrides
createLogMetricCallable()
public UnaryCallable<CreateLogMetricRequest,LogMetric> createLogMetricCallable()
Overrides
deleteLogMetricCallable()
public UnaryCallable<DeleteLogMetricRequest,Empty> deleteLogMetricCallable()
Overrides
getLogMetricCallable()
public UnaryCallable<GetLogMetricRequest,LogMetric> getLogMetricCallable()
Overrides
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
isShutdown()
public boolean isShutdown()
isTerminated()
public boolean isTerminated()
listLogMetricsCallable()
public UnaryCallable<ListLogMetricsRequest,ListLogMetricsResponse> listLogMetricsCallable()
Overrides
listLogMetricsPagedCallable()
public UnaryCallable<ListLogMetricsRequest,MetricsClient.ListLogMetricsPagedResponse> listLogMetricsPagedCallable()
Overrides
shutdown()
shutdownNow()
public void shutdownNow()
updateLogMetricCallable()
public UnaryCallable<UpdateLogMetricRequest,LogMetric> updateLogMetricCallable()
Overrides