Package com.google.openrtb
Enum OpenRtb.LocationService
- java.lang.Object
-
- java.lang.Enum<OpenRtb.LocationService>
-
- com.google.openrtb.OpenRtb.LocationService
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<OpenRtb.LocationService>
- Enclosing class:
- OpenRtb
public static enum OpenRtb.LocationService extends Enum<OpenRtb.LocationService> implements com.google.protobuf.ProtocolMessageEnum
OpenRTB 2.4: The following table lists the services and/or vendors used for resolving IP addresses to geolocations.
Protobuf enumcom.google.openrtb.LocationService
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IP2LOCATIONIP2LOCATION = 1;MAXMINDMAXMIND = 3;NETACUITYNETACUITY = 4;NEUSTARNEUSTAR = 2;
-
Field Summary
Fields Modifier and Type Field Description static intIP2LOCATION_VALUEIP2LOCATION = 1;static intMAXMIND_VALUEMAXMIND = 3;static intNETACUITY_VALUENETACUITY = 4;static intNEUSTAR_VALUENEUSTAR = 2;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static OpenRtb.LocationServiceforNumber(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<OpenRtb.LocationService>internalGetValueMap()static OpenRtb.LocationServicevalueOf(int value)Deprecated.static OpenRtb.LocationServicevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static OpenRtb.LocationServicevalueOf(String name)Returns the enum constant of this type with the specified name.static OpenRtb.LocationService[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IP2LOCATION
public static final OpenRtb.LocationService IP2LOCATION
IP2LOCATION = 1;
-
NEUSTAR
public static final OpenRtb.LocationService NEUSTAR
NEUSTAR = 2;
-
MAXMIND
public static final OpenRtb.LocationService MAXMIND
MAXMIND = 3;
-
NETACUITY
public static final OpenRtb.LocationService NETACUITY
NETACUITY = 4;
-
-
Field Detail
-
IP2LOCATION_VALUE
public static final int IP2LOCATION_VALUE
IP2LOCATION = 1;- See Also:
- Constant Field Values
-
NEUSTAR_VALUE
public static final int NEUSTAR_VALUE
NEUSTAR = 2;- See Also:
- Constant Field Values
-
MAXMIND_VALUE
public static final int MAXMIND_VALUE
MAXMIND = 3;- See Also:
- Constant Field Values
-
NETACUITY_VALUE
public static final int NETACUITY_VALUE
NETACUITY = 4;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static OpenRtb.LocationService[] 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 (OpenRtb.LocationService c : OpenRtb.LocationService.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OpenRtb.LocationService valueOf(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:
IllegalArgumentException- if this enum type 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 public static OpenRtb.LocationService 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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
public static OpenRtb.LocationService 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<OpenRtb.LocationService> 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 OpenRtb.LocationService 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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-