Class GrpcMetricsScopesStub (0.3.0)

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.

Inheritance

java.lang.Object > MetricsScopesStub > GrpcMetricsScopesStub

Static Methods

create(ClientContext clientContext)

public static final GrpcMetricsScopesStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcMetricsScopesStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcMetricsScopesStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcMetricsScopesStub
Exceptions
TypeDescription
IOException

create(MetricsScopesStubSettings settings)

public static final GrpcMetricsScopesStub create(MetricsScopesStubSettings settings)
Parameter
NameDescription
settingsMetricsScopesStubSettings
Returns
TypeDescription
GrpcMetricsScopesStub
Exceptions
TypeDescription
IOException

Constructors

GrpcMetricsScopesStub(MetricsScopesStubSettings settings, ClientContext clientContext)

protected GrpcMetricsScopesStub(MetricsScopesStubSettings settings, ClientContext clientContext)

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.

Parameters
NameDescription
settingsMetricsScopesStubSettings
clientContextClientContext

GrpcMetricsScopesStub(MetricsScopesStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcMetricsScopesStub(MetricsScopesStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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.

Parameters
NameDescription
settingsMetricsScopesStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createMonitoredProjectCallable()

public UnaryCallable<CreateMonitoredProjectRequest,Operation> createMonitoredProjectCallable()
Returns
TypeDescription
UnaryCallable<CreateMonitoredProjectRequest,Operation>
Overrides

createMonitoredProjectOperationCallable()

public OperationCallable<CreateMonitoredProjectRequest,MonitoredProject,OperationMetadata> createMonitoredProjectOperationCallable()
Returns
TypeDescription
OperationCallable<CreateMonitoredProjectRequest,MonitoredProject,OperationMetadata>
Overrides

deleteMonitoredProjectCallable()

public UnaryCallable<DeleteMonitoredProjectRequest,Operation> deleteMonitoredProjectCallable()
Returns
TypeDescription
UnaryCallable<DeleteMonitoredProjectRequest,Operation>
Overrides

deleteMonitoredProjectOperationCallable()

public OperationCallable<DeleteMonitoredProjectRequest,Empty,OperationMetadata> deleteMonitoredProjectOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteMonitoredProjectRequest,Empty,OperationMetadata>
Overrides

getMetricsScopeCallable()

public UnaryCallable<GetMetricsScopeRequest,MetricsScope> getMetricsScopeCallable()
Returns
TypeDescription
UnaryCallable<GetMetricsScopeRequest,MetricsScope>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listMetricsScopesByMonitoredProjectCallable()

public UnaryCallable<ListMetricsScopesByMonitoredProjectRequest,ListMetricsScopesByMonitoredProjectResponse> listMetricsScopesByMonitoredProjectCallable()
Returns
TypeDescription
UnaryCallable<ListMetricsScopesByMonitoredProjectRequest,ListMetricsScopesByMonitoredProjectResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()