booster / com.didiglobal.booster.aapt2 / ResourcesInternal / CompiledFile / Builder

Builder

class Builder : Builder<Builder!>, CompiledFileOrBuilder


      The top level message representing an external resource file (layout XML, PNG, etc).
      This is used to represent a compiled file before it is linked. Only useful to aapt2.
      
Protobuf type aapt.pb.internal.CompiledFile

Functions

addAllExportedSymbol


        Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
        
repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5;

fun addAllExportedSymbol(values: MutableIterable<Symbol!>!): Builder!

addExportedSymbol


        Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
        
repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5;

fun addExportedSymbol(value: Symbol!): Builder!
fun addExportedSymbol(index: Int, value: Symbol!): Builder!
fun addExportedSymbol(builderForValue: Builder!): Builder!
fun addExportedSymbol(index: Int, builderForValue: Builder!): Builder!

addExportedSymbolBuilder


        Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
        
repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5;

fun addExportedSymbolBuilder(): Builder!
fun addExportedSymbolBuilder(index: Int): Builder!

addRepeatedField

fun addRepeatedField(field: FieldDescriptor!, value: Any!): Builder!

build

fun build(): CompiledFile!

buildPartial

fun buildPartial(): CompiledFile!

clear

fun clear(): Builder!

clearConfig


        The configuration for which the resource is defined.
        
.aapt.pb.Configuration config = 2;

fun clearConfig(): Builder!

clearExportedSymbol


        Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
        
repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5;

fun clearExportedSymbol(): Builder!

clearField

fun clearField(field: FieldDescriptor!): Builder!

clearOneof

fun clearOneof(oneof: OneofDescriptor!): Builder!

clearResourceName


        The name of the resource (in the form package:type/name).
        
string resource_name = 1;

fun clearResourceName(): Builder!

clearSourcePath


        The filesystem path to where the source file originated.
        Mainly used to display helpful error messages.
        
string source_path = 4;

fun clearSourcePath(): Builder!

clearType


        The type of the file.
        
.aapt.pb.FileReference.Type type = 3;

fun clearType(): Builder!

clone

fun clone(): Builder!

getConfig


        The configuration for which the resource is defined.
        
.aapt.pb.Configuration config = 2;

fun getConfig(): Configuration!

getConfigBuilder


        The configuration for which the resource is defined.
        
.aapt.pb.Configuration config = 2;

fun getConfigBuilder(): Builder!

getConfigOrBuilder


        The configuration for which the resource is defined.
        
.aapt.pb.Configuration config = 2;

fun getConfigOrBuilder(): ConfigurationOrBuilder!

getDefaultInstanceForType

fun getDefaultInstanceForType(): CompiledFile!

getDescriptor

static fun getDescriptor(): Descriptor!

getDescriptorForType

fun getDescriptorForType(): Descriptor!

getExportedSymbol


        Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
        
repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5;

fun getExportedSymbol(index: Int): Symbol!

getExportedSymbolBuilder


        Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
        
repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5;

fun getExportedSymbolBuilder(index: Int): Builder!

getExportedSymbolBuilderList


        Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
        
repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5;

fun getExportedSymbolBuilderList(): MutableList<Builder!>!

getExportedSymbolCount


        Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
        
repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5;

fun getExportedSymbolCount(): Int

getExportedSymbolList


        Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
        
repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5;

fun getExportedSymbolList(): MutableList<Symbol!>!

getExportedSymbolOrBuilder


        Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
        
repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5;

fun getExportedSymbolOrBuilder(index: Int): SymbolOrBuilder!

getExportedSymbolOrBuilderList


        Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
        
repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5;

fun getExportedSymbolOrBuilderList(): MutableList<out SymbolOrBuilder!>!

getResourceName


        The name of the resource (in the form package:type/name).
        
string resource_name = 1;

fun getResourceName(): String!

getResourceNameBytes


        The name of the resource (in the form package:type/name).
        
string resource_name = 1;

fun getResourceNameBytes(): ByteString!

getSourcePath


        The filesystem path to where the source file originated.
        Mainly used to display helpful error messages.
        
string source_path = 4;

fun getSourcePath(): String!

getSourcePathBytes


        The filesystem path to where the source file originated.
        Mainly used to display helpful error messages.
        
string source_path = 4;

fun getSourcePathBytes(): ByteString!

getType


        The type of the file.
        
.aapt.pb.FileReference.Type type = 3;

fun getType(): Type!

getTypeValue


        The type of the file.
        
.aapt.pb.FileReference.Type type = 3;

fun getTypeValue(): Int

hasConfig


        The configuration for which the resource is defined.
        
.aapt.pb.Configuration config = 2;

fun hasConfig(): Boolean

internalGetFieldAccessorTable

fun internalGetFieldAccessorTable(): FieldAccessorTable!

isInitialized

fun isInitialized(): Boolean

mergeConfig


        The configuration for which the resource is defined.
        
.aapt.pb.Configuration config = 2;

fun mergeConfig(value: Configuration!): Builder!

mergeFrom

fun mergeFrom(other: Message!): Builder!
fun mergeFrom(other: CompiledFile!): Builder!
fun mergeFrom(input: CodedInputStream!, extensionRegistry: ExtensionRegistryLite!): Builder!

mergeUnknownFields

fun mergeUnknownFields(unknownFields: UnknownFieldSet!): Builder!

removeExportedSymbol


        Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
        
repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5;

fun removeExportedSymbol(index: Int): Builder!

setConfig


        The configuration for which the resource is defined.
        
.aapt.pb.Configuration config = 2;

fun setConfig(value: Configuration!): Builder!
fun setConfig(builderForValue: Builder!): Builder!

setExportedSymbol


        Any symbols this file auto-generates/exports (eg. @+id/foo in an XML file).
        
repeated .aapt.pb.internal.CompiledFile.Symbol exported_symbol = 5;

fun setExportedSymbol(index: Int, value: Symbol!): Builder!
fun setExportedSymbol(index: Int, builderForValue: Builder!): Builder!

setField

fun setField(field: FieldDescriptor!, value: Any!): Builder!

setRepeatedField

fun setRepeatedField(field: FieldDescriptor!, index: Int, value: Any!): Builder!

setResourceName


        The name of the resource (in the form package:type/name).
        
string resource_name = 1;

fun setResourceName(value: String!): Builder!

setResourceNameBytes


        The name of the resource (in the form package:type/name).
        
string resource_name = 1;

fun setResourceNameBytes(value: ByteString!): Builder!

setSourcePath


        The filesystem path to where the source file originated.
        Mainly used to display helpful error messages.
        
string source_path = 4;

fun setSourcePath(value: String!): Builder!

setSourcePathBytes


        The filesystem path to where the source file originated.
        Mainly used to display helpful error messages.
        
string source_path = 4;

fun setSourcePathBytes(value: ByteString!): Builder!

setType


        The type of the file.
        
.aapt.pb.FileReference.Type type = 3;

fun setType(value: Type!): Builder!

setTypeValue


        The type of the file.
        
.aapt.pb.FileReference.Type type = 3;

fun setTypeValue(value: Int): Builder!

setUnknownFields

fun setUnknownFields(unknownFields: UnknownFieldSet!): Builder!