Class GrpcMetricsScopesStub
- java.lang.Object
-
- com.google.monitoring.metricsscope.v1.stub.MetricsScopesStub
-
- com.google.monitoring.metricsscope.v1.stub.GrpcMetricsScopesStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcMetricsScopesStub extends MetricsScopesStub
gRPC stub implementation for the MetricsScopes service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcMetricsScopesStub(MetricsScopesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcMetricsScopesStub, using the given settings.protectedGrpcMetricsScopesStub(MetricsScopesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcMetricsScopesStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static GrpcMetricsScopesStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcMetricsScopesStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcMetricsScopesStubcreate(MetricsScopesStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateMonitoredProjectRequest,com.google.longrunning.Operation>createMonitoredProjectCallable()com.google.api.gax.rpc.OperationCallable<CreateMonitoredProjectRequest,MonitoredProject,OperationMetadata>createMonitoredProjectOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteMonitoredProjectRequest,com.google.longrunning.Operation>deleteMonitoredProjectCallable()com.google.api.gax.rpc.OperationCallable<DeleteMonitoredProjectRequest,com.google.protobuf.Empty,OperationMetadata>deleteMonitoredProjectOperationCallable()com.google.api.gax.rpc.UnaryCallable<GetMetricsScopeRequest,MetricsScope>getMetricsScopeCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListMetricsScopesByMonitoredProjectRequest,ListMetricsScopesByMonitoredProjectResponse>listMetricsScopesByMonitoredProjectCallable()voidshutdown()voidshutdownNow()
-
-
-
Constructor Detail
-
GrpcMetricsScopesStub
protected GrpcMetricsScopesStub(MetricsScopesStubSettings settings, com.google.api.gax.rpc.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, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.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 Detail
-
create
public static final GrpcMetricsScopesStub create(MetricsScopesStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcMetricsScopesStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcMetricsScopesStub 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()
- Overrides:
getOperationsStubin classMetricsScopesStub
-
getMetricsScopeCallable
public com.google.api.gax.rpc.UnaryCallable<GetMetricsScopeRequest,MetricsScope> getMetricsScopeCallable()
- Overrides:
getMetricsScopeCallablein classMetricsScopesStub
-
listMetricsScopesByMonitoredProjectCallable
public com.google.api.gax.rpc.UnaryCallable<ListMetricsScopesByMonitoredProjectRequest,ListMetricsScopesByMonitoredProjectResponse> listMetricsScopesByMonitoredProjectCallable()
- Overrides:
listMetricsScopesByMonitoredProjectCallablein classMetricsScopesStub
-
createMonitoredProjectCallable
public com.google.api.gax.rpc.UnaryCallable<CreateMonitoredProjectRequest,com.google.longrunning.Operation> createMonitoredProjectCallable()
- Overrides:
createMonitoredProjectCallablein classMetricsScopesStub
-
createMonitoredProjectOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateMonitoredProjectRequest,MonitoredProject,OperationMetadata> createMonitoredProjectOperationCallable()
- Overrides:
createMonitoredProjectOperationCallablein classMetricsScopesStub
-
deleteMonitoredProjectCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteMonitoredProjectRequest,com.google.longrunning.Operation> deleteMonitoredProjectCallable()
- Overrides:
deleteMonitoredProjectCallablein classMetricsScopesStub
-
deleteMonitoredProjectOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteMonitoredProjectRequest,com.google.protobuf.Empty,OperationMetadata> deleteMonitoredProjectOperationCallable()
- 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
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-