Package com.google.openrtb
Enum OpenRtb.ConnectionType
- java.lang.Object
-
- java.lang.Enum<OpenRtb.ConnectionType>
-
- com.google.openrtb.OpenRtb.ConnectionType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<OpenRtb.ConnectionType>
- Enclosing class:
- OpenRtb
public static enum OpenRtb.ConnectionType extends Enum<OpenRtb.ConnectionType> implements com.google.protobuf.ProtocolMessageEnum
OpenRTB 2.0: The following table lists the various options for the type of device connectivity.
Protobuf enumcom.google.openrtb.ConnectionType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CELL_2GCELL_2G = 4;CELL_3GCELL_3G = 5;CELL_4GCELL_4G = 6;CELL_UNKNOWNCELL_UNKNOWN = 3;CONNECTION_UNKNOWNCONNECTION_UNKNOWN = 0;ETHERNETETHERNET = 1;WIFIWIFI = 2;
-
Field Summary
Fields Modifier and Type Field Description static intCELL_2G_VALUECELL_2G = 4;static intCELL_3G_VALUECELL_3G = 5;static intCELL_4G_VALUECELL_4G = 6;static intCELL_UNKNOWN_VALUECELL_UNKNOWN = 3;static intCONNECTION_UNKNOWN_VALUECONNECTION_UNKNOWN = 0;static intETHERNET_VALUEETHERNET = 1;static intWIFI_VALUEWIFI = 2;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static OpenRtb.ConnectionTypeforNumber(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.ConnectionType>internalGetValueMap()static OpenRtb.ConnectionTypevalueOf(int value)Deprecated.static OpenRtb.ConnectionTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static OpenRtb.ConnectionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static OpenRtb.ConnectionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONNECTION_UNKNOWN
public static final OpenRtb.ConnectionType CONNECTION_UNKNOWN
CONNECTION_UNKNOWN = 0;
-
ETHERNET
public static final OpenRtb.ConnectionType ETHERNET
ETHERNET = 1;
-
WIFI
public static final OpenRtb.ConnectionType WIFI
WIFI = 2;
-
CELL_UNKNOWN
public static final OpenRtb.ConnectionType CELL_UNKNOWN
CELL_UNKNOWN = 3;
-
CELL_2G
public static final OpenRtb.ConnectionType CELL_2G
CELL_2G = 4;
-
CELL_3G
public static final OpenRtb.ConnectionType CELL_3G
CELL_3G = 5;
-
CELL_4G
public static final OpenRtb.ConnectionType CELL_4G
CELL_4G = 6;
-
-
Field Detail
-
CONNECTION_UNKNOWN_VALUE
public static final int CONNECTION_UNKNOWN_VALUE
CONNECTION_UNKNOWN = 0;- See Also:
- Constant Field Values
-
ETHERNET_VALUE
public static final int ETHERNET_VALUE
ETHERNET = 1;- See Also:
- Constant Field Values
-
WIFI_VALUE
public static final int WIFI_VALUE
WIFI = 2;- See Also:
- Constant Field Values
-
CELL_UNKNOWN_VALUE
public static final int CELL_UNKNOWN_VALUE
CELL_UNKNOWN = 3;- See Also:
- Constant Field Values
-
CELL_2G_VALUE
public static final int CELL_2G_VALUE
CELL_2G = 4;- See Also:
- Constant Field Values
-
CELL_3G_VALUE
public static final int CELL_3G_VALUE
CELL_3G = 5;- See Also:
- Constant Field Values
-
CELL_4G_VALUE
public static final int CELL_4G_VALUE
CELL_4G = 6;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static OpenRtb.ConnectionType[] 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.ConnectionType c : OpenRtb.ConnectionType.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.ConnectionType 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.ConnectionType 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.ConnectionType 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.ConnectionType> 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.ConnectionType 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
-
-