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 protected
GrpcMetricsScopesStub(MetricsScopesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcMetricsScopesStub, using the given settings.protected
GrpcMetricsScopesStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static GrpcMetricsScopesStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcMetricsScopesStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcMetricsScopesStub
create(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.GrpcOperationsStub
getOperationsStub()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListMetricsScopesByMonitoredProjectRequest,ListMetricsScopesByMonitoredProjectResponse>
listMetricsScopesByMonitoredProjectCallable()
void
shutdown()
void
shutdownNow()
-
-
-
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:
getOperationsStub
in classMetricsScopesStub
-
getMetricsScopeCallable
public com.google.api.gax.rpc.UnaryCallable<GetMetricsScopeRequest,MetricsScope> getMetricsScopeCallable()
- Overrides:
getMetricsScopeCallable
in classMetricsScopesStub
-
listMetricsScopesByMonitoredProjectCallable
public com.google.api.gax.rpc.UnaryCallable<ListMetricsScopesByMonitoredProjectRequest,ListMetricsScopesByMonitoredProjectResponse> listMetricsScopesByMonitoredProjectCallable()
- Overrides:
listMetricsScopesByMonitoredProjectCallable
in classMetricsScopesStub
-
createMonitoredProjectCallable
public com.google.api.gax.rpc.UnaryCallable<CreateMonitoredProjectRequest,com.google.longrunning.Operation> createMonitoredProjectCallable()
- Overrides:
createMonitoredProjectCallable
in classMetricsScopesStub
-
createMonitoredProjectOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateMonitoredProjectRequest,MonitoredProject,OperationMetadata> createMonitoredProjectOperationCallable()
- Overrides:
createMonitoredProjectOperationCallable
in classMetricsScopesStub
-
deleteMonitoredProjectCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteMonitoredProjectRequest,com.google.longrunning.Operation> deleteMonitoredProjectCallable()
- Overrides:
deleteMonitoredProjectCallable
in classMetricsScopesStub
-
deleteMonitoredProjectOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteMonitoredProjectRequest,com.google.protobuf.Empty,OperationMetadata> deleteMonitoredProjectOperationCallable()
- Overrides:
deleteMonitoredProjectOperationCallable
in classMetricsScopesStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-