Enum Class DeviceEnum.Device
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<DeviceEnum.Device>,Constable
- Enclosing class:
- DeviceEnum
public static enum DeviceEnum.Device
extends Enum<DeviceEnum.Device>
implements com.google.protobuf.ProtocolMessageEnum
Enumerates Google Ads devices available for targeting.Protobuf enum
google.ads.googleads.v18.enums.DeviceEnum.Device-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSmart TVs and game consoles.Computers.Mobile devices with full browsers.Other device types.Tablets with full browsers.The value is unknown in this version.Not specified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSmart TVs and game consoles.static final intComputers.static final intMobile devices with full browsers.static final intOther device types.static final intTablets with full browsers.static final intThe value is unknown in this version.static final intNot specified. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeviceEnum.DeviceforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<DeviceEnum.Device>static DeviceEnum.DevicevalueOf(int value) Deprecated.static DeviceEnum.DevicevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static DeviceEnum.DeviceReturns the enum constant of this class with the specified name.static DeviceEnum.Device[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
Not specified.
UNSPECIFIED = 0; -
UNKNOWN
The value is unknown in this version.
UNKNOWN = 1; -
MOBILE
Mobile devices with full browsers.
MOBILE = 2; -
TABLET
Tablets with full browsers.
TABLET = 3; -
DESKTOP
Computers.
DESKTOP = 4; -
CONNECTED_TV
Smart TVs and game consoles.
CONNECTED_TV = 6; -
OTHER
Other device types.
OTHER = 5; -
UNRECOGNIZED
-
-
Field Details
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUENot specified.
UNSPECIFIED = 0;- See Also:
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUEThe value is unknown in this version.
UNKNOWN = 1;- See Also:
-
MOBILE_VALUE
public static final int MOBILE_VALUEMobile devices with full browsers.
MOBILE = 2;- See Also:
-
TABLET_VALUE
public static final int TABLET_VALUETablets with full browsers.
TABLET = 3;- See Also:
-
DESKTOP_VALUE
public static final int DESKTOP_VALUEComputers.
DESKTOP = 4;- See Also:
-
CONNECTED_TV_VALUE
public static final int CONNECTED_TV_VALUESmart TVs and game consoles.
CONNECTED_TV = 6;- See Also:
-
OTHER_VALUE
public static final int OTHER_VALUEOther device types.
OTHER = 5;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-