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

Builder

class Builder : Builder<Builder!>, ItemOrBuilder


      An Item is an abstract type. It represents a value that can appear inline in many places, such
      as XML attribute values or on the right hand side of style attribute definitions. The concrete
      type is one of the types below. Only one can be set.
      
Protobuf type aapt.pb.Item

Functions

addRepeatedField

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

build

fun build(): Item!

buildPartial

fun buildPartial(): Item!

clear

fun clear(): Builder!

clearField

fun clearField(field: FieldDescriptor!): Builder!

clearFile

.aapt.pb.FileReference file = 5;

fun clearFile(): Builder!

clearId

.aapt.pb.Id id = 6;

fun clearId(): Builder!

clearOneof

fun clearOneof(oneof: OneofDescriptor!): Builder!

clearPrim

.aapt.pb.Primitive prim = 7;

fun clearPrim(): Builder!

clearRawStr

.aapt.pb.RawString raw_str = 3;

fun clearRawStr(): Builder!

clearRef

.aapt.pb.Reference ref = 1;

fun clearRef(): Builder!

clearStr

.aapt.pb.String str = 2;

fun clearStr(): Builder!

clearStyledStr

.aapt.pb.StyledString styled_str = 4;

fun clearStyledStr(): Builder!

clearValue

fun clearValue(): Builder!

clone

fun clone(): Builder!

getDefaultInstanceForType

fun getDefaultInstanceForType(): Item!

getDescriptor

static fun getDescriptor(): Descriptor!

getDescriptorForType

fun getDescriptorForType(): Descriptor!

getFile

.aapt.pb.FileReference file = 5;

fun getFile(): FileReference!

getFileBuilder

.aapt.pb.FileReference file = 5;

fun getFileBuilder(): Builder!

getFileOrBuilder

.aapt.pb.FileReference file = 5;

fun getFileOrBuilder(): FileReferenceOrBuilder!

getId

.aapt.pb.Id id = 6;

fun getId(): Id!

getIdBuilder

.aapt.pb.Id id = 6;

fun getIdBuilder(): Builder!

getIdOrBuilder

.aapt.pb.Id id = 6;

fun getIdOrBuilder(): IdOrBuilder!

getPrim

.aapt.pb.Primitive prim = 7;

fun getPrim(): Primitive!

getPrimBuilder

.aapt.pb.Primitive prim = 7;

fun getPrimBuilder(): Builder!

getPrimOrBuilder

.aapt.pb.Primitive prim = 7;

fun getPrimOrBuilder(): PrimitiveOrBuilder!

getRawStr

.aapt.pb.RawString raw_str = 3;

fun getRawStr(): RawString!

getRawStrBuilder

.aapt.pb.RawString raw_str = 3;

fun getRawStrBuilder(): Builder!

getRawStrOrBuilder

.aapt.pb.RawString raw_str = 3;

fun getRawStrOrBuilder(): RawStringOrBuilder!

getRef

.aapt.pb.Reference ref = 1;

fun getRef(): Reference!

getRefBuilder

.aapt.pb.Reference ref = 1;

fun getRefBuilder(): Builder!

getRefOrBuilder

.aapt.pb.Reference ref = 1;

fun getRefOrBuilder(): ReferenceOrBuilder!

getStr

.aapt.pb.String str = 2;

fun getStr(): String!

getStrBuilder

.aapt.pb.String str = 2;

fun getStrBuilder(): Builder!

getStrOrBuilder

.aapt.pb.String str = 2;

fun getStrOrBuilder(): StringOrBuilder!

getStyledStr

.aapt.pb.StyledString styled_str = 4;

fun getStyledStr(): StyledString!

getStyledStrBuilder

.aapt.pb.StyledString styled_str = 4;

fun getStyledStrBuilder(): Builder!

getStyledStrOrBuilder

.aapt.pb.StyledString styled_str = 4;

fun getStyledStrOrBuilder(): StyledStringOrBuilder!

getValueCase

fun getValueCase(): ValueCase!

hasFile

.aapt.pb.FileReference file = 5;

fun hasFile(): Boolean

hasId

.aapt.pb.Id id = 6;

fun hasId(): Boolean

hasPrim

.aapt.pb.Primitive prim = 7;

fun hasPrim(): Boolean

hasRawStr

.aapt.pb.RawString raw_str = 3;

fun hasRawStr(): Boolean

hasRef

.aapt.pb.Reference ref = 1;

fun hasRef(): Boolean

hasStr

.aapt.pb.String str = 2;

fun hasStr(): Boolean

hasStyledStr

.aapt.pb.StyledString styled_str = 4;

fun hasStyledStr(): Boolean

internalGetFieldAccessorTable

fun internalGetFieldAccessorTable(): FieldAccessorTable!

isInitialized

fun isInitialized(): Boolean

mergeFile

.aapt.pb.FileReference file = 5;

fun mergeFile(value: FileReference!): Builder!

mergeFrom

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

mergeId

.aapt.pb.Id id = 6;

fun mergeId(value: Id!): Builder!

mergePrim

.aapt.pb.Primitive prim = 7;

fun mergePrim(value: Primitive!): Builder!

mergeRawStr

.aapt.pb.RawString raw_str = 3;

fun mergeRawStr(value: RawString!): Builder!

mergeRef

.aapt.pb.Reference ref = 1;

fun mergeRef(value: Reference!): Builder!

mergeStr

.aapt.pb.String str = 2;

fun mergeStr(value: String!): Builder!

mergeStyledStr

.aapt.pb.StyledString styled_str = 4;

fun mergeStyledStr(value: StyledString!): Builder!

mergeUnknownFields

fun mergeUnknownFields(unknownFields: UnknownFieldSet!): Builder!

setField

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

setFile

.aapt.pb.FileReference file = 5;

fun setFile(value: FileReference!): Builder!
fun setFile(builderForValue: Builder!): Builder!

setId

.aapt.pb.Id id = 6;

fun setId(value: Id!): Builder!
fun setId(builderForValue: Builder!): Builder!

setPrim

.aapt.pb.Primitive prim = 7;

fun setPrim(value: Primitive!): Builder!
fun setPrim(builderForValue: Builder!): Builder!

setRawStr

.aapt.pb.RawString raw_str = 3;

fun setRawStr(value: RawString!): Builder!
fun setRawStr(builderForValue: Builder!): Builder!

setRef

.aapt.pb.Reference ref = 1;

fun setRef(value: Reference!): Builder!
fun setRef(builderForValue: Builder!): Builder!

setRepeatedField

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

setStr

.aapt.pb.String str = 2;

fun setStr(value: String!): Builder!
fun setStr(builderForValue: Builder!): Builder!

setStyledStr

.aapt.pb.StyledString styled_str = 4;

fun setStyledStr(value: StyledString!): Builder!
fun setStyledStr(builderForValue: Builder!): Builder!

setUnknownFields

fun setUnknownFields(unknownFields: UnknownFieldSet!): Builder!