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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(MetricServiceStubSettings settings)

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

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
Name Description
settings MetricServiceStubSettings
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

createMetricDescriptorCallable()

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

createServiceTimeSeriesCallable()

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

createTimeSeriesCallable()

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

deleteMetricDescriptorCallable()

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

getMetricDescriptorCallable()

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

getMonitoredResourceDescriptorCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listMetricDescriptorsCallable()

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

listMetricDescriptorsPagedCallable()

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

listMonitoredResourceDescriptorsCallable()

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

listMonitoredResourceDescriptorsPagedCallable()

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

listTimeSeriesCallable()

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

listTimeSeriesPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()