Class TimeSeries.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TimeSeriesOrBuilder, Cloneable
    Enclosing class:
    TimeSeries

    public static final class TimeSeries.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
    implements TimeSeriesOrBuilder
     A collection of data points that describes the time-varying values
     of a metric.
     
    Protobuf type opencensus.proto.metrics.v1.TimeSeries
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
      • clear

        public TimeSeries.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
      • getDefaultInstanceForType

        public TimeSeries getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public TimeSeries build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public TimeSeries buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public TimeSeries.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
      • setField

        public TimeSeries.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                           Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
      • clearField

        public TimeSeries.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
      • clearOneof

        public TimeSeries.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
      • setRepeatedField

        public TimeSeries.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   int index,
                                                   Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
      • addRepeatedField

        public TimeSeries.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
      • mergeFrom

        public TimeSeries.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TimeSeries.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
      • mergeFrom

        public TimeSeries.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TimeSeries.Builder>
        Throws:
        IOException
      • hasStartTimestamp

        public boolean hasStartTimestamp()
         Must be present for cumulative metrics. The time when the cumulative value
         was reset to zero. Exclusive. The cumulative value is over the time interval
         (start_timestamp, timestamp]. If not specified, the backend can use the
         previous recorded value.
         
        .google.protobuf.Timestamp start_timestamp = 1;
        Specified by:
        hasStartTimestamp in interface TimeSeriesOrBuilder
        Returns:
        Whether the startTimestamp field is set.
      • getStartTimestamp

        public com.google.protobuf.Timestamp getStartTimestamp()
         Must be present for cumulative metrics. The time when the cumulative value
         was reset to zero. Exclusive. The cumulative value is over the time interval
         (start_timestamp, timestamp]. If not specified, the backend can use the
         previous recorded value.
         
        .google.protobuf.Timestamp start_timestamp = 1;
        Specified by:
        getStartTimestamp in interface TimeSeriesOrBuilder
        Returns:
        The startTimestamp.
      • setStartTimestamp

        public TimeSeries.Builder setStartTimestamp​(com.google.protobuf.Timestamp value)
         Must be present for cumulative metrics. The time when the cumulative value
         was reset to zero. Exclusive. The cumulative value is over the time interval
         (start_timestamp, timestamp]. If not specified, the backend can use the
         previous recorded value.
         
        .google.protobuf.Timestamp start_timestamp = 1;
      • setStartTimestamp

        public TimeSeries.Builder setStartTimestamp​(com.google.protobuf.Timestamp.Builder builderForValue)
         Must be present for cumulative metrics. The time when the cumulative value
         was reset to zero. Exclusive. The cumulative value is over the time interval
         (start_timestamp, timestamp]. If not specified, the backend can use the
         previous recorded value.
         
        .google.protobuf.Timestamp start_timestamp = 1;
      • mergeStartTimestamp

        public TimeSeries.Builder mergeStartTimestamp​(com.google.protobuf.Timestamp value)
         Must be present for cumulative metrics. The time when the cumulative value
         was reset to zero. Exclusive. The cumulative value is over the time interval
         (start_timestamp, timestamp]. If not specified, the backend can use the
         previous recorded value.
         
        .google.protobuf.Timestamp start_timestamp = 1;
      • clearStartTimestamp

        public TimeSeries.Builder clearStartTimestamp()
         Must be present for cumulative metrics. The time when the cumulative value
         was reset to zero. Exclusive. The cumulative value is over the time interval
         (start_timestamp, timestamp]. If not specified, the backend can use the
         previous recorded value.
         
        .google.protobuf.Timestamp start_timestamp = 1;
      • getStartTimestampBuilder

        public com.google.protobuf.Timestamp.Builder getStartTimestampBuilder()
         Must be present for cumulative metrics. The time when the cumulative value
         was reset to zero. Exclusive. The cumulative value is over the time interval
         (start_timestamp, timestamp]. If not specified, the backend can use the
         previous recorded value.
         
        .google.protobuf.Timestamp start_timestamp = 1;
      • getStartTimestampOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimestampOrBuilder()
         Must be present for cumulative metrics. The time when the cumulative value
         was reset to zero. Exclusive. The cumulative value is over the time interval
         (start_timestamp, timestamp]. If not specified, the backend can use the
         previous recorded value.
         
        .google.protobuf.Timestamp start_timestamp = 1;
        Specified by:
        getStartTimestampOrBuilder in interface TimeSeriesOrBuilder
      • getLabelValuesList

        public List<LabelValue> getLabelValuesList()
         The set of label values that uniquely identify this timeseries. Applies to
         all points. The order of label values must match that of label keys in the
         metric descriptor.
         
        repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
        Specified by:
        getLabelValuesList in interface TimeSeriesOrBuilder
      • getLabelValuesCount

        public int getLabelValuesCount()
         The set of label values that uniquely identify this timeseries. Applies to
         all points. The order of label values must match that of label keys in the
         metric descriptor.
         
        repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
        Specified by:
        getLabelValuesCount in interface TimeSeriesOrBuilder
      • getLabelValues

        public LabelValue getLabelValues​(int index)
         The set of label values that uniquely identify this timeseries. Applies to
         all points. The order of label values must match that of label keys in the
         metric descriptor.
         
        repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
        Specified by:
        getLabelValues in interface TimeSeriesOrBuilder
      • setLabelValues

        public TimeSeries.Builder setLabelValues​(int index,
                                                 LabelValue value)
         The set of label values that uniquely identify this timeseries. Applies to
         all points. The order of label values must match that of label keys in the
         metric descriptor.
         
        repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
      • setLabelValues

        public TimeSeries.Builder setLabelValues​(int index,
                                                 LabelValue.Builder builderForValue)
         The set of label values that uniquely identify this timeseries. Applies to
         all points. The order of label values must match that of label keys in the
         metric descriptor.
         
        repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
      • addLabelValues

        public TimeSeries.Builder addLabelValues​(LabelValue value)
         The set of label values that uniquely identify this timeseries. Applies to
         all points. The order of label values must match that of label keys in the
         metric descriptor.
         
        repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
      • addLabelValues

        public TimeSeries.Builder addLabelValues​(int index,
                                                 LabelValue value)
         The set of label values that uniquely identify this timeseries. Applies to
         all points. The order of label values must match that of label keys in the
         metric descriptor.
         
        repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
      • addLabelValues

        public TimeSeries.Builder addLabelValues​(LabelValue.Builder builderForValue)
         The set of label values that uniquely identify this timeseries. Applies to
         all points. The order of label values must match that of label keys in the
         metric descriptor.
         
        repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
      • addLabelValues

        public TimeSeries.Builder addLabelValues​(int index,
                                                 LabelValue.Builder builderForValue)
         The set of label values that uniquely identify this timeseries. Applies to
         all points. The order of label values must match that of label keys in the
         metric descriptor.
         
        repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
      • addAllLabelValues

        public TimeSeries.Builder addAllLabelValues​(Iterable<? extends LabelValue> values)
         The set of label values that uniquely identify this timeseries. Applies to
         all points. The order of label values must match that of label keys in the
         metric descriptor.
         
        repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
      • clearLabelValues

        public TimeSeries.Builder clearLabelValues()
         The set of label values that uniquely identify this timeseries. Applies to
         all points. The order of label values must match that of label keys in the
         metric descriptor.
         
        repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
      • removeLabelValues

        public TimeSeries.Builder removeLabelValues​(int index)
         The set of label values that uniquely identify this timeseries. Applies to
         all points. The order of label values must match that of label keys in the
         metric descriptor.
         
        repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
      • getLabelValuesBuilder

        public LabelValue.Builder getLabelValuesBuilder​(int index)
         The set of label values that uniquely identify this timeseries. Applies to
         all points. The order of label values must match that of label keys in the
         metric descriptor.
         
        repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
      • getLabelValuesOrBuilder

        public LabelValueOrBuilder getLabelValuesOrBuilder​(int index)
         The set of label values that uniquely identify this timeseries. Applies to
         all points. The order of label values must match that of label keys in the
         metric descriptor.
         
        repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
        Specified by:
        getLabelValuesOrBuilder in interface TimeSeriesOrBuilder
      • getLabelValuesOrBuilderList

        public List<? extends LabelValueOrBuilder> getLabelValuesOrBuilderList()
         The set of label values that uniquely identify this timeseries. Applies to
         all points. The order of label values must match that of label keys in the
         metric descriptor.
         
        repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
        Specified by:
        getLabelValuesOrBuilderList in interface TimeSeriesOrBuilder
      • addLabelValuesBuilder

        public LabelValue.Builder addLabelValuesBuilder()
         The set of label values that uniquely identify this timeseries. Applies to
         all points. The order of label values must match that of label keys in the
         metric descriptor.
         
        repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
      • addLabelValuesBuilder

        public LabelValue.Builder addLabelValuesBuilder​(int index)
         The set of label values that uniquely identify this timeseries. Applies to
         all points. The order of label values must match that of label keys in the
         metric descriptor.
         
        repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
      • getLabelValuesBuilderList

        public List<LabelValue.Builder> getLabelValuesBuilderList()
         The set of label values that uniquely identify this timeseries. Applies to
         all points. The order of label values must match that of label keys in the
         metric descriptor.
         
        repeated .opencensus.proto.metrics.v1.LabelValue label_values = 2;
      • getPointsList

        public List<Point> getPointsList()
         The data points of this timeseries. Point.value type MUST match the
         MetricDescriptor.type.
         
        repeated .opencensus.proto.metrics.v1.Point points = 3;
        Specified by:
        getPointsList in interface TimeSeriesOrBuilder
      • getPointsCount

        public int getPointsCount()
         The data points of this timeseries. Point.value type MUST match the
         MetricDescriptor.type.
         
        repeated .opencensus.proto.metrics.v1.Point points = 3;
        Specified by:
        getPointsCount in interface TimeSeriesOrBuilder
      • getPoints

        public Point getPoints​(int index)
         The data points of this timeseries. Point.value type MUST match the
         MetricDescriptor.type.
         
        repeated .opencensus.proto.metrics.v1.Point points = 3;
        Specified by:
        getPoints in interface TimeSeriesOrBuilder
      • setPoints

        public TimeSeries.Builder setPoints​(int index,
                                            Point value)
         The data points of this timeseries. Point.value type MUST match the
         MetricDescriptor.type.
         
        repeated .opencensus.proto.metrics.v1.Point points = 3;
      • setPoints

        public TimeSeries.Builder setPoints​(int index,
                                            Point.Builder builderForValue)
         The data points of this timeseries. Point.value type MUST match the
         MetricDescriptor.type.
         
        repeated .opencensus.proto.metrics.v1.Point points = 3;
      • addPoints

        public TimeSeries.Builder addPoints​(Point value)
         The data points of this timeseries. Point.value type MUST match the
         MetricDescriptor.type.
         
        repeated .opencensus.proto.metrics.v1.Point points = 3;
      • addPoints

        public TimeSeries.Builder addPoints​(int index,
                                            Point value)
         The data points of this timeseries. Point.value type MUST match the
         MetricDescriptor.type.
         
        repeated .opencensus.proto.metrics.v1.Point points = 3;
      • addPoints

        public TimeSeries.Builder addPoints​(Point.Builder builderForValue)
         The data points of this timeseries. Point.value type MUST match the
         MetricDescriptor.type.
         
        repeated .opencensus.proto.metrics.v1.Point points = 3;
      • addPoints

        public TimeSeries.Builder addPoints​(int index,
                                            Point.Builder builderForValue)
         The data points of this timeseries. Point.value type MUST match the
         MetricDescriptor.type.
         
        repeated .opencensus.proto.metrics.v1.Point points = 3;
      • addAllPoints

        public TimeSeries.Builder addAllPoints​(Iterable<? extends Point> values)
         The data points of this timeseries. Point.value type MUST match the
         MetricDescriptor.type.
         
        repeated .opencensus.proto.metrics.v1.Point points = 3;
      • clearPoints

        public TimeSeries.Builder clearPoints()
         The data points of this timeseries. Point.value type MUST match the
         MetricDescriptor.type.
         
        repeated .opencensus.proto.metrics.v1.Point points = 3;
      • removePoints

        public TimeSeries.Builder removePoints​(int index)
         The data points of this timeseries. Point.value type MUST match the
         MetricDescriptor.type.
         
        repeated .opencensus.proto.metrics.v1.Point points = 3;
      • getPointsBuilder

        public Point.Builder getPointsBuilder​(int index)
         The data points of this timeseries. Point.value type MUST match the
         MetricDescriptor.type.
         
        repeated .opencensus.proto.metrics.v1.Point points = 3;
      • getPointsOrBuilder

        public PointOrBuilder getPointsOrBuilder​(int index)
         The data points of this timeseries. Point.value type MUST match the
         MetricDescriptor.type.
         
        repeated .opencensus.proto.metrics.v1.Point points = 3;
        Specified by:
        getPointsOrBuilder in interface TimeSeriesOrBuilder
      • getPointsOrBuilderList

        public List<? extends PointOrBuilder> getPointsOrBuilderList()
         The data points of this timeseries. Point.value type MUST match the
         MetricDescriptor.type.
         
        repeated .opencensus.proto.metrics.v1.Point points = 3;
        Specified by:
        getPointsOrBuilderList in interface TimeSeriesOrBuilder
      • addPointsBuilder

        public Point.Builder addPointsBuilder()
         The data points of this timeseries. Point.value type MUST match the
         MetricDescriptor.type.
         
        repeated .opencensus.proto.metrics.v1.Point points = 3;
      • addPointsBuilder

        public Point.Builder addPointsBuilder​(int index)
         The data points of this timeseries. Point.value type MUST match the
         MetricDescriptor.type.
         
        repeated .opencensus.proto.metrics.v1.Point points = 3;
      • getPointsBuilderList

        public List<Point.Builder> getPointsBuilderList()
         The data points of this timeseries. Point.value type MUST match the
         MetricDescriptor.type.
         
        repeated .opencensus.proto.metrics.v1.Point points = 3;
      • setUnknownFields

        public final TimeSeries.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
      • mergeUnknownFields

        public final TimeSeries.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>