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

Builder

class Builder : Builder<Builder!>, XmlAttributeOrBuilder


      An attribute defined on an XmlElement (android:text="...").
      
Protobuf type aapt.pb.XmlAttribute

Functions

addRepeatedField

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

build

fun build(): XmlAttribute!

buildPartial

fun buildPartial(): XmlAttribute!

clear

fun clear(): Builder!

clearCompiledItem


        The optional interpreted/compiled version of the `value` string.
        
.aapt.pb.Item compiled_item = 6;

fun clearCompiledItem(): Builder!

clearField

fun clearField(field: FieldDescriptor!): Builder!

clearName

string name = 2;

fun clearName(): Builder!

clearNamespaceUri

string namespace_uri = 1;

fun clearNamespaceUri(): Builder!

clearOneof

fun clearOneof(oneof: OneofDescriptor!): Builder!

clearResourceId


        The optional resource ID (0xPPTTEEEE) of the attribute.
        
uint32 resource_id = 5;

fun clearResourceId(): Builder!

clearSource


        Source line and column info.
        
.aapt.pb.SourcePosition source = 4;

fun clearSource(): Builder!

clearValue

string value = 3;

fun clearValue(): Builder!

clone

fun clone(): Builder!

getCompiledItem


        The optional interpreted/compiled version of the `value` string.
        
.aapt.pb.Item compiled_item = 6;

fun getCompiledItem(): Item!

getCompiledItemBuilder


        The optional interpreted/compiled version of the `value` string.
        
.aapt.pb.Item compiled_item = 6;

fun getCompiledItemBuilder(): Builder!

getCompiledItemOrBuilder


        The optional interpreted/compiled version of the `value` string.
        
.aapt.pb.Item compiled_item = 6;

fun getCompiledItemOrBuilder(): ItemOrBuilder!

getDefaultInstanceForType

fun getDefaultInstanceForType(): XmlAttribute!

getDescriptor

static fun getDescriptor(): Descriptor!

getDescriptorForType

fun getDescriptorForType(): Descriptor!

getName

string name = 2;

fun getName(): String!

getNameBytes

string name = 2;

fun getNameBytes(): ByteString!

getNamespaceUri

string namespace_uri = 1;

fun getNamespaceUri(): String!

getNamespaceUriBytes

string namespace_uri = 1;

fun getNamespaceUriBytes(): ByteString!

getResourceId


        The optional resource ID (0xPPTTEEEE) of the attribute.
        
uint32 resource_id = 5;

fun getResourceId(): Int

getSource


        Source line and column info.
        
.aapt.pb.SourcePosition source = 4;

fun getSource(): SourcePosition!

getSourceBuilder


        Source line and column info.
        
.aapt.pb.SourcePosition source = 4;

fun getSourceBuilder(): Builder!

getSourceOrBuilder


        Source line and column info.
        
.aapt.pb.SourcePosition source = 4;

fun getSourceOrBuilder(): SourcePositionOrBuilder!

getValue

string value = 3;

fun getValue(): String!

getValueBytes

string value = 3;

fun getValueBytes(): ByteString!

hasCompiledItem


        The optional interpreted/compiled version of the `value` string.
        
.aapt.pb.Item compiled_item = 6;

fun hasCompiledItem(): Boolean

hasSource


        Source line and column info.
        
.aapt.pb.SourcePosition source = 4;

fun hasSource(): Boolean

internalGetFieldAccessorTable

fun internalGetFieldAccessorTable(): FieldAccessorTable!

isInitialized

fun isInitialized(): Boolean

mergeCompiledItem


        The optional interpreted/compiled version of the `value` string.
        
.aapt.pb.Item compiled_item = 6;

fun mergeCompiledItem(value: Item!): Builder!

mergeFrom

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

mergeSource


        Source line and column info.
        
.aapt.pb.SourcePosition source = 4;

fun mergeSource(value: SourcePosition!): Builder!

mergeUnknownFields

fun mergeUnknownFields(unknownFields: UnknownFieldSet!): Builder!

setCompiledItem


        The optional interpreted/compiled version of the `value` string.
        
.aapt.pb.Item compiled_item = 6;

fun setCompiledItem(value: Item!): Builder!
fun setCompiledItem(builderForValue: Builder!): Builder!

setField

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

setName

string name = 2;

fun setName(value: String!): Builder!

setNameBytes

string name = 2;

fun setNameBytes(value: ByteString!): Builder!

setNamespaceUri

string namespace_uri = 1;

fun setNamespaceUri(value: String!): Builder!

setNamespaceUriBytes

string namespace_uri = 1;

fun setNamespaceUriBytes(value: ByteString!): Builder!

setRepeatedField

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

setResourceId


        The optional resource ID (0xPPTTEEEE) of the attribute.
        
uint32 resource_id = 5;

fun setResourceId(value: Int): Builder!

setSource


        Source line and column info.
        
.aapt.pb.SourcePosition source = 4;

fun setSource(value: SourcePosition!): Builder!
fun setSource(builderForValue: Builder!): Builder!

setUnknownFields

fun setUnknownFields(unknownFields: UnknownFieldSet!): Builder!

setValue

string value = 3;

fun setValue(value: String!): Builder!

setValueBytes

string value = 3;

fun setValueBytes(value: ByteString!): Builder!