Package com.cognite.client.dto
Class Asset
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.cognite.client.dto.Asset
- All Implemented Interfaces:
AssetOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
Protobuf type
com.cognite.client.dto.Asset- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typecom.cognite.client.dto.Asset.Aggregatesstatic interfacestatic final classProtobuf typecom.cognite.client.dto.AssetNested 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 Assetoptional 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;optional .com.cognite.client.dto.geo.Feature geo_location = 14;optional .com.cognite.client.dto.geo.Feature geo_location = 14;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()optional string name = 3;com.google.protobuf.ByteStringoptional string 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<Asset>longoptional int64 root_id = 7;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;booleanoptional .com.cognite.client.dto.geo.Feature geo_location = 14;inthashCode()booleanhasId()optional int64 id = 1;booleanoptional int64 last_updated_time = 9;booleanhasName()optional string name = 3;booleanoptional string parent_external_id = 5;booleanoptional int64 parent_id = 4;booleanoptional int64 root_id = 7;booleanoptional string source = 12;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldinternalGetMapField(int number) final booleanstatic Asset.Builderstatic Asset.BuildernewBuilder(Asset prototype) protected Asset.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static AssetparseDelimitedFrom(InputStream input) static AssetparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssetparseFrom(byte[] data) static AssetparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssetparseFrom(com.google.protobuf.ByteString data) static AssetparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssetparseFrom(com.google.protobuf.CodedInputStream input) static AssetparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssetparseFrom(InputStream input) static AssetparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssetparseFrom(ByteBuffer data) static AssetparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Asset>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, 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:
-
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:
-
GEO_LOCATION_FIELD_NUMBER
public static final int GEO_LOCATION_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() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapFieldin 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 interfaceAssetOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()optional int64 id = 1;- Specified by:
getIdin interfaceAssetOrBuilder- Returns:
- The id.
-
hasExternalId
public boolean hasExternalId()optional string external_id = 2;- Specified by:
hasExternalIdin interfaceAssetOrBuilder- Returns:
- Whether the externalId field is set.
-
getExternalId
optional string external_id = 2;- Specified by:
getExternalIdin interfaceAssetOrBuilder- Returns:
- The externalId.
-
getExternalIdBytes
public com.google.protobuf.ByteString getExternalIdBytes()optional string external_id = 2;- Specified by:
getExternalIdBytesin interfaceAssetOrBuilder- Returns:
- The bytes for externalId.
-
hasName
public boolean hasName()optional string name = 3;- Specified by:
hasNamein interfaceAssetOrBuilder- Returns:
- Whether the name field is set.
-
getName
optional string name = 3;- Specified by:
getNamein interfaceAssetOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()optional string name = 3;- Specified by:
getNameBytesin interfaceAssetOrBuilder- Returns:
- The bytes for name.
-
hasParentId
public boolean hasParentId()optional int64 parent_id = 4;- Specified by:
hasParentIdin interfaceAssetOrBuilder- Returns:
- Whether the parentId field is set.
-
getParentId
public long getParentId()optional int64 parent_id = 4;- Specified by:
getParentIdin interfaceAssetOrBuilder- Returns:
- The parentId.
-
hasParentExternalId
public boolean hasParentExternalId()optional string parent_external_id = 5;- Specified by:
hasParentExternalIdin interfaceAssetOrBuilder- Returns:
- Whether the parentExternalId field is set.
-
getParentExternalId
optional string parent_external_id = 5;- Specified by:
getParentExternalIdin interfaceAssetOrBuilder- Returns:
- The parentExternalId.
-
getParentExternalIdBytes
public com.google.protobuf.ByteString getParentExternalIdBytes()optional string parent_external_id = 5;- Specified by:
getParentExternalIdBytesin interfaceAssetOrBuilder- Returns:
- The bytes for parentExternalId.
-
hasDescription
public boolean hasDescription()optional string description = 6;- Specified by:
hasDescriptionin interfaceAssetOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
optional string description = 6;- Specified by:
getDescriptionin interfaceAssetOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()optional string description = 6;- Specified by:
getDescriptionBytesin interfaceAssetOrBuilder- Returns:
- The bytes for description.
-
hasRootId
public boolean hasRootId()optional int64 root_id = 7;- Specified by:
hasRootIdin interfaceAssetOrBuilder- Returns:
- Whether the rootId field is set.
-
getRootId
public long getRootId()optional int64 root_id = 7;- Specified by:
getRootIdin interfaceAssetOrBuilder- Returns:
- The rootId.
-
hasCreatedTime
public boolean hasCreatedTime()optional int64 created_time = 8;- Specified by:
hasCreatedTimein interfaceAssetOrBuilder- Returns:
- Whether the createdTime field is set.
-
getCreatedTime
public long getCreatedTime()optional int64 created_time = 8;- Specified by:
getCreatedTimein interfaceAssetOrBuilder- Returns:
- The createdTime.
-
hasLastUpdatedTime
public boolean hasLastUpdatedTime()optional int64 last_updated_time = 9;- Specified by:
hasLastUpdatedTimein interfaceAssetOrBuilder- Returns:
- Whether the lastUpdatedTime field is set.
-
getLastUpdatedTime
public long getLastUpdatedTime()optional int64 last_updated_time = 9;- Specified by:
getLastUpdatedTimein interfaceAssetOrBuilder- Returns:
- The lastUpdatedTime.
-
getMetadataCount
public int getMetadataCount()Description copied from interface:AssetOrBuildermap<string, string> metadata = 10;- Specified by:
getMetadataCountin interfaceAssetOrBuilder
-
containsMetadata
map<string, string> metadata = 10;- Specified by:
containsMetadatain interfaceAssetOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceAssetOrBuilder
-
getMetadataMap
map<string, string> metadata = 10;- Specified by:
getMetadataMapin interfaceAssetOrBuilder
-
getMetadataOrDefault
map<string, string> metadata = 10;- Specified by:
getMetadataOrDefaultin interfaceAssetOrBuilder
-
getMetadataOrThrow
map<string, string> metadata = 10;- Specified by:
getMetadataOrThrowin interfaceAssetOrBuilder
-
getLabelsList
public com.google.protobuf.ProtocolStringList getLabelsList()repeated string labels = 11;- Specified by:
getLabelsListin interfaceAssetOrBuilder- Returns:
- A list containing the labels.
-
getLabelsCount
public int getLabelsCount()repeated string labels = 11;- Specified by:
getLabelsCountin interfaceAssetOrBuilder- Returns:
- The count of labels.
-
getLabels
repeated string labels = 11;- Specified by:
getLabelsin interfaceAssetOrBuilder- 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 interfaceAssetOrBuilder- 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 interfaceAssetOrBuilder- Returns:
- Whether the source field is set.
-
getSource
optional string source = 12;- Specified by:
getSourcein interfaceAssetOrBuilder- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()optional string source = 12;- Specified by:
getSourceBytesin interfaceAssetOrBuilder- Returns:
- The bytes for source.
-
hasDataSetId
public boolean hasDataSetId()optional int64 data_set_id = 13;- Specified by:
hasDataSetIdin interfaceAssetOrBuilder- Returns:
- Whether the dataSetId field is set.
-
getDataSetId
public long getDataSetId()optional int64 data_set_id = 13;- Specified by:
getDataSetIdin interfaceAssetOrBuilder- Returns:
- The dataSetId.
-
hasGeoLocation
public boolean hasGeoLocation()optional .com.cognite.client.dto.geo.Feature geo_location = 14;- Specified by:
hasGeoLocationin interfaceAssetOrBuilder- Returns:
- Whether the geoLocation field is set.
-
getGeoLocation
optional .com.cognite.client.dto.geo.Feature geo_location = 14;- Specified by:
getGeoLocationin interfaceAssetOrBuilder- Returns:
- The geoLocation.
-
getGeoLocationOrBuilder
optional .com.cognite.client.dto.geo.Feature geo_location = 14;- Specified by:
getGeoLocationOrBuilderin interfaceAssetOrBuilder
-
hasAggregates
public boolean hasAggregates().com.cognite.client.dto.Asset.Aggregates aggregates = 15;- Specified by:
hasAggregatesin interfaceAssetOrBuilder- Returns:
- Whether the aggregates field is set.
-
getAggregates
.com.cognite.client.dto.Asset.Aggregates aggregates = 15;- Specified by:
getAggregatesin interfaceAssetOrBuilder- Returns:
- The aggregates.
-
getAggregatesOrBuilder
.com.cognite.client.dto.Asset.Aggregates aggregates = 15;- Specified by:
getAggregatesOrBuilderin interfaceAssetOrBuilder
-
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 Asset parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Asset parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Asset parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Asset parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Asset parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Asset parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Asset parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Asset 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 Asset.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
-