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

Reference

class Reference : GeneratedMessageV3, ReferenceOrBuilder


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

Types

Builder


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

class Builder : Builder<Builder!>, ReferenceOrBuilder

Type

Protobuf enum aapt.pb.Reference.Type

class Type : ProtocolMessageEnum

Properties

ID_FIELD_NUMBER

static val ID_FIELD_NUMBER: Int

NAME_FIELD_NUMBER

static val NAME_FIELD_NUMBER: Int

PRIVATE_FIELD_NUMBER

static val PRIVATE_FIELD_NUMBER: Int

TYPE_FIELD_NUMBER

static val TYPE_FIELD_NUMBER: Int

Functions

equals

fun equals(other: Any?): Boolean

getDefaultInstance

static fun getDefaultInstance(): Reference!

getDefaultInstanceForType

fun getDefaultInstanceForType(): Reference!

getDescriptor

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

getParserForType

fun getParserForType(): Parser<Reference!>!

getPrivate


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

fun getPrivate(): Boolean

getSerializedSize

fun getSerializedSize(): Int

getType

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

fun getType(): Type!

getTypeValue

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

fun getTypeValue(): Int

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

newBuilderForType

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

newInstance

fun newInstance(unused: UnusedPrivateParameter!): Any!

parseDelimitedFrom

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

parseFrom

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

parser

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

toBuilder

fun toBuilder(): Builder!

writeTo

fun writeTo(output: CodedOutputStream!): Unit