public static final class Openrtb.BidRequest.Geo extends com.google.protobuf.GeneratedMessageV3 implements Openrtb.BidRequest.GeoOrBuilder
OpenRTB 3.3.11: describes the current geographic location of the Device (e.g., based on IP address or GPS), or the home geo of the User (e.g., based on registration data). If both the Device and User objects contain Geo objects with different information, it’s up to the bidder to determine which Geo information to use.Protobuf type
openrtb.BidRequest.Geo| Modifier and Type | Class and Description |
|---|---|
static class |
Openrtb.BidRequest.Geo.Builder
OpenRTB 3.3.11: describes the current geographic location of the Device (e.g., based on IP
address or GPS), or the home geo of the User (e.g., based on registration data).
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CITY_FIELD_NUMBER |
static int |
COUNTRY_FIELD_NUMBER |
static int |
EXT_FIELD_NUMBER |
static int |
LAT_FIELD_NUMBER |
static int |
LON_FIELD_NUMBER |
static int |
METRO_FIELD_NUMBER |
static com.google.protobuf.Parser<Openrtb.BidRequest.Geo> |
PARSER
Deprecated.
|
static int |
REGION_FIELD_NUMBER |
static int |
REGIONFIPS104_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
static int |
UTCOFFSET_FIELD_NUMBER |
static int |
ZIP_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCity()
City using United Nations Code for Trade and Transport Locations
(http://www.unece.org/cefact/locode/service/location.htm).
|
com.google.protobuf.ByteString |
getCityBytes()
City using United Nations Code for Trade and Transport Locations
(http://www.unece.org/cefact/locode/service/location.htm).
|
String |
getCountry()
Country using ISO-3166-1 Alpha-3.
|
com.google.protobuf.ByteString |
getCountryBytes()
Country using ISO-3166-1 Alpha-3.
|
static Openrtb.BidRequest.Geo |
getDefaultInstance() |
Openrtb.BidRequest.Geo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Extension.GeoExtensions |
getExt()
optional .openrtb.GeoExtensions ext = 1000; |
Extension.GeoExtensionsOrBuilder |
getExtOrBuilder()
optional .openrtb.GeoExtensions ext = 1000; |
double |
getLat()
Latitude from -90 to 90.
|
double |
getLon()
Longitude from -180 to 180.
|
String |
getMetro()
Pass the metro code (see http://code.google.com/apis/adwords/docs/appendix/metrocodes.html).
|
com.google.protobuf.ByteString |
getMetroBytes()
Pass the metro code (see http://code.google.com/apis/adwords/docs/appendix/metrocodes.html).
|
com.google.protobuf.Parser<Openrtb.BidRequest.Geo> |
getParserForType() |
String |
getRegion()
Region using ISO 3166-2
|
com.google.protobuf.ByteString |
getRegionBytes()
Region using ISO 3166-2
|
String |
getRegionfips104()
Region of a country using fips 10-4 notation (alternative to ISO 3166-2).
|
com.google.protobuf.ByteString |
getRegionfips104Bytes()
Region of a country using fips 10-4 notation (alternative to ISO 3166-2).
|
int |
getSerializedSize() |
OpenrtbCommon.Enums.BidRequest.Geo.LocationType |
getType()
Indicate the source of the geo data (GPS, IP address, user provided).
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
getUtcoffset()
Local time as the number +/- of minutes from UTC.
|
String |
getZip()
Zip/postal code.
|
com.google.protobuf.ByteString |
getZipBytes()
Zip/postal code.
|
boolean |
hasCity()
City using United Nations Code for Trade and Transport Locations
(http://www.unece.org/cefact/locode/service/location.htm).
|
boolean |
hasCountry()
Country using ISO-3166-1 Alpha-3.
|
boolean |
hasExt()
optional .openrtb.GeoExtensions ext = 1000; |
int |
hashCode() |
boolean |
hasLat()
Latitude from -90 to 90.
|
boolean |
hasLon()
Longitude from -180 to 180.
|
boolean |
hasMetro()
Pass the metro code (see http://code.google.com/apis/adwords/docs/appendix/metrocodes.html).
|
boolean |
hasRegion()
Region using ISO 3166-2
|
boolean |
hasRegionfips104()
Region of a country using fips 10-4 notation (alternative to ISO 3166-2).
|
boolean |
hasType()
Indicate the source of the geo data (GPS, IP address, user provided).
|
boolean |
hasUtcoffset()
Local time as the number +/- of minutes from UTC.
|
boolean |
hasZip()
Zip/postal code.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Openrtb.BidRequest.Geo.Builder |
newBuilder() |
static Openrtb.BidRequest.Geo.Builder |
newBuilder(Openrtb.BidRequest.Geo prototype) |
Openrtb.BidRequest.Geo.Builder |
newBuilderForType() |
protected Openrtb.BidRequest.Geo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Openrtb.BidRequest.Geo |
parseDelimitedFrom(InputStream input) |
static Openrtb.BidRequest.Geo |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openrtb.BidRequest.Geo |
parseFrom(byte[] data) |
static Openrtb.BidRequest.Geo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openrtb.BidRequest.Geo |
parseFrom(com.google.protobuf.ByteString data) |
static Openrtb.BidRequest.Geo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openrtb.BidRequest.Geo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Openrtb.BidRequest.Geo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Openrtb.BidRequest.Geo |
parseFrom(InputStream input) |
static Openrtb.BidRequest.Geo |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Openrtb.BidRequest.Geo> |
parser() |
Openrtb.BidRequest.Geo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int LAT_FIELD_NUMBER
public static final int LON_FIELD_NUMBER
public static final int COUNTRY_FIELD_NUMBER
public static final int REGION_FIELD_NUMBER
public static final int REGIONFIPS104_FIELD_NUMBER
public static final int METRO_FIELD_NUMBER
public static final int CITY_FIELD_NUMBER
public static final int ZIP_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int UTCOFFSET_FIELD_NUMBER
public static final int EXT_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<Openrtb.BidRequest.Geo> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasLat()
Latitude from -90 to 90. South is negative. This should only be passed if known to be accurate (For example, not the centroid of a postal code).
optional double lat = 1;hasLat in interface Openrtb.BidRequest.GeoOrBuilderpublic double getLat()
Latitude from -90 to 90. South is negative. This should only be passed if known to be accurate (For example, not the centroid of a postal code).
optional double lat = 1;getLat in interface Openrtb.BidRequest.GeoOrBuilderpublic boolean hasLon()
Longitude from -180 to 180. West is negative. This should only be passed if known to be accurate (For example, not the centroid of a postal code).
optional double lon = 2;hasLon in interface Openrtb.BidRequest.GeoOrBuilderpublic double getLon()
Longitude from -180 to 180. West is negative. This should only be passed if known to be accurate (For example, not the centroid of a postal code).
optional double lon = 2;getLon in interface Openrtb.BidRequest.GeoOrBuilderpublic boolean hasCountry()
Country using ISO-3166-1 Alpha-3.
optional string country = 3;hasCountry in interface Openrtb.BidRequest.GeoOrBuilderpublic String getCountry()
Country using ISO-3166-1 Alpha-3.
optional string country = 3;getCountry in interface Openrtb.BidRequest.GeoOrBuilderpublic com.google.protobuf.ByteString getCountryBytes()
Country using ISO-3166-1 Alpha-3.
optional string country = 3;getCountryBytes in interface Openrtb.BidRequest.GeoOrBuilderpublic boolean hasRegion()
Region using ISO 3166-2
optional string region = 4;hasRegion in interface Openrtb.BidRequest.GeoOrBuilderpublic String getRegion()
Region using ISO 3166-2
optional string region = 4;getRegion in interface Openrtb.BidRequest.GeoOrBuilderpublic com.google.protobuf.ByteString getRegionBytes()
Region using ISO 3166-2
optional string region = 4;getRegionBytes in interface Openrtb.BidRequest.GeoOrBuilderpublic boolean hasRegionfips104()
Region of a country using fips 10-4 notation (alternative to ISO 3166-2).
optional string regionfips104 = 5;hasRegionfips104 in interface Openrtb.BidRequest.GeoOrBuilderpublic String getRegionfips104()
Region of a country using fips 10-4 notation (alternative to ISO 3166-2).
optional string regionfips104 = 5;getRegionfips104 in interface Openrtb.BidRequest.GeoOrBuilderpublic com.google.protobuf.ByteString getRegionfips104Bytes()
Region of a country using fips 10-4 notation (alternative to ISO 3166-2).
optional string regionfips104 = 5;getRegionfips104Bytes in interface Openrtb.BidRequest.GeoOrBuilderpublic boolean hasMetro()
Pass the metro code (see http://code.google.com/apis/adwords/docs/appendix/metrocodes.html). Metro codes are similar to but not exactly the same as Nielsen DMAs.
optional string metro = 6;hasMetro in interface Openrtb.BidRequest.GeoOrBuilderpublic String getMetro()
Pass the metro code (see http://code.google.com/apis/adwords/docs/appendix/metrocodes.html). Metro codes are similar to but not exactly the same as Nielsen DMAs.
optional string metro = 6;getMetro in interface Openrtb.BidRequest.GeoOrBuilderpublic com.google.protobuf.ByteString getMetroBytes()
Pass the metro code (see http://code.google.com/apis/adwords/docs/appendix/metrocodes.html). Metro codes are similar to but not exactly the same as Nielsen DMAs.
optional string metro = 6;getMetroBytes in interface Openrtb.BidRequest.GeoOrBuilderpublic boolean hasCity()
City using United Nations Code for Trade and Transport Locations (http://www.unece.org/cefact/locode/service/location.htm).
optional string city = 7;hasCity in interface Openrtb.BidRequest.GeoOrBuilderpublic String getCity()
City using United Nations Code for Trade and Transport Locations (http://www.unece.org/cefact/locode/service/location.htm).
optional string city = 7;getCity in interface Openrtb.BidRequest.GeoOrBuilderpublic com.google.protobuf.ByteString getCityBytes()
City using United Nations Code for Trade and Transport Locations (http://www.unece.org/cefact/locode/service/location.htm).
optional string city = 7;getCityBytes in interface Openrtb.BidRequest.GeoOrBuilderpublic boolean hasZip()
Zip/postal code.
optional string zip = 8;hasZip in interface Openrtb.BidRequest.GeoOrBuilderpublic String getZip()
Zip/postal code.
optional string zip = 8;getZip in interface Openrtb.BidRequest.GeoOrBuilderpublic com.google.protobuf.ByteString getZipBytes()
Zip/postal code.
optional string zip = 8;getZipBytes in interface Openrtb.BidRequest.GeoOrBuilderpublic boolean hasType()
Indicate the source of the geo data (GPS, IP address, user provided). Type should be provided when lat/lon is provided.
optional .openrtb.Enums.BidRequest.Geo.LocationType type = 9;hasType in interface Openrtb.BidRequest.GeoOrBuilderpublic OpenrtbCommon.Enums.BidRequest.Geo.LocationType getType()
Indicate the source of the geo data (GPS, IP address, user provided). Type should be provided when lat/lon is provided.
optional .openrtb.Enums.BidRequest.Geo.LocationType type = 9;getType in interface Openrtb.BidRequest.GeoOrBuilderpublic boolean hasUtcoffset()
Local time as the number +/- of minutes from UTC.
optional int32 utcoffset = 10;hasUtcoffset in interface Openrtb.BidRequest.GeoOrBuilderpublic int getUtcoffset()
Local time as the number +/- of minutes from UTC.
optional int32 utcoffset = 10;getUtcoffset in interface Openrtb.BidRequest.GeoOrBuilderpublic boolean hasExt()
optional .openrtb.GeoExtensions ext = 1000;hasExt in interface Openrtb.BidRequest.GeoOrBuilderpublic Extension.GeoExtensions getExt()
optional .openrtb.GeoExtensions ext = 1000;getExt in interface Openrtb.BidRequest.GeoOrBuilderpublic Extension.GeoExtensionsOrBuilder getExtOrBuilder()
optional .openrtb.GeoExtensions ext = 1000;getExtOrBuilder in interface Openrtb.BidRequest.GeoOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Openrtb.BidRequest.Geo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openrtb.BidRequest.Geo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openrtb.BidRequest.Geo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openrtb.BidRequest.Geo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Openrtb.BidRequest.Geo parseFrom(InputStream input) throws IOException
IOExceptionpublic static Openrtb.BidRequest.Geo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Openrtb.BidRequest.Geo parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Openrtb.BidRequest.Geo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Openrtb.BidRequest.Geo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Openrtb.BidRequest.Geo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Openrtb.BidRequest.Geo.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Openrtb.BidRequest.Geo.Builder newBuilder()
public static Openrtb.BidRequest.Geo.Builder newBuilder(Openrtb.BidRequest.Geo prototype)
public Openrtb.BidRequest.Geo.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Openrtb.BidRequest.Geo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Openrtb.BidRequest.Geo getDefaultInstance()
public static com.google.protobuf.Parser<Openrtb.BidRequest.Geo> parser()
public com.google.protobuf.Parser<Openrtb.BidRequest.Geo> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Openrtb.BidRequest.Geo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2017. All rights reserved.