public interface Geo<T> extends Supplier<T>, Comparable<Geo<?>>, Serializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
Geo.Avro |
static class |
Geo.AvroBuilder |
static interface |
Geo.Builder<T> |
static class |
Geo.Comparator |
static class |
Geo.NativeImpl |
static class |
Geo.Protobuf |
static class |
Geo.ProtobufBuilder |
static class |
Geo.Thrift |
static class |
Geo.ThriftBuilder |
| Modifier and Type | Method and Description |
|---|---|
static Geo.Avro |
avro(Geo<?> instance)
Returns a wrapped Avro record based on an instance of Geo.
|
static Geo.Avro |
avro(GeoAvro wrapped)
Wraps an existing Avro record.
|
default int |
compareTo(Geo<?> other) |
T |
get()
Returns underlying object.
|
static Class<GeoAvro> |
getAvroClass()
Returns Avro record class.
|
static Schema |
getAvroSchema()
Returns Avro record schema.
|
String |
getCity()
City using United Nations Code for Trade and Transport Locations (http://www.unece.org/cefact/locode/ser vice/location.htm).
|
static Comparator<Geo<?>> |
getComparator()
Returns comparator instance for Geo objects.
|
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).
|
static Class<OpenRtbProtobuf.Geo> |
getProtobufClass()
Returns Protobuf class for this struct.
|
static com.google.protobuf.Descriptors.Descriptor |
getProtobufDescriptor()
Returns Protobuf descriptor for this struct.
|
static Class<AdExchangeProtobuf> |
getProtobufProtocolClass()
Returns Protobuf protocol class for this struct.
|
static com.google.protobuf.Descriptors.FileDescriptor |
getProtobufProtocolDescriptor()
Returns Protobuf protocol descriptor for this struct.
|
String |
getRegion()
Region using ISO 3166-2.
|
String |
getRegionfips104()
Region of a country using FIPS 10-4 notation (alternative to ISO 3166-2).
|
static Class<GeoThrift> |
getThriftClass()
Returns Thrift class for this struct.
|
static Map<GeoThrift._Fields,FieldMetaData> |
getThriftMetadataMap()
Returns Thrift metadata map for this struct.
|
int |
getType()
Indicate the source of the geo data (GPS, IP address, user provided).
|
String |
getZip()
Zip/postal code.
|
default boolean |
isDefault()
True if all fields are set to default values.
|
boolean |
isDefaultCity() |
boolean |
isDefaultCountry() |
boolean |
isDefaultLat() |
boolean |
isDefaultLon() |
boolean |
isDefaultMetro() |
boolean |
isDefaultRegion() |
boolean |
isDefaultRegionfips104() |
boolean |
isDefaultType() |
boolean |
isDefaultZip() |
static Geo.NativeImpl |
nativeImpl(Geo<?> instance)
Returns a POJO based on an instance of Geo.
|
static Geo.Builder<GeoAvro> |
newAvroBuilder()
Returns new Avro builder instance with default values.
|
static Geo.Builder<GeoAvro> |
newAvroBuilder(Geo<?> other)
Returns new Avro builder instance based on existing prototype Geo.
|
static Geo.Builder<GeoAvro> |
newAvroBuilder(GeoAvro.Builder other)
Returns new Avro builder instance based on existing prototype builder.
|
static Geo.Builder<GeoAvro> |
newAvroBuilder(GeoAvro other)
Returns new Avro builder instance based on existing prototype.
|
Geo.Builder<T> |
newBuilder()
Creates a new builder based on this object.
|
static Geo.Builder<Geo.NativeImpl> |
newNativeImplBuilder()
Returns a POJO builder instance with default values.
|
static Geo.Builder<Geo.NativeImpl> |
newNativeImplBuilder(Geo<?> other)
Returns a POJO builder instance based on existing prototype Geo.
|
static Geo.Builder<OpenRtbProtobuf.Geo> |
newProtobufBuilder()
Returns new Protobuf builder instance with default values.
|
static Geo.Builder<OpenRtbProtobuf.Geo> |
newProtobufBuilder(Geo<?> other)
Returns new Protobuf builder instance based on existing prototype Geo.
|
static Geo.Builder<OpenRtbProtobuf.Geo> |
newProtobufBuilder(OpenRtbProtobuf.Geo other)
Returns new Protobuf builder instance based on existing prototype.
|
static Geo.Builder<GeoThrift> |
newThriftBuilder()
Returns new Thrift builder instance with default values.
|
static Geo.Builder<GeoThrift> |
newThriftBuilder(Geo<?> other)
Returns new Thrift builder instance based on existing prototype Geo.
|
static Geo.Builder<GeoThrift> |
newThriftBuilder(GeoThrift other)
Returns new Thrift builder instance based on existing prototype.
|
static Geo.Protobuf |
protobuf(Geo<?> instance)
Returns a wrapped Protobuf message based on an instance of Geo.
|
static Geo.Protobuf |
protobuf(OpenRtbProtobuf.Geo wrapped)
Wraps an existing Protobuf message.
|
static Geo.Thrift |
thrift(Geo<?> instance)
Returns a wrapped Thrift struct based on an instance of Geo.
|
static Geo.Thrift |
thrift(GeoThrift instance)
Creates a new wrapped Thrift struct copied from an existing instance.
|
default boolean isDefault()
Geo.Builder<T> newBuilder()
float getLat()
boolean isDefaultLat()
float getLon()
boolean isDefaultLon()
String getCountry()
boolean isDefaultCountry()
String getRegion()
boolean isDefaultRegion()
String getRegionfips104()
boolean isDefaultRegionfips104()
String getMetro()
boolean isDefaultMetro()
String getCity()
boolean isDefaultCity()
String getZip()
boolean isDefaultZip()
int getType()
boolean isDefaultType()
static Comparator<Geo<?>> getComparator()
default int compareTo(Geo<?> other)
compareTo in interface Comparable<Geo<?>>static Geo.Builder<Geo.NativeImpl> newNativeImplBuilder()
static Geo.Builder<Geo.NativeImpl> newNativeImplBuilder(Geo<?> other)
static Geo.NativeImpl nativeImpl(Geo<?> instance)
static Geo.Builder<GeoAvro> newAvroBuilder()
static Geo.Builder<GeoAvro> newAvroBuilder(GeoAvro other)
static Geo.Builder<GeoAvro> newAvroBuilder(GeoAvro.Builder other)
static Geo.Builder<GeoAvro> newAvroBuilder(Geo<?> other)
static Geo.Avro avro(Geo<?> instance)
static Schema getAvroSchema()
static Geo.Builder<OpenRtbProtobuf.Geo> newProtobufBuilder()
static Geo.Builder<OpenRtbProtobuf.Geo> newProtobufBuilder(OpenRtbProtobuf.Geo other)
static Geo.Builder<OpenRtbProtobuf.Geo> newProtobufBuilder(Geo<?> other)
static Geo.Protobuf protobuf(Geo<?> instance)
static Geo.Protobuf protobuf(OpenRtbProtobuf.Geo wrapped)
static Class<OpenRtbProtobuf.Geo> getProtobufClass()
static Class<AdExchangeProtobuf> getProtobufProtocolClass()
static com.google.protobuf.Descriptors.Descriptor getProtobufDescriptor()
static com.google.protobuf.Descriptors.FileDescriptor getProtobufProtocolDescriptor()
static Geo.Builder<GeoThrift> newThriftBuilder()
static Geo.Builder<GeoThrift> newThriftBuilder(GeoThrift other)
static Geo.Builder<GeoThrift> newThriftBuilder(Geo<?> other)
static Geo.Thrift thrift(Geo<?> instance)
static Geo.Thrift thrift(GeoThrift instance)
static Map<GeoThrift._Fields,FieldMetaData> getThriftMetadataMap()
Copyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.