booster / com.didiglobal.booster.aapt2 / Resources / Type

Type

class Type : GeneratedMessageV3, TypeOrBuilder


    A set of resources grouped under a common type. Such types include string, layout, xml, dimen,
    attr, etc. This maps to the second part of a resource identifier in Java (R.type.entry).
    
Protobuf type aapt.pb.Type

Types

Builder


      A set of resources grouped under a common type. Such types include string, layout, xml, dimen,
      attr, etc. This maps to the second part of a resource identifier in Java (R.type.entry).
      
Protobuf type aapt.pb.Type

class Builder : Builder<Builder!>, TypeOrBuilder

Properties

ENTRY_FIELD_NUMBER

static val ENTRY_FIELD_NUMBER: Int

NAME_FIELD_NUMBER

static val NAME_FIELD_NUMBER: Int

TYPE_ID_FIELD_NUMBER

static val TYPE_ID_FIELD_NUMBER: Int

Functions

equals

fun equals(other: Any?): Boolean

getDefaultInstance

static fun getDefaultInstance(): Type!

getDefaultInstanceForType

fun getDefaultInstanceForType(): Type!

getDescriptor

static fun getDescriptor(): Descriptor!

getEntry


      The entries defined for this type.
      
repeated .aapt.pb.Entry entry = 3;

fun getEntry(index: Int): Entry!

getEntryCount


      The entries defined for this type.
      
repeated .aapt.pb.Entry entry = 3;

fun getEntryCount(): Int

getEntryList


      The entries defined for this type.
      
repeated .aapt.pb.Entry entry = 3;

fun getEntryList(): MutableList<Entry!>!

getEntryOrBuilder


      The entries defined for this type.
      
repeated .aapt.pb.Entry entry = 3;

fun getEntryOrBuilder(index: Int): EntryOrBuilder!

getEntryOrBuilderList


      The entries defined for this type.
      
repeated .aapt.pb.Entry entry = 3;

fun getEntryOrBuilderList(): MutableList<out EntryOrBuilder!>!

getName


      The name of the type. This corresponds to the 'type' part of a full resource name of the form
      package:type/entry. The set of legal type names is listed in Resource.cpp.
      
string name = 2;

fun getName(): String!

getNameBytes


      The name of the type. This corresponds to the 'type' part of a full resource name of the form
      package:type/entry. The set of legal type names is listed in Resource.cpp.
      
string name = 2;

fun getNameBytes(): ByteString!

getParserForType

fun getParserForType(): Parser<Type!>!

getSerializedSize

fun getSerializedSize(): Int

getTypeId


      The ID of the type. This may not be set if no ID was assigned.
      
.aapt.pb.TypeId type_id = 1;

fun getTypeId(): TypeId!

getTypeIdOrBuilder


      The ID of the type. This may not be set if no ID was assigned.
      
.aapt.pb.TypeId type_id = 1;

fun getTypeIdOrBuilder(): TypeIdOrBuilder!

getUnknownFields

fun getUnknownFields(): UnknownFieldSet!

hashCode

fun hashCode(): Int

hasTypeId


      The ID of the type. This may not be set if no ID was assigned.
      
.aapt.pb.TypeId type_id = 1;

fun hasTypeId(): Boolean

internalGetFieldAccessorTable

fun internalGetFieldAccessorTable(): FieldAccessorTable!

isInitialized

fun isInitialized(): Boolean

newBuilder

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

newBuilderForType

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

newInstance

fun newInstance(unused: UnusedPrivateParameter!): Any!

parseDelimitedFrom

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

parseFrom

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

parser

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

toBuilder

fun toBuilder(): Builder!

writeTo

fun writeTo(output: CodedOutputStream!): Unit