Interface MetricOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Metric, Metric.Builder

    public interface MetricOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • hasMetricDescriptor

        boolean hasMetricDescriptor()
         The descriptor of the Metric.
         TODO(issue #152): consider only sending the name of descriptor for
         optimization.
         
        .opencensus.proto.metrics.v1.MetricDescriptor metric_descriptor = 1;
        Returns:
        Whether the metricDescriptor field is set.
      • getMetricDescriptor

        MetricDescriptor getMetricDescriptor()
         The descriptor of the Metric.
         TODO(issue #152): consider only sending the name of descriptor for
         optimization.
         
        .opencensus.proto.metrics.v1.MetricDescriptor metric_descriptor = 1;
        Returns:
        The metricDescriptor.
      • getMetricDescriptorOrBuilder

        MetricDescriptorOrBuilder getMetricDescriptorOrBuilder()
         The descriptor of the Metric.
         TODO(issue #152): consider only sending the name of descriptor for
         optimization.
         
        .opencensus.proto.metrics.v1.MetricDescriptor metric_descriptor = 1;
      • getTimeseriesList

        List<TimeSeries> getTimeseriesList()
         One or more timeseries for a single metric, where each timeseries has
         one or more points.
         
        repeated .opencensus.proto.metrics.v1.TimeSeries timeseries = 2;
      • getTimeseries

        TimeSeries getTimeseries​(int index)
         One or more timeseries for a single metric, where each timeseries has
         one or more points.
         
        repeated .opencensus.proto.metrics.v1.TimeSeries timeseries = 2;
      • getTimeseriesCount

        int getTimeseriesCount()
         One or more timeseries for a single metric, where each timeseries has
         one or more points.
         
        repeated .opencensus.proto.metrics.v1.TimeSeries timeseries = 2;
      • getTimeseriesOrBuilderList

        List<? extends TimeSeriesOrBuilder> getTimeseriesOrBuilderList()
         One or more timeseries for a single metric, where each timeseries has
         one or more points.
         
        repeated .opencensus.proto.metrics.v1.TimeSeries timeseries = 2;
      • getTimeseriesOrBuilder

        TimeSeriesOrBuilder getTimeseriesOrBuilder​(int index)
         One or more timeseries for a single metric, where each timeseries has
         one or more points.
         
        repeated .opencensus.proto.metrics.v1.TimeSeries timeseries = 2;
      • hasResource

        boolean hasResource()
         The resource for the metric. If unset, it may be set to a default value
         provided for a sequence of messages in an RPC stream.
         
        .opencensus.proto.resource.v1.Resource resource = 3;
        Returns:
        Whether the resource field is set.
      • getResource

        Resource getResource()
         The resource for the metric. If unset, it may be set to a default value
         provided for a sequence of messages in an RPC stream.
         
        .opencensus.proto.resource.v1.Resource resource = 3;
        Returns:
        The resource.
      • getResourceOrBuilder

        ResourceOrBuilder getResourceOrBuilder()
         The resource for the metric. If unset, it may be set to a default value
         provided for a sequence of messages in an RPC stream.
         
        .opencensus.proto.resource.v1.Resource resource = 3;