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

Span

class Span : GeneratedMessageV3, SpanOrBuilder


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

Types

Builder


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

class Builder : Builder<Builder!>, SpanOrBuilder

Properties

FIRST_CHAR_FIELD_NUMBER

static val FIRST_CHAR_FIELD_NUMBER: Int

LAST_CHAR_FIELD_NUMBER

static val LAST_CHAR_FIELD_NUMBER: Int

TAG_FIELD_NUMBER

static val TAG_FIELD_NUMBER: Int

Functions

equals

fun equals(other: Any?): Boolean

getDefaultInstance

static fun getDefaultInstance(): Span!

getDefaultInstanceForType

fun getDefaultInstanceForType(): Span!

getDescriptor

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

getParserForType

fun getParserForType(): Parser<Span!>!

getSerializedSize

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

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: Span!): Builder!

newBuilderForType

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

newInstance

fun newInstance(unused: UnusedPrivateParameter!): Any!

parseDelimitedFrom

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

parseFrom

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

parser

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

toBuilder

fun toBuilder(): Builder!

writeTo

fun writeTo(output: CodedOutputStream!): Unit