Class TimeSeriesData.Builder

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

    public static final class TimeSeriesData.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<TimeSeriesData.Builder>
    implements TimeSeriesDataOrBuilder
     Represents the values of a time series associated with a
     TimeSeriesDescriptor.
     
    Protobuf type google.monitoring.v3.TimeSeriesData
    • 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<TimeSeriesData.Builder>
      • clear

        public TimeSeriesData.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<TimeSeriesData.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<TimeSeriesData.Builder>
      • getDefaultInstanceForType

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

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

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

        public TimeSeriesData.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<TimeSeriesData.Builder>
      • setField

        public TimeSeriesData.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<TimeSeriesData.Builder>
      • clearField

        public TimeSeriesData.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<TimeSeriesData.Builder>
      • clearOneof

        public TimeSeriesData.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<TimeSeriesData.Builder>
      • setRepeatedField

        public TimeSeriesData.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<TimeSeriesData.Builder>
      • addRepeatedField

        public TimeSeriesData.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<TimeSeriesData.Builder>
      • mergeFrom

        public TimeSeriesData.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<TimeSeriesData.Builder>
      • isInitialized

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

        public TimeSeriesData.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<TimeSeriesData.Builder>
        Throws:
        IOException
      • getLabelValuesList

        public List<LabelValue> getLabelValuesList()
         The values of the labels in the time series identifier, given in the same
         order as the `label_descriptors` field of the TimeSeriesDescriptor
         associated with this object. Each value must have a value of the type
         given in the corresponding entry of `label_descriptors`.
         
        repeated .google.monitoring.v3.LabelValue label_values = 1;
        Specified by:
        getLabelValuesList in interface TimeSeriesDataOrBuilder
      • getLabelValuesCount

        public int getLabelValuesCount()
         The values of the labels in the time series identifier, given in the same
         order as the `label_descriptors` field of the TimeSeriesDescriptor
         associated with this object. Each value must have a value of the type
         given in the corresponding entry of `label_descriptors`.
         
        repeated .google.monitoring.v3.LabelValue label_values = 1;
        Specified by:
        getLabelValuesCount in interface TimeSeriesDataOrBuilder
      • getLabelValues

        public LabelValue getLabelValues​(int index)
         The values of the labels in the time series identifier, given in the same
         order as the `label_descriptors` field of the TimeSeriesDescriptor
         associated with this object. Each value must have a value of the type
         given in the corresponding entry of `label_descriptors`.
         
        repeated .google.monitoring.v3.LabelValue label_values = 1;
        Specified by:
        getLabelValues in interface TimeSeriesDataOrBuilder
      • setLabelValues

        public TimeSeriesData.Builder setLabelValues​(int index,
                                                     LabelValue value)
         The values of the labels in the time series identifier, given in the same
         order as the `label_descriptors` field of the TimeSeriesDescriptor
         associated with this object. Each value must have a value of the type
         given in the corresponding entry of `label_descriptors`.
         
        repeated .google.monitoring.v3.LabelValue label_values = 1;
      • setLabelValues

        public TimeSeriesData.Builder setLabelValues​(int index,
                                                     LabelValue.Builder builderForValue)
         The values of the labels in the time series identifier, given in the same
         order as the `label_descriptors` field of the TimeSeriesDescriptor
         associated with this object. Each value must have a value of the type
         given in the corresponding entry of `label_descriptors`.
         
        repeated .google.monitoring.v3.LabelValue label_values = 1;
      • addLabelValues

        public TimeSeriesData.Builder addLabelValues​(LabelValue value)
         The values of the labels in the time series identifier, given in the same
         order as the `label_descriptors` field of the TimeSeriesDescriptor
         associated with this object. Each value must have a value of the type
         given in the corresponding entry of `label_descriptors`.
         
        repeated .google.monitoring.v3.LabelValue label_values = 1;
      • addLabelValues

        public TimeSeriesData.Builder addLabelValues​(int index,
                                                     LabelValue value)
         The values of the labels in the time series identifier, given in the same
         order as the `label_descriptors` field of the TimeSeriesDescriptor
         associated with this object. Each value must have a value of the type
         given in the corresponding entry of `label_descriptors`.
         
        repeated .google.monitoring.v3.LabelValue label_values = 1;
      • addLabelValues

        public TimeSeriesData.Builder addLabelValues​(LabelValue.Builder builderForValue)
         The values of the labels in the time series identifier, given in the same
         order as the `label_descriptors` field of the TimeSeriesDescriptor
         associated with this object. Each value must have a value of the type
         given in the corresponding entry of `label_descriptors`.
         
        repeated .google.monitoring.v3.LabelValue label_values = 1;
      • addLabelValues

        public TimeSeriesData.Builder addLabelValues​(int index,
                                                     LabelValue.Builder builderForValue)
         The values of the labels in the time series identifier, given in the same
         order as the `label_descriptors` field of the TimeSeriesDescriptor
         associated with this object. Each value must have a value of the type
         given in the corresponding entry of `label_descriptors`.
         
        repeated .google.monitoring.v3.LabelValue label_values = 1;
      • addAllLabelValues

        public TimeSeriesData.Builder addAllLabelValues​(Iterable<? extends LabelValue> values)
         The values of the labels in the time series identifier, given in the same
         order as the `label_descriptors` field of the TimeSeriesDescriptor
         associated with this object. Each value must have a value of the type
         given in the corresponding entry of `label_descriptors`.
         
        repeated .google.monitoring.v3.LabelValue label_values = 1;
      • clearLabelValues

        public TimeSeriesData.Builder clearLabelValues()
         The values of the labels in the time series identifier, given in the same
         order as the `label_descriptors` field of the TimeSeriesDescriptor
         associated with this object. Each value must have a value of the type
         given in the corresponding entry of `label_descriptors`.
         
        repeated .google.monitoring.v3.LabelValue label_values = 1;
      • removeLabelValues

        public TimeSeriesData.Builder removeLabelValues​(int index)
         The values of the labels in the time series identifier, given in the same
         order as the `label_descriptors` field of the TimeSeriesDescriptor
         associated with this object. Each value must have a value of the type
         given in the corresponding entry of `label_descriptors`.
         
        repeated .google.monitoring.v3.LabelValue label_values = 1;
      • getLabelValuesBuilder

        public LabelValue.Builder getLabelValuesBuilder​(int index)
         The values of the labels in the time series identifier, given in the same
         order as the `label_descriptors` field of the TimeSeriesDescriptor
         associated with this object. Each value must have a value of the type
         given in the corresponding entry of `label_descriptors`.
         
        repeated .google.monitoring.v3.LabelValue label_values = 1;
      • getLabelValuesOrBuilder

        public LabelValueOrBuilder getLabelValuesOrBuilder​(int index)
         The values of the labels in the time series identifier, given in the same
         order as the `label_descriptors` field of the TimeSeriesDescriptor
         associated with this object. Each value must have a value of the type
         given in the corresponding entry of `label_descriptors`.
         
        repeated .google.monitoring.v3.LabelValue label_values = 1;
        Specified by:
        getLabelValuesOrBuilder in interface TimeSeriesDataOrBuilder
      • getLabelValuesOrBuilderList

        public List<? extends LabelValueOrBuilder> getLabelValuesOrBuilderList()
         The values of the labels in the time series identifier, given in the same
         order as the `label_descriptors` field of the TimeSeriesDescriptor
         associated with this object. Each value must have a value of the type
         given in the corresponding entry of `label_descriptors`.
         
        repeated .google.monitoring.v3.LabelValue label_values = 1;
        Specified by:
        getLabelValuesOrBuilderList in interface TimeSeriesDataOrBuilder
      • addLabelValuesBuilder

        public LabelValue.Builder addLabelValuesBuilder()
         The values of the labels in the time series identifier, given in the same
         order as the `label_descriptors` field of the TimeSeriesDescriptor
         associated with this object. Each value must have a value of the type
         given in the corresponding entry of `label_descriptors`.
         
        repeated .google.monitoring.v3.LabelValue label_values = 1;
      • addLabelValuesBuilder

        public LabelValue.Builder addLabelValuesBuilder​(int index)
         The values of the labels in the time series identifier, given in the same
         order as the `label_descriptors` field of the TimeSeriesDescriptor
         associated with this object. Each value must have a value of the type
         given in the corresponding entry of `label_descriptors`.
         
        repeated .google.monitoring.v3.LabelValue label_values = 1;
      • getLabelValuesBuilderList

        public List<LabelValue.Builder> getLabelValuesBuilderList()
         The values of the labels in the time series identifier, given in the same
         order as the `label_descriptors` field of the TimeSeriesDescriptor
         associated with this object. Each value must have a value of the type
         given in the corresponding entry of `label_descriptors`.
         
        repeated .google.monitoring.v3.LabelValue label_values = 1;
      • getPointDataCount

        public int getPointDataCount()
         The points in the time series.
         
        repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
        Specified by:
        getPointDataCount in interface TimeSeriesDataOrBuilder
      • clearPointData

        public TimeSeriesData.Builder clearPointData()
         The points in the time series.
         
        repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
      • removePointData

        public TimeSeriesData.Builder removePointData​(int index)
         The points in the time series.
         
        repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
      • getPointDataBuilder

        public TimeSeriesData.PointData.Builder getPointDataBuilder​(int index)
         The points in the time series.
         
        repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
      • addPointDataBuilder

        public TimeSeriesData.PointData.Builder addPointDataBuilder()
         The points in the time series.
         
        repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
      • addPointDataBuilder

        public TimeSeriesData.PointData.Builder addPointDataBuilder​(int index)
         The points in the time series.
         
        repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
      • getPointDataBuilderList

        public List<TimeSeriesData.PointData.Builder> getPointDataBuilderList()
         The points in the time series.
         
        repeated .google.monitoring.v3.TimeSeriesData.PointData point_data = 2;
      • setUnknownFields

        public final TimeSeriesData.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<TimeSeriesData.Builder>
      • mergeUnknownFields

        public final TimeSeriesData.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<TimeSeriesData.Builder>