booster / com.didiglobal.booster.aapt2 / ConfigurationOuterClass / Configuration / Builder

Builder

class Builder : Builder<Builder!>, ConfigurationOrBuilder


      A description of the requirements a device must have in order for a
      resource to be matched and selected.
      
Protobuf type aapt.pb.Configuration

Functions

addRepeatedField

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

build

fun build(): Configuration!

buildPartial

fun buildPartial(): Configuration!

clear

fun clear(): Builder!

clearDensity


        The device's screen density in dots-per-inch (dpi).
        
uint32 density = 18;

fun clearDensity(): Builder!

clearField

fun clearField(field: FieldDescriptor!): Builder!

clearHdr


        Whether the screen has high dynamic range.
        
.aapt.pb.Configuration.Hdr hdr = 14;

fun clearHdr(): Builder!

clearKeyboard


        The type of keyboard present (none, QWERTY, 12-key).
        
.aapt.pb.Configuration.Keyboard keyboard = 21;

fun clearKeyboard(): Builder!

clearKeysHidden


        Whether the keyboard hardware keys are currently hidden, exposed, or
        if the keyboard is a software keyboard.
        
.aapt.pb.Configuration.KeysHidden keys_hidden = 20;

fun clearKeysHidden(): Builder!

clearLayoutDirection


        Left-to-right, right-to-left...
        
.aapt.pb.Configuration.LayoutDirection layout_direction = 4;

fun clearLayoutDirection(): Builder!

clearLocale


        BCP-47 locale tag.
        
string locale = 3;

fun clearLocale(): Builder!

clearMcc


        Mobile country code.
        
uint32 mcc = 1;

fun clearMcc(): Builder!

clearMnc


        Mobile network code.
        
uint32 mnc = 2;

fun clearMnc(): Builder!

clearNavHidden


        Whether the navigation is exposed or hidden.
        
.aapt.pb.Configuration.NavHidden nav_hidden = 22;

fun clearNavHidden(): Builder!

clearNavigation


        The type of navigation present on the device
        (trackball, wheel, dpad, etc.).
        
.aapt.pb.Configuration.Navigation navigation = 23;

fun clearNavigation(): Builder!

clearOneof

fun clearOneof(oneof: OneofDescriptor!): Builder!

clearOrientation


        Which orientation the device is in (portrait, landscape).
        
.aapt.pb.Configuration.Orientation orientation = 15;

fun clearOrientation(): Builder!

clearProduct

string product = 25;

fun clearProduct(): Builder!

clearScreenHeight


        Screen height in pixels. Prefer screen_height_dp.
        
uint32 screen_height = 6;

fun clearScreenHeight(): Builder!

clearScreenHeightDp


        Screen height in density independent pixels (dp).
        
uint32 screen_height_dp = 8;

fun clearScreenHeightDp(): Builder!

clearScreenLayoutLong


        Whether the device screen is long.
        
.aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11;

fun clearScreenLayoutLong(): Builder!

clearScreenLayoutSize


        Whether the device screen is classified as small, normal, large, xlarge.
        
.aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10;

fun clearScreenLayoutSize(): Builder!

clearScreenRound


        Whether the screen is round (Android Wear).
        
.aapt.pb.Configuration.ScreenRound screen_round = 12;

fun clearScreenRound(): Builder!

clearScreenWidth


        Screen width in pixels. Prefer screen_width_dp.
        
uint32 screen_width = 5;

fun clearScreenWidth(): Builder!

clearScreenWidthDp


        Screen width in density independent pixels (dp).
        
uint32 screen_width_dp = 7;

fun clearScreenWidthDp(): Builder!

clearSdkVersion


        The minimum SDK version of the device.
        
uint32 sdk_version = 24;

fun clearSdkVersion(): Builder!

clearSmallestScreenWidthDp


        The smallest screen dimension, regardless of orientation, in dp.
        
uint32 smallest_screen_width_dp = 9;

fun clearSmallestScreenWidthDp(): Builder!

clearTouchscreen


        Whether a touchscreen exists, supports a stylus, or finger.
        
.aapt.pb.Configuration.Touchscreen touchscreen = 19;

fun clearTouchscreen(): Builder!

clearUiModeNight


        Whether the device is in night mode.
        
.aapt.pb.Configuration.UiModeNight ui_mode_night = 17;

fun clearUiModeNight(): Builder!

clearUiModeType


        Which type of UI mode the device is in (television, car, etc.).
        
.aapt.pb.Configuration.UiModeType ui_mode_type = 16;

fun clearUiModeType(): Builder!

clearWideColorGamut


        Whether the screen supports wide color gamut.
        
.aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13;

fun clearWideColorGamut(): Builder!

clone

fun clone(): Builder!

getDefaultInstanceForType

fun getDefaultInstanceForType(): Configuration!

getDensity


        The device's screen density in dots-per-inch (dpi).
        
uint32 density = 18;

fun getDensity(): Int

getDescriptor

static fun getDescriptor(): Descriptor!

getDescriptorForType

fun getDescriptorForType(): Descriptor!

getHdr


        Whether the screen has high dynamic range.
        
.aapt.pb.Configuration.Hdr hdr = 14;

fun getHdr(): Hdr!

getHdrValue


        Whether the screen has high dynamic range.
        
.aapt.pb.Configuration.Hdr hdr = 14;

fun getHdrValue(): Int

getKeyboard


        The type of keyboard present (none, QWERTY, 12-key).
        
.aapt.pb.Configuration.Keyboard keyboard = 21;

fun getKeyboard(): Keyboard!

getKeyboardValue


        The type of keyboard present (none, QWERTY, 12-key).
        
.aapt.pb.Configuration.Keyboard keyboard = 21;

fun getKeyboardValue(): Int

getKeysHidden


        Whether the keyboard hardware keys are currently hidden, exposed, or
        if the keyboard is a software keyboard.
        
.aapt.pb.Configuration.KeysHidden keys_hidden = 20;

fun getKeysHidden(): KeysHidden!

getKeysHiddenValue


        Whether the keyboard hardware keys are currently hidden, exposed, or
        if the keyboard is a software keyboard.
        
.aapt.pb.Configuration.KeysHidden keys_hidden = 20;

fun getKeysHiddenValue(): Int

getLayoutDirection


        Left-to-right, right-to-left...
        
.aapt.pb.Configuration.LayoutDirection layout_direction = 4;

fun getLayoutDirection(): LayoutDirection!

getLayoutDirectionValue


        Left-to-right, right-to-left...
        
.aapt.pb.Configuration.LayoutDirection layout_direction = 4;

fun getLayoutDirectionValue(): Int

getLocale


        BCP-47 locale tag.
        
string locale = 3;

fun getLocale(): String!

getLocaleBytes


        BCP-47 locale tag.
        
string locale = 3;

fun getLocaleBytes(): ByteString!

getMcc


        Mobile country code.
        
uint32 mcc = 1;

fun getMcc(): Int

getMnc


        Mobile network code.
        
uint32 mnc = 2;

fun getMnc(): Int

getNavHidden


        Whether the navigation is exposed or hidden.
        
.aapt.pb.Configuration.NavHidden nav_hidden = 22;

fun getNavHidden(): NavHidden!

getNavHiddenValue


        Whether the navigation is exposed or hidden.
        
.aapt.pb.Configuration.NavHidden nav_hidden = 22;

fun getNavHiddenValue(): Int

getNavigation


        The type of navigation present on the device
        (trackball, wheel, dpad, etc.).
        
.aapt.pb.Configuration.Navigation navigation = 23;

fun getNavigation(): Navigation!

getNavigationValue


        The type of navigation present on the device
        (trackball, wheel, dpad, etc.).
        
.aapt.pb.Configuration.Navigation navigation = 23;

fun getNavigationValue(): Int

getOrientation


        Which orientation the device is in (portrait, landscape).
        
.aapt.pb.Configuration.Orientation orientation = 15;

fun getOrientation(): Orientation!

getOrientationValue


        Which orientation the device is in (portrait, landscape).
        
.aapt.pb.Configuration.Orientation orientation = 15;

fun getOrientationValue(): Int

getProduct

string product = 25;

fun getProduct(): String!

getProductBytes

string product = 25;

fun getProductBytes(): ByteString!

getScreenHeight


        Screen height in pixels. Prefer screen_height_dp.
        
uint32 screen_height = 6;

fun getScreenHeight(): Int

getScreenHeightDp


        Screen height in density independent pixels (dp).
        
uint32 screen_height_dp = 8;

fun getScreenHeightDp(): Int

getScreenLayoutLong


        Whether the device screen is long.
        
.aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11;

fun getScreenLayoutLong(): ScreenLayoutLong!

getScreenLayoutLongValue


        Whether the device screen is long.
        
.aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11;

fun getScreenLayoutLongValue(): Int

getScreenLayoutSize


        Whether the device screen is classified as small, normal, large, xlarge.
        
.aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10;

fun getScreenLayoutSize(): ScreenLayoutSize!

getScreenLayoutSizeValue


        Whether the device screen is classified as small, normal, large, xlarge.
        
.aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10;

fun getScreenLayoutSizeValue(): Int

getScreenRound


        Whether the screen is round (Android Wear).
        
.aapt.pb.Configuration.ScreenRound screen_round = 12;

fun getScreenRound(): ScreenRound!

getScreenRoundValue


        Whether the screen is round (Android Wear).
        
.aapt.pb.Configuration.ScreenRound screen_round = 12;

fun getScreenRoundValue(): Int

getScreenWidth


        Screen width in pixels. Prefer screen_width_dp.
        
uint32 screen_width = 5;

fun getScreenWidth(): Int

getScreenWidthDp


        Screen width in density independent pixels (dp).
        
uint32 screen_width_dp = 7;

fun getScreenWidthDp(): Int

getSdkVersion


        The minimum SDK version of the device.
        
uint32 sdk_version = 24;

fun getSdkVersion(): Int

getSmallestScreenWidthDp


        The smallest screen dimension, regardless of orientation, in dp.
        
uint32 smallest_screen_width_dp = 9;

fun getSmallestScreenWidthDp(): Int

getTouchscreen


        Whether a touchscreen exists, supports a stylus, or finger.
        
.aapt.pb.Configuration.Touchscreen touchscreen = 19;

fun getTouchscreen(): Touchscreen!

getTouchscreenValue


        Whether a touchscreen exists, supports a stylus, or finger.
        
.aapt.pb.Configuration.Touchscreen touchscreen = 19;

fun getTouchscreenValue(): Int

getUiModeNight


        Whether the device is in night mode.
        
.aapt.pb.Configuration.UiModeNight ui_mode_night = 17;

fun getUiModeNight(): UiModeNight!

getUiModeNightValue


        Whether the device is in night mode.
        
.aapt.pb.Configuration.UiModeNight ui_mode_night = 17;

fun getUiModeNightValue(): Int

getUiModeType


        Which type of UI mode the device is in (television, car, etc.).
        
.aapt.pb.Configuration.UiModeType ui_mode_type = 16;

fun getUiModeType(): UiModeType!

getUiModeTypeValue


        Which type of UI mode the device is in (television, car, etc.).
        
.aapt.pb.Configuration.UiModeType ui_mode_type = 16;

fun getUiModeTypeValue(): Int

getWideColorGamut


        Whether the screen supports wide color gamut.
        
.aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13;

fun getWideColorGamut(): WideColorGamut!

getWideColorGamutValue


        Whether the screen supports wide color gamut.
        
.aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13;

fun getWideColorGamutValue(): Int

internalGetFieldAccessorTable

fun internalGetFieldAccessorTable(): FieldAccessorTable!

isInitialized

fun isInitialized(): Boolean

mergeFrom

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

mergeUnknownFields

fun mergeUnknownFields(unknownFields: UnknownFieldSet!): Builder!

setDensity


        The device's screen density in dots-per-inch (dpi).
        
uint32 density = 18;

fun setDensity(value: Int): Builder!

setField

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

setHdr


        Whether the screen has high dynamic range.
        
.aapt.pb.Configuration.Hdr hdr = 14;

fun setHdr(value: Hdr!): Builder!

setHdrValue


        Whether the screen has high dynamic range.
        
.aapt.pb.Configuration.Hdr hdr = 14;

fun setHdrValue(value: Int): Builder!

setKeyboard


        The type of keyboard present (none, QWERTY, 12-key).
        
.aapt.pb.Configuration.Keyboard keyboard = 21;

fun setKeyboard(value: Keyboard!): Builder!

setKeyboardValue


        The type of keyboard present (none, QWERTY, 12-key).
        
.aapt.pb.Configuration.Keyboard keyboard = 21;

fun setKeyboardValue(value: Int): Builder!

setKeysHidden


        Whether the keyboard hardware keys are currently hidden, exposed, or
        if the keyboard is a software keyboard.
        
.aapt.pb.Configuration.KeysHidden keys_hidden = 20;

fun setKeysHidden(value: KeysHidden!): Builder!

setKeysHiddenValue


        Whether the keyboard hardware keys are currently hidden, exposed, or
        if the keyboard is a software keyboard.
        
.aapt.pb.Configuration.KeysHidden keys_hidden = 20;

fun setKeysHiddenValue(value: Int): Builder!

setLayoutDirection


        Left-to-right, right-to-left...
        
.aapt.pb.Configuration.LayoutDirection layout_direction = 4;

fun setLayoutDirection(value: LayoutDirection!): Builder!

setLayoutDirectionValue


        Left-to-right, right-to-left...
        
.aapt.pb.Configuration.LayoutDirection layout_direction = 4;

fun setLayoutDirectionValue(value: Int): Builder!

setLocale


        BCP-47 locale tag.
        
string locale = 3;

fun setLocale(value: String!): Builder!

setLocaleBytes


        BCP-47 locale tag.
        
string locale = 3;

fun setLocaleBytes(value: ByteString!): Builder!

setMcc


        Mobile country code.
        
uint32 mcc = 1;

fun setMcc(value: Int): Builder!

setMnc


        Mobile network code.
        
uint32 mnc = 2;

fun setMnc(value: Int): Builder!

setNavHidden


        Whether the navigation is exposed or hidden.
        
.aapt.pb.Configuration.NavHidden nav_hidden = 22;

fun setNavHidden(value: NavHidden!): Builder!

setNavHiddenValue


        Whether the navigation is exposed or hidden.
        
.aapt.pb.Configuration.NavHidden nav_hidden = 22;

fun setNavHiddenValue(value: Int): Builder!

setNavigation


        The type of navigation present on the device
        (trackball, wheel, dpad, etc.).
        
.aapt.pb.Configuration.Navigation navigation = 23;

fun setNavigation(value: Navigation!): Builder!

setNavigationValue


        The type of navigation present on the device
        (trackball, wheel, dpad, etc.).
        
.aapt.pb.Configuration.Navigation navigation = 23;

fun setNavigationValue(value: Int): Builder!

setOrientation


        Which orientation the device is in (portrait, landscape).
        
.aapt.pb.Configuration.Orientation orientation = 15;

fun setOrientation(value: Orientation!): Builder!

setOrientationValue


        Which orientation the device is in (portrait, landscape).
        
.aapt.pb.Configuration.Orientation orientation = 15;

fun setOrientationValue(value: Int): Builder!

setProduct

string product = 25;

fun setProduct(value: String!): Builder!

setProductBytes

string product = 25;

fun setProductBytes(value: ByteString!): Builder!

setRepeatedField

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

setScreenHeight


        Screen height in pixels. Prefer screen_height_dp.
        
uint32 screen_height = 6;

fun setScreenHeight(value: Int): Builder!

setScreenHeightDp


        Screen height in density independent pixels (dp).
        
uint32 screen_height_dp = 8;

fun setScreenHeightDp(value: Int): Builder!

setScreenLayoutLong


        Whether the device screen is long.
        
.aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11;

fun setScreenLayoutLong(value: ScreenLayoutLong!): Builder!

setScreenLayoutLongValue


        Whether the device screen is long.
        
.aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11;

fun setScreenLayoutLongValue(value: Int): Builder!

setScreenLayoutSize


        Whether the device screen is classified as small, normal, large, xlarge.
        
.aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10;

fun setScreenLayoutSize(value: ScreenLayoutSize!): Builder!

setScreenLayoutSizeValue


        Whether the device screen is classified as small, normal, large, xlarge.
        
.aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10;

fun setScreenLayoutSizeValue(value: Int): Builder!

setScreenRound


        Whether the screen is round (Android Wear).
        
.aapt.pb.Configuration.ScreenRound screen_round = 12;

fun setScreenRound(value: ScreenRound!): Builder!

setScreenRoundValue


        Whether the screen is round (Android Wear).
        
.aapt.pb.Configuration.ScreenRound screen_round = 12;

fun setScreenRoundValue(value: Int): Builder!

setScreenWidth


        Screen width in pixels. Prefer screen_width_dp.
        
uint32 screen_width = 5;

fun setScreenWidth(value: Int): Builder!

setScreenWidthDp


        Screen width in density independent pixels (dp).
        
uint32 screen_width_dp = 7;

fun setScreenWidthDp(value: Int): Builder!

setSdkVersion


        The minimum SDK version of the device.
        
uint32 sdk_version = 24;

fun setSdkVersion(value: Int): Builder!

setSmallestScreenWidthDp


        The smallest screen dimension, regardless of orientation, in dp.
        
uint32 smallest_screen_width_dp = 9;

fun setSmallestScreenWidthDp(value: Int): Builder!

setTouchscreen


        Whether a touchscreen exists, supports a stylus, or finger.
        
.aapt.pb.Configuration.Touchscreen touchscreen = 19;

fun setTouchscreen(value: Touchscreen!): Builder!

setTouchscreenValue


        Whether a touchscreen exists, supports a stylus, or finger.
        
.aapt.pb.Configuration.Touchscreen touchscreen = 19;

fun setTouchscreenValue(value: Int): Builder!

setUiModeNight


        Whether the device is in night mode.
        
.aapt.pb.Configuration.UiModeNight ui_mode_night = 17;

fun setUiModeNight(value: UiModeNight!): Builder!

setUiModeNightValue


        Whether the device is in night mode.
        
.aapt.pb.Configuration.UiModeNight ui_mode_night = 17;

fun setUiModeNightValue(value: Int): Builder!

setUiModeType


        Which type of UI mode the device is in (television, car, etc.).
        
.aapt.pb.Configuration.UiModeType ui_mode_type = 16;

fun setUiModeType(value: UiModeType!): Builder!

setUiModeTypeValue


        Which type of UI mode the device is in (television, car, etc.).
        
.aapt.pb.Configuration.UiModeType ui_mode_type = 16;

fun setUiModeTypeValue(value: Int): Builder!

setUnknownFields

fun setUnknownFields(unknownFields: UnknownFieldSet!): Builder!

setWideColorGamut


        Whether the screen supports wide color gamut.
        
.aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13;

fun setWideColorGamut(value: WideColorGamut!): Builder!

setWideColorGamutValue


        Whether the screen supports wide color gamut.
        
.aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13;

fun setWideColorGamutValue(value: Int): Builder!