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
public final class Item extends com.google.protobuf.GeneratedMessageV3 implements ItemOrBuilder
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 typecom.cognite.beam.proto.Item- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classItem.BuilderRepresents an identifiable data item independent of resource type (asset, event, time series, etc.).static classItem.IdTypeCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intEXCLUSIVE_END_FIELD_NUMBERstatic intEXTERNAL_ID_FIELD_NUMBERstatic intID_FIELD_NUMBERstatic intINCLUSIVE_BEGIN_FIELD_NUMBERstatic intLEGACY_NAME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static ItemgetDefaultInstance()ItemgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Int64ValuegetExclusiveEnd()End of time window for a time series data point.Int64ValueOrBuildergetExclusiveEndOrBuilder()End of time window for a time series data point.StringgetExternalId()string external_id = 2;com.google.protobuf.ByteStringgetExternalIdBytes()string external_id = 2;longgetId()int64 id = 1;Item.IdTypeCasegetIdTypeCase()Int64ValuegetInclusiveBegin()Start of time window for a time series data point.Int64ValueOrBuildergetInclusiveBeginOrBuilder()Start of time window for a time series data point.StringgetLegacyName()string legacy_name = 3;com.google.protobuf.ByteStringgetLegacyNameBytes()string legacy_name = 3;com.google.protobuf.Parser<Item>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasExclusiveEnd()End of time window for a time series data point.booleanhasExternalId()string external_id = 2;inthashCode()booleanhasId()int64 id = 1;booleanhasInclusiveBegin()Start of time window for a time series data point.booleanhasLegacyName()string legacy_name = 3;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Item.BuildernewBuilder()static Item.BuildernewBuilder(Item prototype)Item.BuildernewBuilderForType()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()Item.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, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXTERNAL_ID_FIELD_NUMBER
public static final int EXTERNAL_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LEGACY_NAME_FIELD_NUMBER
public static final int LEGACY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INCLUSIVE_BEGIN_FIELD_NUMBER
public static final int INCLUSIVE_BEGIN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXCLUSIVE_END_FIELD_NUMBER
public static final int EXCLUSIVE_END_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
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin 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
public Item.IdTypeCase 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
public String 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
public String 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.
.google.protobuf.Int64Value inclusive_begin = 4;- Specified by:
hasInclusiveBeginin interfaceItemOrBuilder- Returns:
- Whether the inclusiveBegin field is set.
-
getInclusiveBegin
public Int64Value getInclusiveBegin()
Start of time window for a time series data point.
.google.protobuf.Int64Value inclusive_begin = 4;- Specified by:
getInclusiveBeginin interfaceItemOrBuilder- Returns:
- The inclusiveBegin.
-
getInclusiveBeginOrBuilder
public Int64ValueOrBuilder getInclusiveBeginOrBuilder()
Start of time window for a time series data point.
.google.protobuf.Int64Value inclusive_begin = 4;- Specified by:
getInclusiveBeginOrBuilderin interfaceItemOrBuilder
-
hasExclusiveEnd
public boolean hasExclusiveEnd()
End of time window for a time series data point.
.google.protobuf.Int64Value exclusive_end = 5;- Specified by:
hasExclusiveEndin interfaceItemOrBuilder- Returns:
- Whether the exclusiveEnd field is set.
-
getExclusiveEnd
public Int64Value getExclusiveEnd()
End of time window for a time series data point.
.google.protobuf.Int64Value exclusive_end = 5;- Specified by:
getExclusiveEndin interfaceItemOrBuilder- Returns:
- The exclusiveEnd.
-
getExclusiveEndOrBuilder
public Int64ValueOrBuilder getExclusiveEndOrBuilder()
End of time window for a time series data point.
.google.protobuf.Int64Value exclusive_end = 5;- Specified by:
getExclusiveEndOrBuilderin interfaceItemOrBuilder
-
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 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
public static Item parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- 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
public static Item parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Item parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Item parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Item parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Item parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Item parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Item.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Item.Builder newBuilder()
-
newBuilder
public static Item.Builder newBuilder(Item prototype)
-
toBuilder
public Item.Builder 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
public static Item getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Item> parser()
-
getParserForType
public com.google.protobuf.Parser<Item> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Item getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-