Class GrpcMetricServiceStub
java.lang.Object
com.google.cloud.monitoring.v3.stub.MetricServiceStub
com.google.cloud.monitoring.v3.stub.GrpcMetricServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the MetricService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcMetricServiceStub(MetricServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcMetricServiceStub, using the given settings.protectedGrpcMetricServiceStub(MetricServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcMetricServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcMetricServiceStubcreate(ClientContext clientContext) static final GrpcMetricServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcMetricServiceStubcreate(MetricServiceStubSettings settings) UnaryCallable<CreateTimeSeriesRequest,com.google.protobuf.Empty> UnaryCallable<CreateTimeSeriesRequest,com.google.protobuf.Empty> UnaryCallable<DeleteMetricDescriptorRequest,com.google.protobuf.Empty> booleanbooleanUnaryCallable<ListMonitoredResourceDescriptorsRequest,MetricServiceClient.ListMonitoredResourceDescriptorsPagedResponse> voidshutdown()void
-
Constructor Details
-
GrpcMetricServiceStub
protected GrpcMetricServiceStub(MetricServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcMetricServiceStub, 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.- Throws:
IOException
-
GrpcMetricServiceStub
protected GrpcMetricServiceStub(MetricServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcMetricServiceStub, 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.- Throws:
IOException
-
-
Method Details
-
create
public static final GrpcMetricServiceStub create(MetricServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcMetricServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
listMonitoredResourceDescriptorsCallable
public UnaryCallable<ListMonitoredResourceDescriptorsRequest,ListMonitoredResourceDescriptorsResponse> listMonitoredResourceDescriptorsCallable()- Overrides:
listMonitoredResourceDescriptorsCallablein classMetricServiceStub
-
listMonitoredResourceDescriptorsPagedCallable
public UnaryCallable<ListMonitoredResourceDescriptorsRequest,MetricServiceClient.ListMonitoredResourceDescriptorsPagedResponse> listMonitoredResourceDescriptorsPagedCallable()- Overrides:
listMonitoredResourceDescriptorsPagedCallablein classMetricServiceStub
-
getMonitoredResourceDescriptorCallable
public UnaryCallable<GetMonitoredResourceDescriptorRequest,MonitoredResourceDescriptor> getMonitoredResourceDescriptorCallable()- Overrides:
getMonitoredResourceDescriptorCallablein classMetricServiceStub
-
listMetricDescriptorsCallable
public UnaryCallable<ListMetricDescriptorsRequest,ListMetricDescriptorsResponse> listMetricDescriptorsCallable()- Overrides:
listMetricDescriptorsCallablein classMetricServiceStub
-
listMetricDescriptorsPagedCallable
public UnaryCallable<ListMetricDescriptorsRequest,MetricServiceClient.ListMetricDescriptorsPagedResponse> listMetricDescriptorsPagedCallable()- Overrides:
listMetricDescriptorsPagedCallablein classMetricServiceStub
-
getMetricDescriptorCallable
- Overrides:
getMetricDescriptorCallablein classMetricServiceStub
-
createMetricDescriptorCallable
public UnaryCallable<CreateMetricDescriptorRequest,MetricDescriptor> createMetricDescriptorCallable()- Overrides:
createMetricDescriptorCallablein classMetricServiceStub
-
deleteMetricDescriptorCallable
public UnaryCallable<DeleteMetricDescriptorRequest,com.google.protobuf.Empty> deleteMetricDescriptorCallable()- Overrides:
deleteMetricDescriptorCallablein classMetricServiceStub
-
listTimeSeriesCallable
- Overrides:
listTimeSeriesCallablein classMetricServiceStub
-
listTimeSeriesPagedCallable
public UnaryCallable<ListTimeSeriesRequest,MetricServiceClient.ListTimeSeriesPagedResponse> listTimeSeriesPagedCallable()- Overrides:
listTimeSeriesPagedCallablein classMetricServiceStub
-
createTimeSeriesCallable
- Overrides:
createTimeSeriesCallablein classMetricServiceStub
-
createServiceTimeSeriesCallable
public UnaryCallable<CreateTimeSeriesRequest,com.google.protobuf.Empty> createServiceTimeSeriesCallable()- Overrides:
createServiceTimeSeriesCallablein classMetricServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classMetricServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-