Class GrpcMetricServiceStub
- java.lang.Object
-
- com.google.cloud.monitoring.v3.stub.MetricServiceStub
-
- com.google.cloud.monitoring.v3.stub.GrpcMetricServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcMetricServiceStub extends MetricServiceStub
gRPC stub implementation for the MetricService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcMetricServiceStub(MetricServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcMetricServiceStub, using the given settings.protected
GrpcMetricServiceStub(MetricServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcMetricServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
GrpcMetricServiceStub
protected GrpcMetricServiceStub(MetricServiceStubSettings settings, com.google.api.gax.rpc.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, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.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 Detail
-
create
public static final GrpcMetricServiceStub create(MetricServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcMetricServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcMetricServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
-
listMonitoredResourceDescriptorsCallable
public com.google.api.gax.rpc.UnaryCallable<ListMonitoredResourceDescriptorsRequest,ListMonitoredResourceDescriptorsResponse> listMonitoredResourceDescriptorsCallable()
- Overrides:
listMonitoredResourceDescriptorsCallable
in classMetricServiceStub
-
listMonitoredResourceDescriptorsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListMonitoredResourceDescriptorsRequest,MetricServiceClient.ListMonitoredResourceDescriptorsPagedResponse> listMonitoredResourceDescriptorsPagedCallable()
- Overrides:
listMonitoredResourceDescriptorsPagedCallable
in classMetricServiceStub
-
getMonitoredResourceDescriptorCallable
public com.google.api.gax.rpc.UnaryCallable<GetMonitoredResourceDescriptorRequest,com.google.api.MonitoredResourceDescriptor> getMonitoredResourceDescriptorCallable()
- Overrides:
getMonitoredResourceDescriptorCallable
in classMetricServiceStub
-
listMetricDescriptorsCallable
public com.google.api.gax.rpc.UnaryCallable<ListMetricDescriptorsRequest,ListMetricDescriptorsResponse> listMetricDescriptorsCallable()
- Overrides:
listMetricDescriptorsCallable
in classMetricServiceStub
-
listMetricDescriptorsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListMetricDescriptorsRequest,MetricServiceClient.ListMetricDescriptorsPagedResponse> listMetricDescriptorsPagedCallable()
- Overrides:
listMetricDescriptorsPagedCallable
in classMetricServiceStub
-
getMetricDescriptorCallable
public com.google.api.gax.rpc.UnaryCallable<GetMetricDescriptorRequest,com.google.api.MetricDescriptor> getMetricDescriptorCallable()
- Overrides:
getMetricDescriptorCallable
in classMetricServiceStub
-
createMetricDescriptorCallable
public com.google.api.gax.rpc.UnaryCallable<CreateMetricDescriptorRequest,com.google.api.MetricDescriptor> createMetricDescriptorCallable()
- Overrides:
createMetricDescriptorCallable
in classMetricServiceStub
-
deleteMetricDescriptorCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteMetricDescriptorRequest,com.google.protobuf.Empty> deleteMetricDescriptorCallable()
- Overrides:
deleteMetricDescriptorCallable
in classMetricServiceStub
-
listTimeSeriesCallable
public com.google.api.gax.rpc.UnaryCallable<ListTimeSeriesRequest,ListTimeSeriesResponse> listTimeSeriesCallable()
- Overrides:
listTimeSeriesCallable
in classMetricServiceStub
-
listTimeSeriesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListTimeSeriesRequest,MetricServiceClient.ListTimeSeriesPagedResponse> listTimeSeriesPagedCallable()
- Overrides:
listTimeSeriesPagedCallable
in classMetricServiceStub
-
createTimeSeriesCallable
public com.google.api.gax.rpc.UnaryCallable<CreateTimeSeriesRequest,com.google.protobuf.Empty> createTimeSeriesCallable()
- Overrides:
createTimeSeriesCallable
in classMetricServiceStub
-
createServiceTimeSeriesCallable
public com.google.api.gax.rpc.UnaryCallable<CreateTimeSeriesRequest,com.google.protobuf.Empty> createServiceTimeSeriesCallable()
- Overrides:
createServiceTimeSeriesCallable
in classMetricServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classMetricServiceStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-