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

Builder

class Builder : Builder<Builder!>, 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

Functions

addRepeatedField

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

build

fun build(): Primitive!

buildPartial

fun buildPartial(): Primitive!

clear

fun clear(): Builder!

clearBooleanValue

bool boolean_value = 8;

fun clearBooleanValue(): Builder!

clearColorArgb4Value

uint32 color_argb4_value = 11;

fun clearColorArgb4Value(): Builder!

clearColorArgb8Value

uint32 color_argb8_value = 9;

fun clearColorArgb8Value(): Builder!

clearColorRgb4Value

uint32 color_rgb4_value = 12;

fun clearColorRgb4Value(): Builder!

clearColorRgb8Value

uint32 color_rgb8_value = 10;

fun clearColorRgb8Value(): Builder!

clearDimensionValue

uint32 dimension_value = 13;

fun clearDimensionValue(): Builder!

clearDimensionValueDeprecated

float dimension_value_deprecated = 4 [deprecated = true];

fun clearDimensionValueDeprecated(): Builder!

clearEmptyValue

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

fun clearEmptyValue(): Builder!

clearField

fun clearField(field: FieldDescriptor!): Builder!

clearFloatValue

float float_value = 3;

fun clearFloatValue(): Builder!

clearFractionValue

uint32 fraction_value = 14;

fun clearFractionValue(): Builder!

clearFractionValueDeprecated

float fraction_value_deprecated = 5 [deprecated = true];

fun clearFractionValueDeprecated(): Builder!

clearIntDecimalValue

int32 int_decimal_value = 6;

fun clearIntDecimalValue(): Builder!

clearIntHexadecimalValue

uint32 int_hexadecimal_value = 7;

fun clearIntHexadecimalValue(): Builder!

clearNullValue

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

fun clearNullValue(): Builder!

clearOneof

fun clearOneof(oneof: OneofDescriptor!): Builder!

clearOneofValue

fun clearOneofValue(): Builder!

clone

fun clone(): Builder!

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

getDefaultInstanceForType

fun getDefaultInstanceForType(): Primitive!

getDescriptor

static fun getDescriptor(): Descriptor!

getDescriptorForType

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

getEmptyValueBuilder

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

fun getEmptyValueBuilder(): Builder!

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!

getNullValueBuilder

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

fun getNullValueBuilder(): Builder!

getNullValueOrBuilder

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

fun getNullValueOrBuilder(): NullTypeOrBuilder!

getOneofValueCase

fun getOneofValueCase(): OneofValueCase!

hasEmptyValue

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

fun hasEmptyValue(): Boolean

hasNullValue

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

fun hasNullValue(): Boolean

internalGetFieldAccessorTable

fun internalGetFieldAccessorTable(): FieldAccessorTable!

isInitialized

fun isInitialized(): Boolean

mergeEmptyValue

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

fun mergeEmptyValue(value: EmptyType!): Builder!

mergeFrom

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

mergeNullValue

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

fun mergeNullValue(value: NullType!): Builder!

mergeUnknownFields

fun mergeUnknownFields(unknownFields: UnknownFieldSet!): Builder!

setBooleanValue

bool boolean_value = 8;

fun setBooleanValue(value: Boolean): Builder!

setColorArgb4Value

uint32 color_argb4_value = 11;

fun setColorArgb4Value(value: Int): Builder!

setColorArgb8Value

uint32 color_argb8_value = 9;

fun setColorArgb8Value(value: Int): Builder!

setColorRgb4Value

uint32 color_rgb4_value = 12;

fun setColorRgb4Value(value: Int): Builder!

setColorRgb8Value

uint32 color_rgb8_value = 10;

fun setColorRgb8Value(value: Int): Builder!

setDimensionValue

uint32 dimension_value = 13;

fun setDimensionValue(value: Int): Builder!

setDimensionValueDeprecated

float dimension_value_deprecated = 4 [deprecated = true];

fun setDimensionValueDeprecated(value: Float): Builder!

setEmptyValue

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

fun setEmptyValue(value: EmptyType!): Builder!
fun setEmptyValue(builderForValue: Builder!): Builder!

setField

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

setFloatValue

float float_value = 3;

fun setFloatValue(value: Float): Builder!

setFractionValue

uint32 fraction_value = 14;

fun setFractionValue(value: Int): Builder!

setFractionValueDeprecated

float fraction_value_deprecated = 5 [deprecated = true];

fun setFractionValueDeprecated(value: Float): Builder!

setIntDecimalValue

int32 int_decimal_value = 6;

fun setIntDecimalValue(value: Int): Builder!

setIntHexadecimalValue

uint32 int_hexadecimal_value = 7;

fun setIntHexadecimalValue(value: Int): Builder!

setNullValue

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

fun setNullValue(value: NullType!): Builder!
fun setNullValue(builderForValue: Builder!): Builder!

setRepeatedField

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

setUnknownFields

fun setUnknownFields(unknownFields: UnknownFieldSet!): Builder!