@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
IOException
protected GrpcMetricsServiceV2Stub(MetricsServiceV2StubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcMetricsServiceV2Stub create(MetricsServiceV2StubSettings settings) throws IOException
IOException
public static final GrpcMetricsServiceV2Stub create(ClientContext clientContext) throws IOException
IOException
public static final GrpcMetricsServiceV2Stub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public UnaryCallable<com.google.logging.v2.ListLogMetricsRequest,MetricsClient.ListLogMetricsPagedResponse> listLogMetricsPagedCallable()
listLogMetricsPagedCallable
in class MetricsServiceV2Stub
public UnaryCallable<com.google.logging.v2.ListLogMetricsRequest,com.google.logging.v2.ListLogMetricsResponse> listLogMetricsCallable()
listLogMetricsCallable
in class MetricsServiceV2Stub
public UnaryCallable<com.google.logging.v2.GetLogMetricRequest,com.google.logging.v2.LogMetric> getLogMetricCallable()
getLogMetricCallable
in class MetricsServiceV2Stub
public UnaryCallable<com.google.logging.v2.CreateLogMetricRequest,com.google.logging.v2.LogMetric> createLogMetricCallable()
createLogMetricCallable
in class MetricsServiceV2Stub
public UnaryCallable<com.google.logging.v2.UpdateLogMetricRequest,com.google.logging.v2.LogMetric> updateLogMetricCallable()
updateLogMetricCallable
in class MetricsServiceV2Stub
public UnaryCallable<com.google.logging.v2.DeleteLogMetricRequest,Empty> deleteLogMetricCallable()
deleteLogMetricCallable
in class MetricsServiceV2Stub
public final void close()
close
in interface AutoCloseable
close
in class MetricsServiceV2Stub
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2019 Google LLC. All rights reserved.