Enum Class DeviceEnum.Device

java.lang.Object
java.lang.Enum<DeviceEnum.Device>
com.google.ads.googleads.v18.enums.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
  • Enum Constant Details

    • 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 Details

    • UNSPECIFIED_VALUE

      public static final int UNSPECIFIED_VALUE
       Not specified.
       
      UNSPECIFIED = 0;
      See Also:
    • UNKNOWN_VALUE

      public static final int UNKNOWN_VALUE
       The value is unknown in this version.
       
      UNKNOWN = 1;
      See Also:
    • MOBILE_VALUE

      public static final int MOBILE_VALUE
       Mobile devices with full browsers.
       
      MOBILE = 2;
      See Also:
    • TABLET_VALUE

      public static final int TABLET_VALUE
       Tablets with full browsers.
       
      TABLET = 3;
      See Also:
    • DESKTOP_VALUE

      public static final int DESKTOP_VALUE
       Computers.
       
      DESKTOP = 4;
      See Also:
    • CONNECTED_TV_VALUE

      public static final int CONNECTED_TV_VALUE
       Smart TVs and game consoles.
       
      CONNECTED_TV = 6;
      See Also:
    • OTHER_VALUE

      public static final int OTHER_VALUE
       Other device types.
       
      OTHER = 5;
      See Also:
  • Method Details

    • values

      public static DeviceEnum.Device[] 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

      public static DeviceEnum.Device valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static DeviceEnum.Device valueOf(int value)
      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 name
      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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 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 name
      NullPointerException - if the argument is null