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

Attribute

class Attribute : GeneratedMessageV3, AttributeOrBuilder


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

Types

Builder


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

class Builder : Builder<Builder!>, AttributeOrBuilder

FormatFlags


      Bitmask of formats allowed for an attribute.
      
Protobuf enum aapt.pb.Attribute.FormatFlags

class FormatFlags : ProtocolMessageEnum

Symbol


      A Symbol used to represent an enum or a flag.
      
Protobuf type aapt.pb.Attribute.Symbol

class Symbol : GeneratedMessageV3, SymbolOrBuilder

SymbolOrBuilder

interface SymbolOrBuilder : MessageOrBuilder

Properties

FORMAT_FLAGS_FIELD_NUMBER

static val FORMAT_FLAGS_FIELD_NUMBER: Int

MAX_INT_FIELD_NUMBER

static val MAX_INT_FIELD_NUMBER: Int

MIN_INT_FIELD_NUMBER

static val MIN_INT_FIELD_NUMBER: Int

SYMBOL_FIELD_NUMBER

static val SYMBOL_FIELD_NUMBER: Int

Functions

equals

fun equals(other: Any?): Boolean

getDefaultInstance

static fun getDefaultInstance(): Attribute!

getDefaultInstanceForType

fun getDefaultInstanceForType(): Attribute!

getDescriptor

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

getParserForType

fun getParserForType(): Parser<Attribute!>!

getSerializedSize

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

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

getUnknownFields

fun getUnknownFields(): UnknownFieldSet!

hashCode

fun hashCode(): Int

internalGetFieldAccessorTable

fun internalGetFieldAccessorTable(): FieldAccessorTable!

isInitialized

fun isInitialized(): Boolean

newBuilder

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

newBuilderForType

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

newInstance

fun newInstance(unused: UnusedPrivateParameter!): Any!

parseDelimitedFrom

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

parseFrom

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

parser

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

toBuilder

fun toBuilder(): Builder!

writeTo

fun writeTo(output: CodedOutputStream!): Unit