Class GrpcMetricsScopesStub (0.38.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
Name Description
clientContext ClientContext
Returns
Type Description
GrpcMetricsScopesStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcMetricsScopesStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcMetricsScopesStub
Exceptions
Type Description
IOException

create(MetricsScopesStubSettings settings)

public static final GrpcMetricsScopesStub create(MetricsScopesStubSettings settings)
Parameter
Name Description
settings MetricsScopesStubSettings
Returns
Type Description
GrpcMetricsScopesStub
Exceptions
Type Description
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
Name Description
settings MetricsScopesStubSettings
clientContext ClientContext

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
Name Description
settings MetricsScopesStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createMonitoredProjectCallable()

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

createMonitoredProjectOperationCallable()

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

deleteMonitoredProjectCallable()

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

deleteMonitoredProjectOperationCallable()

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

getMetricsScopeCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listMetricsScopesByMonitoredProjectCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()