public static enum GeoThrift._Fields extends Enum<GeoThrift._Fields> implements TFieldIdEnum
| Enum Constant and Description |
|---|
CITY
City using United Nations Code for Trade and Transport Locations (http://www.unece.org/cefact/locode/ser vice/location.htm).
|
COUNTRY
Country using ISO-3166-1 Alpha-3.
|
LAT
Latitude from -90 to 90.
|
LON
Longitude from -180 to 180.
|
METRO
Pass the metro code (seehttp://code.google.com/apis/adwords/docs/appendix/metrocodes.html).
|
REGION
Region using ISO 3166-2.
|
REGIONFIPS104
Region of a country using FIPS 10-4 notation (alternative to ISO 3166-2).
|
TYPE
Indicate the source of the geo data (GPS, IP address, user provided).
|
ZIP
Zip/postal code.
|
| Modifier and Type | Method and Description |
|---|---|
static GeoThrift._Fields |
findByName(String name)
Find the _Fields constant that matches name, or null if its not found.
|
static GeoThrift._Fields |
findByThriftId(int fieldId)
Find the _Fields constant that matches fieldId, or null if its not found.
|
static GeoThrift._Fields |
findByThriftIdOrThrow(int fieldId)
Find the _Fields constant that matches fieldId, throwing an exception
if it is not found.
|
String |
getFieldName() |
short |
getThriftFieldId() |
static GeoThrift._Fields |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GeoThrift._Fields[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GeoThrift._Fields LAT
public static final GeoThrift._Fields LON
public static final GeoThrift._Fields COUNTRY
public static final GeoThrift._Fields REGION
public static final GeoThrift._Fields REGIONFIPS104
public static final GeoThrift._Fields METRO
public static final GeoThrift._Fields CITY
public static final GeoThrift._Fields ZIP
public static final GeoThrift._Fields TYPE
public static GeoThrift._Fields[] values()
for (GeoThrift._Fields c : GeoThrift._Fields.values()) System.out.println(c);
public static GeoThrift._Fields valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static GeoThrift._Fields findByThriftId(int fieldId)
public static GeoThrift._Fields findByThriftIdOrThrow(int fieldId)
public static GeoThrift._Fields findByName(String name)
public short getThriftFieldId()
getThriftFieldId in interface TFieldIdEnumpublic String getFieldName()
getFieldName in interface TFieldIdEnumCopyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.