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

Builder

class Builder : Builder<Builder!>, 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

Functions

addAllEntry


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

fun addAllEntry(values: MutableIterable<Entry!>!): Builder!

addEntry


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

fun addEntry(value: Entry!): Builder!
fun addEntry(index: Int, value: Entry!): Builder!
fun addEntry(builderForValue: Builder!): Builder!
fun addEntry(index: Int, builderForValue: Builder!): Builder!

addEntryBuilder


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

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

addRepeatedField

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

build

fun build(): Type!

buildPartial

fun buildPartial(): Type!

clear

fun clear(): Builder!

clearEntry


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

fun clearEntry(): Builder!

clearField

fun clearField(field: FieldDescriptor!): Builder!

clearName


        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 clearName(): Builder!

clearOneof

fun clearOneof(oneof: OneofDescriptor!): Builder!

clearTypeId


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

fun clearTypeId(): Builder!

clone

fun clone(): Builder!

getDefaultInstanceForType

fun getDefaultInstanceForType(): Type!

getDescriptor

static fun getDescriptor(): Descriptor!

getDescriptorForType

fun getDescriptorForType(): Descriptor!

getEntry


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

fun getEntry(index: Int): Entry!

getEntryBuilder


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

fun getEntryBuilder(index: Int): Builder!

getEntryBuilderList


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

fun getEntryBuilderList(): MutableList<Builder!>!

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!

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!

getTypeIdBuilder


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

fun getTypeIdBuilder(): Builder!

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!

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

mergeFrom

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

mergeTypeId


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

fun mergeTypeId(value: TypeId!): Builder!

mergeUnknownFields

fun mergeUnknownFields(unknownFields: UnknownFieldSet!): Builder!

removeEntry


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

fun removeEntry(index: Int): Builder!

setEntry


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

fun setEntry(index: Int, value: Entry!): Builder!
fun setEntry(index: Int, builderForValue: Builder!): Builder!

setField

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

setName


        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 setName(value: String!): Builder!

setNameBytes


        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 setNameBytes(value: ByteString!): Builder!

setRepeatedField

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

setTypeId


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

fun setTypeId(value: TypeId!): Builder!
fun setTypeId(builderForValue: Builder!): Builder!

setUnknownFields

fun setUnknownFields(unknownFields: UnknownFieldSet!): Builder!