public static final class TimeSeries.Builder extends GeneratedMessageV3.Builder<TimeSeries.Builder> implements TimeSeriesOrBuilder
A collection of data points that describes the time-varying values of a metric. A time series is identified by a combination of a fully-specified monitored resource and a fully-specified metric. This type is used for both listing and creating time series.Protobuf type
google.monitoring.v3.TimeSeriesgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<TimeSeries.Builder>public TimeSeries.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<TimeSeries.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<TimeSeries.Builder>public TimeSeries getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic TimeSeries build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic TimeSeries buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic TimeSeries.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<TimeSeries.Builder>public TimeSeries.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<TimeSeries.Builder>public TimeSeries.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<TimeSeries.Builder>public TimeSeries.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<TimeSeries.Builder>public TimeSeries.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<TimeSeries.Builder>public TimeSeries.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<TimeSeries.Builder>public TimeSeries.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<TimeSeries.Builder>public TimeSeries.Builder mergeFrom(TimeSeries other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<TimeSeries.Builder>public TimeSeries.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<TimeSeries.Builder>java.io.IOExceptionpublic boolean hasMetric()
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;hasMetric in interface TimeSeriesOrBuilderpublic Metric getMetric()
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;getMetric in interface TimeSeriesOrBuilderpublic TimeSeries.Builder setMetric(Metric value)
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;public TimeSeries.Builder setMetric(Metric.Builder builderForValue)
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;public TimeSeries.Builder mergeMetric(Metric value)
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;public TimeSeries.Builder clearMetric()
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;public Metric.Builder getMetricBuilder()
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;public MetricOrBuilder getMetricOrBuilder()
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;getMetricOrBuilder in interface TimeSeriesOrBuilderpublic boolean hasResource()
The associated resource. A fully-specified monitored resource used to identify the time series.
.google.api.MonitoredResource resource = 2;hasResource in interface TimeSeriesOrBuilderpublic MonitoredResource getResource()
The associated resource. A fully-specified monitored resource used to identify the time series.
.google.api.MonitoredResource resource = 2;getResource in interface TimeSeriesOrBuilderpublic TimeSeries.Builder setResource(MonitoredResource value)
The associated resource. A fully-specified monitored resource used to identify the time series.
.google.api.MonitoredResource resource = 2;public TimeSeries.Builder setResource(MonitoredResource.Builder builderForValue)
The associated resource. A fully-specified monitored resource used to identify the time series.
.google.api.MonitoredResource resource = 2;public TimeSeries.Builder mergeResource(MonitoredResource value)
The associated resource. A fully-specified monitored resource used to identify the time series.
.google.api.MonitoredResource resource = 2;public TimeSeries.Builder clearResource()
The associated resource. A fully-specified monitored resource used to identify the time series.
.google.api.MonitoredResource resource = 2;public MonitoredResource.Builder getResourceBuilder()
The associated resource. A fully-specified monitored resource used to identify the time series.
.google.api.MonitoredResource resource = 2;public MonitoredResourceOrBuilder getResourceOrBuilder()
The associated resource. A fully-specified monitored resource used to identify the time series.
.google.api.MonitoredResource resource = 2;getResourceOrBuilder in interface TimeSeriesOrBuilderpublic int getMetricKindValue()
The metric kind of the time series. When listing time series, this metric kind might be different from the metric kind of the associated metric if this time series is an alignment or reduction of other time series. When creating a time series, this field is optional. If present, it must be the same as the metric kind of the associated metric. If the associated metric's descriptor must be auto-created, then this field specifies the metric kind of the new descriptor and must be either `GAUGE` (the default) or `CUMULATIVE`.
.google.api.MetricDescriptor.MetricKind metric_kind = 3;getMetricKindValue in interface TimeSeriesOrBuilderpublic TimeSeries.Builder setMetricKindValue(int value)
The metric kind of the time series. When listing time series, this metric kind might be different from the metric kind of the associated metric if this time series is an alignment or reduction of other time series. When creating a time series, this field is optional. If present, it must be the same as the metric kind of the associated metric. If the associated metric's descriptor must be auto-created, then this field specifies the metric kind of the new descriptor and must be either `GAUGE` (the default) or `CUMULATIVE`.
.google.api.MetricDescriptor.MetricKind metric_kind = 3;public MetricDescriptor.MetricKind getMetricKind()
The metric kind of the time series. When listing time series, this metric kind might be different from the metric kind of the associated metric if this time series is an alignment or reduction of other time series. When creating a time series, this field is optional. If present, it must be the same as the metric kind of the associated metric. If the associated metric's descriptor must be auto-created, then this field specifies the metric kind of the new descriptor and must be either `GAUGE` (the default) or `CUMULATIVE`.
.google.api.MetricDescriptor.MetricKind metric_kind = 3;getMetricKind in interface TimeSeriesOrBuilderpublic TimeSeries.Builder setMetricKind(MetricDescriptor.MetricKind value)
The metric kind of the time series. When listing time series, this metric kind might be different from the metric kind of the associated metric if this time series is an alignment or reduction of other time series. When creating a time series, this field is optional. If present, it must be the same as the metric kind of the associated metric. If the associated metric's descriptor must be auto-created, then this field specifies the metric kind of the new descriptor and must be either `GAUGE` (the default) or `CUMULATIVE`.
.google.api.MetricDescriptor.MetricKind metric_kind = 3;public TimeSeries.Builder clearMetricKind()
The metric kind of the time series. When listing time series, this metric kind might be different from the metric kind of the associated metric if this time series is an alignment or reduction of other time series. When creating a time series, this field is optional. If present, it must be the same as the metric kind of the associated metric. If the associated metric's descriptor must be auto-created, then this field specifies the metric kind of the new descriptor and must be either `GAUGE` (the default) or `CUMULATIVE`.
.google.api.MetricDescriptor.MetricKind metric_kind = 3;public int getValueTypeValue()
The value type of the time series. When listing time series, this value type might be different from the value type of the associated metric if this time series is an alignment or reduction of other time series. When creating a time series, this field is optional. If present, it must be the same as the type of the data in the `points` field.
.google.api.MetricDescriptor.ValueType value_type = 4;getValueTypeValue in interface TimeSeriesOrBuilderpublic TimeSeries.Builder setValueTypeValue(int value)
The value type of the time series. When listing time series, this value type might be different from the value type of the associated metric if this time series is an alignment or reduction of other time series. When creating a time series, this field is optional. If present, it must be the same as the type of the data in the `points` field.
.google.api.MetricDescriptor.ValueType value_type = 4;public MetricDescriptor.ValueType getValueType()
The value type of the time series. When listing time series, this value type might be different from the value type of the associated metric if this time series is an alignment or reduction of other time series. When creating a time series, this field is optional. If present, it must be the same as the type of the data in the `points` field.
.google.api.MetricDescriptor.ValueType value_type = 4;getValueType in interface TimeSeriesOrBuilderpublic TimeSeries.Builder setValueType(MetricDescriptor.ValueType value)
The value type of the time series. When listing time series, this value type might be different from the value type of the associated metric if this time series is an alignment or reduction of other time series. When creating a time series, this field is optional. If present, it must be the same as the type of the data in the `points` field.
.google.api.MetricDescriptor.ValueType value_type = 4;public TimeSeries.Builder clearValueType()
The value type of the time series. When listing time series, this value type might be different from the value type of the associated metric if this time series is an alignment or reduction of other time series. When creating a time series, this field is optional. If present, it must be the same as the type of the data in the `points` field.
.google.api.MetricDescriptor.ValueType value_type = 4;public java.util.List<Point> getPointsList()
The data points of this time series. When listing time series, the order of the points is specified by the list method. When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
repeated .google.monitoring.v3.Point points = 5;getPointsList in interface TimeSeriesOrBuilderpublic int getPointsCount()
The data points of this time series. When listing time series, the order of the points is specified by the list method. When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
repeated .google.monitoring.v3.Point points = 5;getPointsCount in interface TimeSeriesOrBuilderpublic Point getPoints(int index)
The data points of this time series. When listing time series, the order of the points is specified by the list method. When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
repeated .google.monitoring.v3.Point points = 5;getPoints in interface TimeSeriesOrBuilderpublic TimeSeries.Builder setPoints(int index, Point value)
The data points of this time series. When listing time series, the order of the points is specified by the list method. When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
repeated .google.monitoring.v3.Point points = 5;public TimeSeries.Builder setPoints(int index, Point.Builder builderForValue)
The data points of this time series. When listing time series, the order of the points is specified by the list method. When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
repeated .google.monitoring.v3.Point points = 5;public TimeSeries.Builder addPoints(Point value)
The data points of this time series. When listing time series, the order of the points is specified by the list method. When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
repeated .google.monitoring.v3.Point points = 5;public TimeSeries.Builder addPoints(int index, Point value)
The data points of this time series. When listing time series, the order of the points is specified by the list method. When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
repeated .google.monitoring.v3.Point points = 5;public TimeSeries.Builder addPoints(Point.Builder builderForValue)
The data points of this time series. When listing time series, the order of the points is specified by the list method. When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
repeated .google.monitoring.v3.Point points = 5;public TimeSeries.Builder addPoints(int index, Point.Builder builderForValue)
The data points of this time series. When listing time series, the order of the points is specified by the list method. When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
repeated .google.monitoring.v3.Point points = 5;public TimeSeries.Builder addAllPoints(java.lang.Iterable<? extends Point> values)
The data points of this time series. When listing time series, the order of the points is specified by the list method. When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
repeated .google.monitoring.v3.Point points = 5;public TimeSeries.Builder clearPoints()
The data points of this time series. When listing time series, the order of the points is specified by the list method. When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
repeated .google.monitoring.v3.Point points = 5;public TimeSeries.Builder removePoints(int index)
The data points of this time series. When listing time series, the order of the points is specified by the list method. When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
repeated .google.monitoring.v3.Point points = 5;public Point.Builder getPointsBuilder(int index)
The data points of this time series. When listing time series, the order of the points is specified by the list method. When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
repeated .google.monitoring.v3.Point points = 5;public PointOrBuilder getPointsOrBuilder(int index)
The data points of this time series. When listing time series, the order of the points is specified by the list method. When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
repeated .google.monitoring.v3.Point points = 5;getPointsOrBuilder in interface TimeSeriesOrBuilderpublic java.util.List<? extends PointOrBuilder> getPointsOrBuilderList()
The data points of this time series. When listing time series, the order of the points is specified by the list method. When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
repeated .google.monitoring.v3.Point points = 5;getPointsOrBuilderList in interface TimeSeriesOrBuilderpublic Point.Builder addPointsBuilder()
The data points of this time series. When listing time series, the order of the points is specified by the list method. When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
repeated .google.monitoring.v3.Point points = 5;public Point.Builder addPointsBuilder(int index)
The data points of this time series. When listing time series, the order of the points is specified by the list method. When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
repeated .google.monitoring.v3.Point points = 5;public java.util.List<Point.Builder> getPointsBuilderList()
The data points of this time series. When listing time series, the order of the points is specified by the list method. When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
repeated .google.monitoring.v3.Point points = 5;public final TimeSeries.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<TimeSeries.Builder>public final TimeSeries.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<TimeSeries.Builder>