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

Builder

class Builder : Builder<Builder!>, SpanOrBuilder


        A Span marks a region of the string text that is styled.
        
Protobuf type aapt.pb.StyledString.Span

Functions

addRepeatedField

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

build

fun build(): Span!

buildPartial

fun buildPartial(): Span!

clear

fun clear(): Builder!

clearField

fun clearField(field: FieldDescriptor!): Builder!

clearFirstChar


          The first character position this span applies to, in UTF-16 offset.
          
uint32 first_char = 2;

fun clearFirstChar(): Builder!

clearLastChar


          The last character position this span applies to, in UTF-16 offset.
          
uint32 last_char = 3;

fun clearLastChar(): Builder!

clearOneof

fun clearOneof(oneof: OneofDescriptor!): Builder!

clearTag


          The name of the tag, and its attributes, encoded as follows:
          tag_name;attr1=value1;attr2=value2;[...]
          
string tag = 1;

fun clearTag(): Builder!

clone

fun clone(): Builder!

getDefaultInstanceForType

fun getDefaultInstanceForType(): Span!

getDescriptor

static fun getDescriptor(): Descriptor!

getDescriptorForType

fun getDescriptorForType(): Descriptor!

getFirstChar


          The first character position this span applies to, in UTF-16 offset.
          
uint32 first_char = 2;

fun getFirstChar(): Int

getLastChar


          The last character position this span applies to, in UTF-16 offset.
          
uint32 last_char = 3;

fun getLastChar(): Int

getTag


          The name of the tag, and its attributes, encoded as follows:
          tag_name;attr1=value1;attr2=value2;[...]
          
string tag = 1;

fun getTag(): String!

getTagBytes


          The name of the tag, and its attributes, encoded as follows:
          tag_name;attr1=value1;attr2=value2;[...]
          
string tag = 1;

fun getTagBytes(): ByteString!

internalGetFieldAccessorTable

fun internalGetFieldAccessorTable(): FieldAccessorTable!

isInitialized

fun isInitialized(): Boolean

mergeFrom

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

mergeUnknownFields

fun mergeUnknownFields(unknownFields: UnknownFieldSet!): Builder!

setField

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

setFirstChar


          The first character position this span applies to, in UTF-16 offset.
          
uint32 first_char = 2;

fun setFirstChar(value: Int): Builder!

setLastChar


          The last character position this span applies to, in UTF-16 offset.
          
uint32 last_char = 3;

fun setLastChar(value: Int): Builder!

setRepeatedField

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

setTag


          The name of the tag, and its attributes, encoded as follows:
          tag_name;attr1=value1;attr2=value2;[...]
          
string tag = 1;

fun setTag(value: String!): Builder!

setTagBytes


          The name of the tag, and its attributes, encoded as follows:
          tag_name;attr1=value1;attr2=value2;[...]
          
string tag = 1;

fun setTagBytes(value: ByteString!): Builder!

setUnknownFields

fun setUnknownFields(unknownFields: UnknownFieldSet!): Builder!