Enum DeviceEnum.Device
- java.lang.Object
-
- java.lang.Enum<DeviceEnum.Device>
-
- com.google.ads.googleads.v10.enums.DeviceEnum.Device
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<DeviceEnum.Device>
- Enclosing class:
- DeviceEnum
public static enum DeviceEnum.Device extends java.lang.Enum<DeviceEnum.Device> implements com.google.protobuf.ProtocolMessageEnum
Enumerates Google Ads devices available for targeting.
Protobuf enumgoogle.ads.googleads.v10.enums.DeviceEnum.Device
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTED_TVSmart TVs and game consoles.DESKTOPComputers.MOBILEMobile devices with full browsers.OTHEROther device types.TABLETTablets with full browsers.UNKNOWNThe value is unknown in this version.UNRECOGNIZEDUNSPECIFIEDNot specified.
-
Field Summary
Fields Modifier and Type Field Description static intCONNECTED_TV_VALUESmart TVs and game consoles.static intDESKTOP_VALUEComputers.static intMOBILE_VALUEMobile devices with full browsers.static intOTHER_VALUEOther device types.static intTABLET_VALUETablets with full browsers.static intUNKNOWN_VALUEThe value is unknown in this version.static intUNSPECIFIED_VALUENot specified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DeviceEnum.DeviceforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<DeviceEnum.Device>internalGetValueMap()static DeviceEnum.DevicevalueOf(int value)Deprecated.static DeviceEnum.DevicevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static DeviceEnum.DevicevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DeviceEnum.Device[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final DeviceEnum.Device UNSPECIFIED
Not specified.
UNSPECIFIED = 0;
-
UNKNOWN
public static final DeviceEnum.Device UNKNOWN
The value is unknown in this version.
UNKNOWN = 1;
-
MOBILE
public static final DeviceEnum.Device MOBILE
Mobile devices with full browsers.
MOBILE = 2;
-
TABLET
public static final DeviceEnum.Device TABLET
Tablets with full browsers.
TABLET = 3;
-
DESKTOP
public static final DeviceEnum.Device DESKTOP
Computers.
DESKTOP = 4;
-
CONNECTED_TV
public static final DeviceEnum.Device CONNECTED_TV
Smart TVs and game consoles.
CONNECTED_TV = 6;
-
OTHER
public static final DeviceEnum.Device OTHER
Other device types.
OTHER = 5;
-
UNRECOGNIZED
public static final DeviceEnum.Device UNRECOGNIZED
-
-
Field Detail
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUE
Not specified.
UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUE
The value is unknown in this version.
UNKNOWN = 1;- See Also:
- Constant Field Values
-
MOBILE_VALUE
public static final int MOBILE_VALUE
Mobile devices with full browsers.
MOBILE = 2;- See Also:
- Constant Field Values
-
TABLET_VALUE
public static final int TABLET_VALUE
Tablets with full browsers.
TABLET = 3;- See Also:
- Constant Field Values
-
DESKTOP_VALUE
public static final int DESKTOP_VALUE
Computers.
DESKTOP = 4;- See Also:
- Constant Field Values
-
CONNECTED_TV_VALUE
public static final int CONNECTED_TV_VALUE
Smart TVs and game consoles.
CONNECTED_TV = 6;- See Also:
- Constant Field Values
-
OTHER_VALUE
public static final int OTHER_VALUE
Other device types.
OTHER = 5;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static DeviceEnum.Device[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DeviceEnum.Device c : DeviceEnum.Device.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeviceEnum.Device valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- 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 public static DeviceEnum.Device valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static DeviceEnum.Device forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<DeviceEnum.Device> 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
public static DeviceEnum.Device valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-