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