Package com.google.monitoring.v3
Class TimeSeries
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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
@Generated
public final class TimeSeries
extends com.google.protobuf.GeneratedMessage
implements TimeSeriesOrBuilder
A collection of data points that describes the time-varying values of a metric. A time series is identified by a combination of a fully-specified monitored resource and a fully-specified metric. This type is used for both listing and creating time series.Protobuf type
google.monitoring.v3.TimeSeries- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA collection of data points that describes the time-varying values of a metric.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TimeSeriesInput only.com.google.protobuf.ByteStringInput only.static final com.google.protobuf.Descriptors.DescriptorOutput only.Output only.The associated metric.The metric kind of the time series.intThe metric kind of the time series.The associated metric.com.google.protobuf.Parser<TimeSeries>getPoints(int index) The data points of this time series.intThe data points of this time series.The data points of this time series.getPointsOrBuilder(int index) The data points of this time series.List<? extends PointOrBuilder>The data points of this time series.The associated monitored resource.The associated monitored resource.intgetUnit()The units in which the metric value is reported.com.google.protobuf.ByteStringThe units in which the metric value is reported.The value type of the time series.intThe value type of the time series.inthashCode()booleanOutput only.booleanThe associated metric.booleanThe associated monitored resource.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic TimeSeries.Builderstatic TimeSeries.BuildernewBuilder(TimeSeries prototype) protected TimeSeries.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
METRIC_FIELD_NUMBER
public static final int METRIC_FIELD_NUMBER- See Also:
-
RESOURCE_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER- See Also:
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER- See Also:
-
METRIC_KIND_FIELD_NUMBER
public static final int METRIC_KIND_FIELD_NUMBER- See Also:
-
VALUE_TYPE_FIELD_NUMBER
public static final int VALUE_TYPE_FIELD_NUMBER- See Also:
-
POINTS_FIELD_NUMBER
public static final int POINTS_FIELD_NUMBER- See Also:
-
UNIT_FIELD_NUMBER
public static final int UNIT_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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
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
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
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
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
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
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
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
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
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
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
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
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
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. This field can only be changed through CreateTimeSeries when it is empty.
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. This field can only be changed through CreateTimeSeries when it is empty.
string unit = 8;- Specified by:
getUnitBytesin interfaceTimeSeriesOrBuilder- Returns:
- The bytes for unit.
-
getDescription
Input only. A detailed description of the time series that will be associated with the [google.api.MetricDescriptor][google.api.MetricDescriptor] for the metric. Once set, this field cannot be changed through CreateTimeSeries.
string description = 9;- Specified by:
getDescriptionin interfaceTimeSeriesOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Input only. A detailed description of the time series that will be associated with the [google.api.MetricDescriptor][google.api.MetricDescriptor] for the metric. Once set, this field cannot be changed through CreateTimeSeries.
string description = 9;- Specified by:
getDescriptionBytesin interfaceTimeSeriesOrBuilder- Returns:
- The bytes for description.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- Throws:
IOException
-
parseFrom
public static TimeSeries parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static TimeSeries parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TimeSeries parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TimeSeries.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-