booster / com.didiglobal.booster.aapt2 / Resources / Attribute / Symbol / Builder

Builder

class Builder : Builder<Builder!>, SymbolOrBuilder


        A Symbol used to represent an enum or a flag.
        
Protobuf type aapt.pb.Attribute.Symbol

Functions

addRepeatedField

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

build

fun build(): Symbol!

buildPartial

fun buildPartial(): Symbol!

clear

fun clear(): Builder!

clearComment


          Any comments associated with the enum or flag.
          
string comment = 2;

fun clearComment(): Builder!

clearField

fun clearField(field: FieldDescriptor!): Builder!

clearName


          The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
          values.
          
.aapt.pb.Reference name = 3;

fun clearName(): Builder!

clearOneof

fun clearOneof(oneof: OneofDescriptor!): Builder!

clearSource


          Where the enum/flag item was defined.
          
.aapt.pb.Source source = 1;

fun clearSource(): Builder!

clearValue


          The value of the enum/flag.
          
uint32 value = 4;

fun clearValue(): Builder!

clone

fun clone(): Builder!

getComment


          Any comments associated with the enum or flag.
          
string comment = 2;

fun getComment(): String!

getCommentBytes


          Any comments associated with the enum or flag.
          
string comment = 2;

fun getCommentBytes(): ByteString!

getDefaultInstanceForType

fun getDefaultInstanceForType(): Symbol!

getDescriptor

static fun getDescriptor(): Descriptor!

getDescriptorForType

fun getDescriptorForType(): Descriptor!

getName


          The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
          values.
          
.aapt.pb.Reference name = 3;

fun getName(): Reference!

getNameBuilder


          The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
          values.
          
.aapt.pb.Reference name = 3;

fun getNameBuilder(): Builder!

getNameOrBuilder


          The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
          values.
          
.aapt.pb.Reference name = 3;

fun getNameOrBuilder(): ReferenceOrBuilder!

getSource


          Where the enum/flag item was defined.
          
.aapt.pb.Source source = 1;

fun getSource(): Source!

getSourceBuilder


          Where the enum/flag item was defined.
          
.aapt.pb.Source source = 1;

fun getSourceBuilder(): Builder!

getSourceOrBuilder


          Where the enum/flag item was defined.
          
.aapt.pb.Source source = 1;

fun getSourceOrBuilder(): SourceOrBuilder!

getValue


          The value of the enum/flag.
          
uint32 value = 4;

fun getValue(): Int

hasName


          The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
          values.
          
.aapt.pb.Reference name = 3;

fun hasName(): Boolean

hasSource


          Where the enum/flag item was defined.
          
.aapt.pb.Source source = 1;

fun hasSource(): Boolean

internalGetFieldAccessorTable

fun internalGetFieldAccessorTable(): FieldAccessorTable!

isInitialized

fun isInitialized(): Boolean

mergeFrom

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

mergeName


          The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
          values.
          
.aapt.pb.Reference name = 3;

fun mergeName(value: Reference!): Builder!

mergeSource


          Where the enum/flag item was defined.
          
.aapt.pb.Source source = 1;

fun mergeSource(value: Source!): Builder!

mergeUnknownFields

fun mergeUnknownFields(unknownFields: UnknownFieldSet!): Builder!

setComment


          Any comments associated with the enum or flag.
          
string comment = 2;

fun setComment(value: String!): Builder!

setCommentBytes


          Any comments associated with the enum or flag.
          
string comment = 2;

fun setCommentBytes(value: ByteString!): Builder!

setField

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

setName


          The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
          values.
          
.aapt.pb.Reference name = 3;

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

setRepeatedField

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

setSource


          Where the enum/flag item was defined.
          
.aapt.pb.Source source = 1;

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

setUnknownFields

fun setUnknownFields(unknownFields: UnknownFieldSet!): Builder!

setValue


          The value of the enum/flag.
          
uint32 value = 4;

fun setValue(value: Int): Builder!