Package namespace.stdlib
Class Timeseries.TimeSeries
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
namespace.stdlib.Timeseries.TimeSeries
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Timeseries.TimeSeriesOrBuilder
- Enclosing class:
Timeseries
public static final class Timeseries.TimeSeries
extends com.google.protobuf.GeneratedMessage
implements Timeseries.TimeSeriesOrBuilder
Represents a time series of data, associating multiple string-keyed data points to each timestamp. Each data point N has a timestamp stored in timestamps[N]. Data associated with that timestamp is then stored in: - doubles[key].values[N] if the data is represented as a double - integers[key].values[N] if the data is represented as a int64 - strings[key].values[N] if the data is represented as a string The API that returns a TimeSeries describes which keys will be present.Protobuf type
namespace.stdlib.TimeSeries- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a time series of data, associating multiple string-keyed data points to each timestamp.static final classProtobuf typenamespace.stdlib.TimeSeries.Doublesstatic interfacestatic final classProtobuf typenamespace.stdlib.TimeSeries.Integersstatic interfacestatic final classProtobuf typenamespace.stdlib.TimeSeries.Stringsstatic interfaceNested 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>, 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 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 TypeMethodDescriptionbooleancontainsDoubles(String key) map<string, .namespace.stdlib.TimeSeries.Doubles> doubles = 2;booleancontainsIntegers(String key) map<string, .namespace.stdlib.TimeSeries.Integers> integers = 3;booleancontainsStrings(String key) map<string, .namespace.stdlib.TimeSeries.Strings> strings = 4;booleanstatic Timeseries.TimeSeriesstatic final com.google.protobuf.Descriptors.DescriptorDeprecated.intmap<string, .namespace.stdlib.TimeSeries.Doubles> doubles = 2;map<string, .namespace.stdlib.TimeSeries.Doubles> doubles = 2;getDoublesOrDefault(String key, Timeseries.TimeSeries.Doubles defaultValue) map<string, .namespace.stdlib.TimeSeries.Doubles> doubles = 2;getDoublesOrThrow(String key) map<string, .namespace.stdlib.TimeSeries.Doubles> doubles = 2;Deprecated.intmap<string, .namespace.stdlib.TimeSeries.Integers> integers = 3;map<string, .namespace.stdlib.TimeSeries.Integers> integers = 3;getIntegersOrDefault(String key, Timeseries.TimeSeries.Integers defaultValue) map<string, .namespace.stdlib.TimeSeries.Integers> integers = 3;getIntegersOrThrow(String key) map<string, .namespace.stdlib.TimeSeries.Integers> integers = 3;com.google.protobuf.Parser<Timeseries.TimeSeries> intDeprecated.intmap<string, .namespace.stdlib.TimeSeries.Strings> strings = 4;map<string, .namespace.stdlib.TimeSeries.Strings> strings = 4;getStringsOrDefault(String key, Timeseries.TimeSeries.Strings defaultValue) map<string, .namespace.stdlib.TimeSeries.Strings> strings = 4;getStringsOrThrow(String key) map<string, .namespace.stdlib.TimeSeries.Strings> strings = 4;longgetTimestamps(int index) timestamps are represented as the number of nanoseconds elapsed since January 1, 1970 UTC.inttimestamps are represented as the number of nanoseconds elapsed since January 1, 1970 UTC.timestamps are represented as the number of nanoseconds elapsed since January 1, 1970 UTC.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleannewBuilder(Timeseries.TimeSeries prototype) protected Timeseries.TimeSeries.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Timeseries.TimeSeriesparseDelimitedFrom(InputStream input) static Timeseries.TimeSeriesparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Timeseries.TimeSeriesparseFrom(byte[] data) static Timeseries.TimeSeriesparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Timeseries.TimeSeriesparseFrom(com.google.protobuf.ByteString data) static Timeseries.TimeSeriesparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Timeseries.TimeSeriesparseFrom(com.google.protobuf.CodedInputStream input) static Timeseries.TimeSeriesparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Timeseries.TimeSeriesparseFrom(InputStream input) static Timeseries.TimeSeriesparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Timeseries.TimeSeriesparseFrom(ByteBuffer data) static Timeseries.TimeSeriesparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Timeseries.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, 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
-
TIMESTAMPS_FIELD_NUMBER
public static final int TIMESTAMPS_FIELD_NUMBER- See Also:
-
DOUBLES_FIELD_NUMBER
public static final int DOUBLES_FIELD_NUMBER- See Also:
-
INTEGERS_FIELD_NUMBER
public static final int INTEGERS_FIELD_NUMBER- See Also:
-
STRINGS_FIELD_NUMBER
public static final int STRINGS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getTimestampsList
timestamps are represented as the number of nanoseconds elapsed since January 1, 1970 UTC.
repeated int64 timestamps = 1;- Specified by:
getTimestampsListin interfaceTimeseries.TimeSeriesOrBuilder- Returns:
- A list containing the timestamps.
-
getTimestampsCount
public int getTimestampsCount()timestamps are represented as the number of nanoseconds elapsed since January 1, 1970 UTC.
repeated int64 timestamps = 1;- Specified by:
getTimestampsCountin interfaceTimeseries.TimeSeriesOrBuilder- Returns:
- The count of timestamps.
-
getTimestamps
public long getTimestamps(int index) timestamps are represented as the number of nanoseconds elapsed since January 1, 1970 UTC.
repeated int64 timestamps = 1;- Specified by:
getTimestampsin interfaceTimeseries.TimeSeriesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The timestamps at the given index.
-
getDoublesCount
public int getDoublesCount()Description copied from interface:Timeseries.TimeSeriesOrBuildermap<string, .namespace.stdlib.TimeSeries.Doubles> doubles = 2;- Specified by:
getDoublesCountin interfaceTimeseries.TimeSeriesOrBuilder
-
containsDoubles
map<string, .namespace.stdlib.TimeSeries.Doubles> doubles = 2;- Specified by:
containsDoublesin interfaceTimeseries.TimeSeriesOrBuilder
-
getDoubles
Deprecated.UsegetDoublesMap()instead.- Specified by:
getDoublesin interfaceTimeseries.TimeSeriesOrBuilder
-
getDoublesMap
map<string, .namespace.stdlib.TimeSeries.Doubles> doubles = 2;- Specified by:
getDoublesMapin interfaceTimeseries.TimeSeriesOrBuilder
-
getDoublesOrDefault
public Timeseries.TimeSeries.Doubles getDoublesOrDefault(String key, Timeseries.TimeSeries.Doubles defaultValue) map<string, .namespace.stdlib.TimeSeries.Doubles> doubles = 2;- Specified by:
getDoublesOrDefaultin interfaceTimeseries.TimeSeriesOrBuilder
-
getDoublesOrThrow
map<string, .namespace.stdlib.TimeSeries.Doubles> doubles = 2;- Specified by:
getDoublesOrThrowin interfaceTimeseries.TimeSeriesOrBuilder
-
getIntegersCount
public int getIntegersCount()Description copied from interface:Timeseries.TimeSeriesOrBuildermap<string, .namespace.stdlib.TimeSeries.Integers> integers = 3;- Specified by:
getIntegersCountin interfaceTimeseries.TimeSeriesOrBuilder
-
containsIntegers
map<string, .namespace.stdlib.TimeSeries.Integers> integers = 3;- Specified by:
containsIntegersin interfaceTimeseries.TimeSeriesOrBuilder
-
getIntegers
Deprecated.UsegetIntegersMap()instead.- Specified by:
getIntegersin interfaceTimeseries.TimeSeriesOrBuilder
-
getIntegersMap
map<string, .namespace.stdlib.TimeSeries.Integers> integers = 3;- Specified by:
getIntegersMapin interfaceTimeseries.TimeSeriesOrBuilder
-
getIntegersOrDefault
public Timeseries.TimeSeries.Integers getIntegersOrDefault(String key, Timeseries.TimeSeries.Integers defaultValue) map<string, .namespace.stdlib.TimeSeries.Integers> integers = 3;- Specified by:
getIntegersOrDefaultin interfaceTimeseries.TimeSeriesOrBuilder
-
getIntegersOrThrow
map<string, .namespace.stdlib.TimeSeries.Integers> integers = 3;- Specified by:
getIntegersOrThrowin interfaceTimeseries.TimeSeriesOrBuilder
-
getStringsCount
public int getStringsCount()Description copied from interface:Timeseries.TimeSeriesOrBuildermap<string, .namespace.stdlib.TimeSeries.Strings> strings = 4;- Specified by:
getStringsCountin interfaceTimeseries.TimeSeriesOrBuilder
-
containsStrings
map<string, .namespace.stdlib.TimeSeries.Strings> strings = 4;- Specified by:
containsStringsin interfaceTimeseries.TimeSeriesOrBuilder
-
getStrings
Deprecated.UsegetStringsMap()instead.- Specified by:
getStringsin interfaceTimeseries.TimeSeriesOrBuilder
-
getStringsMap
map<string, .namespace.stdlib.TimeSeries.Strings> strings = 4;- Specified by:
getStringsMapin interfaceTimeseries.TimeSeriesOrBuilder
-
getStringsOrDefault
public Timeseries.TimeSeries.Strings getStringsOrDefault(String key, Timeseries.TimeSeries.Strings defaultValue) map<string, .namespace.stdlib.TimeSeries.Strings> strings = 4;- Specified by:
getStringsOrDefaultin interfaceTimeseries.TimeSeriesOrBuilder
-
getStringsOrThrow
map<string, .namespace.stdlib.TimeSeries.Strings> strings = 4;- Specified by:
getStringsOrThrowin interfaceTimeseries.TimeSeriesOrBuilder
-
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.TimeSeries parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Timeseries.TimeSeries parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Timeseries.TimeSeries parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Timeseries.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.TimeSeries parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Timeseries.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.TimeSeries parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Timeseries.TimeSeries parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Timeseries.TimeSeries parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Timeseries.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.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
-