Package com.cognite.client.dto
Class AssetLookup
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.cognite.client.dto.AssetLookup
- All Implemented Interfaces:
AssetLookupOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class AssetLookup
extends com.google.protobuf.GeneratedMessageV3
implements AssetLookupOrBuilder
Protobuf type
com.cognite.client.dto.AssetLookup- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typecom.cognite.client.dto.AssetLookupNested 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 intstatic final intstatic final intstatic final intstatic final intstatic final intstatic 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 TypeMethodDescriptionbooleancontainsMetadata(String key) map<string, string> metadata = 10;boolean.com.cognite.client.dto.Asset.Aggregates aggregates = 15;.com.cognite.client.dto.Asset.Aggregates aggregates = 15;longoptional int64 created_time = 8;longoptional int64 data_set_id = 13;static AssetLookupoptional string description = 6;com.google.protobuf.ByteStringoptional string description = 6;static final com.google.protobuf.Descriptors.Descriptoroptional string external_id = 2;com.google.protobuf.ByteStringoptional string external_id = 2;longgetId()optional int64 id = 1;getLabels(int index) repeated string labels = 11;com.google.protobuf.ByteStringgetLabelsBytes(int index) repeated string labels = 11;intrepeated string labels = 11;com.google.protobuf.ProtocolStringListrepeated string labels = 11;longoptional int64 last_updated_time = 9;Deprecated.intmap<string, string> metadata = 10;map<string, string> metadata = 10;getMetadataOrDefault(String key, String defaultValue) map<string, string> metadata = 10;getMetadataOrThrow(String key) map<string, string> metadata = 10;getName()string name = 3;com.google.protobuf.ByteStringstring name = 3;optional string parent_external_id = 5;com.google.protobuf.ByteStringoptional string parent_external_id = 5;longoptional int64 parent_id = 4;com.google.protobuf.Parser<AssetLookup>longoptional int64 root_id = 7;The name of the root asset node in the hierarchy.com.google.protobuf.ByteStringThe name of the root asset node in the hierarchy.intoptional string source = 12;com.google.protobuf.ByteStringoptional string source = 12;boolean.com.cognite.client.dto.Asset.Aggregates aggregates = 15;booleanoptional int64 created_time = 8;booleanoptional int64 data_set_id = 13;booleanoptional string description = 6;booleanoptional string external_id = 2;inthashCode()booleanhasId()optional int64 id = 1;booleanoptional int64 last_updated_time = 9;booleanoptional string parent_external_id = 5;booleanoptional int64 parent_id = 4;booleanoptional int64 root_id = 7;booleanThe name of the root asset node in the hierarchy.booleanoptional string source = 12;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic AssetLookup.Builderstatic AssetLookup.BuildernewBuilder(AssetLookup prototype) protected AssetLookup.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static AssetLookupparseDelimitedFrom(InputStream input) static AssetLookupparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssetLookupparseFrom(byte[] data) static AssetLookupparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssetLookupparseFrom(com.google.protobuf.ByteString data) static AssetLookupparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssetLookupparseFrom(com.google.protobuf.CodedInputStream input) static AssetLookupparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssetLookupparseFrom(InputStream input) static AssetLookupparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssetLookupparseFrom(ByteBuffer data) static AssetLookupparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AssetLookup>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
PARENT_ID_FIELD_NUMBER
public static final int PARENT_ID_FIELD_NUMBER- See Also:
-
PARENT_EXTERNAL_ID_FIELD_NUMBER
public static final int PARENT_EXTERNAL_ID_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
ROOT_ID_FIELD_NUMBER
public static final int ROOT_ID_FIELD_NUMBER- See Also:
-
CREATED_TIME_FIELD_NUMBER
public static final int CREATED_TIME_FIELD_NUMBER- See Also:
-
LAST_UPDATED_TIME_FIELD_NUMBER
public static final int LAST_UPDATED_TIME_FIELD_NUMBER- See Also:
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER- See Also:
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER- See Also:
-
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER- See Also:
-
DATA_SET_ID_FIELD_NUMBER
public static final int DATA_SET_ID_FIELD_NUMBER- See Also:
-
ROOT_NAME_FIELD_NUMBER
public static final int ROOT_NAME_FIELD_NUMBER- See Also:
-
AGGREGATES_FIELD_NUMBER
public static final int AGGREGATES_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasId
public boolean hasId()optional int64 id = 1;- Specified by:
hasIdin interfaceAssetLookupOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()optional int64 id = 1;- Specified by:
getIdin interfaceAssetLookupOrBuilder- Returns:
- The id.
-
hasExternalId
public boolean hasExternalId()optional string external_id = 2;- Specified by:
hasExternalIdin interfaceAssetLookupOrBuilder- Returns:
- Whether the externalId field is set.
-
getExternalId
optional string external_id = 2;- Specified by:
getExternalIdin interfaceAssetLookupOrBuilder- Returns:
- The externalId.
-
getExternalIdBytes
public com.google.protobuf.ByteString getExternalIdBytes()optional string external_id = 2;- Specified by:
getExternalIdBytesin interfaceAssetLookupOrBuilder- Returns:
- The bytes for externalId.
-
getName
string name = 3;- Specified by:
getNamein interfaceAssetLookupOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()string name = 3;- Specified by:
getNameBytesin interfaceAssetLookupOrBuilder- Returns:
- The bytes for name.
-
hasParentId
public boolean hasParentId()optional int64 parent_id = 4;- Specified by:
hasParentIdin interfaceAssetLookupOrBuilder- Returns:
- Whether the parentId field is set.
-
getParentId
public long getParentId()optional int64 parent_id = 4;- Specified by:
getParentIdin interfaceAssetLookupOrBuilder- Returns:
- The parentId.
-
hasParentExternalId
public boolean hasParentExternalId()optional string parent_external_id = 5;- Specified by:
hasParentExternalIdin interfaceAssetLookupOrBuilder- Returns:
- Whether the parentExternalId field is set.
-
getParentExternalId
optional string parent_external_id = 5;- Specified by:
getParentExternalIdin interfaceAssetLookupOrBuilder- Returns:
- The parentExternalId.
-
getParentExternalIdBytes
public com.google.protobuf.ByteString getParentExternalIdBytes()optional string parent_external_id = 5;- Specified by:
getParentExternalIdBytesin interfaceAssetLookupOrBuilder- Returns:
- The bytes for parentExternalId.
-
hasDescription
public boolean hasDescription()optional string description = 6;- Specified by:
hasDescriptionin interfaceAssetLookupOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
optional string description = 6;- Specified by:
getDescriptionin interfaceAssetLookupOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()optional string description = 6;- Specified by:
getDescriptionBytesin interfaceAssetLookupOrBuilder- Returns:
- The bytes for description.
-
hasRootId
public boolean hasRootId()optional int64 root_id = 7;- Specified by:
hasRootIdin interfaceAssetLookupOrBuilder- Returns:
- Whether the rootId field is set.
-
getRootId
public long getRootId()optional int64 root_id = 7;- Specified by:
getRootIdin interfaceAssetLookupOrBuilder- Returns:
- The rootId.
-
hasCreatedTime
public boolean hasCreatedTime()optional int64 created_time = 8;- Specified by:
hasCreatedTimein interfaceAssetLookupOrBuilder- Returns:
- Whether the createdTime field is set.
-
getCreatedTime
public long getCreatedTime()optional int64 created_time = 8;- Specified by:
getCreatedTimein interfaceAssetLookupOrBuilder- Returns:
- The createdTime.
-
hasLastUpdatedTime
public boolean hasLastUpdatedTime()optional int64 last_updated_time = 9;- Specified by:
hasLastUpdatedTimein interfaceAssetLookupOrBuilder- Returns:
- Whether the lastUpdatedTime field is set.
-
getLastUpdatedTime
public long getLastUpdatedTime()optional int64 last_updated_time = 9;- Specified by:
getLastUpdatedTimein interfaceAssetLookupOrBuilder- Returns:
- The lastUpdatedTime.
-
getMetadataCount
public int getMetadataCount()Description copied from interface:AssetLookupOrBuildermap<string, string> metadata = 10;- Specified by:
getMetadataCountin interfaceAssetLookupOrBuilder
-
containsMetadata
map<string, string> metadata = 10;- Specified by:
containsMetadatain interfaceAssetLookupOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceAssetLookupOrBuilder
-
getMetadataMap
map<string, string> metadata = 10;- Specified by:
getMetadataMapin interfaceAssetLookupOrBuilder
-
getMetadataOrDefault
map<string, string> metadata = 10;- Specified by:
getMetadataOrDefaultin interfaceAssetLookupOrBuilder
-
getMetadataOrThrow
map<string, string> metadata = 10;- Specified by:
getMetadataOrThrowin interfaceAssetLookupOrBuilder
-
getLabelsList
public com.google.protobuf.ProtocolStringList getLabelsList()repeated string labels = 11;- Specified by:
getLabelsListin interfaceAssetLookupOrBuilder- Returns:
- A list containing the labels.
-
getLabelsCount
public int getLabelsCount()repeated string labels = 11;- Specified by:
getLabelsCountin interfaceAssetLookupOrBuilder- Returns:
- The count of labels.
-
getLabels
repeated string labels = 11;- Specified by:
getLabelsin interfaceAssetLookupOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The labels at the given index.
-
getLabelsBytes
public com.google.protobuf.ByteString getLabelsBytes(int index) repeated string labels = 11;- Specified by:
getLabelsBytesin interfaceAssetLookupOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the labels at the given index.
-
hasSource
public boolean hasSource()optional string source = 12;- Specified by:
hasSourcein interfaceAssetLookupOrBuilder- Returns:
- Whether the source field is set.
-
getSource
optional string source = 12;- Specified by:
getSourcein interfaceAssetLookupOrBuilder- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()optional string source = 12;- Specified by:
getSourceBytesin interfaceAssetLookupOrBuilder- Returns:
- The bytes for source.
-
hasDataSetId
public boolean hasDataSetId()optional int64 data_set_id = 13;- Specified by:
hasDataSetIdin interfaceAssetLookupOrBuilder- Returns:
- Whether the dataSetId field is set.
-
getDataSetId
public long getDataSetId()optional int64 data_set_id = 13;- Specified by:
getDataSetIdin interfaceAssetLookupOrBuilder- Returns:
- The dataSetId.
-
hasRootName
public boolean hasRootName()The name of the root asset node in the hierarchy.
optional string root_name = 14;- Specified by:
hasRootNamein interfaceAssetLookupOrBuilder- Returns:
- Whether the rootName field is set.
-
getRootName
The name of the root asset node in the hierarchy.
optional string root_name = 14;- Specified by:
getRootNamein interfaceAssetLookupOrBuilder- Returns:
- The rootName.
-
getRootNameBytes
public com.google.protobuf.ByteString getRootNameBytes()The name of the root asset node in the hierarchy.
optional string root_name = 14;- Specified by:
getRootNameBytesin interfaceAssetLookupOrBuilder- Returns:
- The bytes for rootName.
-
hasAggregates
public boolean hasAggregates().com.cognite.client.dto.Asset.Aggregates aggregates = 15;- Specified by:
hasAggregatesin interfaceAssetLookupOrBuilder- Returns:
- Whether the aggregates field is set.
-
getAggregates
.com.cognite.client.dto.Asset.Aggregates aggregates = 15;- Specified by:
getAggregatesin interfaceAssetLookupOrBuilder- Returns:
- The aggregates.
-
getAggregatesOrBuilder
.com.cognite.client.dto.Asset.Aggregates aggregates = 15;- Specified by:
getAggregatesOrBuilderin interfaceAssetLookupOrBuilder
-
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 AssetLookup parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AssetLookup parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AssetLookup parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AssetLookup parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AssetLookup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AssetLookup parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AssetLookup parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AssetLookup parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AssetLookup 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 AssetLookup.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
-