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.Builder
addAllPoints(Iterable<? extends Point> values)
The data points of this time series.TimeSeries.Builder
addPoints(int index, Point value)
The data points of this time series.TimeSeries.Builder
addPoints(int index, Point.Builder builderForValue)
The data points of this time series.TimeSeries.Builder
addPoints(Point value)
The data points of this time series.TimeSeries.Builder
addPoints(Point.Builder builderForValue)
The data points of this time series.Point.Builder
addPointsBuilder()
The data points of this time series.Point.Builder
addPointsBuilder(int index)
The data points of this time series.TimeSeries.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TimeSeries
build()
TimeSeries
buildPartial()
TimeSeries.Builder
clear()
TimeSeries.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
TimeSeries.Builder
clearMetadata()
Output only.TimeSeries.Builder
clearMetric()
The associated metric.TimeSeries.Builder
clearMetricKind()
The metric kind of the time series.TimeSeries.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
TimeSeries.Builder
clearPoints()
The data points of this time series.TimeSeries.Builder
clearResource()
The associated monitored resource.TimeSeries.Builder
clearUnit()
The units in which the metric value is reported.TimeSeries.Builder
clearValueType()
The value type of the time series.TimeSeries.Builder
clone()
TimeSeries
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.api.MonitoredResourceMetadata
getMetadata()
Output only.com.google.api.MonitoredResourceMetadata.Builder
getMetadataBuilder()
Output only.com.google.api.MonitoredResourceMetadataOrBuilder
getMetadataOrBuilder()
Output only.com.google.api.Metric
getMetric()
The associated metric.com.google.api.Metric.Builder
getMetricBuilder()
The associated metric.com.google.api.MetricDescriptor.MetricKind
getMetricKind()
The metric kind of the time series.int
getMetricKindValue()
The metric kind of the time series.com.google.api.MetricOrBuilder
getMetricOrBuilder()
The associated metric.Point
getPoints(int index)
The data points of this time series.Point.Builder
getPointsBuilder(int index)
The data points of this time series.List<Point.Builder>
getPointsBuilderList()
The data points of this time series.int
getPointsCount()
The data points of this time series.List<Point>
getPointsList()
The data points of this time series.PointOrBuilder
getPointsOrBuilder(int index)
The data points of this time series.List<? extends PointOrBuilder>
getPointsOrBuilderList()
The data points of this time series.com.google.api.MonitoredResource
getResource()
The associated monitored resource.com.google.api.MonitoredResource.Builder
getResourceBuilder()
The associated monitored resource.com.google.api.MonitoredResourceOrBuilder
getResourceOrBuilder()
The associated monitored resource.String
getUnit()
The units in which the metric value is reported.com.google.protobuf.ByteString
getUnitBytes()
The units in which the metric value is reported.com.google.api.MetricDescriptor.ValueType
getValueType()
The value type of the time series.int
getValueTypeValue()
The value type of the time series.boolean
hasMetadata()
Output only.boolean
hasMetric()
The associated metric.boolean
hasResource()
The associated monitored resource.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
TimeSeries.Builder
mergeFrom(TimeSeries other)
TimeSeries.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TimeSeries.Builder
mergeFrom(com.google.protobuf.Message other)
TimeSeries.Builder
mergeMetadata(com.google.api.MonitoredResourceMetadata value)
Output only.TimeSeries.Builder
mergeMetric(com.google.api.Metric value)
The associated metric.TimeSeries.Builder
mergeResource(com.google.api.MonitoredResource value)
The associated monitored resource.TimeSeries.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TimeSeries.Builder
removePoints(int index)
The data points of this time series.TimeSeries.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TimeSeries.Builder
setMetadata(com.google.api.MonitoredResourceMetadata value)
Output only.TimeSeries.Builder
setMetadata(com.google.api.MonitoredResourceMetadata.Builder builderForValue)
Output only.TimeSeries.Builder
setMetric(com.google.api.Metric value)
The associated metric.TimeSeries.Builder
setMetric(com.google.api.Metric.Builder builderForValue)
The associated metric.TimeSeries.Builder
setMetricKind(com.google.api.MetricDescriptor.MetricKind value)
The metric kind of the time series.TimeSeries.Builder
setMetricKindValue(int value)
The metric kind of the time series.TimeSeries.Builder
setPoints(int index, Point value)
The data points of this time series.TimeSeries.Builder
setPoints(int index, Point.Builder builderForValue)
The data points of this time series.TimeSeries.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
TimeSeries.Builder
setResource(com.google.api.MonitoredResource value)
The associated monitored resource.TimeSeries.Builder
setResource(com.google.api.MonitoredResource.Builder builderForValue)
The associated monitored resource.TimeSeries.Builder
setUnit(String value)
The units in which the metric value is reported.TimeSeries.Builder
setUnitBytes(com.google.protobuf.ByteString value)
The units in which the metric value is reported.TimeSeries.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TimeSeries.Builder
setValueType(com.google.api.MetricDescriptor.ValueType value)
The value type of the time series.TimeSeries.Builder
setValueTypeValue(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
clear
public TimeSeries.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
getDefaultInstanceForType
public TimeSeries getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TimeSeries build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TimeSeries buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TimeSeries.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
setField
public TimeSeries.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
clearField
public TimeSeries.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
clearOneof
public TimeSeries.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
addRepeatedField
public TimeSeries.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
mergeFrom
public TimeSeries.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TimeSeries.Builder>
-
mergeFrom
public TimeSeries.Builder mergeFrom(TimeSeries other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasMetric
in 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:
getMetric
in 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:
getMetricOrBuilder
in 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:
hasResource
in 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:
getResource
in 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:
getResourceOrBuilder
in 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:
hasMetadata
in 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:
getMetadata
in 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:
getMetadataOrBuilder
in 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:
getMetricKindValue
in 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:
getMetricKind
in 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:
getValueTypeValue
in 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:
getValueType
in 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:
getPointsList
in 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:
getPointsCount
in 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:
getPoints
in 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:
getPointsOrBuilder
in 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:
getPointsOrBuilderList
in 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:
getUnit
in 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:
getUnitBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
mergeUnknownFields
public final TimeSeries.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimeSeries.Builder>
-
-