Builder

class Builder : GeneratedMessage.Builder<BuilderT> , FileOrBuilder
# VFS: File

Describes a single `File`-type entry within a given `TreeEntry`, within a virtual file system managed by Elide. File
entries describe file metadata only; raw file data is enclosed in a compressed blob stored alongside filesystem
metadata.

See individual properties for more information. `File` objects can only be held by `TreeEntry` objects. `Directory`
objects refer to their child `TreeEntry` constituents.
Protobuf type elide.vfs.File

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun addRepeatedField(field: Descriptors.FieldDescriptor, value: Any): BuilderT
abstract fun addRepeatedField(field: Descriptors.FieldDescriptor, value: Any): Message.Builder
Link copied to clipboard
abstract fun build(): MessageLite
open fun build(): File
Link copied to clipboard
abstract fun buildPartial(): MessageLite
open fun buildPartial(): File
Link copied to clipboard
open fun clear(): BuilderType
abstract fun clear(): Message.Builder
open fun clear(): File.Builder
Link copied to clipboard
Link copied to clipboard
Compressed size of the file, in bytes. If `size` and `compressed` are equal, the file is not compressed.
uint64 compressed = 3;
Link copied to clipboard
Describes the encoding of the file.
.elide.data.Encoding encoding = 6;
Link copied to clipboard
open fun clearField(field: Descriptors.FieldDescriptor): BuilderT
abstract fun clearField(field: Descriptors.FieldDescriptor): Message.Builder
Link copied to clipboard
Link copied to clipboard
Fingerprints of compressed and regular file representations, as applicable.
.elide.vfs.File.FileFingerprint fingerprint = 10;
Link copied to clipboard
Specifies a known MIME type for this file, from the [KnownMimeType] enumeration.
.elide.vfs.KnownMimeType known = 8;
Link copied to clipboard
Specifies a string for a mime-type. This is only used if the mime-type is not known to the VM implementation.
string mime = 9;
Link copied to clipboard
Describes the last time this file was modified. This value is only available in circumstances where the VFS is
running with change tracking enabled (namely, during development). In production, this value will be set to a
consistent timestamp for all assets.
.google.protobuf.Timestamp modified = 7;
Link copied to clipboard
Name of the file.
string name = 1;
Link copied to clipboard
Offset at which the file begins within the compressed filesystem blob.
uint64 offset = 4;
Link copied to clipboard
open fun clearOneof(oneof: Descriptors.OneofDescriptor): BuilderType
open fun clearOneof(oneof: Descriptors.OneofDescriptor): BuilderT
abstract fun clearOneof(oneof: Descriptors.OneofDescriptor): Message.Builder
Link copied to clipboard
Uncompressed size of the file, in bytes.
uint64 size = 2;
Link copied to clipboard
Offset at which the file ends within the compressed filesystem blob.
uint64 tail = 5;
Link copied to clipboard
open fun clone(): BuilderType
open fun clone(): BuilderT
abstract fun clone(): Message.Builder
Link copied to clipboard
Extended attributes for this file.
map<string, string> attributes = 11;
Link copied to clipboard
Link copied to clipboard
open fun getAllFields(): Map<Descriptors.FieldDescriptor, Any>
Link copied to clipboard
Use getAttributesMap instead.
Link copied to clipboard
Extended attributes for this file.
map<string, string> attributes = 11;
Link copied to clipboard
Extended attributes for this file.
map<string, string> attributes = 11;
Link copied to clipboard
open fun getAttributesOrDefault(key: String, defaultValue: String): String
Extended attributes for this file.
map<string, string> attributes = 11;
Link copied to clipboard
Extended attributes for this file.
map<string, string> attributes = 11;
Link copied to clipboard
open fun getCompressed(): Long
Compressed size of the file, in bytes. If `size` and `compressed` are equal, the file is not compressed.
uint64 compressed = 3;
Link copied to clipboard
abstract fun getDefaultInstanceForType(): MessageLite
Link copied to clipboard
fun getDescriptor(): Descriptors.Descriptor
Link copied to clipboard
open fun getDescriptorForType(): Descriptors.Descriptor
Link copied to clipboard
open fun getEncoding(): Encoding
Describes the encoding of the file.
.elide.data.Encoding encoding = 6;
Link copied to clipboard
open fun getEncodingValue(): Int
Describes the encoding of the file.
.elide.data.Encoding encoding = 6;
Link copied to clipboard
open fun getField(field: Descriptors.FieldDescriptor): Any
Link copied to clipboard
open fun getFieldBuilder(field: Descriptors.FieldDescriptor): Message.Builder
Link copied to clipboard
Link copied to clipboard
Fingerprints of compressed and regular file representations, as applicable.
.elide.vfs.File.FileFingerprint fingerprint = 10;
Link copied to clipboard
Fingerprints of compressed and regular file representations, as applicable.
.elide.vfs.File.FileFingerprint fingerprint = 10;
Link copied to clipboard
Fingerprints of compressed and regular file representations, as applicable.
.elide.vfs.File.FileFingerprint fingerprint = 10;
Link copied to clipboard
Specifies a known MIME type for this file, from the [KnownMimeType] enumeration.
.elide.vfs.KnownMimeType known = 8;
Link copied to clipboard
open fun getKnownValue(): Int
Specifies a known MIME type for this file, from the [KnownMimeType] enumeration.
.elide.vfs.KnownMimeType known = 8;
Link copied to clipboard
open fun getMime(): String
Specifies a string for a mime-type. This is only used if the mime-type is not known to the VM implementation.
string mime = 9;
Link copied to clipboard
open fun getMimeBytes(): ByteString
Specifies a string for a mime-type. This is only used if the mime-type is not known to the VM implementation.
string mime = 9;
Link copied to clipboard
open fun getModified(): Timestamp
Describes the last time this file was modified. This value is only available in circumstances where the VFS is
running with change tracking enabled (namely, during development). In production, this value will be set to a
consistent timestamp for all assets.
.google.protobuf.Timestamp modified = 7;
Link copied to clipboard
open fun getModifiedBuilder(): Timestamp.Builder
Describes the last time this file was modified. This value is only available in circumstances where the VFS is
running with change tracking enabled (namely, during development). In production, this value will be set to a
consistent timestamp for all assets.
.google.protobuf.Timestamp modified = 7;
Link copied to clipboard
open fun getModifiedOrBuilder(): TimestampOrBuilder
Describes the last time this file was modified. This value is only available in circumstances where the VFS is
running with change tracking enabled (namely, during development). In production, this value will be set to a
consistent timestamp for all assets.
.google.protobuf.Timestamp modified = 7;
Link copied to clipboard
Use alternate mutation accessors instead.
Link copied to clipboard
open fun getName(): String
Name of the file.
string name = 1;
Link copied to clipboard
open fun getNameBytes(): ByteString
Name of the file.
string name = 1;
Link copied to clipboard
open fun getOffset(): Long
Offset at which the file begins within the compressed filesystem blob.
uint64 offset = 4;
Link copied to clipboard
open fun getOneofFieldDescriptor(oneof: Descriptors.OneofDescriptor): Descriptors.FieldDescriptor
Link copied to clipboard
open fun getRepeatedField(field: Descriptors.FieldDescriptor, index: Int): Any
Link copied to clipboard
open fun getRepeatedFieldBuilder(field: Descriptors.FieldDescriptor, index: Int): Message.Builder
Link copied to clipboard
open fun getRepeatedFieldCount(field: Descriptors.FieldDescriptor): Int
Link copied to clipboard
open fun getSize(): Long
Uncompressed size of the file, in bytes.
uint64 size = 2;
Link copied to clipboard
open fun getTail(): Long
Offset at which the file ends within the compressed filesystem blob.
uint64 tail = 5;
Link copied to clipboard
fun getUnknownFields(): UnknownFieldSet
Link copied to clipboard
open fun hasField(field: Descriptors.FieldDescriptor): Boolean
Link copied to clipboard
Fingerprints of compressed and regular file representations, as applicable.
.elide.vfs.File.FileFingerprint fingerprint = 10;
Link copied to clipboard
open fun hasKnown(): Boolean
Specifies a known MIME type for this file, from the [KnownMimeType] enumeration.
.elide.vfs.KnownMimeType known = 8;
Link copied to clipboard
open fun hasMime(): Boolean
Specifies a string for a mime-type. This is only used if the mime-type is not known to the VM implementation.
string mime = 9;
Link copied to clipboard
open fun hasModified(): Boolean
Describes the last time this file was modified. This value is only available in circumstances where the VFS is
running with change tracking enabled (namely, during development). In production, this value will be set to a
consistent timestamp for all assets.
.google.protobuf.Timestamp modified = 7;
Link copied to clipboard
open fun hasOneof(oneof: Descriptors.OneofDescriptor): Boolean
Link copied to clipboard
Link copied to clipboard
open fun mergeDelimitedFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): Boolean
Link copied to clipboard
Fingerprints of compressed and regular file representations, as applicable.
.elide.vfs.File.FileFingerprint fingerprint = 10;
Link copied to clipboard
abstract fun mergeFrom(other: Message): Message.Builder
open fun mergeFrom(other: Message): File.Builder
open fun mergeFrom(other: File): File.Builder
open fun mergeFrom(input: CodedInputStream, extensionRegistry: ExtensionRegistryLite): File.Builder
Link copied to clipboard
open fun mergeModified(value: Timestamp): File.Builder
Describes the last time this file was modified. This value is only available in circumstances where the VFS is
running with change tracking enabled (namely, during development). In production, this value will be set to a
consistent timestamp for all assets.
.google.protobuf.Timestamp modified = 7;
Link copied to clipboard
open fun mergeUnknownFields(unknownFields: UnknownFieldSet): BuilderType
open fun mergeUnknownFields(unknownFields: UnknownFieldSet): BuilderT
abstract fun mergeUnknownFields(unknownFields: UnknownFieldSet): Message.Builder
Link copied to clipboard
open fun newBuilderForField(field: Descriptors.FieldDescriptor): Message.Builder
Link copied to clipboard
Extended attributes for this file.
map<string, string> attributes = 11;
Link copied to clipboard
open fun putAttributes(key: String, value: String): File.Builder
Extended attributes for this file.
map<string, string> attributes = 11;
Link copied to clipboard
Extended attributes for this file.
map<string, string> attributes = 11;
Link copied to clipboard
open fun setCompressed(value: Long): File.Builder
Compressed size of the file, in bytes. If `size` and `compressed` are equal, the file is not compressed.
uint64 compressed = 3;
Link copied to clipboard
Describes the encoding of the file.
.elide.data.Encoding encoding = 6;
Link copied to clipboard
Describes the encoding of the file.
.elide.data.Encoding encoding = 6;
Link copied to clipboard
open fun setField(field: Descriptors.FieldDescriptor, value: Any): BuilderT
abstract fun setField(field: Descriptors.FieldDescriptor, value: Any): Message.Builder
Link copied to clipboard
Fingerprints of compressed and regular file representations, as applicable.
.elide.vfs.File.FileFingerprint fingerprint = 10;
Link copied to clipboard
Specifies a known MIME type for this file, from the [KnownMimeType] enumeration.
.elide.vfs.KnownMimeType known = 8;
Link copied to clipboard
open fun setKnownValue(value: Int): File.Builder
Specifies a known MIME type for this file, from the [KnownMimeType] enumeration.
.elide.vfs.KnownMimeType known = 8;
Link copied to clipboard
open fun setMime(value: String): File.Builder
Specifies a string for a mime-type. This is only used if the mime-type is not known to the VM implementation.
string mime = 9;
Link copied to clipboard
open fun setMimeBytes(value: ByteString): File.Builder
Specifies a string for a mime-type. This is only used if the mime-type is not known to the VM implementation.
string mime = 9;
Link copied to clipboard
open fun setModified(value: Timestamp): File.Builder
open fun setModified(builderForValue: Timestamp.Builder): File.Builder
Describes the last time this file was modified. This value is only available in circumstances where the VFS is
running with change tracking enabled (namely, during development). In production, this value will be set to a
consistent timestamp for all assets.
.google.protobuf.Timestamp modified = 7;
Link copied to clipboard
open fun setName(value: String): File.Builder
Name of the file.
string name = 1;
Link copied to clipboard
open fun setNameBytes(value: ByteString): File.Builder
Name of the file.
string name = 1;
Link copied to clipboard
open fun setOffset(value: Long): File.Builder
Offset at which the file begins within the compressed filesystem blob.
uint64 offset = 4;
Link copied to clipboard
open fun setRepeatedField(field: Descriptors.FieldDescriptor, index: Int, value: Any): BuilderT
abstract fun setRepeatedField(field: Descriptors.FieldDescriptor, index: Int, value: Any): Message.Builder
Link copied to clipboard
open fun setSize(value: Long): File.Builder
Uncompressed size of the file, in bytes.
uint64 size = 2;
Link copied to clipboard
open fun setTail(value: Long): File.Builder
Offset at which the file ends within the compressed filesystem blob.
uint64 tail = 5;
Link copied to clipboard
open fun setUnknownFields(unknownFields: UnknownFieldSet): BuilderT
abstract fun setUnknownFields(unknownFields: UnknownFieldSet): Message.Builder
Link copied to clipboard
open fun toString(): String