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

Builder

class Builder : Builder<Builder!>, ValueOrBuilder


      The generic meta-data for every value in a resource table.
      
Protobuf type aapt.pb.Value

Functions

addRepeatedField

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

build

fun build(): Value!

buildPartial

fun buildPartial(): Value!

clear

fun clear(): Builder!

clearComment


        Any comment associated with the value.
        
string comment = 2;

fun clearComment(): Builder!

clearCompoundValue

.aapt.pb.CompoundValue compound_value = 5;

fun clearCompoundValue(): Builder!

clearField

fun clearField(field: FieldDescriptor!): Builder!

clearItem

.aapt.pb.Item item = 4;

fun clearItem(): Builder!

clearOneof

fun clearOneof(oneof: OneofDescriptor!): Builder!

clearSource


        Where the value was defined.
        
.aapt.pb.Source source = 1;

fun clearSource(): Builder!

clearValue

fun clearValue(): Builder!

clearWeak


        Whether the value can be overridden.
        
bool weak = 3;

fun clearWeak(): Builder!

clone

fun clone(): Builder!

getComment


        Any comment associated with the value.
        
string comment = 2;

fun getComment(): String!

getCommentBytes


        Any comment associated with the value.
        
string comment = 2;

fun getCommentBytes(): ByteString!

getCompoundValue

.aapt.pb.CompoundValue compound_value = 5;

fun getCompoundValue(): CompoundValue!

getCompoundValueBuilder

.aapt.pb.CompoundValue compound_value = 5;

fun getCompoundValueBuilder(): Builder!

getCompoundValueOrBuilder

.aapt.pb.CompoundValue compound_value = 5;

fun getCompoundValueOrBuilder(): CompoundValueOrBuilder!

getDefaultInstanceForType

fun getDefaultInstanceForType(): Value!

getDescriptor

static fun getDescriptor(): Descriptor!

getDescriptorForType

fun getDescriptorForType(): Descriptor!

getItem

.aapt.pb.Item item = 4;

fun getItem(): Item!

getItemBuilder

.aapt.pb.Item item = 4;

fun getItemBuilder(): Builder!

getItemOrBuilder

.aapt.pb.Item item = 4;

fun getItemOrBuilder(): ItemOrBuilder!

getSource


        Where the value was defined.
        
.aapt.pb.Source source = 1;

fun getSource(): Source!

getSourceBuilder


        Where the value was defined.
        
.aapt.pb.Source source = 1;

fun getSourceBuilder(): Builder!

getSourceOrBuilder


        Where the value was defined.
        
.aapt.pb.Source source = 1;

fun getSourceOrBuilder(): SourceOrBuilder!

getValueCase

fun getValueCase(): ValueCase!

getWeak


        Whether the value can be overridden.
        
bool weak = 3;

fun getWeak(): Boolean

hasCompoundValue

.aapt.pb.CompoundValue compound_value = 5;

fun hasCompoundValue(): Boolean

hasItem

.aapt.pb.Item item = 4;

fun hasItem(): Boolean

hasSource


        Where the value was defined.
        
.aapt.pb.Source source = 1;

fun hasSource(): Boolean

internalGetFieldAccessorTable

fun internalGetFieldAccessorTable(): FieldAccessorTable!

isInitialized

fun isInitialized(): Boolean

mergeCompoundValue

.aapt.pb.CompoundValue compound_value = 5;

fun mergeCompoundValue(value: CompoundValue!): Builder!

mergeFrom

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

mergeItem

.aapt.pb.Item item = 4;

fun mergeItem(value: Item!): Builder!

mergeSource


        Where the value was defined.
        
.aapt.pb.Source source = 1;

fun mergeSource(value: Source!): Builder!

mergeUnknownFields

fun mergeUnknownFields(unknownFields: UnknownFieldSet!): Builder!

setComment


        Any comment associated with the value.
        
string comment = 2;

fun setComment(value: String!): Builder!

setCommentBytes


        Any comment associated with the value.
        
string comment = 2;

fun setCommentBytes(value: ByteString!): Builder!

setCompoundValue

.aapt.pb.CompoundValue compound_value = 5;

fun setCompoundValue(value: CompoundValue!): Builder!
fun setCompoundValue(builderForValue: Builder!): Builder!

setField

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

setItem

.aapt.pb.Item item = 4;

fun setItem(value: Item!): Builder!
fun setItem(builderForValue: Builder!): Builder!

setRepeatedField

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

setSource


        Where the value was defined.
        
.aapt.pb.Source source = 1;

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

setUnknownFields

fun setUnknownFields(unknownFields: UnknownFieldSet!): Builder!

setWeak


        Whether the value can be overridden.
        
bool weak = 3;

fun setWeak(value: Boolean): Builder!