booster / com.didiglobal.booster.aapt2 / Resources / Package / Builder

Builder

class Builder : Builder<Builder!>, PackageOrBuilder


      Defines resources for an Android package.
      
Protobuf type aapt.pb.Package

Functions

addAllType


        The series of types defined by the package.
        
repeated .aapt.pb.Type type = 3;

fun addAllType(values: MutableIterable<Type!>!): Builder!

addRepeatedField

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

addType


        The series of types defined by the package.
        
repeated .aapt.pb.Type type = 3;

fun addType(value: Type!): Builder!
fun addType(index: Int, value: Type!): Builder!
fun addType(builderForValue: Builder!): Builder!
fun addType(index: Int, builderForValue: Builder!): Builder!

addTypeBuilder


        The series of types defined by the package.
        
repeated .aapt.pb.Type type = 3;

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

build

fun build(): Package!

buildPartial

fun buildPartial(): Package!

clear

fun clear(): Builder!

clearField

fun clearField(field: FieldDescriptor!): Builder!

clearOneof

fun clearOneof(oneof: OneofDescriptor!): Builder!

clearPackageId


        The package ID of this package, in the range [0x00, 0xff].
        - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
        - ID 0x01 is reserved for the 'android' package (framework).
        - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
        - ID 0x7f is reserved for the application package.
        - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
        This may not be set if no ID was assigned.
        
.aapt.pb.PackageId package_id = 1;

fun clearPackageId(): Builder!

clearPackageName


        The Java compatible Android package name of the app.
        
string package_name = 2;

fun clearPackageName(): Builder!

clearType


        The series of types defined by the package.
        
repeated .aapt.pb.Type type = 3;

fun clearType(): Builder!

clone

fun clone(): Builder!

getDefaultInstanceForType

fun getDefaultInstanceForType(): Package!

getDescriptor

static fun getDescriptor(): Descriptor!

getDescriptorForType

fun getDescriptorForType(): Descriptor!

getPackageId


        The package ID of this package, in the range [0x00, 0xff].
        - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
        - ID 0x01 is reserved for the 'android' package (framework).
        - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
        - ID 0x7f is reserved for the application package.
        - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
        This may not be set if no ID was assigned.
        
.aapt.pb.PackageId package_id = 1;

fun getPackageId(): PackageId!

getPackageIdBuilder


        The package ID of this package, in the range [0x00, 0xff].
        - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
        - ID 0x01 is reserved for the 'android' package (framework).
        - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
        - ID 0x7f is reserved for the application package.
        - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
        This may not be set if no ID was assigned.
        
.aapt.pb.PackageId package_id = 1;

fun getPackageIdBuilder(): Builder!

getPackageIdOrBuilder


        The package ID of this package, in the range [0x00, 0xff].
        - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
        - ID 0x01 is reserved for the 'android' package (framework).
        - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
        - ID 0x7f is reserved for the application package.
        - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
        This may not be set if no ID was assigned.
        
.aapt.pb.PackageId package_id = 1;

fun getPackageIdOrBuilder(): PackageIdOrBuilder!

getPackageName


        The Java compatible Android package name of the app.
        
string package_name = 2;

fun getPackageName(): String!

getPackageNameBytes


        The Java compatible Android package name of the app.
        
string package_name = 2;

fun getPackageNameBytes(): ByteString!

getType


        The series of types defined by the package.
        
repeated .aapt.pb.Type type = 3;

fun getType(index: Int): Type!

getTypeBuilder


        The series of types defined by the package.
        
repeated .aapt.pb.Type type = 3;

fun getTypeBuilder(index: Int): Builder!

getTypeBuilderList


        The series of types defined by the package.
        
repeated .aapt.pb.Type type = 3;

fun getTypeBuilderList(): MutableList<Builder!>!

getTypeCount


        The series of types defined by the package.
        
repeated .aapt.pb.Type type = 3;

fun getTypeCount(): Int

getTypeList


        The series of types defined by the package.
        
repeated .aapt.pb.Type type = 3;

fun getTypeList(): MutableList<Type!>!

getTypeOrBuilder


        The series of types defined by the package.
        
repeated .aapt.pb.Type type = 3;

fun getTypeOrBuilder(index: Int): TypeOrBuilder!

getTypeOrBuilderList


        The series of types defined by the package.
        
repeated .aapt.pb.Type type = 3;

fun getTypeOrBuilderList(): MutableList<out TypeOrBuilder!>!

hasPackageId


        The package ID of this package, in the range [0x00, 0xff].
        - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
        - ID 0x01 is reserved for the 'android' package (framework).
        - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
        - ID 0x7f is reserved for the application package.
        - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
        This may not be set if no ID was assigned.
        
.aapt.pb.PackageId package_id = 1;

fun hasPackageId(): Boolean

internalGetFieldAccessorTable

fun internalGetFieldAccessorTable(): FieldAccessorTable!

isInitialized

fun isInitialized(): Boolean

mergeFrom

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

mergePackageId


        The package ID of this package, in the range [0x00, 0xff].
        - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
        - ID 0x01 is reserved for the 'android' package (framework).
        - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
        - ID 0x7f is reserved for the application package.
        - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
        This may not be set if no ID was assigned.
        
.aapt.pb.PackageId package_id = 1;

fun mergePackageId(value: PackageId!): Builder!

mergeUnknownFields

fun mergeUnknownFields(unknownFields: UnknownFieldSet!): Builder!

removeType


        The series of types defined by the package.
        
repeated .aapt.pb.Type type = 3;

fun removeType(index: Int): Builder!

setField

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

setPackageId


        The package ID of this package, in the range [0x00, 0xff].
        - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
        - ID 0x01 is reserved for the 'android' package (framework).
        - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
        - ID 0x7f is reserved for the application package.
        - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
        This may not be set if no ID was assigned.
        
.aapt.pb.PackageId package_id = 1;

fun setPackageId(value: PackageId!): Builder!
fun setPackageId(builderForValue: Builder!): Builder!

setPackageName


        The Java compatible Android package name of the app.
        
string package_name = 2;

fun setPackageName(value: String!): Builder!

setPackageNameBytes


        The Java compatible Android package name of the app.
        
string package_name = 2;

fun setPackageNameBytes(value: ByteString!): Builder!

setRepeatedField

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

setType


        The series of types defined by the package.
        
repeated .aapt.pb.Type type = 3;

fun setType(index: Int, value: Type!): Builder!
fun setType(index: Int, builderForValue: Builder!): Builder!

setUnknownFields

fun setUnknownFields(unknownFields: UnknownFieldSet!): Builder!