Class FileMetadata

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.cognite.client.dto.FileMetadata
All Implemented Interfaces:
FileMetadataOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class FileMetadata extends com.google.protobuf.GeneratedMessageV3 implements FileMetadataOrBuilder
Protobuf type com.cognite.client.dto.FileMetadata
See Also:
  • Field Details

    • 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:
    • DIRECTORY_FIELD_NUMBER

      public static final int DIRECTORY_FIELD_NUMBER
      See Also:
    • SOURCE_FIELD_NUMBER

      public static final int SOURCE_FIELD_NUMBER
      See Also:
    • MIME_TYPE_FIELD_NUMBER

      public static final int MIME_TYPE_FIELD_NUMBER
      See Also:
    • METADATA_FIELD_NUMBER

      public static final int METADATA_FIELD_NUMBER
      See Also:
    • ASSET_IDS_FIELD_NUMBER

      public static final int ASSET_IDS_FIELD_NUMBER
      See Also:
    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • UPLOADED_FIELD_NUMBER

      public static final int UPLOADED_FIELD_NUMBER
      See Also:
    • UPLOADED_TIME_FIELD_NUMBER

      public static final int UPLOADED_TIME_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:
    • SOURCE_CREATED_TIME_FIELD_NUMBER

      public static final int SOURCE_CREATED_TIME_FIELD_NUMBER
      See Also:
    • SOURCE_MODIFIED_TIME_FIELD_NUMBER

      public static final int SOURCE_MODIFIED_TIME_FIELD_NUMBER
      See Also:
    • DATA_SET_ID_FIELD_NUMBER

      public static final int DATA_SET_ID_FIELD_NUMBER
      See Also:
    • SECURITY_CATEGORIES_FIELD_NUMBER

      public static final int SECURITY_CATEGORIES_FIELD_NUMBER
      See Also:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
    • GEO_LOCATION_FIELD_NUMBER

      public static final int GEO_LOCATION_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()
    • internalGetMapFieldReflection

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

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

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

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

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

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

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

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

      public boolean hasDirectory()
      optional string directory = 3;
      Specified by:
      hasDirectory in interface FileMetadataOrBuilder
      Returns:
      Whether the directory field is set.
    • getDirectory

      public String getDirectory()
      optional string directory = 3;
      Specified by:
      getDirectory in interface FileMetadataOrBuilder
      Returns:
      The directory.
    • getDirectoryBytes

      public com.google.protobuf.ByteString getDirectoryBytes()
      optional string directory = 3;
      Specified by:
      getDirectoryBytes in interface FileMetadataOrBuilder
      Returns:
      The bytes for directory.
    • hasSource

      public boolean hasSource()
      optional string source = 4;
      Specified by:
      hasSource in interface FileMetadataOrBuilder
      Returns:
      Whether the source field is set.
    • getSource

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

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

      public boolean hasMimeType()
      optional string mime_type = 5;
      Specified by:
      hasMimeType in interface FileMetadataOrBuilder
      Returns:
      Whether the mimeType field is set.
    • getMimeType

      public String getMimeType()
      optional string mime_type = 5;
      Specified by:
      getMimeType in interface FileMetadataOrBuilder
      Returns:
      The mimeType.
    • getMimeTypeBytes

      public com.google.protobuf.ByteString getMimeTypeBytes()
      optional string mime_type = 5;
      Specified by:
      getMimeTypeBytes in interface FileMetadataOrBuilder
      Returns:
      The bytes for mimeType.
    • getMetadataCount

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

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

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

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

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

      public String getMetadataOrThrow(String key)
      map<string, string> metadata = 6;
      Specified by:
      getMetadataOrThrow in interface FileMetadataOrBuilder
    • getAssetIdsList

      public List<Long> getAssetIdsList()
      repeated int64 asset_ids = 7;
      Specified by:
      getAssetIdsList in interface FileMetadataOrBuilder
      Returns:
      A list containing the assetIds.
    • getAssetIdsCount

      public int getAssetIdsCount()
      repeated int64 asset_ids = 7;
      Specified by:
      getAssetIdsCount in interface FileMetadataOrBuilder
      Returns:
      The count of assetIds.
    • getAssetIds

      public long getAssetIds(int index)
      repeated int64 asset_ids = 7;
      Specified by:
      getAssetIds in interface FileMetadataOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The assetIds at the given index.
    • hasId

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

      public long getId()
      optional int64 id = 8;
      Specified by:
      getId in interface FileMetadataOrBuilder
      Returns:
      The id.
    • getUploaded

      public boolean getUploaded()
      bool uploaded = 9;
      Specified by:
      getUploaded in interface FileMetadataOrBuilder
      Returns:
      The uploaded.
    • hasUploadedTime

      public boolean hasUploadedTime()
      optional int64 uploaded_time = 10;
      Specified by:
      hasUploadedTime in interface FileMetadataOrBuilder
      Returns:
      Whether the uploadedTime field is set.
    • getUploadedTime

      public long getUploadedTime()
      optional int64 uploaded_time = 10;
      Specified by:
      getUploadedTime in interface FileMetadataOrBuilder
      Returns:
      The uploadedTime.
    • hasCreatedTime

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

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

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

      public long getLastUpdatedTime()
      optional int64 last_updated_time = 12;
      Specified by:
      getLastUpdatedTime in interface FileMetadataOrBuilder
      Returns:
      The lastUpdatedTime.
    • hasSourceCreatedTime

      public boolean hasSourceCreatedTime()
      optional int64 source_created_time = 13;
      Specified by:
      hasSourceCreatedTime in interface FileMetadataOrBuilder
      Returns:
      Whether the sourceCreatedTime field is set.
    • getSourceCreatedTime

      public long getSourceCreatedTime()
      optional int64 source_created_time = 13;
      Specified by:
      getSourceCreatedTime in interface FileMetadataOrBuilder
      Returns:
      The sourceCreatedTime.
    • hasSourceModifiedTime

      public boolean hasSourceModifiedTime()
      optional int64 source_modified_time = 14;
      Specified by:
      hasSourceModifiedTime in interface FileMetadataOrBuilder
      Returns:
      Whether the sourceModifiedTime field is set.
    • getSourceModifiedTime

      public long getSourceModifiedTime()
      optional int64 source_modified_time = 14;
      Specified by:
      getSourceModifiedTime in interface FileMetadataOrBuilder
      Returns:
      The sourceModifiedTime.
    • hasDataSetId

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

      public long getDataSetId()
      optional int64 data_set_id = 15;
      Specified by:
      getDataSetId in interface FileMetadataOrBuilder
      Returns:
      The dataSetId.
    • getSecurityCategoriesList

      public List<Long> getSecurityCategoriesList()
      repeated int64 security_categories = 16;
      Specified by:
      getSecurityCategoriesList in interface FileMetadataOrBuilder
      Returns:
      A list containing the securityCategories.
    • getSecurityCategoriesCount

      public int getSecurityCategoriesCount()
      repeated int64 security_categories = 16;
      Specified by:
      getSecurityCategoriesCount in interface FileMetadataOrBuilder
      Returns:
      The count of securityCategories.
    • getSecurityCategories

      public long getSecurityCategories(int index)
      repeated int64 security_categories = 16;
      Specified by:
      getSecurityCategories in interface FileMetadataOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The securityCategories at the given index.
    • getLabelsList

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

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

      public String getLabels(int index)
      repeated string labels = 17;
      Specified by:
      getLabels in interface FileMetadataOrBuilder
      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 = 17;
      Specified by:
      getLabelsBytes in interface FileMetadataOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the labels at the given index.
    • hasGeoLocation

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

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

      public FeatureOrBuilder getGeoLocationOrBuilder()
      optional .com.cognite.client.dto.geo.Feature geo_location = 18;
      Specified by:
      getGeoLocationOrBuilder in interface FileMetadataOrBuilder
    • 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 FileMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FileMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FileMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FileMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FileMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FileMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

      public static FileMetadata.Builder newBuilder()
    • newBuilder

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

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

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

      public static FileMetadata getDefaultInstance()
    • parser

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

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