Class GrpcMetricsServiceV2Stub (3.20.7)

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
Name Description
clientContext ClientContext
Returns
Type Description
GrpcMetricsServiceV2Stub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcMetricsServiceV2Stub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcMetricsServiceV2Stub
Exceptions
Type Description
IOException

create(MetricsServiceV2StubSettings settings)

public static final GrpcMetricsServiceV2Stub create(MetricsServiceV2StubSettings settings)
Parameter
Name Description
settings MetricsServiceV2StubSettings
Returns
Type Description
GrpcMetricsServiceV2Stub
Exceptions
Type Description
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
Name Description
settings MetricsServiceV2StubSettings
clientContext ClientContext

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
Name Description
settings MetricsServiceV2StubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createLogMetricCallable()

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

deleteLogMetricCallable()

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

getLogMetricCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listLogMetricsCallable()

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

listLogMetricsPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateLogMetricCallable()

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