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

Builder

class Builder : Builder<Builder!>, XmlNodeOrBuilder


      Defines an abstract XmlNode that must be either an XmlElement, or
      a text node represented by a string.
      
Protobuf type aapt.pb.XmlNode

Functions

addRepeatedField

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

build

fun build(): XmlNode!

buildPartial

fun buildPartial(): XmlNode!

clear

fun clear(): Builder!

clearElement

.aapt.pb.XmlElement element = 1;

fun clearElement(): Builder!

clearField

fun clearField(field: FieldDescriptor!): Builder!

clearNode

fun clearNode(): Builder!

clearOneof

fun clearOneof(oneof: OneofDescriptor!): Builder!

clearSource


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

fun clearSource(): Builder!

clearText

string text = 2;

fun clearText(): Builder!

clone

fun clone(): Builder!

getDefaultInstanceForType

fun getDefaultInstanceForType(): XmlNode!

getDescriptor

static fun getDescriptor(): Descriptor!

getDescriptorForType

fun getDescriptorForType(): Descriptor!

getElement

.aapt.pb.XmlElement element = 1;

fun getElement(): XmlElement!

getElementBuilder

.aapt.pb.XmlElement element = 1;

fun getElementBuilder(): Builder!

getElementOrBuilder

.aapt.pb.XmlElement element = 1;

fun getElementOrBuilder(): XmlElementOrBuilder!

getNodeCase

fun getNodeCase(): NodeCase!

getSource


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

fun getSource(): SourcePosition!

getSourceBuilder


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

fun getSourceBuilder(): Builder!

getSourceOrBuilder


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

fun getSourceOrBuilder(): SourcePositionOrBuilder!

getText

string text = 2;

fun getText(): String!

getTextBytes

string text = 2;

fun getTextBytes(): ByteString!

hasElement

.aapt.pb.XmlElement element = 1;

fun hasElement(): Boolean

hasSource


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

fun hasSource(): Boolean

internalGetFieldAccessorTable

fun internalGetFieldAccessorTable(): FieldAccessorTable!

isInitialized

fun isInitialized(): Boolean

mergeElement

.aapt.pb.XmlElement element = 1;

fun mergeElement(value: XmlElement!): Builder!

mergeFrom

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

mergeSource


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

fun mergeSource(value: SourcePosition!): Builder!

mergeUnknownFields

fun mergeUnknownFields(unknownFields: UnknownFieldSet!): Builder!

setElement

.aapt.pb.XmlElement element = 1;

fun setElement(value: XmlElement!): Builder!
fun setElement(builderForValue: Builder!): Builder!

setField

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

setRepeatedField

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

setSource


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

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

setText

string text = 2;

fun setText(value: String!): Builder!

setTextBytes

string text = 2;

fun setTextBytes(value: ByteString!): Builder!

setUnknownFields

fun setUnknownFields(unknownFields: UnknownFieldSet!): Builder!