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

Builder

class Builder : Builder<Builder!>, AttributeOrBuilder


      A value that represents an XML attribute and what values it accepts.
      
Protobuf type aapt.pb.Attribute

Functions

addAllSymbol


        The set of enums/flags defined in this attribute. Only makes sense if the format includes
        either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
        
repeated .aapt.pb.Attribute.Symbol symbol = 4;

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

addRepeatedField

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

addSymbol


        The set of enums/flags defined in this attribute. Only makes sense if the format includes
        either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
        
repeated .aapt.pb.Attribute.Symbol symbol = 4;

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

addSymbolBuilder


        The set of enums/flags defined in this attribute. Only makes sense if the format includes
        either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
        
repeated .aapt.pb.Attribute.Symbol symbol = 4;

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

build

fun build(): Attribute!

buildPartial

fun buildPartial(): Attribute!

clear

fun clear(): Builder!

clearField

fun clearField(field: FieldDescriptor!): Builder!

clearFormatFlags


        A bitmask of types that this XML attribute accepts. Corresponds to the flags in the
        enum FormatFlags.
        
uint32 format_flags = 1;

fun clearFormatFlags(): Builder!

clearMaxInt


        The largest integer allowed for this XML attribute. Only makes sense if the format includes
        FormatFlags::INTEGER.
        
int32 max_int = 3;

fun clearMaxInt(): Builder!

clearMinInt


        The smallest integer allowed for this XML attribute. Only makes sense if the format includes
        FormatFlags::INTEGER.
        
int32 min_int = 2;

fun clearMinInt(): Builder!

clearOneof

fun clearOneof(oneof: OneofDescriptor!): Builder!

clearSymbol


        The set of enums/flags defined in this attribute. Only makes sense if the format includes
        either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
        
repeated .aapt.pb.Attribute.Symbol symbol = 4;

fun clearSymbol(): Builder!

clone

fun clone(): Builder!

getDefaultInstanceForType

fun getDefaultInstanceForType(): Attribute!

getDescriptor

static fun getDescriptor(): Descriptor!

getDescriptorForType

fun getDescriptorForType(): Descriptor!

getFormatFlags


        A bitmask of types that this XML attribute accepts. Corresponds to the flags in the
        enum FormatFlags.
        
uint32 format_flags = 1;

fun getFormatFlags(): Int

getMaxInt


        The largest integer allowed for this XML attribute. Only makes sense if the format includes
        FormatFlags::INTEGER.
        
int32 max_int = 3;

fun getMaxInt(): Int

getMinInt


        The smallest integer allowed for this XML attribute. Only makes sense if the format includes
        FormatFlags::INTEGER.
        
int32 min_int = 2;

fun getMinInt(): Int

getSymbol


        The set of enums/flags defined in this attribute. Only makes sense if the format includes
        either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
        
repeated .aapt.pb.Attribute.Symbol symbol = 4;

fun getSymbol(index: Int): Symbol!

getSymbolBuilder


        The set of enums/flags defined in this attribute. Only makes sense if the format includes
        either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
        
repeated .aapt.pb.Attribute.Symbol symbol = 4;

fun getSymbolBuilder(index: Int): Builder!

getSymbolBuilderList


        The set of enums/flags defined in this attribute. Only makes sense if the format includes
        either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
        
repeated .aapt.pb.Attribute.Symbol symbol = 4;

fun getSymbolBuilderList(): MutableList<Builder!>!

getSymbolCount


        The set of enums/flags defined in this attribute. Only makes sense if the format includes
        either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
        
repeated .aapt.pb.Attribute.Symbol symbol = 4;

fun getSymbolCount(): Int

getSymbolList


        The set of enums/flags defined in this attribute. Only makes sense if the format includes
        either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
        
repeated .aapt.pb.Attribute.Symbol symbol = 4;

fun getSymbolList(): MutableList<Symbol!>!

getSymbolOrBuilder


        The set of enums/flags defined in this attribute. Only makes sense if the format includes
        either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
        
repeated .aapt.pb.Attribute.Symbol symbol = 4;

fun getSymbolOrBuilder(index: Int): SymbolOrBuilder!

getSymbolOrBuilderList


        The set of enums/flags defined in this attribute. Only makes sense if the format includes
        either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
        
repeated .aapt.pb.Attribute.Symbol symbol = 4;

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

internalGetFieldAccessorTable

fun internalGetFieldAccessorTable(): FieldAccessorTable!

isInitialized

fun isInitialized(): Boolean

mergeFrom

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

mergeUnknownFields

fun mergeUnknownFields(unknownFields: UnknownFieldSet!): Builder!

removeSymbol


        The set of enums/flags defined in this attribute. Only makes sense if the format includes
        either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
        
repeated .aapt.pb.Attribute.Symbol symbol = 4;

fun removeSymbol(index: Int): Builder!

setField

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

setFormatFlags


        A bitmask of types that this XML attribute accepts. Corresponds to the flags in the
        enum FormatFlags.
        
uint32 format_flags = 1;

fun setFormatFlags(value: Int): Builder!

setMaxInt


        The largest integer allowed for this XML attribute. Only makes sense if the format includes
        FormatFlags::INTEGER.
        
int32 max_int = 3;

fun setMaxInt(value: Int): Builder!

setMinInt


        The smallest integer allowed for this XML attribute. Only makes sense if the format includes
        FormatFlags::INTEGER.
        
int32 min_int = 2;

fun setMinInt(value: Int): Builder!

setRepeatedField

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

setSymbol


        The set of enums/flags defined in this attribute. Only makes sense if the format includes
        either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
        
repeated .aapt.pb.Attribute.Symbol symbol = 4;

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

setUnknownFields

fun setUnknownFields(unknownFields: UnknownFieldSet!): Builder!