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

Builder

class Builder : Builder<Builder!>, StyledStringOrBuilder


      A string with styling information, like html tags that specify boldness, italics, etc.
      
Protobuf type aapt.pb.StyledString

Functions

addAllSpan

repeated .aapt.pb.StyledString.Span span = 2;

fun addAllSpan(values: MutableIterable<Span!>!): Builder!

addRepeatedField

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

addSpan

repeated .aapt.pb.StyledString.Span span = 2;

fun addSpan(value: Span!): Builder!
fun addSpan(index: Int, value: Span!): Builder!
fun addSpan(builderForValue: Builder!): Builder!
fun addSpan(index: Int, builderForValue: Builder!): Builder!

addSpanBuilder

repeated .aapt.pb.StyledString.Span span = 2;

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

build

fun build(): StyledString!

buildPartial

fun buildPartial(): StyledString!

clear

fun clear(): Builder!

clearField

fun clearField(field: FieldDescriptor!): Builder!

clearOneof

fun clearOneof(oneof: OneofDescriptor!): Builder!

clearSpan

repeated .aapt.pb.StyledString.Span span = 2;

fun clearSpan(): Builder!

clearValue


        The raw text of the string.
        
string value = 1;

fun clearValue(): Builder!

clone

fun clone(): Builder!

getDefaultInstanceForType

fun getDefaultInstanceForType(): StyledString!

getDescriptor

static fun getDescriptor(): Descriptor!

getDescriptorForType

fun getDescriptorForType(): Descriptor!

getSpan

repeated .aapt.pb.StyledString.Span span = 2;

fun getSpan(index: Int): Span!

getSpanBuilder

repeated .aapt.pb.StyledString.Span span = 2;

fun getSpanBuilder(index: Int): Builder!

getSpanBuilderList

repeated .aapt.pb.StyledString.Span span = 2;

fun getSpanBuilderList(): MutableList<Builder!>!

getSpanCount

repeated .aapt.pb.StyledString.Span span = 2;

fun getSpanCount(): Int

getSpanList

repeated .aapt.pb.StyledString.Span span = 2;

fun getSpanList(): MutableList<Span!>!

getSpanOrBuilder

repeated .aapt.pb.StyledString.Span span = 2;

fun getSpanOrBuilder(index: Int): SpanOrBuilder!

getSpanOrBuilderList

repeated .aapt.pb.StyledString.Span span = 2;

fun getSpanOrBuilderList(): MutableList<out SpanOrBuilder!>!

getValue


        The raw text of the string.
        
string value = 1;

fun getValue(): String!

getValueBytes


        The raw text of the string.
        
string value = 1;

fun getValueBytes(): ByteString!

internalGetFieldAccessorTable

fun internalGetFieldAccessorTable(): FieldAccessorTable!

isInitialized

fun isInitialized(): Boolean

mergeFrom

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

mergeUnknownFields

fun mergeUnknownFields(unknownFields: UnknownFieldSet!): Builder!

removeSpan

repeated .aapt.pb.StyledString.Span span = 2;

fun removeSpan(index: Int): Builder!

setField

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

setRepeatedField

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

setSpan

repeated .aapt.pb.StyledString.Span span = 2;

fun setSpan(index: Int, value: Span!): Builder!
fun setSpan(index: Int, builderForValue: Builder!): Builder!

setUnknownFields

fun setUnknownFields(unknownFields: UnknownFieldSet!): Builder!

setValue


        The raw text of the string.
        
string value = 1;

fun setValue(value: String!): Builder!

setValueBytes


        The raw text of the string.
        
string value = 1;

fun setValueBytes(value: ByteString!): Builder!