Package com.android.aapt
Class ConfigurationOuterClass.Configuration.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ConfigurationOuterClass.Configuration.Builder>
com.android.aapt.ConfigurationOuterClass.Configuration.Builder
- All Implemented Interfaces:
ConfigurationOuterClass.ConfigurationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ConfigurationOuterClass.Configuration
public static final class ConfigurationOuterClass.Configuration.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ConfigurationOuterClass.Configuration.Builder>
implements ConfigurationOuterClass.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The device's screen density in dots-per-inch (dpi).Grammatical gender.clearHdr()Whether the screen has high dynamic range.The type of keyboard present (none, QWERTY, 12-key).Whether the keyboard hardware keys are currently hidden, exposed, or if the keyboard is a software keyboard.Left-to-right, right-to-left...BCP-47 locale tag.clearMcc()Mobile country code.clearMnc()Mobile network code.Whether the navigation is exposed or hidden.The type of navigation present on the device (trackball, wheel, dpad, etc.).Which orientation the device is in (portrait, landscape).string product = 25;Screen height in pixels.Screen height in density independent pixels (dp).Whether the device screen is long.Whether the device screen is classified as small, normal, large, xlarge.Whether the screen is round (Android Wear).Screen width in pixels.Screen width in density independent pixels (dp).The minimum SDK version of the device.The smallest screen dimension, regardless of orientation, in dp.Whether a touchscreen exists, supports a stylus, or finger.Whether the device is in night mode.Which type of UI mode the device is in (television, car, etc.).Whether the screen supports wide color gamut.intThe device's screen density in dots-per-inch (dpi).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorGrammatical gender.intGrammatical gender.getHdr()Whether the screen has high dynamic range.intWhether the screen has high dynamic range.The type of keyboard present (none, QWERTY, 12-key).intThe type of keyboard present (none, QWERTY, 12-key).Whether the keyboard hardware keys are currently hidden, exposed, or if the keyboard is a software keyboard.intWhether the keyboard hardware keys are currently hidden, exposed, or if the keyboard is a software keyboard.Left-to-right, right-to-left...intLeft-to-right, right-to-left...BCP-47 locale tag.com.google.protobuf.ByteStringBCP-47 locale tag.intgetMcc()Mobile country code.intgetMnc()Mobile network code.Whether the navigation is exposed or hidden.intWhether the navigation is exposed or hidden.The type of navigation present on the device (trackball, wheel, dpad, etc.).intThe type of navigation present on the device (trackball, wheel, dpad, etc.).Which orientation the device is in (portrait, landscape).intWhich orientation the device is in (portrait, landscape).string product = 25;com.google.protobuf.ByteStringstring product = 25;intScreen height in pixels.intScreen height in density independent pixels (dp).Whether the device screen is long.intWhether the device screen is long.Whether the device screen is classified as small, normal, large, xlarge.intWhether the device screen is classified as small, normal, large, xlarge.Whether the screen is round (Android Wear).intWhether the screen is round (Android Wear).intScreen width in pixels.intScreen width in density independent pixels (dp).intThe minimum SDK version of the device.intThe smallest screen dimension, regardless of orientation, in dp.Whether a touchscreen exists, supports a stylus, or finger.intWhether a touchscreen exists, supports a stylus, or finger.Whether the device is in night mode.intWhether the device is in night mode.Which type of UI mode the device is in (television, car, etc.).intWhich type of UI mode the device is in (television, car, etc.).Whether the screen supports wide color gamut.intWhether the screen supports wide color gamut.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDensity(int value) The device's screen density in dots-per-inch (dpi).Grammatical gender.setGrammaticalGenderValue(int value) Grammatical gender.Whether the screen has high dynamic range.setHdrValue(int value) Whether the screen has high dynamic range.The type of keyboard present (none, QWERTY, 12-key).setKeyboardValue(int value) The type of keyboard present (none, QWERTY, 12-key).Whether the keyboard hardware keys are currently hidden, exposed, or if the keyboard is a software keyboard.setKeysHiddenValue(int value) Whether the keyboard hardware keys are currently hidden, exposed, or if the keyboard is a software keyboard.Left-to-right, right-to-left...setLayoutDirectionValue(int value) Left-to-right, right-to-left...BCP-47 locale tag.setLocaleBytes(com.google.protobuf.ByteString value) BCP-47 locale tag.setMcc(int value) Mobile country code.setMnc(int value) Mobile network code.Whether the navigation is exposed or hidden.setNavHiddenValue(int value) Whether the navigation is exposed or hidden.The type of navigation present on the device (trackball, wheel, dpad, etc.).setNavigationValue(int value) The type of navigation present on the device (trackball, wheel, dpad, etc.).Which orientation the device is in (portrait, landscape).setOrientationValue(int value) Which orientation the device is in (portrait, landscape).setProduct(String value) string product = 25;setProductBytes(com.google.protobuf.ByteString value) string product = 25;setScreenHeight(int value) Screen height in pixels.setScreenHeightDp(int value) Screen height in density independent pixels (dp).Whether the device screen is long.setScreenLayoutLongValue(int value) Whether the device screen is long.Whether the device screen is classified as small, normal, large, xlarge.setScreenLayoutSizeValue(int value) Whether the device screen is classified as small, normal, large, xlarge.Whether the screen is round (Android Wear).setScreenRoundValue(int value) Whether the screen is round (Android Wear).setScreenWidth(int value) Screen width in pixels.setScreenWidthDp(int value) Screen width in density independent pixels (dp).setSdkVersion(int value) The minimum SDK version of the device.setSmallestScreenWidthDp(int value) The smallest screen dimension, regardless of orientation, in dp.Whether a touchscreen exists, supports a stylus, or finger.setTouchscreenValue(int value) Whether a touchscreen exists, supports a stylus, or finger.Whether the device is in night mode.setUiModeNightValue(int value) Whether the device is in night mode.Which type of UI mode the device is in (television, car, etc.).setUiModeTypeValue(int value) Which type of UI mode the device is in (television, car, etc.).setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Whether the screen supports wide color gamut.setWideColorGamutValue(int value) Whether the screen supports wide color gamut.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigurationOuterClass.Configuration.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigurationOuterClass.Configuration.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigurationOuterClass.Configuration.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConfigurationOuterClass.Configuration.Builder>
-
mergeFrom
public ConfigurationOuterClass.Configuration.Builder mergeFrom(ConfigurationOuterClass.Configuration other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigurationOuterClass.Configuration.Builder>
-
mergeFrom
public ConfigurationOuterClass.Configuration.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConfigurationOuterClass.Configuration.Builder>- Throws:
IOException
-
getMcc
public int getMcc()Mobile country code.
uint32 mcc = 1;- Specified by:
getMccin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The mcc.
-
setMcc
Mobile country code.
uint32 mcc = 1;- Parameters:
value- The mcc to set.- Returns:
- This builder for chaining.
-
clearMcc
Mobile country code.
uint32 mcc = 1;- Returns:
- This builder for chaining.
-
getMnc
public int getMnc()Mobile network code.
uint32 mnc = 2;- Specified by:
getMncin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The mnc.
-
setMnc
Mobile network code.
uint32 mnc = 2;- Parameters:
value- The mnc to set.- Returns:
- This builder for chaining.
-
clearMnc
Mobile network code.
uint32 mnc = 2;- Returns:
- This builder for chaining.
-
getLocale
BCP-47 locale tag.
string locale = 3;- Specified by:
getLocalein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The locale.
-
getLocaleBytes
public com.google.protobuf.ByteString getLocaleBytes()BCP-47 locale tag.
string locale = 3;- Specified by:
getLocaleBytesin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The bytes for locale.
-
setLocale
BCP-47 locale tag.
string locale = 3;- Parameters:
value- The locale to set.- Returns:
- This builder for chaining.
-
clearLocale
BCP-47 locale tag.
string locale = 3;- Returns:
- This builder for chaining.
-
setLocaleBytes
public ConfigurationOuterClass.Configuration.Builder setLocaleBytes(com.google.protobuf.ByteString value) BCP-47 locale tag.
string locale = 3;- Parameters:
value- The bytes for locale to set.- Returns:
- This builder for chaining.
-
getLayoutDirectionValue
public int getLayoutDirectionValue()Left-to-right, right-to-left...
.aapt.pb.Configuration.LayoutDirection layout_direction = 4;- Specified by:
getLayoutDirectionValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for layoutDirection.
-
setLayoutDirectionValue
Left-to-right, right-to-left...
.aapt.pb.Configuration.LayoutDirection layout_direction = 4;- Parameters:
value- The enum numeric value on the wire for layoutDirection to set.- Returns:
- This builder for chaining.
-
getLayoutDirection
Left-to-right, right-to-left...
.aapt.pb.Configuration.LayoutDirection layout_direction = 4;- Specified by:
getLayoutDirectionin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The layoutDirection.
-
setLayoutDirection
public ConfigurationOuterClass.Configuration.Builder setLayoutDirection(ConfigurationOuterClass.Configuration.LayoutDirection value) Left-to-right, right-to-left...
.aapt.pb.Configuration.LayoutDirection layout_direction = 4;- Parameters:
value- The layoutDirection to set.- Returns:
- This builder for chaining.
-
clearLayoutDirection
Left-to-right, right-to-left...
.aapt.pb.Configuration.LayoutDirection layout_direction = 4;- Returns:
- This builder for chaining.
-
getScreenWidth
public int getScreenWidth()Screen width in pixels. Prefer screen_width_dp.
uint32 screen_width = 5;- Specified by:
getScreenWidthin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The screenWidth.
-
setScreenWidth
Screen width in pixels. Prefer screen_width_dp.
uint32 screen_width = 5;- Parameters:
value- The screenWidth to set.- Returns:
- This builder for chaining.
-
clearScreenWidth
Screen width in pixels. Prefer screen_width_dp.
uint32 screen_width = 5;- Returns:
- This builder for chaining.
-
getScreenHeight
public int getScreenHeight()Screen height in pixels. Prefer screen_height_dp.
uint32 screen_height = 6;- Specified by:
getScreenHeightin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The screenHeight.
-
setScreenHeight
Screen height in pixels. Prefer screen_height_dp.
uint32 screen_height = 6;- Parameters:
value- The screenHeight to set.- Returns:
- This builder for chaining.
-
clearScreenHeight
Screen height in pixels. Prefer screen_height_dp.
uint32 screen_height = 6;- Returns:
- This builder for chaining.
-
getScreenWidthDp
public int getScreenWidthDp()Screen width in density independent pixels (dp).
uint32 screen_width_dp = 7;- Specified by:
getScreenWidthDpin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The screenWidthDp.
-
setScreenWidthDp
Screen width in density independent pixels (dp).
uint32 screen_width_dp = 7;- Parameters:
value- The screenWidthDp to set.- Returns:
- This builder for chaining.
-
clearScreenWidthDp
Screen width in density independent pixels (dp).
uint32 screen_width_dp = 7;- Returns:
- This builder for chaining.
-
getScreenHeightDp
public int getScreenHeightDp()Screen height in density independent pixels (dp).
uint32 screen_height_dp = 8;- Specified by:
getScreenHeightDpin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The screenHeightDp.
-
setScreenHeightDp
Screen height in density independent pixels (dp).
uint32 screen_height_dp = 8;- Parameters:
value- The screenHeightDp to set.- Returns:
- This builder for chaining.
-
clearScreenHeightDp
Screen height in density independent pixels (dp).
uint32 screen_height_dp = 8;- Returns:
- This builder for chaining.
-
getSmallestScreenWidthDp
public int getSmallestScreenWidthDp()The smallest screen dimension, regardless of orientation, in dp.
uint32 smallest_screen_width_dp = 9;- Specified by:
getSmallestScreenWidthDpin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The smallestScreenWidthDp.
-
setSmallestScreenWidthDp
The smallest screen dimension, regardless of orientation, in dp.
uint32 smallest_screen_width_dp = 9;- Parameters:
value- The smallestScreenWidthDp to set.- Returns:
- This builder for chaining.
-
clearSmallestScreenWidthDp
The smallest screen dimension, regardless of orientation, in dp.
uint32 smallest_screen_width_dp = 9;- Returns:
- This builder for chaining.
-
getScreenLayoutSizeValue
public int getScreenLayoutSizeValue()Whether the device screen is classified as small, normal, large, xlarge.
.aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10;- Specified by:
getScreenLayoutSizeValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for screenLayoutSize.
-
setScreenLayoutSizeValue
Whether the device screen is classified as small, normal, large, xlarge.
.aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10;- Parameters:
value- The enum numeric value on the wire for screenLayoutSize to set.- Returns:
- This builder for chaining.
-
getScreenLayoutSize
Whether the device screen is classified as small, normal, large, xlarge.
.aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10;- Specified by:
getScreenLayoutSizein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The screenLayoutSize.
-
setScreenLayoutSize
public ConfigurationOuterClass.Configuration.Builder setScreenLayoutSize(ConfigurationOuterClass.Configuration.ScreenLayoutSize value) Whether the device screen is classified as small, normal, large, xlarge.
.aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10;- Parameters:
value- The screenLayoutSize to set.- Returns:
- This builder for chaining.
-
clearScreenLayoutSize
Whether the device screen is classified as small, normal, large, xlarge.
.aapt.pb.Configuration.ScreenLayoutSize screen_layout_size = 10;- Returns:
- This builder for chaining.
-
getScreenLayoutLongValue
public int getScreenLayoutLongValue()Whether the device screen is long.
.aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11;- Specified by:
getScreenLayoutLongValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for screenLayoutLong.
-
setScreenLayoutLongValue
Whether the device screen is long.
.aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11;- Parameters:
value- The enum numeric value on the wire for screenLayoutLong to set.- Returns:
- This builder for chaining.
-
getScreenLayoutLong
Whether the device screen is long.
.aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11;- Specified by:
getScreenLayoutLongin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The screenLayoutLong.
-
setScreenLayoutLong
public ConfigurationOuterClass.Configuration.Builder setScreenLayoutLong(ConfigurationOuterClass.Configuration.ScreenLayoutLong value) Whether the device screen is long.
.aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11;- Parameters:
value- The screenLayoutLong to set.- Returns:
- This builder for chaining.
-
clearScreenLayoutLong
Whether the device screen is long.
.aapt.pb.Configuration.ScreenLayoutLong screen_layout_long = 11;- Returns:
- This builder for chaining.
-
getScreenRoundValue
public int getScreenRoundValue()Whether the screen is round (Android Wear).
.aapt.pb.Configuration.ScreenRound screen_round = 12;- Specified by:
getScreenRoundValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for screenRound.
-
setScreenRoundValue
Whether the screen is round (Android Wear).
.aapt.pb.Configuration.ScreenRound screen_round = 12;- Parameters:
value- The enum numeric value on the wire for screenRound to set.- Returns:
- This builder for chaining.
-
getScreenRound
Whether the screen is round (Android Wear).
.aapt.pb.Configuration.ScreenRound screen_round = 12;- Specified by:
getScreenRoundin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The screenRound.
-
setScreenRound
public ConfigurationOuterClass.Configuration.Builder setScreenRound(ConfigurationOuterClass.Configuration.ScreenRound value) Whether the screen is round (Android Wear).
.aapt.pb.Configuration.ScreenRound screen_round = 12;- Parameters:
value- The screenRound to set.- Returns:
- This builder for chaining.
-
clearScreenRound
Whether the screen is round (Android Wear).
.aapt.pb.Configuration.ScreenRound screen_round = 12;- Returns:
- This builder for chaining.
-
getWideColorGamutValue
public int getWideColorGamutValue()Whether the screen supports wide color gamut.
.aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13;- Specified by:
getWideColorGamutValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for wideColorGamut.
-
setWideColorGamutValue
Whether the screen supports wide color gamut.
.aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13;- Parameters:
value- The enum numeric value on the wire for wideColorGamut to set.- Returns:
- This builder for chaining.
-
getWideColorGamut
Whether the screen supports wide color gamut.
.aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13;- Specified by:
getWideColorGamutin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The wideColorGamut.
-
setWideColorGamut
public ConfigurationOuterClass.Configuration.Builder setWideColorGamut(ConfigurationOuterClass.Configuration.WideColorGamut value) Whether the screen supports wide color gamut.
.aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13;- Parameters:
value- The wideColorGamut to set.- Returns:
- This builder for chaining.
-
clearWideColorGamut
Whether the screen supports wide color gamut.
.aapt.pb.Configuration.WideColorGamut wide_color_gamut = 13;- Returns:
- This builder for chaining.
-
getHdrValue
public int getHdrValue()Whether the screen has high dynamic range.
.aapt.pb.Configuration.Hdr hdr = 14;- Specified by:
getHdrValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for hdr.
-
setHdrValue
Whether the screen has high dynamic range.
.aapt.pb.Configuration.Hdr hdr = 14;- Parameters:
value- The enum numeric value on the wire for hdr to set.- Returns:
- This builder for chaining.
-
getHdr
Whether the screen has high dynamic range.
.aapt.pb.Configuration.Hdr hdr = 14;- Specified by:
getHdrin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The hdr.
-
setHdr
public ConfigurationOuterClass.Configuration.Builder setHdr(ConfigurationOuterClass.Configuration.Hdr value) Whether the screen has high dynamic range.
.aapt.pb.Configuration.Hdr hdr = 14;- Parameters:
value- The hdr to set.- Returns:
- This builder for chaining.
-
clearHdr
Whether the screen has high dynamic range.
.aapt.pb.Configuration.Hdr hdr = 14;- Returns:
- This builder for chaining.
-
getOrientationValue
public int getOrientationValue()Which orientation the device is in (portrait, landscape).
.aapt.pb.Configuration.Orientation orientation = 15;- Specified by:
getOrientationValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for orientation.
-
setOrientationValue
Which orientation the device is in (portrait, landscape).
.aapt.pb.Configuration.Orientation orientation = 15;- Parameters:
value- The enum numeric value on the wire for orientation to set.- Returns:
- This builder for chaining.
-
getOrientation
Which orientation the device is in (portrait, landscape).
.aapt.pb.Configuration.Orientation orientation = 15;- Specified by:
getOrientationin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The orientation.
-
setOrientation
public ConfigurationOuterClass.Configuration.Builder setOrientation(ConfigurationOuterClass.Configuration.Orientation value) Which orientation the device is in (portrait, landscape).
.aapt.pb.Configuration.Orientation orientation = 15;- Parameters:
value- The orientation to set.- Returns:
- This builder for chaining.
-
clearOrientation
Which orientation the device is in (portrait, landscape).
.aapt.pb.Configuration.Orientation orientation = 15;- Returns:
- This builder for chaining.
-
getUiModeTypeValue
public int getUiModeTypeValue()Which type of UI mode the device is in (television, car, etc.).
.aapt.pb.Configuration.UiModeType ui_mode_type = 16;- Specified by:
getUiModeTypeValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for uiModeType.
-
setUiModeTypeValue
Which type of UI mode the device is in (television, car, etc.).
.aapt.pb.Configuration.UiModeType ui_mode_type = 16;- Parameters:
value- The enum numeric value on the wire for uiModeType to set.- Returns:
- This builder for chaining.
-
getUiModeType
Which type of UI mode the device is in (television, car, etc.).
.aapt.pb.Configuration.UiModeType ui_mode_type = 16;- Specified by:
getUiModeTypein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The uiModeType.
-
setUiModeType
public ConfigurationOuterClass.Configuration.Builder setUiModeType(ConfigurationOuterClass.Configuration.UiModeType value) Which type of UI mode the device is in (television, car, etc.).
.aapt.pb.Configuration.UiModeType ui_mode_type = 16;- Parameters:
value- The uiModeType to set.- Returns:
- This builder for chaining.
-
clearUiModeType
Which type of UI mode the device is in (television, car, etc.).
.aapt.pb.Configuration.UiModeType ui_mode_type = 16;- Returns:
- This builder for chaining.
-
getUiModeNightValue
public int getUiModeNightValue()Whether the device is in night mode.
.aapt.pb.Configuration.UiModeNight ui_mode_night = 17;- Specified by:
getUiModeNightValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for uiModeNight.
-
setUiModeNightValue
Whether the device is in night mode.
.aapt.pb.Configuration.UiModeNight ui_mode_night = 17;- Parameters:
value- The enum numeric value on the wire for uiModeNight to set.- Returns:
- This builder for chaining.
-
getUiModeNight
Whether the device is in night mode.
.aapt.pb.Configuration.UiModeNight ui_mode_night = 17;- Specified by:
getUiModeNightin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The uiModeNight.
-
setUiModeNight
public ConfigurationOuterClass.Configuration.Builder setUiModeNight(ConfigurationOuterClass.Configuration.UiModeNight value) Whether the device is in night mode.
.aapt.pb.Configuration.UiModeNight ui_mode_night = 17;- Parameters:
value- The uiModeNight to set.- Returns:
- This builder for chaining.
-
clearUiModeNight
Whether the device is in night mode.
.aapt.pb.Configuration.UiModeNight ui_mode_night = 17;- Returns:
- This builder for chaining.
-
getDensity
public int getDensity()The device's screen density in dots-per-inch (dpi).
uint32 density = 18;- Specified by:
getDensityin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The density.
-
setDensity
The device's screen density in dots-per-inch (dpi).
uint32 density = 18;- Parameters:
value- The density to set.- Returns:
- This builder for chaining.
-
clearDensity
The device's screen density in dots-per-inch (dpi).
uint32 density = 18;- Returns:
- This builder for chaining.
-
getTouchscreenValue
public int getTouchscreenValue()Whether a touchscreen exists, supports a stylus, or finger.
.aapt.pb.Configuration.Touchscreen touchscreen = 19;- Specified by:
getTouchscreenValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for touchscreen.
-
setTouchscreenValue
Whether a touchscreen exists, supports a stylus, or finger.
.aapt.pb.Configuration.Touchscreen touchscreen = 19;- Parameters:
value- The enum numeric value on the wire for touchscreen to set.- Returns:
- This builder for chaining.
-
getTouchscreen
Whether a touchscreen exists, supports a stylus, or finger.
.aapt.pb.Configuration.Touchscreen touchscreen = 19;- Specified by:
getTouchscreenin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The touchscreen.
-
setTouchscreen
public ConfigurationOuterClass.Configuration.Builder setTouchscreen(ConfigurationOuterClass.Configuration.Touchscreen value) Whether a touchscreen exists, supports a stylus, or finger.
.aapt.pb.Configuration.Touchscreen touchscreen = 19;- Parameters:
value- The touchscreen to set.- Returns:
- This builder for chaining.
-
clearTouchscreen
Whether a touchscreen exists, supports a stylus, or finger.
.aapt.pb.Configuration.Touchscreen touchscreen = 19;- Returns:
- This builder for chaining.
-
getKeysHiddenValue
public int 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;- Specified by:
getKeysHiddenValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for keysHidden.
-
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;- Parameters:
value- The enum numeric value on the wire for keysHidden to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getKeysHiddenin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The keysHidden.
-
setKeysHidden
public ConfigurationOuterClass.Configuration.Builder setKeysHidden(ConfigurationOuterClass.Configuration.KeysHidden value) Whether the keyboard hardware keys are currently hidden, exposed, or if the keyboard is a software keyboard.
.aapt.pb.Configuration.KeysHidden keys_hidden = 20;- Parameters:
value- The keysHidden to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
getKeyboardValue
public int getKeyboardValue()The type of keyboard present (none, QWERTY, 12-key).
.aapt.pb.Configuration.Keyboard keyboard = 21;- Specified by:
getKeyboardValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for keyboard.
-
setKeyboardValue
The type of keyboard present (none, QWERTY, 12-key).
.aapt.pb.Configuration.Keyboard keyboard = 21;- Parameters:
value- The enum numeric value on the wire for keyboard to set.- Returns:
- This builder for chaining.
-
getKeyboard
The type of keyboard present (none, QWERTY, 12-key).
.aapt.pb.Configuration.Keyboard keyboard = 21;- Specified by:
getKeyboardin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The keyboard.
-
setKeyboard
public ConfigurationOuterClass.Configuration.Builder setKeyboard(ConfigurationOuterClass.Configuration.Keyboard value) The type of keyboard present (none, QWERTY, 12-key).
.aapt.pb.Configuration.Keyboard keyboard = 21;- Parameters:
value- The keyboard to set.- Returns:
- This builder for chaining.
-
clearKeyboard
The type of keyboard present (none, QWERTY, 12-key).
.aapt.pb.Configuration.Keyboard keyboard = 21;- Returns:
- This builder for chaining.
-
getSdkVersion
public int getSdkVersion()The minimum SDK version of the device.
uint32 sdk_version = 24;- Specified by:
getSdkVersionin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The sdkVersion.
-
setSdkVersion
The minimum SDK version of the device.
uint32 sdk_version = 24;- Parameters:
value- The sdkVersion to set.- Returns:
- This builder for chaining.
-
clearSdkVersion
The minimum SDK version of the device.
uint32 sdk_version = 24;- Returns:
- This builder for chaining.
-
getGrammaticalGenderValue
public int getGrammaticalGenderValue()Grammatical gender.
.aapt.pb.Configuration.GrammaticalGender grammatical_gender = 26;- Specified by:
getGrammaticalGenderValuein interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The enum numeric value on the wire for grammaticalGender.
-
setGrammaticalGenderValue
Grammatical gender.
.aapt.pb.Configuration.GrammaticalGender grammatical_gender = 26;- Parameters:
value- The enum numeric value on the wire for grammaticalGender to set.- Returns:
- This builder for chaining.
-
getGrammaticalGender
Grammatical gender.
.aapt.pb.Configuration.GrammaticalGender grammatical_gender = 26;- Specified by:
getGrammaticalGenderin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The grammaticalGender.
-
setGrammaticalGender
public ConfigurationOuterClass.Configuration.Builder setGrammaticalGender(ConfigurationOuterClass.Configuration.GrammaticalGender value) Grammatical gender.
.aapt.pb.Configuration.GrammaticalGender grammatical_gender = 26;- Parameters:
value- The grammaticalGender to set.- Returns:
- This builder for chaining.
-
clearGrammaticalGender
Grammatical gender.
.aapt.pb.Configuration.GrammaticalGender grammatical_gender = 26;- Returns:
- This builder for chaining.
-
getProduct
string product = 25;- Specified by:
getProductin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The product.
-
getProductBytes
public com.google.protobuf.ByteString getProductBytes()string product = 25;- Specified by:
getProductBytesin interfaceConfigurationOuterClass.ConfigurationOrBuilder- Returns:
- The bytes for product.
-
setProduct
string product = 25;- Parameters:
value- The product to set.- Returns:
- This builder for chaining.
-
clearProduct
string product = 25;- Returns:
- This builder for chaining.
-
setProductBytes
public ConfigurationOuterClass.Configuration.Builder setProductBytes(com.google.protobuf.ByteString value) string product = 25;- Parameters:
value- The bytes for product to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ConfigurationOuterClass.Configuration.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigurationOuterClass.Configuration.Builder>
-
mergeUnknownFields
public final ConfigurationOuterClass.Configuration.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigurationOuterClass.Configuration.Builder>
-