@Generated(value="Autogenerated by Thrift Compiler (0.9.3)", date="2016-12-21") public class GeoThrift extends Object implements TBase<GeoThrift,GeoThrift._Fields>, Serializable, Cloneable, Comparable<GeoThrift>
| Modifier and Type | Class and Description |
|---|---|
static class |
GeoThrift._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| Modifier and Type | Field and Description |
|---|---|
String |
city
City using United Nations Code for Trade and Transport Locations (http://www.unece.org/cefact/locode/ser vice/location.htm).
|
String |
country
Country using ISO-3166-1 Alpha-3.
|
double |
lat
Latitude from -90 to 90.
|
double |
lon
Longitude from -180 to 180.
|
static Map<GeoThrift._Fields,FieldMetaData> |
metaDataMap |
String |
metro
Pass the metro code (seehttp://code.google.com/apis/adwords/docs/appendix/metrocodes.html).
|
String |
region
Region using ISO 3166-2.
|
String |
regionfips104
Region of a country using FIPS 10-4 notation (alternative to ISO 3166-2).
|
short |
type
Indicate the source of the geo data (GPS, IP address, user provided).
|
String |
zip
Zip/postal code.
|
| Constructor and Description |
|---|
GeoThrift() |
GeoThrift(GeoThrift other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
compareTo(GeoThrift other) |
GeoThrift |
deepCopy() |
boolean |
equals(GeoThrift that) |
boolean |
equals(Object that) |
GeoThrift._Fields |
fieldForId(int fieldId) |
String |
getCity()
City using United Nations Code for Trade and Transport Locations (http://www.unece.org/cefact/locode/ser vice/location.htm).
|
String |
getCountry()
Country using ISO-3166-1 Alpha-3.
|
Object |
getFieldValue(GeoThrift._Fields field) |
double |
getLat()
Latitude from -90 to 90.
|
double |
getLon()
Longitude from -180 to 180.
|
String |
getMetro()
Pass the metro code (seehttp://code.google.com/apis/adwords/docs/appendix/metrocodes.html).
|
String |
getRegion()
Region using ISO 3166-2.
|
String |
getRegionfips104()
Region of a country using FIPS 10-4 notation (alternative to ISO 3166-2).
|
short |
getType()
Indicate the source of the geo data (GPS, IP address, user provided).
|
String |
getZip()
Zip/postal code.
|
int |
hashCode() |
boolean |
isSet(GeoThrift._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetCity()
Returns true if field city is set (has been assigned a value) and false otherwise
|
boolean |
isSetCountry()
Returns true if field country is set (has been assigned a value) and false otherwise
|
boolean |
isSetLat()
Returns true if field lat is set (has been assigned a value) and false otherwise
|
boolean |
isSetLon()
Returns true if field lon is set (has been assigned a value) and false otherwise
|
boolean |
isSetMetro()
Returns true if field metro is set (has been assigned a value) and false otherwise
|
boolean |
isSetRegion()
Returns true if field region is set (has been assigned a value) and false otherwise
|
boolean |
isSetRegionfips104()
Returns true if field regionfips104 is set (has been assigned a value) and false otherwise
|
boolean |
isSetType()
Returns true if field type is set (has been assigned a value) and false otherwise
|
boolean |
isSetZip()
Returns true if field zip is set (has been assigned a value) and false otherwise
|
void |
read(TProtocol iprot) |
GeoThrift |
setCity(String city)
City using United Nations Code for Trade and Transport Locations (http://www.unece.org/cefact/locode/ser vice/location.htm).
|
void |
setCityIsSet(boolean value) |
GeoThrift |
setCountry(String country)
Country using ISO-3166-1 Alpha-3.
|
void |
setCountryIsSet(boolean value) |
void |
setFieldValue(GeoThrift._Fields field,
Object value) |
GeoThrift |
setLat(double lat)
Latitude from -90 to 90.
|
void |
setLatIsSet(boolean value) |
GeoThrift |
setLon(double lon)
Longitude from -180 to 180.
|
void |
setLonIsSet(boolean value) |
GeoThrift |
setMetro(String metro)
Pass the metro code (seehttp://code.google.com/apis/adwords/docs/appendix/metrocodes.html).
|
void |
setMetroIsSet(boolean value) |
GeoThrift |
setRegion(String region)
Region using ISO 3166-2.
|
GeoThrift |
setRegionfips104(String regionfips104)
Region of a country using FIPS 10-4 notation (alternative to ISO 3166-2).
|
void |
setRegionfips104IsSet(boolean value) |
void |
setRegionIsSet(boolean value) |
GeoThrift |
setType(short type)
Indicate the source of the geo data (GPS, IP address, user provided).
|
void |
setTypeIsSet(boolean value) |
GeoThrift |
setZip(String zip)
Zip/postal code.
|
void |
setZipIsSet(boolean value) |
String |
toString() |
void |
unsetCity() |
void |
unsetCountry() |
void |
unsetLat() |
void |
unsetLon() |
void |
unsetMetro() |
void |
unsetRegion() |
void |
unsetRegionfips104() |
void |
unsetType() |
void |
unsetZip() |
void |
validate() |
void |
write(TProtocol oprot) |
public double lat
public double lon
public String country
public String region
public String regionfips104
public String metro
public String city
public String zip
public short type
public static final Map<GeoThrift._Fields,FieldMetaData> metaDataMap
public GeoThrift()
public GeoThrift(GeoThrift other)
public GeoThrift deepCopy()
deepCopy in interface TBase<GeoThrift,GeoThrift._Fields>public void clear()
clear in interface TBase<GeoThrift,GeoThrift._Fields>public double getLat()
public GeoThrift setLat(double lat)
public void unsetLat()
public boolean isSetLat()
public void setLatIsSet(boolean value)
public double getLon()
public GeoThrift setLon(double lon)
public void unsetLon()
public boolean isSetLon()
public void setLonIsSet(boolean value)
public String getCountry()
public void unsetCountry()
public boolean isSetCountry()
public void setCountryIsSet(boolean value)
public String getRegion()
public void unsetRegion()
public boolean isSetRegion()
public void setRegionIsSet(boolean value)
public String getRegionfips104()
public GeoThrift setRegionfips104(String regionfips104)
public void unsetRegionfips104()
public boolean isSetRegionfips104()
public void setRegionfips104IsSet(boolean value)
public String getMetro()
public GeoThrift setMetro(String metro)
public void unsetMetro()
public boolean isSetMetro()
public void setMetroIsSet(boolean value)
public String getCity()
public GeoThrift setCity(String city)
public void unsetCity()
public boolean isSetCity()
public void setCityIsSet(boolean value)
public String getZip()
public void unsetZip()
public boolean isSetZip()
public void setZipIsSet(boolean value)
public short getType()
public GeoThrift setType(short type)
public void unsetType()
public boolean isSetType()
public void setTypeIsSet(boolean value)
public void setFieldValue(GeoThrift._Fields field, Object value)
setFieldValue in interface TBase<GeoThrift,GeoThrift._Fields>public Object getFieldValue(GeoThrift._Fields field)
getFieldValue in interface TBase<GeoThrift,GeoThrift._Fields>public boolean isSet(GeoThrift._Fields field)
isSet in interface TBase<GeoThrift,GeoThrift._Fields>public boolean equals(GeoThrift that)
public int compareTo(GeoThrift other)
compareTo in interface Comparable<GeoThrift>public GeoThrift._Fields fieldForId(int fieldId)
fieldForId in interface TBase<GeoThrift,GeoThrift._Fields>public void read(TProtocol iprot) throws TException
read in interface TBase<GeoThrift,GeoThrift._Fields>TExceptionpublic void write(TProtocol oprot) throws TException
write in interface TBase<GeoThrift,GeoThrift._Fields>TExceptionpublic void validate()
throws TException
TExceptionCopyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.