@Generated(value="by gapic-generator") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcMetricServiceStub extends MetricServiceStub
This class is for advanced usage and reflects the underlying API directly.
Modifier | Constructor and Description |
---|---|
protected |
GrpcMetricServiceStub(MetricServiceStubSettings settings,
ClientContext clientContext)
Constructs an instance of GrpcMetricServiceStub, using the given settings.
|
protected |
GrpcMetricServiceStub(MetricServiceStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcMetricServiceStub, using the given settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static GrpcMetricServiceStub |
create(ClientContext clientContext) |
static GrpcMetricServiceStub |
create(ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
static GrpcMetricServiceStub |
create(MetricServiceStubSettings settings) |
UnaryCallable<com.google.monitoring.v3.CreateMetricDescriptorRequest,com.google.api.MetricDescriptor> |
createMetricDescriptorCallable() |
UnaryCallable<com.google.monitoring.v3.CreateTimeSeriesRequest,Empty> |
createTimeSeriesCallable() |
UnaryCallable<com.google.monitoring.v3.DeleteMetricDescriptorRequest,Empty> |
deleteMetricDescriptorCallable() |
UnaryCallable<com.google.monitoring.v3.GetMetricDescriptorRequest,com.google.api.MetricDescriptor> |
getMetricDescriptorCallable() |
UnaryCallable<com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest,com.google.api.MonitoredResourceDescriptor> |
getMonitoredResourceDescriptorCallable() |
boolean |
isShutdown() |
boolean |
isTerminated() |
UnaryCallable<com.google.monitoring.v3.ListMetricDescriptorsRequest,com.google.monitoring.v3.ListMetricDescriptorsResponse> |
listMetricDescriptorsCallable() |
UnaryCallable<com.google.monitoring.v3.ListMetricDescriptorsRequest,MetricServiceClient.ListMetricDescriptorsPagedResponse> |
listMetricDescriptorsPagedCallable() |
UnaryCallable<com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest,com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse> |
listMonitoredResourceDescriptorsCallable() |
UnaryCallable<com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest,MetricServiceClient.ListMonitoredResourceDescriptorsPagedResponse> |
listMonitoredResourceDescriptorsPagedCallable() |
UnaryCallable<com.google.monitoring.v3.ListTimeSeriesRequest,com.google.monitoring.v3.ListTimeSeriesResponse> |
listTimeSeriesCallable() |
UnaryCallable<com.google.monitoring.v3.ListTimeSeriesRequest,MetricServiceClient.ListTimeSeriesPagedResponse> |
listTimeSeriesPagedCallable() |
void |
shutdown() |
void |
shutdownNow() |
protected GrpcMetricServiceStub(MetricServiceStubSettings settings, ClientContext clientContext) throws IOException
IOException
protected GrpcMetricServiceStub(MetricServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcMetricServiceStub create(MetricServiceStubSettings settings) throws IOException
IOException
public static final GrpcMetricServiceStub create(ClientContext clientContext) throws IOException
IOException
public static final GrpcMetricServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public UnaryCallable<com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest,MetricServiceClient.ListMonitoredResourceDescriptorsPagedResponse> listMonitoredResourceDescriptorsPagedCallable()
listMonitoredResourceDescriptorsPagedCallable
in class MetricServiceStub
public UnaryCallable<com.google.monitoring.v3.ListMonitoredResourceDescriptorsRequest,com.google.monitoring.v3.ListMonitoredResourceDescriptorsResponse> listMonitoredResourceDescriptorsCallable()
listMonitoredResourceDescriptorsCallable
in class MetricServiceStub
public UnaryCallable<com.google.monitoring.v3.GetMonitoredResourceDescriptorRequest,com.google.api.MonitoredResourceDescriptor> getMonitoredResourceDescriptorCallable()
getMonitoredResourceDescriptorCallable
in class MetricServiceStub
public UnaryCallable<com.google.monitoring.v3.ListMetricDescriptorsRequest,MetricServiceClient.ListMetricDescriptorsPagedResponse> listMetricDescriptorsPagedCallable()
listMetricDescriptorsPagedCallable
in class MetricServiceStub
public UnaryCallable<com.google.monitoring.v3.ListMetricDescriptorsRequest,com.google.monitoring.v3.ListMetricDescriptorsResponse> listMetricDescriptorsCallable()
listMetricDescriptorsCallable
in class MetricServiceStub
public UnaryCallable<com.google.monitoring.v3.GetMetricDescriptorRequest,com.google.api.MetricDescriptor> getMetricDescriptorCallable()
getMetricDescriptorCallable
in class MetricServiceStub
public UnaryCallable<com.google.monitoring.v3.CreateMetricDescriptorRequest,com.google.api.MetricDescriptor> createMetricDescriptorCallable()
createMetricDescriptorCallable
in class MetricServiceStub
public UnaryCallable<com.google.monitoring.v3.DeleteMetricDescriptorRequest,Empty> deleteMetricDescriptorCallable()
deleteMetricDescriptorCallable
in class MetricServiceStub
public UnaryCallable<com.google.monitoring.v3.ListTimeSeriesRequest,MetricServiceClient.ListTimeSeriesPagedResponse> listTimeSeriesPagedCallable()
listTimeSeriesPagedCallable
in class MetricServiceStub
public UnaryCallable<com.google.monitoring.v3.ListTimeSeriesRequest,com.google.monitoring.v3.ListTimeSeriesResponse> listTimeSeriesCallable()
listTimeSeriesCallable
in class MetricServiceStub
public UnaryCallable<com.google.monitoring.v3.CreateTimeSeriesRequest,Empty> createTimeSeriesCallable()
createTimeSeriesCallable
in class MetricServiceStub
public final void close()
close
in interface AutoCloseable
close
in class MetricServiceStub
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.