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

public final class Asset extends com.google.protobuf.GeneratedMessageV3 implements AssetOrBuilder
Protobuf type com.cognite.client.dto.Asset
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:
    • 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

      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()
    • internalGetMapField

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

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

      public boolean hasId()
      optional int64 id = 1;
      Specified by:
      hasId in interface AssetOrBuilder
      Returns:
      Whether the id field is set.
    • getId

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

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

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

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

      public boolean hasName()
      optional string name = 3;
      Specified by:
      hasName in interface AssetOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
      optional string name = 3;
      Specified by:
      getName in interface AssetOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      optional string name = 3;
      Specified by:
      getNameBytes in interface AssetOrBuilder
      Returns:
      The bytes for name.
    • hasParentId

      public boolean hasParentId()
      optional int64 parent_id = 4;
      Specified by:
      hasParentId in interface AssetOrBuilder
      Returns:
      Whether the parentId field is set.
    • getParentId

      public long getParentId()
      optional int64 parent_id = 4;
      Specified by:
      getParentId in interface AssetOrBuilder
      Returns:
      The parentId.
    • hasParentExternalId

      public boolean hasParentExternalId()
      optional string parent_external_id = 5;
      Specified by:
      hasParentExternalId in interface AssetOrBuilder
      Returns:
      Whether the parentExternalId field is set.
    • getParentExternalId

      public String getParentExternalId()
      optional string parent_external_id = 5;
      Specified by:
      getParentExternalId in interface AssetOrBuilder
      Returns:
      The parentExternalId.
    • getParentExternalIdBytes

      public com.google.protobuf.ByteString getParentExternalIdBytes()
      optional string parent_external_id = 5;
      Specified by:
      getParentExternalIdBytes in interface AssetOrBuilder
      Returns:
      The bytes for parentExternalId.
    • hasDescription

      public boolean hasDescription()
      optional string description = 6;
      Specified by:
      hasDescription in interface AssetOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
      optional string description = 6;
      Specified by:
      getDescription in interface AssetOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
      optional string description = 6;
      Specified by:
      getDescriptionBytes in interface AssetOrBuilder
      Returns:
      The bytes for description.
    • hasRootId

      public boolean hasRootId()
      optional int64 root_id = 7;
      Specified by:
      hasRootId in interface AssetOrBuilder
      Returns:
      Whether the rootId field is set.
    • getRootId

      public long getRootId()
      optional int64 root_id = 7;
      Specified by:
      getRootId in interface AssetOrBuilder
      Returns:
      The rootId.
    • hasCreatedTime

      public boolean hasCreatedTime()
      optional int64 created_time = 8;
      Specified by:
      hasCreatedTime in interface AssetOrBuilder
      Returns:
      Whether the createdTime field is set.
    • getCreatedTime

      public long getCreatedTime()
      optional int64 created_time = 8;
      Specified by:
      getCreatedTime in interface AssetOrBuilder
      Returns:
      The createdTime.
    • hasLastUpdatedTime

      public boolean hasLastUpdatedTime()
      optional int64 last_updated_time = 9;
      Specified by:
      hasLastUpdatedTime in interface AssetOrBuilder
      Returns:
      Whether the lastUpdatedTime field is set.
    • getLastUpdatedTime

      public long getLastUpdatedTime()
      optional int64 last_updated_time = 9;
      Specified by:
      getLastUpdatedTime in interface AssetOrBuilder
      Returns:
      The lastUpdatedTime.
    • getMetadataCount

      public int getMetadataCount()
      Description copied from interface: AssetOrBuilder
      map<string, string> metadata = 10;
      Specified by:
      getMetadataCount in interface AssetOrBuilder
    • containsMetadata

      public boolean containsMetadata(String key)
      map<string, string> metadata = 10;
      Specified by:
      containsMetadata in interface AssetOrBuilder
    • getMetadata

      @Deprecated public Map<String,String> getMetadata()
      Deprecated.
      Use getMetadataMap() instead.
      Specified by:
      getMetadata in interface AssetOrBuilder
    • getMetadataMap

      public Map<String,String> getMetadataMap()
      map<string, string> metadata = 10;
      Specified by:
      getMetadataMap in interface AssetOrBuilder
    • getMetadataOrDefault

      public String getMetadataOrDefault(String key, String defaultValue)
      map<string, string> metadata = 10;
      Specified by:
      getMetadataOrDefault in interface AssetOrBuilder
    • getMetadataOrThrow

      public String getMetadataOrThrow(String key)
      map<string, string> metadata = 10;
      Specified by:
      getMetadataOrThrow in interface AssetOrBuilder
    • getLabelsList

      public com.google.protobuf.ProtocolStringList getLabelsList()
      repeated string labels = 11;
      Specified by:
      getLabelsList in interface AssetOrBuilder
      Returns:
      A list containing the labels.
    • getLabelsCount

      public int getLabelsCount()
      repeated string labels = 11;
      Specified by:
      getLabelsCount in interface AssetOrBuilder
      Returns:
      The count of labels.
    • getLabels

      public String getLabels(int index)
      repeated string labels = 11;
      Specified by:
      getLabels in interface AssetOrBuilder
      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:
      getLabelsBytes in interface AssetOrBuilder
      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:
      hasSource in interface AssetOrBuilder
      Returns:
      Whether the source field is set.
    • getSource

      public String getSource()
      optional string source = 12;
      Specified by:
      getSource in interface AssetOrBuilder
      Returns:
      The source.
    • getSourceBytes

      public com.google.protobuf.ByteString getSourceBytes()
      optional string source = 12;
      Specified by:
      getSourceBytes in interface AssetOrBuilder
      Returns:
      The bytes for source.
    • hasDataSetId

      public boolean hasDataSetId()
      optional int64 data_set_id = 13;
      Specified by:
      hasDataSetId in interface AssetOrBuilder
      Returns:
      Whether the dataSetId field is set.
    • getDataSetId

      public long getDataSetId()
      optional int64 data_set_id = 13;
      Specified by:
      getDataSetId in interface AssetOrBuilder
      Returns:
      The dataSetId.
    • hasGeoLocation

      public boolean hasGeoLocation()
      optional .com.cognite.client.dto.geo.Feature geo_location = 14;
      Specified by:
      hasGeoLocation in interface AssetOrBuilder
      Returns:
      Whether the geoLocation field is set.
    • getGeoLocation

      public Feature getGeoLocation()
      optional .com.cognite.client.dto.geo.Feature geo_location = 14;
      Specified by:
      getGeoLocation in interface AssetOrBuilder
      Returns:
      The geoLocation.
    • getGeoLocationOrBuilder

      public FeatureOrBuilder getGeoLocationOrBuilder()
      optional .com.cognite.client.dto.geo.Feature geo_location = 14;
      Specified by:
      getGeoLocationOrBuilder in interface AssetOrBuilder
    • hasAggregates

      public boolean hasAggregates()
      .com.cognite.client.dto.Asset.Aggregates aggregates = 15;
      Specified by:
      hasAggregates in interface AssetOrBuilder
      Returns:
      Whether the aggregates field is set.
    • getAggregates

      public Asset.Aggregates getAggregates()
      .com.cognite.client.dto.Asset.Aggregates aggregates = 15;
      Specified by:
      getAggregates in interface AssetOrBuilder
      Returns:
      The aggregates.
    • getAggregatesOrBuilder

      public Asset.AggregatesOrBuilder getAggregatesOrBuilder()
      .com.cognite.client.dto.Asset.Aggregates aggregates = 15;
      Specified by:
      getAggregatesOrBuilder in interface AssetOrBuilder
    • 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 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

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

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

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

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

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

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

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

      public static Asset.Builder newBuilder()
    • newBuilder

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

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

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

      public static Asset getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Asset> 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 Asset getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder