Class 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.beam.proto.FileMetadata
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields 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
      • hasExternalId

        public boolean hasExternalId()
        .google.protobuf.StringValue external_id = 1;
        Specified by:
        hasExternalId in interface FileMetadataOrBuilder
        Returns:
        Whether the externalId field is set.
      • hasName

        public boolean hasName()
        .google.protobuf.StringValue name = 2;
        Specified by:
        hasName in interface FileMetadataOrBuilder
        Returns:
        Whether the name field is set.
      • hasDirectory

        public boolean hasDirectory()
        .google.protobuf.StringValue directory = 3;
        Specified by:
        hasDirectory in interface FileMetadataOrBuilder
        Returns:
        Whether the directory field is set.
      • hasSource

        public boolean hasSource()
        .google.protobuf.StringValue source = 4;
        Specified by:
        hasSource in interface FileMetadataOrBuilder
        Returns:
        Whether the source field is set.
      • hasMimeType

        public boolean hasMimeType()
        .google.protobuf.StringValue mime_type = 5;
        Specified by:
        hasMimeType in interface FileMetadataOrBuilder
        Returns:
        Whether the mimeType field is set.
      • 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()
        .google.protobuf.Int64Value id = 8;
        Specified by:
        hasId in interface FileMetadataOrBuilder
        Returns:
        Whether the id field is set.
      • hasUploadedTime

        public boolean hasUploadedTime()
        .google.protobuf.Int64Value uploaded_time = 10;
        Specified by:
        hasUploadedTime in interface FileMetadataOrBuilder
        Returns:
        Whether the uploadedTime field is set.
      • hasCreatedTime

        public boolean hasCreatedTime()
        .google.protobuf.Int64Value created_time = 11;
        Specified by:
        hasCreatedTime in interface FileMetadataOrBuilder
        Returns:
        Whether the createdTime field is set.
      • hasLastUpdatedTime

        public boolean hasLastUpdatedTime()
        .google.protobuf.Int64Value last_updated_time = 12;
        Specified by:
        hasLastUpdatedTime in interface FileMetadataOrBuilder
        Returns:
        Whether the lastUpdatedTime field is set.
      • hasSourceCreatedTime

        public boolean hasSourceCreatedTime()
        .google.protobuf.Int64Value source_created_time = 13;
        Specified by:
        hasSourceCreatedTime in interface FileMetadataOrBuilder
        Returns:
        Whether the sourceCreatedTime field is set.
      • hasSourceModifiedTime

        public boolean hasSourceModifiedTime()
        .google.protobuf.Int64Value source_modified_time = 14;
        Specified by:
        hasSourceModifiedTime in interface FileMetadataOrBuilder
        Returns:
        Whether the sourceModifiedTime field is set.
      • hasDataSetId

        public boolean hasDataSetId()
        .google.protobuf.Int64Value data_set_id = 15;
        Specified by:
        hasDataSetId in interface FileMetadataOrBuilder
        Returns:
        Whether the dataSetId field is set.
      • 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.
      • 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.
      • 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​(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
      • 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