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

Package

class Package : GeneratedMessageV3, PackageOrBuilder


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

Types

Builder


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

class Builder : Builder<Builder!>, PackageOrBuilder

Properties

PACKAGE_ID_FIELD_NUMBER

static val PACKAGE_ID_FIELD_NUMBER: Int

PACKAGE_NAME_FIELD_NUMBER

static val PACKAGE_NAME_FIELD_NUMBER: Int

TYPE_FIELD_NUMBER

static val TYPE_FIELD_NUMBER: Int

Functions

equals

fun equals(other: Any?): Boolean

getDefaultInstance

static fun getDefaultInstance(): Package!

getDefaultInstanceForType

fun getDefaultInstanceForType(): Package!

getDescriptor

static fun getDescriptor(): 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!

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!

getParserForType

fun getParserForType(): Parser<Package!>!

getSerializedSize

fun getSerializedSize(): Int

getType


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

fun getType(index: Int): Type!

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!>!

getUnknownFields

fun getUnknownFields(): UnknownFieldSet!

hashCode

fun hashCode(): Int

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

newBuilder

static fun newBuilder(): Builder!
static fun newBuilder(prototype: Package!): Builder!

newBuilderForType

fun newBuilderForType(): Builder!
fun newBuilderForType(parent: BuilderParent!): Builder!

newInstance

fun newInstance(unused: UnusedPrivateParameter!): Any!

parseDelimitedFrom

static fun parseDelimitedFrom(input: InputStream!): Package!
static fun parseDelimitedFrom(input: InputStream!, extensionRegistry: ExtensionRegistryLite!): Package!

parseFrom

static fun parseFrom(data: ByteBuffer!): Package!
static fun parseFrom(data: ByteBuffer!, extensionRegistry: ExtensionRegistryLite!): Package!
static fun parseFrom(data: ByteString!): Package!
static fun parseFrom(data: ByteString!, extensionRegistry: ExtensionRegistryLite!): Package!
static fun parseFrom(data: ByteArray!): Package!
static fun parseFrom(data: ByteArray!, extensionRegistry: ExtensionRegistryLite!): Package!
static fun parseFrom(input: InputStream!): Package!
static fun parseFrom(input: InputStream!, extensionRegistry: ExtensionRegistryLite!): Package!
static fun parseFrom(input: CodedInputStream!): Package!
static fun parseFrom(input: CodedInputStream!, extensionRegistry: ExtensionRegistryLite!): Package!

parser

static fun parser(): Parser<Package!>!

toBuilder

fun toBuilder(): Builder!

writeTo

fun writeTo(output: CodedOutputStream!): Unit