Package com.google.monitoring.v3
Class TimeSeries
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.monitoring.v3.TimeSeries
-
- All Implemented Interfaces:
TimeSeriesOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class TimeSeries extends com.google.protobuf.GeneratedMessageV3 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- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimeSeries.BuilderA collection of data points that describes the time-varying values of a metric.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intMETADATA_FIELD_NUMBERstatic intMETRIC_FIELD_NUMBERstatic intMETRIC_KIND_FIELD_NUMBERstatic intPOINTS_FIELD_NUMBERstatic intRESOURCE_FIELD_NUMBERstatic intUNIT_FIELD_NUMBERstatic intVALUE_TYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static TimeSeriesgetDefaultInstance()TimeSeriesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.api.MonitoredResourceMetadatagetMetadata()Output only.com.google.api.MonitoredResourceMetadataOrBuildergetMetadataOrBuilder()Output only.com.google.api.MetricgetMetric()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.com.google.protobuf.Parser<TimeSeries>getParserForType()PointgetPoints(int index)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.MonitoredResourceOrBuildergetResourceOrBuilder()The associated monitored resource.intgetSerializedSize()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.inthashCode()booleanhasMetadata()Output only.booleanhasMetric()The associated metric.booleanhasResource()The associated monitored resource.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static TimeSeries.BuildernewBuilder()static TimeSeries.BuildernewBuilder(TimeSeries prototype)TimeSeries.BuildernewBuilderForType()protected TimeSeries.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static TimeSeriesparseDelimitedFrom(InputStream input)static TimeSeriesparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TimeSeriesparseFrom(byte[] data)static TimeSeriesparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TimeSeriesparseFrom(com.google.protobuf.ByteString data)static TimeSeriesparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TimeSeriesparseFrom(com.google.protobuf.CodedInputStream input)static TimeSeriesparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TimeSeriesparseFrom(InputStream input)static TimeSeriesparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TimeSeriesparseFrom(ByteBuffer data)static TimeSeriesparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<TimeSeries>parser()TimeSeries.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
METRIC_FIELD_NUMBER
public static final int METRIC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESOURCE_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METRIC_KIND_FIELD_NUMBER
public static final int METRIC_KIND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VALUE_TYPE_FIELD_NUMBER
public static final int VALUE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
POINTS_FIELD_NUMBER
public static final int POINTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UNIT_FIELD_NUMBER
public static final int UNIT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
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
-
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
-
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
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static TimeSeries parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TimeSeries parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TimeSeries parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TimeSeries parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TimeSeries parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TimeSeries parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TimeSeries parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TimeSeries parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TimeSeries parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TimeSeries parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static TimeSeries parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TimeSeries parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public TimeSeries.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static TimeSeries.Builder newBuilder()
-
newBuilder
public static TimeSeries.Builder newBuilder(TimeSeries prototype)
-
toBuilder
public TimeSeries.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TimeSeries.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static TimeSeries getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<TimeSeries> parser()
-
getParserForType
public com.google.protobuf.Parser<TimeSeries> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public TimeSeries getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-