public static final class Openrtb.BidRequest.Geo.Builder extends com.google.protobuf.GeneratedMessage.Builder<Openrtb.BidRequest.Geo.Builder> 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 | Method and Description |
|---|---|
Openrtb.BidRequest.Geo |
build() |
Openrtb.BidRequest.Geo |
buildPartial() |
Openrtb.BidRequest.Geo.Builder |
clear() |
Openrtb.BidRequest.Geo.Builder |
clearCity()
optional string city = 7; |
Openrtb.BidRequest.Geo.Builder |
clearCountry()
optional string country = 3; |
Openrtb.BidRequest.Geo.Builder |
clearExt()
optional .openrtb.GeoExtensions ext = 1000; |
Openrtb.BidRequest.Geo.Builder |
clearLat()
optional double lat = 1; |
Openrtb.BidRequest.Geo.Builder |
clearLon()
optional double lon = 2; |
Openrtb.BidRequest.Geo.Builder |
clearMetro()
optional string metro = 6; |
Openrtb.BidRequest.Geo.Builder |
clearRegion()
optional string region = 4; |
Openrtb.BidRequest.Geo.Builder |
clearRegionfips104()
optional string regionfips104 = 5; |
Openrtb.BidRequest.Geo.Builder |
clearType()
optional .openrtb.Enums.BidRequest.Geo.LocationType type = 9; |
Openrtb.BidRequest.Geo.Builder |
clearUtcoffset()
optional int32 utcoffset = 10; |
Openrtb.BidRequest.Geo.Builder |
clearZip()
optional string zip = 8; |
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; |
Openrtb.BidRequest.Geo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Extension.GeoExtensions |
getExt()
optional .openrtb.GeoExtensions ext = 1000; |
Extension.GeoExtensions.Builder |
getExtBuilder()
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; |
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; |
OpenrtbCommon.Enums.BidRequest.Geo.LocationType |
getType()
optional .openrtb.Enums.BidRequest.Geo.LocationType type = 9; |
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() |
Openrtb.BidRequest.Geo.Builder |
mergeExt(Extension.GeoExtensions value)
optional .openrtb.GeoExtensions ext = 1000; |
Openrtb.BidRequest.Geo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Openrtb.BidRequest.Geo.Builder |
mergeFrom(com.google.protobuf.Message other) |
Openrtb.BidRequest.Geo.Builder |
mergeFrom(Openrtb.BidRequest.Geo other) |
Openrtb.BidRequest.Geo.Builder |
setCity(String value)
optional string city = 7; |
Openrtb.BidRequest.Geo.Builder |
setCityBytes(com.google.protobuf.ByteString value)
optional string city = 7; |
Openrtb.BidRequest.Geo.Builder |
setCountry(String value)
optional string country = 3; |
Openrtb.BidRequest.Geo.Builder |
setCountryBytes(com.google.protobuf.ByteString value)
optional string country = 3; |
Openrtb.BidRequest.Geo.Builder |
setExt(Extension.GeoExtensions.Builder builderForValue)
optional .openrtb.GeoExtensions ext = 1000; |
Openrtb.BidRequest.Geo.Builder |
setExt(Extension.GeoExtensions value)
optional .openrtb.GeoExtensions ext = 1000; |
Openrtb.BidRequest.Geo.Builder |
setLat(double value)
optional double lat = 1; |
Openrtb.BidRequest.Geo.Builder |
setLon(double value)
optional double lon = 2; |
Openrtb.BidRequest.Geo.Builder |
setMetro(String value)
optional string metro = 6; |
Openrtb.BidRequest.Geo.Builder |
setMetroBytes(com.google.protobuf.ByteString value)
optional string metro = 6; |
Openrtb.BidRequest.Geo.Builder |
setRegion(String value)
optional string region = 4; |
Openrtb.BidRequest.Geo.Builder |
setRegionBytes(com.google.protobuf.ByteString value)
optional string region = 4; |
Openrtb.BidRequest.Geo.Builder |
setRegionfips104(String value)
optional string regionfips104 = 5; |
Openrtb.BidRequest.Geo.Builder |
setRegionfips104Bytes(com.google.protobuf.ByteString value)
optional string regionfips104 = 5; |
Openrtb.BidRequest.Geo.Builder |
setType(OpenrtbCommon.Enums.BidRequest.Geo.LocationType value)
optional .openrtb.Enums.BidRequest.Geo.LocationType type = 9; |
Openrtb.BidRequest.Geo.Builder |
setUtcoffset(int value)
optional int32 utcoffset = 10; |
Openrtb.BidRequest.Geo.Builder |
setZip(String value)
optional string zip = 8; |
Openrtb.BidRequest.Geo.Builder |
setZipBytes(com.google.protobuf.ByteString value)
optional string zip = 8; |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldsfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Openrtb.BidRequest.Geo.Builder>public Openrtb.BidRequest.Geo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Openrtb.BidRequest.Geo.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Openrtb.BidRequest.Geo.Builder>public Openrtb.BidRequest.Geo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Openrtb.BidRequest.Geo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Openrtb.BidRequest.Geo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Openrtb.BidRequest.Geo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Openrtb.BidRequest.Geo.Builder>public Openrtb.BidRequest.Geo.Builder mergeFrom(Openrtb.BidRequest.Geo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Openrtb.BidRequest.Geo.Builder>public Openrtb.BidRequest.Geo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Openrtb.BidRequest.Geo.Builder>IOExceptionpublic 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 Openrtb.BidRequest.Geo.Builder setLat(double value)
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).
public Openrtb.BidRequest.Geo.Builder clearLat()
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).
public 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 Openrtb.BidRequest.Geo.Builder setLon(double value)
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).
public Openrtb.BidRequest.Geo.Builder clearLon()
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).
public 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 Openrtb.BidRequest.Geo.Builder setCountry(String value)
optional string country = 3;
Country using ISO-3166-1 Alpha-3.
public Openrtb.BidRequest.Geo.Builder clearCountry()
optional string country = 3;
Country using ISO-3166-1 Alpha-3.
public Openrtb.BidRequest.Geo.Builder setCountryBytes(com.google.protobuf.ByteString value)
optional string country = 3;
Country using ISO-3166-1 Alpha-3.
public 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 Openrtb.BidRequest.Geo.Builder setRegion(String value)
optional string region = 4;
Region using ISO 3166-2
public Openrtb.BidRequest.Geo.Builder clearRegion()
optional string region = 4;
Region using ISO 3166-2
public Openrtb.BidRequest.Geo.Builder setRegionBytes(com.google.protobuf.ByteString value)
optional string region = 4;
Region using ISO 3166-2
public 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 Openrtb.BidRequest.Geo.Builder setRegionfips104(String value)
optional string regionfips104 = 5;
Region of a country using fips 10-4 notation (alternative to ISO 3166-2).
public Openrtb.BidRequest.Geo.Builder clearRegionfips104()
optional string regionfips104 = 5;
Region of a country using fips 10-4 notation (alternative to ISO 3166-2).
public Openrtb.BidRequest.Geo.Builder setRegionfips104Bytes(com.google.protobuf.ByteString value)
optional string regionfips104 = 5;
Region of a country using fips 10-4 notation (alternative to ISO 3166-2).
public 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 Openrtb.BidRequest.Geo.Builder setMetro(String value)
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.
public Openrtb.BidRequest.Geo.Builder clearMetro()
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.
public Openrtb.BidRequest.Geo.Builder setMetroBytes(com.google.protobuf.ByteString value)
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.
public 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 Openrtb.BidRequest.Geo.Builder setCity(String value)
optional string city = 7;
City using United Nations Code for Trade and Transport Locations (http://www.unece.org/cefact/locode/service/location.htm).
public Openrtb.BidRequest.Geo.Builder clearCity()
optional string city = 7;
City using United Nations Code for Trade and Transport Locations (http://www.unece.org/cefact/locode/service/location.htm).
public Openrtb.BidRequest.Geo.Builder setCityBytes(com.google.protobuf.ByteString value)
optional string city = 7;
City using United Nations Code for Trade and Transport Locations (http://www.unece.org/cefact/locode/service/location.htm).
public 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 Openrtb.BidRequest.Geo.Builder setZip(String value)
optional string zip = 8;
Zip/postal code.
public Openrtb.BidRequest.Geo.Builder clearZip()
optional string zip = 8;
Zip/postal code.
public Openrtb.BidRequest.Geo.Builder setZipBytes(com.google.protobuf.ByteString value)
optional string zip = 8;
Zip/postal code.
public 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 Openrtb.BidRequest.Geo.Builder setType(OpenrtbCommon.Enums.BidRequest.Geo.LocationType value)
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.
public Openrtb.BidRequest.Geo.Builder clearType()
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.
public 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 Openrtb.BidRequest.Geo.Builder setUtcoffset(int value)
optional int32 utcoffset = 10;
Local time as the number +/- of minutes from UTC.
public Openrtb.BidRequest.Geo.Builder clearUtcoffset()
optional int32 utcoffset = 10;
Local time as the number +/- of minutes from UTC.
public 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 Openrtb.BidRequest.Geo.Builder setExt(Extension.GeoExtensions value)
optional .openrtb.GeoExtensions ext = 1000;public Openrtb.BidRequest.Geo.Builder setExt(Extension.GeoExtensions.Builder builderForValue)
optional .openrtb.GeoExtensions ext = 1000;public Openrtb.BidRequest.Geo.Builder mergeExt(Extension.GeoExtensions value)
optional .openrtb.GeoExtensions ext = 1000;public Openrtb.BidRequest.Geo.Builder clearExt()
optional .openrtb.GeoExtensions ext = 1000;public Extension.GeoExtensions.Builder getExtBuilder()
optional .openrtb.GeoExtensions ext = 1000;public Extension.GeoExtensionsOrBuilder getExtOrBuilder()
optional .openrtb.GeoExtensions ext = 1000;getExtOrBuilder in interface Openrtb.BidRequest.GeoOrBuilderCopyright © 2017. All rights reserved.