Class GrpcMetricServiceStub (3.18.0)

public class GrpcMetricServiceStub extends MetricServiceStub

gRPC stub implementation for the MetricService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > MetricServiceStub > GrpcMetricServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(MetricServiceStubSettings settings)

public static final GrpcMetricServiceStub create(MetricServiceStubSettings settings)
Parameter
NameDescription
settingsMetricServiceStubSettings
Returns
TypeDescription
GrpcMetricServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcMetricServiceStub(MetricServiceStubSettings settings, ClientContext clientContext)

protected GrpcMetricServiceStub(MetricServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcMetricServiceStub, 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
settingsMetricServiceStubSettings
clientContextClientContext

GrpcMetricServiceStub(MetricServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcMetricServiceStub(MetricServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcMetricServiceStub, 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
settingsMetricServiceStubSettings
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

createMetricDescriptorCallable()

public UnaryCallable<CreateMetricDescriptorRequest,MetricDescriptor> createMetricDescriptorCallable()
Returns
TypeDescription
UnaryCallable<CreateMetricDescriptorRequest,com.google.api.MetricDescriptor>
Overrides

createServiceTimeSeriesCallable()

public UnaryCallable<CreateTimeSeriesRequest,Empty> createServiceTimeSeriesCallable()
Returns
TypeDescription
UnaryCallable<CreateTimeSeriesRequest,Empty>
Overrides

createTimeSeriesCallable()

public UnaryCallable<CreateTimeSeriesRequest,Empty> createTimeSeriesCallable()
Returns
TypeDescription
UnaryCallable<CreateTimeSeriesRequest,Empty>
Overrides

deleteMetricDescriptorCallable()

public UnaryCallable<DeleteMetricDescriptorRequest,Empty> deleteMetricDescriptorCallable()
Returns
TypeDescription
UnaryCallable<DeleteMetricDescriptorRequest,Empty>
Overrides

getMetricDescriptorCallable()

public UnaryCallable<GetMetricDescriptorRequest,MetricDescriptor> getMetricDescriptorCallable()
Returns
TypeDescription
UnaryCallable<GetMetricDescriptorRequest,com.google.api.MetricDescriptor>
Overrides

getMonitoredResourceDescriptorCallable()

public UnaryCallable<GetMonitoredResourceDescriptorRequest,MonitoredResourceDescriptor> getMonitoredResourceDescriptorCallable()
Returns
TypeDescription
UnaryCallable<GetMonitoredResourceDescriptorRequest,com.google.api.MonitoredResourceDescriptor>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listMetricDescriptorsCallable()

public UnaryCallable<ListMetricDescriptorsRequest,ListMetricDescriptorsResponse> listMetricDescriptorsCallable()
Returns
TypeDescription
UnaryCallable<ListMetricDescriptorsRequest,ListMetricDescriptorsResponse>
Overrides

listMetricDescriptorsPagedCallable()

public UnaryCallable<ListMetricDescriptorsRequest,MetricServiceClient.ListMetricDescriptorsPagedResponse> listMetricDescriptorsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListMetricDescriptorsRequest,ListMetricDescriptorsPagedResponse>
Overrides

listMonitoredResourceDescriptorsCallable()

public UnaryCallable<ListMonitoredResourceDescriptorsRequest,ListMonitoredResourceDescriptorsResponse> listMonitoredResourceDescriptorsCallable()
Returns
TypeDescription
UnaryCallable<ListMonitoredResourceDescriptorsRequest,ListMonitoredResourceDescriptorsResponse>
Overrides

listMonitoredResourceDescriptorsPagedCallable()

public UnaryCallable<ListMonitoredResourceDescriptorsRequest,MetricServiceClient.ListMonitoredResourceDescriptorsPagedResponse> listMonitoredResourceDescriptorsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListMonitoredResourceDescriptorsRequest,ListMonitoredResourceDescriptorsPagedResponse>
Overrides

listTimeSeriesCallable()

public UnaryCallable<ListTimeSeriesRequest,ListTimeSeriesResponse> listTimeSeriesCallable()
Returns
TypeDescription
UnaryCallable<ListTimeSeriesRequest,ListTimeSeriesResponse>
Overrides

listTimeSeriesPagedCallable()

public UnaryCallable<ListTimeSeriesRequest,MetricServiceClient.ListTimeSeriesPagedResponse> listTimeSeriesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListTimeSeriesRequest,ListTimeSeriesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()