public static final class Openrtb.BidRequest.Geo extends com.google.protobuf.GeneratedMessage implements Openrtb.BidRequest.GeoOrBuilder
openrtb.BidRequest.Geo
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
Openrtb.BidRequest.Geo.Builder
Protobuf type
openrtb.BidRequest.Geo |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>| 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 |
|---|---|
String |
getCity()
optional string city = 7; |
com.google.protobuf.ByteString |
getCityBytes()
optional string city = 7; |
String |
getCountry()
optional string country = 3; |
com.google.protobuf.ByteString |
getCountryBytes()
optional string country = 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()
optional double lat = 1; |
double |
getLon()
optional double lon = 2; |
String |
getMetro()
optional string metro = 6; |
com.google.protobuf.ByteString |
getMetroBytes()
optional string metro = 6; |
com.google.protobuf.Parser<Openrtb.BidRequest.Geo> |
getParserForType() |
String |
getRegion()
optional string region = 4; |
com.google.protobuf.ByteString |
getRegionBytes()
optional string region = 4; |
String |
getRegionfips104()
optional string regionfips104 = 5; |
com.google.protobuf.ByteString |
getRegionfips104Bytes()
optional string regionfips104 = 5; |
int |
getSerializedSize() |
OpenrtbCommon.Enums.BidRequest.Geo.LocationType |
getType()
optional .openrtb.Enums.BidRequest.Geo.LocationType type = 9; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
getUtcoffset()
optional int32 utcoffset = 10; |
String |
getZip()
optional string zip = 8; |
com.google.protobuf.ByteString |
getZipBytes()
optional string zip = 8; |
boolean |
hasCity()
optional string city = 7; |
boolean |
hasCountry()
optional string country = 3; |
boolean |
hasExt()
optional .openrtb.GeoExtensions ext = 1000; |
boolean |
hasLat()
optional double lat = 1; |
boolean |
hasLon()
optional double lon = 2; |
boolean |
hasMetro()
optional string metro = 6; |
boolean |
hasRegion()
optional string region = 4; |
boolean |
hasRegionfips104()
optional string regionfips104 = 5; |
boolean |
hasType()
optional .openrtb.Enums.BidRequest.Geo.LocationType type = 9; |
boolean |
hasUtcoffset()
optional int32 utcoffset = 10; |
boolean |
hasZip()
optional string zip = 8; |
protected com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, writeReplace, writeString, writeStringNoTagequals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, 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.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic boolean hasLat()
optional double lat = 1;
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).
hasLat in interface Openrtb.BidRequest.GeoOrBuilderpublic double getLat()
optional double lat = 1;
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).
getLat in interface Openrtb.BidRequest.GeoOrBuilderpublic boolean hasLon()
optional double lon = 2;
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).
hasLon in interface Openrtb.BidRequest.GeoOrBuilderpublic double getLon()
optional double lon = 2;
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).
getLon in interface Openrtb.BidRequest.GeoOrBuilderpublic boolean hasCountry()
optional string country = 3;
Country using ISO-3166-1 Alpha-3.
hasCountry in interface Openrtb.BidRequest.GeoOrBuilderpublic String getCountry()
optional string country = 3;
Country using ISO-3166-1 Alpha-3.
getCountry in interface Openrtb.BidRequest.GeoOrBuilderpublic com.google.protobuf.ByteString getCountryBytes()
optional string country = 3;
Country using ISO-3166-1 Alpha-3.
getCountryBytes in interface Openrtb.BidRequest.GeoOrBuilderpublic boolean hasRegion()
optional string region = 4;
Region using ISO 3166-2
hasRegion in interface Openrtb.BidRequest.GeoOrBuilderpublic String getRegion()
optional string region = 4;
Region using ISO 3166-2
getRegion in interface Openrtb.BidRequest.GeoOrBuilderpublic com.google.protobuf.ByteString getRegionBytes()
optional string region = 4;
Region using ISO 3166-2
getRegionBytes in interface Openrtb.BidRequest.GeoOrBuilderpublic boolean hasRegionfips104()
optional string regionfips104 = 5;
Region of a country using fips 10-4 notation (alternative to ISO 3166-2).
hasRegionfips104 in interface Openrtb.BidRequest.GeoOrBuilderpublic String getRegionfips104()
optional string regionfips104 = 5;
Region of a country using fips 10-4 notation (alternative to ISO 3166-2).
getRegionfips104 in interface Openrtb.BidRequest.GeoOrBuilderpublic com.google.protobuf.ByteString getRegionfips104Bytes()
optional string regionfips104 = 5;
Region of a country using fips 10-4 notation (alternative to ISO 3166-2).
getRegionfips104Bytes in interface Openrtb.BidRequest.GeoOrBuilderpublic boolean hasMetro()
optional string metro = 6;
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.
hasMetro in interface Openrtb.BidRequest.GeoOrBuilderpublic String getMetro()
optional string metro = 6;
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.
getMetro in interface Openrtb.BidRequest.GeoOrBuilderpublic com.google.protobuf.ByteString getMetroBytes()
optional string metro = 6;
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.
getMetroBytes in interface Openrtb.BidRequest.GeoOrBuilderpublic boolean hasCity()
optional string city = 7;
City using United Nations Code for Trade and Transport Locations (http://www.unece.org/cefact/locode/service/location.htm).
hasCity in interface Openrtb.BidRequest.GeoOrBuilderpublic String getCity()
optional string city = 7;
City using United Nations Code for Trade and Transport Locations (http://www.unece.org/cefact/locode/service/location.htm).
getCity in interface Openrtb.BidRequest.GeoOrBuilderpublic com.google.protobuf.ByteString getCityBytes()
optional string city = 7;
City using United Nations Code for Trade and Transport Locations (http://www.unece.org/cefact/locode/service/location.htm).
getCityBytes in interface Openrtb.BidRequest.GeoOrBuilderpublic boolean hasZip()
optional string zip = 8;
Zip/postal code.
hasZip in interface Openrtb.BidRequest.GeoOrBuilderpublic String getZip()
optional string zip = 8;
Zip/postal code.
getZip in interface Openrtb.BidRequest.GeoOrBuilderpublic com.google.protobuf.ByteString getZipBytes()
optional string zip = 8;
Zip/postal code.
getZipBytes in interface Openrtb.BidRequest.GeoOrBuilderpublic boolean hasType()
optional .openrtb.Enums.BidRequest.Geo.LocationType type = 9;
Indicate the source of the geo data (GPS, IP address, user provided). Type should be provided when lat/lon is provided.
hasType in interface Openrtb.BidRequest.GeoOrBuilderpublic OpenrtbCommon.Enums.BidRequest.Geo.LocationType getType()
optional .openrtb.Enums.BidRequest.Geo.LocationType type = 9;
Indicate the source of the geo data (GPS, IP address, user provided). Type should be provided when lat/lon is provided.
getType in interface Openrtb.BidRequest.GeoOrBuilderpublic boolean hasUtcoffset()
optional int32 utcoffset = 10;
Local time as the number +/- of minutes from UTC.
hasUtcoffset in interface Openrtb.BidRequest.GeoOrBuilderpublic int getUtcoffset()
optional int32 utcoffset = 10;
Local time as the number +/- of minutes from UTC.
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.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic 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.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessagepublic 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.GeneratedMessagepublic Openrtb.BidRequest.Geo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2017. All rights reserved.