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 protectedGrpcMetricServiceStub(MetricServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcMetricServiceStub, using the given settings.protectedGrpcMetricServiceStub(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:
listMonitoredResourceDescriptorsCallablein classMetricServiceStub
-
listMonitoredResourceDescriptorsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListMonitoredResourceDescriptorsRequest,MetricServiceClient.ListMonitoredResourceDescriptorsPagedResponse> listMonitoredResourceDescriptorsPagedCallable()
- Overrides:
listMonitoredResourceDescriptorsPagedCallablein classMetricServiceStub
-
getMonitoredResourceDescriptorCallable
public com.google.api.gax.rpc.UnaryCallable<GetMonitoredResourceDescriptorRequest,com.google.api.MonitoredResourceDescriptor> getMonitoredResourceDescriptorCallable()
- Overrides:
getMonitoredResourceDescriptorCallablein classMetricServiceStub
-
listMetricDescriptorsCallable
public com.google.api.gax.rpc.UnaryCallable<ListMetricDescriptorsRequest,ListMetricDescriptorsResponse> listMetricDescriptorsCallable()
- Overrides:
listMetricDescriptorsCallablein classMetricServiceStub
-
listMetricDescriptorsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListMetricDescriptorsRequest,MetricServiceClient.ListMetricDescriptorsPagedResponse> listMetricDescriptorsPagedCallable()
- Overrides:
listMetricDescriptorsPagedCallablein classMetricServiceStub
-
getMetricDescriptorCallable
public com.google.api.gax.rpc.UnaryCallable<GetMetricDescriptorRequest,com.google.api.MetricDescriptor> getMetricDescriptorCallable()
- Overrides:
getMetricDescriptorCallablein classMetricServiceStub
-
createMetricDescriptorCallable
public com.google.api.gax.rpc.UnaryCallable<CreateMetricDescriptorRequest,com.google.api.MetricDescriptor> createMetricDescriptorCallable()
- Overrides:
createMetricDescriptorCallablein classMetricServiceStub
-
deleteMetricDescriptorCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteMetricDescriptorRequest,com.google.protobuf.Empty> deleteMetricDescriptorCallable()
- Overrides:
deleteMetricDescriptorCallablein classMetricServiceStub
-
listTimeSeriesCallable
public com.google.api.gax.rpc.UnaryCallable<ListTimeSeriesRequest,ListTimeSeriesResponse> listTimeSeriesCallable()
- Overrides:
listTimeSeriesCallablein classMetricServiceStub
-
listTimeSeriesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListTimeSeriesRequest,MetricServiceClient.ListTimeSeriesPagedResponse> listTimeSeriesPagedCallable()
- Overrides:
listTimeSeriesPagedCallablein classMetricServiceStub
-
createTimeSeriesCallable
public com.google.api.gax.rpc.UnaryCallable<CreateTimeSeriesRequest,com.google.protobuf.Empty> createTimeSeriesCallable()
- Overrides:
createTimeSeriesCallablein classMetricServiceStub
-
createServiceTimeSeriesCallable
public com.google.api.gax.rpc.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
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-