Class TimeseriesPoint

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.cognite.client.dto.TimeseriesPoint
All Implemented Interfaces:
TimeseriesPointOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class TimeseriesPoint extends com.google.protobuf.GeneratedMessageV3 implements TimeseriesPointOrBuilder

The time series data point. This is the read-version of the data point which includes aggregate information.
 
Protobuf type com.cognite.client.dto.TimeseriesPoint
See Also:
  • Field Details

    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • EXTERNAL_ID_FIELD_NUMBER

      public static final int EXTERNAL_ID_FIELD_NUMBER
      See Also:
    • IS_STEP_FIELD_NUMBER

      public static final int IS_STEP_FIELD_NUMBER
      See Also:
    • TIMESTAMP_FIELD_NUMBER

      public static final int TIMESTAMP_FIELD_NUMBER
      See Also:
    • VALUE_NUM_FIELD_NUMBER

      public static final int VALUE_NUM_FIELD_NUMBER
      See Also:
    • VALUE_STRING_FIELD_NUMBER

      public static final int VALUE_STRING_FIELD_NUMBER
      See Also:
    • VALUE_AGGREGATES_FIELD_NUMBER

      public static final int VALUE_AGGREGATES_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getDatapointTypeCase

      public TimeseriesPoint.DatapointTypeCase getDatapointTypeCase()
      Specified by:
      getDatapointTypeCase in interface TimeseriesPointOrBuilder
    • getId

      public long getId()
      int64 id = 1;
      Specified by:
      getId in interface TimeseriesPointOrBuilder
      Returns:
      The id.
    • hasExternalId

      public boolean hasExternalId()
      optional string external_id = 2;
      Specified by:
      hasExternalId in interface TimeseriesPointOrBuilder
      Returns:
      Whether the externalId field is set.
    • getExternalId

      public String getExternalId()
      optional string external_id = 2;
      Specified by:
      getExternalId in interface TimeseriesPointOrBuilder
      Returns:
      The externalId.
    • getExternalIdBytes

      public com.google.protobuf.ByteString getExternalIdBytes()
      optional string external_id = 2;
      Specified by:
      getExternalIdBytes in interface TimeseriesPointOrBuilder
      Returns:
      The bytes for externalId.
    • hasIsStep

      public boolean hasIsStep()
      optional bool is_step = 3;
      Specified by:
      hasIsStep in interface TimeseriesPointOrBuilder
      Returns:
      Whether the isStep field is set.
    • getIsStep

      public boolean getIsStep()
      optional bool is_step = 3;
      Specified by:
      getIsStep in interface TimeseriesPointOrBuilder
      Returns:
      The isStep.
    • getTimestamp

      public long getTimestamp()
      int64 timestamp = 4;
      Specified by:
      getTimestamp in interface TimeseriesPointOrBuilder
      Returns:
      The timestamp.
    • hasValueNum

      public boolean hasValueNum()
      double value_num = 5;
      Specified by:
      hasValueNum in interface TimeseriesPointOrBuilder
      Returns:
      Whether the valueNum field is set.
    • getValueNum

      public double getValueNum()
      double value_num = 5;
      Specified by:
      getValueNum in interface TimeseriesPointOrBuilder
      Returns:
      The valueNum.
    • hasValueString

      public boolean hasValueString()
      string value_string = 6;
      Specified by:
      hasValueString in interface TimeseriesPointOrBuilder
      Returns:
      Whether the valueString field is set.
    • getValueString

      public String getValueString()
      string value_string = 6;
      Specified by:
      getValueString in interface TimeseriesPointOrBuilder
      Returns:
      The valueString.
    • getValueStringBytes

      public com.google.protobuf.ByteString getValueStringBytes()
      string value_string = 6;
      Specified by:
      getValueStringBytes in interface TimeseriesPointOrBuilder
      Returns:
      The bytes for valueString.
    • hasValueAggregates

      public boolean hasValueAggregates()
      .com.cognite.client.dto.TimeseriesPoint.Aggregates value_aggregates = 7;
      Specified by:
      hasValueAggregates in interface TimeseriesPointOrBuilder
      Returns:
      Whether the valueAggregates field is set.
    • getValueAggregates

      public TimeseriesPoint.Aggregates getValueAggregates()
      .com.cognite.client.dto.TimeseriesPoint.Aggregates value_aggregates = 7;
      Specified by:
      getValueAggregates in interface TimeseriesPointOrBuilder
      Returns:
      The valueAggregates.
    • getValueAggregatesOrBuilder

      public TimeseriesPoint.AggregatesOrBuilder getValueAggregatesOrBuilder()
      .com.cognite.client.dto.TimeseriesPoint.Aggregates value_aggregates = 7;
      Specified by:
      getValueAggregatesOrBuilder in interface TimeseriesPointOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static TimeseriesPoint parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TimeseriesPoint parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TimeseriesPoint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TimeseriesPoint parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TimeseriesPoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TimeseriesPoint parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TimeseriesPoint parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TimeseriesPoint parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TimeseriesPoint parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TimeseriesPoint parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TimeseriesPoint parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TimeseriesPoint parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public TimeseriesPoint.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static TimeseriesPoint.Builder newBuilder()
    • newBuilder

      public static TimeseriesPoint.Builder newBuilder(TimeseriesPoint prototype)
    • toBuilder

      public TimeseriesPoint.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected TimeseriesPoint.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static TimeseriesPoint getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<TimeseriesPoint> parser()
    • getParserForType

      public com.google.protobuf.Parser<TimeseriesPoint> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public TimeseriesPoint getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder