public static class Geo.Protobuf extends Object implements Geo<OpenRtbProtobuf.Geo>
Geo.Avro, Geo.AvroBuilder, Geo.Builder<T>, Geo.Comparator, Geo.NativeImpl, Geo.Protobuf, Geo.ProtobufBuilder, Geo.Thrift, Geo.ThriftBuilder| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
Protobuf(byte[] binaryEncoding)
Constructs a new Protobuf instance based on a message's binary encoding.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
static Geo<OpenRtbProtobuf.Geo> |
from(byte[] binaryEncoding)
Decodes a Protobuf message.
|
OpenRtbProtobuf.Geo |
get()
Returns underlying object.
|
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.
|
float |
getLat()
Latitude from -90 to 90.
|
float |
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).
|
int |
getType()
Indicate the source of the geo data (GPS, IP address, user provided).
|
String |
getZip()
Zip/postal code.
|
int |
hashCode() |
boolean |
isDefaultCity() |
boolean |
isDefaultCountry() |
boolean |
isDefaultLat() |
boolean |
isDefaultLon() |
boolean |
isDefaultMetro() |
boolean |
isDefaultRegion() |
boolean |
isDefaultRegionfips104() |
boolean |
isDefaultType() |
boolean |
isDefaultZip() |
Geo.Builder<OpenRtbProtobuf.Geo> |
newBuilder()
Creates a new builder based on this object.
|
String |
toString() |
avro, avro, compareTo, getAvroClass, getAvroSchema, getComparator, getProtobufClass, getProtobufDescriptor, getProtobufProtocolClass, getProtobufProtocolDescriptor, getThriftClass, getThriftMetadataMap, isDefault, nativeImpl, newAvroBuilder, newAvroBuilder, newAvroBuilder, newAvroBuilder, newNativeImplBuilder, newNativeImplBuilder, newProtobufBuilder, newProtobufBuilder, newProtobufBuilder, newThriftBuilder, newThriftBuilder, newThriftBuilder, protobuf, protobuf, thrift, thriftpublic static final long serialVersionUID
public Protobuf(byte[] binaryEncoding)
public OpenRtbProtobuf.Geo get()
Geoget in interface Supplier<OpenRtbProtobuf.Geo>get in interface Geo<OpenRtbProtobuf.Geo>public Geo.Builder<OpenRtbProtobuf.Geo> newBuilder()
GeonewBuilder in interface Geo<OpenRtbProtobuf.Geo>public float getLat()
GeogetLat in interface Geo<OpenRtbProtobuf.Geo>public boolean isDefaultLat()
isDefaultLat in interface Geo<OpenRtbProtobuf.Geo>public float getLon()
GeogetLon in interface Geo<OpenRtbProtobuf.Geo>public boolean isDefaultLon()
isDefaultLon in interface Geo<OpenRtbProtobuf.Geo>public String getCountry()
GeogetCountry in interface Geo<OpenRtbProtobuf.Geo>public boolean isDefaultCountry()
isDefaultCountry in interface Geo<OpenRtbProtobuf.Geo>public String getRegion()
GeogetRegion in interface Geo<OpenRtbProtobuf.Geo>public boolean isDefaultRegion()
isDefaultRegion in interface Geo<OpenRtbProtobuf.Geo>public String getRegionfips104()
GeogetRegionfips104 in interface Geo<OpenRtbProtobuf.Geo>public boolean isDefaultRegionfips104()
isDefaultRegionfips104 in interface Geo<OpenRtbProtobuf.Geo>public String getMetro()
GeogetMetro in interface Geo<OpenRtbProtobuf.Geo>public boolean isDefaultMetro()
isDefaultMetro in interface Geo<OpenRtbProtobuf.Geo>public String getCity()
GeogetCity in interface Geo<OpenRtbProtobuf.Geo>public boolean isDefaultCity()
isDefaultCity in interface Geo<OpenRtbProtobuf.Geo>public String getZip()
GeogetZip in interface Geo<OpenRtbProtobuf.Geo>public boolean isDefaultZip()
isDefaultZip in interface Geo<OpenRtbProtobuf.Geo>public int getType()
GeogetType in interface Geo<OpenRtbProtobuf.Geo>public boolean isDefaultType()
isDefaultType in interface Geo<OpenRtbProtobuf.Geo>public static Geo<OpenRtbProtobuf.Geo> from(byte[] binaryEncoding) throws IOException
IOExceptionCopyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.