Package com.cognite.client.dto
Class Item
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.cognite.client.dto.Item
- All Implemented Interfaces:
ItemOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
Represents an identifiable data item independent of resource type (asset, event, time series, etc.). The item is identified via externalId (primarily) or id (secondarily). For time series data points there are two extra attributes, inclusiveBegin and exclusiveEnd, that pinpoints the referenced time window.Protobuf type
com.cognite.client.dto.Item- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents an identifiable data item independent of resource type (asset, event, time series, etc.).static enumNested 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 Nested 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 intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Itemstatic final com.google.protobuf.Descriptors.DescriptorlongEnd of time window for a time series data point.string external_id = 2;com.google.protobuf.ByteStringstring external_id = 2;longgetId()int64 id = 1;longStart of time window for a time series data point.string legacy_name = 3;com.google.protobuf.ByteStringstring legacy_name = 3;com.google.protobuf.Parser<Item>intbooleanEnd of time window for a time series data point.booleanstring external_id = 2;inthashCode()booleanhasId()int64 id = 1;booleanStart of time window for a time series data point.booleanstring legacy_name = 3;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Item.Builderstatic Item.BuildernewBuilder(Item prototype) protected Item.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ItemparseDelimitedFrom(InputStream input) static ItemparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ItemparseFrom(byte[] data) static ItemparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ItemparseFrom(com.google.protobuf.ByteString data) static ItemparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ItemparseFrom(com.google.protobuf.CodedInputStream input) static ItemparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ItemparseFrom(InputStream input) static ItemparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ItemparseFrom(ByteBuffer data) static ItemparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Item>parser()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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, 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
-
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:
-
LEGACY_NAME_FIELD_NUMBER
public static final int LEGACY_NAME_FIELD_NUMBER- See Also:
-
INCLUSIVE_BEGIN_FIELD_NUMBER
public static final int INCLUSIVE_BEGIN_FIELD_NUMBER- See Also:
-
EXCLUSIVE_END_FIELD_NUMBER
public static final int EXCLUSIVE_END_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- 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
-
getIdTypeCase
- Specified by:
getIdTypeCasein interfaceItemOrBuilder
-
hasId
public boolean hasId()int64 id = 1;- Specified by:
hasIdin interfaceItemOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()int64 id = 1;- Specified by:
getIdin interfaceItemOrBuilder- Returns:
- The id.
-
hasExternalId
public boolean hasExternalId()string external_id = 2;- Specified by:
hasExternalIdin interfaceItemOrBuilder- Returns:
- Whether the externalId field is set.
-
getExternalId
string external_id = 2;- Specified by:
getExternalIdin interfaceItemOrBuilder- Returns:
- The externalId.
-
getExternalIdBytes
public com.google.protobuf.ByteString getExternalIdBytes()string external_id = 2;- Specified by:
getExternalIdBytesin interfaceItemOrBuilder- Returns:
- The bytes for externalId.
-
hasLegacyName
public boolean hasLegacyName()string legacy_name = 3;- Specified by:
hasLegacyNamein interfaceItemOrBuilder- Returns:
- Whether the legacyName field is set.
-
getLegacyName
string legacy_name = 3;- Specified by:
getLegacyNamein interfaceItemOrBuilder- Returns:
- The legacyName.
-
getLegacyNameBytes
public com.google.protobuf.ByteString getLegacyNameBytes()string legacy_name = 3;- Specified by:
getLegacyNameBytesin interfaceItemOrBuilder- Returns:
- The bytes for legacyName.
-
hasInclusiveBegin
public boolean hasInclusiveBegin()Start of time window for a time series data point.
optional int64 inclusive_begin = 4;- Specified by:
hasInclusiveBeginin interfaceItemOrBuilder- Returns:
- Whether the inclusiveBegin field is set.
-
getInclusiveBegin
public long getInclusiveBegin()Start of time window for a time series data point.
optional int64 inclusive_begin = 4;- Specified by:
getInclusiveBeginin interfaceItemOrBuilder- Returns:
- The inclusiveBegin.
-
hasExclusiveEnd
public boolean hasExclusiveEnd()End of time window for a time series data point.
optional int64 exclusive_end = 5;- Specified by:
hasExclusiveEndin interfaceItemOrBuilder- Returns:
- Whether the exclusiveEnd field is set.
-
getExclusiveEnd
public long getExclusiveEnd()End of time window for a time series data point.
optional int64 exclusive_end = 5;- Specified by:
getExclusiveEndin interfaceItemOrBuilder- Returns:
- The exclusiveEnd.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- 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
- 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 Item parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Item parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Item parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Item parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Item parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Item parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Item parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Item 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 Item.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-