@Generated(value="by gapic-generator") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcMetricsServiceV2Stub extends MetricsServiceV2Stub
This class is for advanced usage and reflects the underlying API directly.
| Modifier | Constructor and Description |
|---|---|
protected |
GrpcMetricsServiceV2Stub(MetricsServiceV2StubSettings settings,
ClientContext clientContext)
Constructs an instance of GrpcMetricsServiceV2Stub, using the given settings.
|
protected |
GrpcMetricsServiceV2Stub(MetricsServiceV2StubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcMetricsServiceV2Stub, using the given settings.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static GrpcMetricsServiceV2Stub |
create(ClientContext clientContext) |
static GrpcMetricsServiceV2Stub |
create(ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
static GrpcMetricsServiceV2Stub |
create(MetricsServiceV2StubSettings settings) |
UnaryCallable<com.google.logging.v2.CreateLogMetricRequest,com.google.logging.v2.LogMetric> |
createLogMetricCallable() |
UnaryCallable<com.google.logging.v2.DeleteLogMetricRequest,Empty> |
deleteLogMetricCallable() |
UnaryCallable<com.google.logging.v2.GetLogMetricRequest,com.google.logging.v2.LogMetric> |
getLogMetricCallable() |
boolean |
isShutdown() |
boolean |
isTerminated() |
UnaryCallable<com.google.logging.v2.ListLogMetricsRequest,com.google.logging.v2.ListLogMetricsResponse> |
listLogMetricsCallable() |
UnaryCallable<com.google.logging.v2.ListLogMetricsRequest,MetricsClient.ListLogMetricsPagedResponse> |
listLogMetricsPagedCallable() |
void |
shutdown() |
void |
shutdownNow() |
UnaryCallable<com.google.logging.v2.UpdateLogMetricRequest,com.google.logging.v2.LogMetric> |
updateLogMetricCallable() |
protected GrpcMetricsServiceV2Stub(MetricsServiceV2StubSettings settings, ClientContext clientContext) throws IOException
IOExceptionprotected GrpcMetricsServiceV2Stub(MetricsServiceV2StubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic static final GrpcMetricsServiceV2Stub create(MetricsServiceV2StubSettings settings) throws IOException
IOExceptionpublic static final GrpcMetricsServiceV2Stub create(ClientContext clientContext) throws IOException
IOExceptionpublic static final GrpcMetricsServiceV2Stub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic UnaryCallable<com.google.logging.v2.ListLogMetricsRequest,MetricsClient.ListLogMetricsPagedResponse> listLogMetricsPagedCallable()
listLogMetricsPagedCallable in class MetricsServiceV2Stubpublic UnaryCallable<com.google.logging.v2.ListLogMetricsRequest,com.google.logging.v2.ListLogMetricsResponse> listLogMetricsCallable()
listLogMetricsCallable in class MetricsServiceV2Stubpublic UnaryCallable<com.google.logging.v2.GetLogMetricRequest,com.google.logging.v2.LogMetric> getLogMetricCallable()
getLogMetricCallable in class MetricsServiceV2Stubpublic UnaryCallable<com.google.logging.v2.CreateLogMetricRequest,com.google.logging.v2.LogMetric> createLogMetricCallable()
createLogMetricCallable in class MetricsServiceV2Stubpublic UnaryCallable<com.google.logging.v2.UpdateLogMetricRequest,com.google.logging.v2.LogMetric> updateLogMetricCallable()
updateLogMetricCallable in class MetricsServiceV2Stubpublic UnaryCallable<com.google.logging.v2.DeleteLogMetricRequest,Empty> deleteLogMetricCallable()
deleteLogMetricCallable in class MetricsServiceV2Stubpublic final void close()
close in interface AutoCloseableclose in class MetricsServiceV2Stubpublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionCopyright © 2019 Google LLC. All rights reserved.