Class GrpcMetricsScopesStub
java.lang.Object
com.google.monitoring.metricsscope.v1.stub.MetricsScopesStub
com.google.monitoring.metricsscope.v1.stub.GrpcMetricsScopesStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the MetricsScopes service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcMetricsScopesStub(MetricsScopesStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcMetricsScopesStub, using the given settings.protectedGrpcMetricsScopesStub(MetricsScopesStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcMetricsScopesStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcMetricsScopesStubcreate(ClientContext clientContext) static final GrpcMetricsScopesStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcMetricsScopesStubcreate(MetricsScopesStubSettings settings) OperationCallable<DeleteMonitoredProjectRequest,com.google.protobuf.Empty, OperationMetadata> booleanbooleanUnaryCallable<ListMetricsScopesByMonitoredProjectRequest,ListMetricsScopesByMonitoredProjectResponse> voidshutdown()void
-
Constructor Details
-
GrpcMetricsScopesStub
protected GrpcMetricsScopesStub(MetricsScopesStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcMetricsScopesStub, 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
-
GrpcMetricsScopesStub
protected GrpcMetricsScopesStub(MetricsScopesStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcMetricsScopesStub, 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 GrpcMetricsScopesStub create(MetricsScopesStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcMetricsScopesStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classMetricsScopesStub
-
getMetricsScopeCallable
- Overrides:
getMetricsScopeCallablein classMetricsScopesStub
-
listMetricsScopesByMonitoredProjectCallable
public UnaryCallable<ListMetricsScopesByMonitoredProjectRequest,ListMetricsScopesByMonitoredProjectResponse> listMetricsScopesByMonitoredProjectCallable()- Overrides:
listMetricsScopesByMonitoredProjectCallablein classMetricsScopesStub
-
createMonitoredProjectCallable
- Overrides:
createMonitoredProjectCallablein classMetricsScopesStub
-
createMonitoredProjectOperationCallable
public OperationCallable<CreateMonitoredProjectRequest,MonitoredProject, createMonitoredProjectOperationCallable()OperationMetadata> - Overrides:
createMonitoredProjectOperationCallablein classMetricsScopesStub
-
deleteMonitoredProjectCallable
- Overrides:
deleteMonitoredProjectCallablein classMetricsScopesStub
-
deleteMonitoredProjectOperationCallable
public OperationCallable<DeleteMonitoredProjectRequest,com.google.protobuf.Empty, deleteMonitoredProjectOperationCallable()OperationMetadata> - Overrides:
deleteMonitoredProjectOperationCallablein classMetricsScopesStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classMetricsScopesStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-