Package com.google.monitoring.v3
Class TimeSeries.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
- com.google.monitoring.v3.TimeSeries.Builder
-
- All Implemented Interfaces:
TimeSeriesOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,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. 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 typegoogle.monitoring.v3.TimeSeries
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeSeries.BuilderaddAllPoints(Iterable<? extends Point> values)The data points of this time series.TimeSeries.BuilderaddPoints(int index, Point value)The data points of this time series.TimeSeries.BuilderaddPoints(int index, Point.Builder builderForValue)The data points of this time series.TimeSeries.BuilderaddPoints(Point value)The data points of this time series.TimeSeries.BuilderaddPoints(Point.Builder builderForValue)The data points of this time series.Point.BuilderaddPointsBuilder()The data points of this time series.Point.BuilderaddPointsBuilder(int index)The data points of this time series.TimeSeries.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TimeSeriesbuild()TimeSeriesbuildPartial()TimeSeries.Builderclear()TimeSeries.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TimeSeries.BuilderclearMetadata()Output only.TimeSeries.BuilderclearMetric()The associated metric.TimeSeries.BuilderclearMetricKind()The metric kind of the time series.TimeSeries.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TimeSeries.BuilderclearPoints()The data points of this time series.TimeSeries.BuilderclearResource()The associated monitored resource.TimeSeries.BuilderclearUnit()The units in which the metric value is reported.TimeSeries.BuilderclearValueType()The value type of the time series.TimeSeries.Builderclone()TimeSeriesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.api.MonitoredResourceMetadatagetMetadata()Output only.com.google.api.MonitoredResourceMetadata.BuildergetMetadataBuilder()Output only.com.google.api.MonitoredResourceMetadataOrBuildergetMetadataOrBuilder()Output only.com.google.api.MetricgetMetric()The associated metric.com.google.api.Metric.BuildergetMetricBuilder()The associated metric.com.google.api.MetricDescriptor.MetricKindgetMetricKind()The metric kind of the time series.intgetMetricKindValue()The metric kind of the time series.com.google.api.MetricOrBuildergetMetricOrBuilder()The associated metric.PointgetPoints(int index)The data points of this time series.Point.BuildergetPointsBuilder(int index)The data points of this time series.List<Point.Builder>getPointsBuilderList()The data points of this time series.intgetPointsCount()The data points of this time series.List<Point>getPointsList()The data points of this time series.PointOrBuildergetPointsOrBuilder(int index)The data points of this time series.List<? extends PointOrBuilder>getPointsOrBuilderList()The data points of this time series.com.google.api.MonitoredResourcegetResource()The associated monitored resource.com.google.api.MonitoredResource.BuildergetResourceBuilder()The associated monitored resource.com.google.api.MonitoredResourceOrBuildergetResourceOrBuilder()The associated monitored resource.StringgetUnit()The units in which the metric value is reported.com.google.protobuf.ByteStringgetUnitBytes()The units in which the metric value is reported.com.google.api.MetricDescriptor.ValueTypegetValueType()The value type of the time series.intgetValueTypeValue()The value type of the time series.booleanhasMetadata()Output only.booleanhasMetric()The associated metric.booleanhasResource()The associated monitored resource.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TimeSeries.BuildermergeFrom(TimeSeries other)TimeSeries.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TimeSeries.BuildermergeFrom(com.google.protobuf.Message other)TimeSeries.BuildermergeMetadata(com.google.api.MonitoredResourceMetadata value)Output only.TimeSeries.BuildermergeMetric(com.google.api.Metric value)The associated metric.TimeSeries.BuildermergeResource(com.google.api.MonitoredResource value)The associated monitored resource.TimeSeries.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TimeSeries.BuilderremovePoints(int index)The data points of this time series.TimeSeries.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TimeSeries.BuildersetMetadata(com.google.api.MonitoredResourceMetadata value)Output only.TimeSeries.BuildersetMetadata(com.google.api.MonitoredResourceMetadata.Builder builderForValue)Output only.TimeSeries.BuildersetMetric(com.google.api.Metric value)The associated metric.TimeSeries.BuildersetMetric(com.google.api.Metric.Builder builderForValue)The associated metric.TimeSeries.BuildersetMetricKind(com.google.api.MetricDescriptor.MetricKind value)The metric kind of the time series.TimeSeries.BuildersetMetricKindValue(int value)The metric kind of the time series.TimeSeries.BuildersetPoints(int index, Point value)The data points of this time series.TimeSeries.BuildersetPoints(int index, Point.Builder builderForValue)The data points of this time series.TimeSeries.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TimeSeries.BuildersetResource(com.google.api.MonitoredResource value)The associated monitored resource.TimeSeries.BuildersetResource(com.google.api.MonitoredResource.Builder builderForValue)The associated monitored resource.TimeSeries.BuildersetUnit(String value)The units in which the metric value is reported.TimeSeries.BuildersetUnitBytes(com.google.protobuf.ByteString value)The units in which the metric value is reported.TimeSeries.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TimeSeries.BuildersetValueType(com.google.api.MetricDescriptor.ValueType value)The value type of the time series.TimeSeries.BuildersetValueTypeValue(int value)The value type of the time series.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
clear
public TimeSeries.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
getDefaultInstanceForType
public TimeSeries getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TimeSeries build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TimeSeries buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TimeSeries.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
setField
public TimeSeries.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
clearField
public TimeSeries.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
clearOneof
public TimeSeries.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
setRepeatedField
public TimeSeries.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
addRepeatedField
public TimeSeries.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
mergeFrom
public TimeSeries.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TimeSeries.Builder>
-
mergeFrom
public TimeSeries.Builder mergeFrom(TimeSeries other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TimeSeries.Builder>- Throws:
IOException
-
hasMetric
public boolean hasMetric()
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;- Specified by:
hasMetricin interfaceTimeSeriesOrBuilder- Returns:
- Whether the metric field is set.
-
getMetric
public com.google.api.Metric getMetric()
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;- Specified by:
getMetricin interfaceTimeSeriesOrBuilder- Returns:
- The metric.
-
setMetric
public TimeSeries.Builder setMetric(com.google.api.Metric value)
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;
-
setMetric
public TimeSeries.Builder setMetric(com.google.api.Metric.Builder builderForValue)
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;
-
mergeMetric
public TimeSeries.Builder mergeMetric(com.google.api.Metric value)
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;
-
clearMetric
public TimeSeries.Builder clearMetric()
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;
-
getMetricBuilder
public com.google.api.Metric.Builder getMetricBuilder()
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;
-
getMetricOrBuilder
public com.google.api.MetricOrBuilder getMetricOrBuilder()
The associated metric. A fully-specified metric used to identify the time series.
.google.api.Metric metric = 1;- Specified by:
getMetricOrBuilderin interfaceTimeSeriesOrBuilder
-
hasResource
public boolean hasResource()
The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data. For more information, see [Monitored resources for custom metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
.google.api.MonitoredResource resource = 2;- Specified by:
hasResourcein interfaceTimeSeriesOrBuilder- Returns:
- Whether the resource field is set.
-
getResource
public com.google.api.MonitoredResource getResource()
The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data. For more information, see [Monitored resources for custom metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
.google.api.MonitoredResource resource = 2;- Specified by:
getResourcein interfaceTimeSeriesOrBuilder- Returns:
- The resource.
-
setResource
public TimeSeries.Builder setResource(com.google.api.MonitoredResource value)
The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data. For more information, see [Monitored resources for custom metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
.google.api.MonitoredResource resource = 2;
-
setResource
public TimeSeries.Builder setResource(com.google.api.MonitoredResource.Builder builderForValue)
The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data. For more information, see [Monitored resources for custom metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
.google.api.MonitoredResource resource = 2;
-
mergeResource
public TimeSeries.Builder mergeResource(com.google.api.MonitoredResource value)
The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data. For more information, see [Monitored resources for custom metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
.google.api.MonitoredResource resource = 2;
-
clearResource
public TimeSeries.Builder clearResource()
The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data. For more information, see [Monitored resources for custom metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
.google.api.MonitoredResource resource = 2;
-
getResourceBuilder
public com.google.api.MonitoredResource.Builder getResourceBuilder()
The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data. For more information, see [Monitored resources for custom metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
.google.api.MonitoredResource resource = 2;
-
getResourceOrBuilder
public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder()
The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data. For more information, see [Monitored resources for custom metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).
.google.api.MonitoredResource resource = 2;- Specified by:
getResourceOrBuilderin interfaceTimeSeriesOrBuilder
-
hasMetadata
public boolean hasMetadata()
Output only. The associated monitored resource metadata. When reading a time series, this field will include metadata labels that are explicitly named in the reduction. When creating a time series, this field is ignored.
.google.api.MonitoredResourceMetadata metadata = 7;- Specified by:
hasMetadatain interfaceTimeSeriesOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public com.google.api.MonitoredResourceMetadata getMetadata()
Output only. The associated monitored resource metadata. When reading a time series, this field will include metadata labels that are explicitly named in the reduction. When creating a time series, this field is ignored.
.google.api.MonitoredResourceMetadata metadata = 7;- Specified by:
getMetadatain interfaceTimeSeriesOrBuilder- Returns:
- The metadata.
-
setMetadata
public TimeSeries.Builder setMetadata(com.google.api.MonitoredResourceMetadata value)
Output only. The associated monitored resource metadata. When reading a time series, this field will include metadata labels that are explicitly named in the reduction. When creating a time series, this field is ignored.
.google.api.MonitoredResourceMetadata metadata = 7;
-
setMetadata
public TimeSeries.Builder setMetadata(com.google.api.MonitoredResourceMetadata.Builder builderForValue)
Output only. The associated monitored resource metadata. When reading a time series, this field will include metadata labels that are explicitly named in the reduction. When creating a time series, this field is ignored.
.google.api.MonitoredResourceMetadata metadata = 7;
-
mergeMetadata
public TimeSeries.Builder mergeMetadata(com.google.api.MonitoredResourceMetadata value)
Output only. The associated monitored resource metadata. When reading a time series, this field will include metadata labels that are explicitly named in the reduction. When creating a time series, this field is ignored.
.google.api.MonitoredResourceMetadata metadata = 7;
-
clearMetadata
public TimeSeries.Builder clearMetadata()
Output only. The associated monitored resource metadata. When reading a time series, this field will include metadata labels that are explicitly named in the reduction. When creating a time series, this field is ignored.
.google.api.MonitoredResourceMetadata metadata = 7;
-
getMetadataBuilder
public com.google.api.MonitoredResourceMetadata.Builder getMetadataBuilder()
Output only. The associated monitored resource metadata. When reading a time series, this field will include metadata labels that are explicitly named in the reduction. When creating a time series, this field is ignored.
.google.api.MonitoredResourceMetadata metadata = 7;
-
getMetadataOrBuilder
public com.google.api.MonitoredResourceMetadataOrBuilder getMetadataOrBuilder()
Output only. The associated monitored resource metadata. When reading a time series, this field will include metadata labels that are explicitly named in the reduction. When creating a time series, this field is ignored.
.google.api.MonitoredResourceMetadata metadata = 7;- Specified by:
getMetadataOrBuilderin interfaceTimeSeriesOrBuilder
-
getMetricKindValue
public 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;- Specified by:
getMetricKindValuein interfaceTimeSeriesOrBuilder- Returns:
- The enum numeric value on the wire for metricKind.
-
setMetricKindValue
public 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;- Parameters:
value- The enum numeric value on the wire for metricKind to set.- Returns:
- This builder for chaining.
-
getMetricKind
public com.google.api.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;- Specified by:
getMetricKindin interfaceTimeSeriesOrBuilder- Returns:
- The metricKind.
-
setMetricKind
public TimeSeries.Builder setMetricKind(com.google.api.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;- Parameters:
value- The metricKind to set.- Returns:
- This builder for chaining.
-
clearMetricKind
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;- Returns:
- This builder for chaining.
-
getValueTypeValue
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;- Specified by:
getValueTypeValuein interfaceTimeSeriesOrBuilder- Returns:
- The enum numeric value on the wire for valueType.
-
setValueTypeValue
public 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;- Parameters:
value- The enum numeric value on the wire for valueType to set.- Returns:
- This builder for chaining.
-
getValueType
public com.google.api.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;- Specified by:
getValueTypein interfaceTimeSeriesOrBuilder- Returns:
- The valueType.
-
setValueType
public TimeSeries.Builder setValueType(com.google.api.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;- Parameters:
value- The valueType to set.- Returns:
- This builder for chaining.
-
clearValueType
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;- Returns:
- This builder for chaining.
-
getPointsList
public List<Point> getPointsList()
The data points of this time series. When listing time series, points are returned in reverse time order. 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;- Specified by:
getPointsListin interfaceTimeSeriesOrBuilder
-
getPointsCount
public int getPointsCount()
The data points of this time series. When listing time series, points are returned in reverse time order. 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;- Specified by:
getPointsCountin interfaceTimeSeriesOrBuilder
-
getPoints
public Point getPoints(int index)
The data points of this time series. When listing time series, points are returned in reverse time order. 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;- Specified by:
getPointsin interfaceTimeSeriesOrBuilder
-
setPoints
public TimeSeries.Builder setPoints(int index, Point value)
The data points of this time series. When listing time series, points are returned in reverse time order. 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;
-
setPoints
public TimeSeries.Builder setPoints(int index, Point.Builder builderForValue)
The data points of this time series. When listing time series, points are returned in reverse time order. 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;
-
addPoints
public TimeSeries.Builder addPoints(Point value)
The data points of this time series. When listing time series, points are returned in reverse time order. 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;
-
addPoints
public TimeSeries.Builder addPoints(int index, Point value)
The data points of this time series. When listing time series, points are returned in reverse time order. 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;
-
addPoints
public TimeSeries.Builder addPoints(Point.Builder builderForValue)
The data points of this time series. When listing time series, points are returned in reverse time order. 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;
-
addPoints
public TimeSeries.Builder addPoints(int index, Point.Builder builderForValue)
The data points of this time series. When listing time series, points are returned in reverse time order. 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;
-
addAllPoints
public TimeSeries.Builder addAllPoints(Iterable<? extends Point> values)
The data points of this time series. When listing time series, points are returned in reverse time order. 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;
-
clearPoints
public TimeSeries.Builder clearPoints()
The data points of this time series. When listing time series, points are returned in reverse time order. 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;
-
removePoints
public TimeSeries.Builder removePoints(int index)
The data points of this time series. When listing time series, points are returned in reverse time order. 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;
-
getPointsBuilder
public Point.Builder getPointsBuilder(int index)
The data points of this time series. When listing time series, points are returned in reverse time order. 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
public PointOrBuilder getPointsOrBuilder(int index)
The data points of this time series. When listing time series, points are returned in reverse time order. 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;- Specified by:
getPointsOrBuilderin interfaceTimeSeriesOrBuilder
-
getPointsOrBuilderList
public List<? extends PointOrBuilder> getPointsOrBuilderList()
The data points of this time series. When listing time series, points are returned in reverse time order. 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;- Specified by:
getPointsOrBuilderListin interfaceTimeSeriesOrBuilder
-
addPointsBuilder
public Point.Builder addPointsBuilder()
The data points of this time series. When listing time series, points are returned in reverse time order. 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;
-
addPointsBuilder
public Point.Builder addPointsBuilder(int index)
The data points of this time series. When listing time series, points are returned in reverse time order. 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;
-
getPointsBuilderList
public List<Point.Builder> getPointsBuilderList()
The data points of this time series. When listing time series, points are returned in reverse time order. 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;
-
getUnit
public String getUnit()
The units in which the metric value is reported. It is only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` defines the representation of the stored metric values.
string unit = 8;- Specified by:
getUnitin interfaceTimeSeriesOrBuilder- Returns:
- The unit.
-
getUnitBytes
public com.google.protobuf.ByteString getUnitBytes()
The units in which the metric value is reported. It is only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` defines the representation of the stored metric values.
string unit = 8;- Specified by:
getUnitBytesin interfaceTimeSeriesOrBuilder- Returns:
- The bytes for unit.
-
setUnit
public TimeSeries.Builder setUnit(String value)
The units in which the metric value is reported. It is only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` defines the representation of the stored metric values.
string unit = 8;- Parameters:
value- The unit to set.- Returns:
- This builder for chaining.
-
clearUnit
public TimeSeries.Builder clearUnit()
The units in which the metric value is reported. It is only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` defines the representation of the stored metric values.
string unit = 8;- Returns:
- This builder for chaining.
-
setUnitBytes
public TimeSeries.Builder setUnitBytes(com.google.protobuf.ByteString value)
The units in which the metric value is reported. It is only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` defines the representation of the stored metric values.
string unit = 8;- Parameters:
value- The bytes for unit to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final TimeSeries.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
mergeUnknownFields
public final TimeSeries.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
-