booster / com.didiglobal.booster.aapt2 / Resources / Primitive

Primitive

class Primitive : GeneratedMessageV3, PrimitiveOrBuilder


    A value that represents a primitive data type (float, int, boolean, etc.).
    Refer to Res_value in ResourceTypes.h for info on types and formatting
    
Protobuf type aapt.pb.Primitive

Types

Builder


      A value that represents a primitive data type (float, int, boolean, etc.).
      Refer to Res_value in ResourceTypes.h for info on types and formatting
      
Protobuf type aapt.pb.Primitive

class Builder : Builder<Builder!>, PrimitiveOrBuilder

EmptyType

Protobuf type aapt.pb.Primitive.EmptyType

class EmptyType : GeneratedMessageV3, EmptyTypeOrBuilder

EmptyTypeOrBuilder

interface EmptyTypeOrBuilder : MessageOrBuilder

NullType

Protobuf type aapt.pb.Primitive.NullType

class NullType : GeneratedMessageV3, NullTypeOrBuilder

NullTypeOrBuilder

interface NullTypeOrBuilder : MessageOrBuilder

OneofValueCase

class OneofValueCase : EnumLite, InternalOneOfEnum

Properties

BOOLEAN_VALUE_FIELD_NUMBER

static val BOOLEAN_VALUE_FIELD_NUMBER: Int

COLOR_ARGB4_VALUE_FIELD_NUMBER

static val COLOR_ARGB4_VALUE_FIELD_NUMBER: Int

COLOR_ARGB8_VALUE_FIELD_NUMBER

static val COLOR_ARGB8_VALUE_FIELD_NUMBER: Int

COLOR_RGB4_VALUE_FIELD_NUMBER

static val COLOR_RGB4_VALUE_FIELD_NUMBER: Int

COLOR_RGB8_VALUE_FIELD_NUMBER

static val COLOR_RGB8_VALUE_FIELD_NUMBER: Int

DIMENSION_VALUE_DEPRECATED_FIELD_NUMBER

static val DIMENSION_VALUE_DEPRECATED_FIELD_NUMBER: Int

DIMENSION_VALUE_FIELD_NUMBER

static val DIMENSION_VALUE_FIELD_NUMBER: Int

EMPTY_VALUE_FIELD_NUMBER

static val EMPTY_VALUE_FIELD_NUMBER: Int

FLOAT_VALUE_FIELD_NUMBER

static val FLOAT_VALUE_FIELD_NUMBER: Int

FRACTION_VALUE_DEPRECATED_FIELD_NUMBER

static val FRACTION_VALUE_DEPRECATED_FIELD_NUMBER: Int

FRACTION_VALUE_FIELD_NUMBER

static val FRACTION_VALUE_FIELD_NUMBER: Int

INT_DECIMAL_VALUE_FIELD_NUMBER

static val INT_DECIMAL_VALUE_FIELD_NUMBER: Int

INT_HEXADECIMAL_VALUE_FIELD_NUMBER

static val INT_HEXADECIMAL_VALUE_FIELD_NUMBER: Int

NULL_VALUE_FIELD_NUMBER

static val NULL_VALUE_FIELD_NUMBER: Int

Functions

equals

fun equals(other: Any?): Boolean

getBooleanValue

bool boolean_value = 8;

fun getBooleanValue(): Boolean

getColorArgb4Value

uint32 color_argb4_value = 11;

fun getColorArgb4Value(): Int

getColorArgb8Value

uint32 color_argb8_value = 9;

fun getColorArgb8Value(): Int

getColorRgb4Value

uint32 color_rgb4_value = 12;

fun getColorRgb4Value(): Int

getColorRgb8Value

uint32 color_rgb8_value = 10;

fun getColorRgb8Value(): Int

getDefaultInstance

static fun getDefaultInstance(): Primitive!

getDefaultInstanceForType

fun getDefaultInstanceForType(): Primitive!

getDescriptor

static fun getDescriptor(): Descriptor!

getDimensionValue

uint32 dimension_value = 13;

fun getDimensionValue(): Int

getDimensionValueDeprecated

float dimension_value_deprecated = 4 [deprecated = true];

fun getDimensionValueDeprecated(): Float

getEmptyValue

.aapt.pb.Primitive.EmptyType empty_value = 2;

fun getEmptyValue(): EmptyType!

getEmptyValueOrBuilder

.aapt.pb.Primitive.EmptyType empty_value = 2;

fun getEmptyValueOrBuilder(): EmptyTypeOrBuilder!

getFloatValue

float float_value = 3;

fun getFloatValue(): Float

getFractionValue

uint32 fraction_value = 14;

fun getFractionValue(): Int

getFractionValueDeprecated

float fraction_value_deprecated = 5 [deprecated = true];

fun getFractionValueDeprecated(): Float

getIntDecimalValue

int32 int_decimal_value = 6;

fun getIntDecimalValue(): Int

getIntHexadecimalValue

uint32 int_hexadecimal_value = 7;

fun getIntHexadecimalValue(): Int

getNullValue

.aapt.pb.Primitive.NullType null_value = 1;

fun getNullValue(): NullType!

getNullValueOrBuilder

.aapt.pb.Primitive.NullType null_value = 1;

fun getNullValueOrBuilder(): NullTypeOrBuilder!

getOneofValueCase

fun getOneofValueCase(): OneofValueCase!

getParserForType

fun getParserForType(): Parser<Primitive!>!

getSerializedSize

fun getSerializedSize(): Int

getUnknownFields

fun getUnknownFields(): UnknownFieldSet!

hasEmptyValue

.aapt.pb.Primitive.EmptyType empty_value = 2;

fun hasEmptyValue(): Boolean

hashCode

fun hashCode(): Int

hasNullValue

.aapt.pb.Primitive.NullType null_value = 1;

fun hasNullValue(): Boolean

internalGetFieldAccessorTable

fun internalGetFieldAccessorTable(): FieldAccessorTable!

isInitialized

fun isInitialized(): Boolean

newBuilder

static fun newBuilder(): Builder!
static fun newBuilder(prototype: Primitive!): Builder!

newBuilderForType

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

newInstance

fun newInstance(unused: UnusedPrivateParameter!): Any!

parseDelimitedFrom

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

parseFrom

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

parser

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

toBuilder

fun toBuilder(): Builder!

writeTo

fun writeTo(output: CodedOutputStream!): Unit