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

Builder

class Builder : Builder<Builder!>, ReferenceOrBuilder


      A value that is a reference to another resource. This reference can be by name or resource ID.
      
Protobuf type aapt.pb.Reference

Functions

addRepeatedField

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

build

fun build(): Reference!

buildPartial

fun buildPartial(): Reference!

clear

fun clear(): Builder!

clearField

fun clearField(field: FieldDescriptor!): Builder!

clearId


        The resource ID (0xPPTTEEEE) of the resource being referred. This is optional.
        
uint32 id = 2;

fun clearId(): Builder!

clearName


        The name of the resource being referred. This is optional if the resource ID is set.
        
string name = 3;

fun clearName(): Builder!

clearOneof

fun clearOneof(oneof: OneofDescriptor!): Builder!

clearPrivate


        Whether this reference is referencing a private resource (@*package:type/entry).
        
bool private = 4;

fun clearPrivate(): Builder!

clearType

.aapt.pb.Reference.Type type = 1;

fun clearType(): Builder!

clone

fun clone(): Builder!

getDefaultInstanceForType

fun getDefaultInstanceForType(): Reference!

getDescriptor

static fun getDescriptor(): Descriptor!

getDescriptorForType

fun getDescriptorForType(): Descriptor!

getId


        The resource ID (0xPPTTEEEE) of the resource being referred. This is optional.
        
uint32 id = 2;

fun getId(): Int

getName


        The name of the resource being referred. This is optional if the resource ID is set.
        
string name = 3;

fun getName(): String!

getNameBytes


        The name of the resource being referred. This is optional if the resource ID is set.
        
string name = 3;

fun getNameBytes(): ByteString!

getPrivate


        Whether this reference is referencing a private resource (@*package:type/entry).
        
bool private = 4;

fun getPrivate(): Boolean

getType

.aapt.pb.Reference.Type type = 1;

fun getType(): Type!

getTypeValue

.aapt.pb.Reference.Type type = 1;

fun getTypeValue(): Int

internalGetFieldAccessorTable

fun internalGetFieldAccessorTable(): FieldAccessorTable!

isInitialized

fun isInitialized(): Boolean

mergeFrom

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

mergeUnknownFields

fun mergeUnknownFields(unknownFields: UnknownFieldSet!): Builder!

setField

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

setId


        The resource ID (0xPPTTEEEE) of the resource being referred. This is optional.
        
uint32 id = 2;

fun setId(value: Int): Builder!

setName


        The name of the resource being referred. This is optional if the resource ID is set.
        
string name = 3;

fun setName(value: String!): Builder!

setNameBytes


        The name of the resource being referred. This is optional if the resource ID is set.
        
string name = 3;

fun setNameBytes(value: ByteString!): Builder!

setPrivate


        Whether this reference is referencing a private resource (@*package:type/entry).
        
bool private = 4;

fun setPrivate(value: Boolean): Builder!

setRepeatedField

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

setType

.aapt.pb.Reference.Type type = 1;

fun setType(value: Type!): Builder!

setTypeValue

.aapt.pb.Reference.Type type = 1;

fun setTypeValue(value: Int): Builder!

setUnknownFields

fun setUnknownFields(unknownFields: UnknownFieldSet!): Builder!