Package com.google.openrtb
Class OpenRtb.BidRequest.Geo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Geo,OpenRtb.BidRequest.Geo.Builder>
-
- com.google.openrtb.OpenRtb.BidRequest.Geo.Builder
-
- All Implemented Interfaces:
OpenRtb.BidRequest.GeoOrBuilder,com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.BidRequest.Geo>,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- OpenRtb.BidRequest.Geo
public static final class OpenRtb.BidRequest.Geo.Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Geo,OpenRtb.BidRequest.Geo.Builder> implements OpenRtb.BidRequest.GeoOrBuilder
OpenRTB 2.0: This object encapsulates various methods for specifying a geographic location. When subordinate to a Device object, it indicates the location of the device which can also be interpreted as the user's current location. When subordinate to a User object, it indicates the location of the user's home base (i.e., not necessarily their current location). The lat/lon attributes should only be passed if they conform to the accuracy depicted in the type attribute. For example, the centroid of a geographic region such as postal code should not be passed.
Protobuf typecom.google.openrtb.BidRequest.Geo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <Type> OpenRtb.BidRequest.Geo.BuilderaddExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<OpenRtb.BidRequest.Geo,List<Type>> extension, Type value)OpenRtb.BidRequest.Geo.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)OpenRtb.BidRequest.Geobuild()OpenRtb.BidRequest.GeobuildPartial()OpenRtb.BidRequest.Geo.Builderclear()OpenRtb.BidRequest.Geo.BuilderclearAccuracy()Estimated location accuracy in meters; recommended when lat/lon are specified and derived from a device's location services (i.e., type = 1).OpenRtb.BidRequest.Geo.BuilderclearCity()City using United Nations Code for Trade & Transport Locations.OpenRtb.BidRequest.Geo.BuilderclearCountry()Country using ISO-3166-1 Alpha-3.<Type> OpenRtb.BidRequest.Geo.BuilderclearExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<OpenRtb.BidRequest.Geo,?> extension)OpenRtb.BidRequest.Geo.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)OpenRtb.BidRequest.Geo.BuilderclearIpservice()Service or provider used to determine geolocation from IP address if applicable (i.e., type = 2).OpenRtb.BidRequest.Geo.BuilderclearLastfix()Number of seconds since this geolocation fix was established.OpenRtb.BidRequest.Geo.BuilderclearLat()Latitude from -90.0 to +90.0, where negative is south.OpenRtb.BidRequest.Geo.BuilderclearLon()Longitude from -180.0 to +180.0, where negative is west.OpenRtb.BidRequest.Geo.BuilderclearMetro()Google metro code; similar to but not exactly Nielsen DMAs.OpenRtb.BidRequest.Geo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)OpenRtb.BidRequest.Geo.BuilderclearRegion()Region code using ISO-3166-2; 2-letter state code if USA.OpenRtb.BidRequest.Geo.BuilderclearRegionfips104()Region of a country using FIPS 10-4 notation.OpenRtb.BidRequest.Geo.BuilderclearType()Source of location data; recommended when passing lat/lon.OpenRtb.BidRequest.Geo.BuilderclearUtcoffset()Local time as the number +/- of minutes from UTC.OpenRtb.BidRequest.Geo.BuilderclearZip()Zip/postal code.OpenRtb.BidRequest.Geo.Builderclone()intgetAccuracy()Estimated location accuracy in meters; recommended when lat/lon are specified and derived from a device's location services (i.e., type = 1).StringgetCity()City using United Nations Code for Trade & Transport Locations.com.google.protobuf.ByteStringgetCityBytes()City using United Nations Code for Trade & Transport Locations.StringgetCountry()Country using ISO-3166-1 Alpha-3.com.google.protobuf.ByteStringgetCountryBytes()Country using ISO-3166-1 Alpha-3.OpenRtb.BidRequest.GeogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()OpenRtb.LocationServicegetIpservice()Service or provider used to determine geolocation from IP address if applicable (i.e., type = 2).intgetLastfix()Number of seconds since this geolocation fix was established.doublegetLat()Latitude from -90.0 to +90.0, where negative is south.doublegetLon()Longitude from -180.0 to +180.0, where negative is west.StringgetMetro()Google metro code; similar to but not exactly Nielsen DMAs.com.google.protobuf.ByteStringgetMetroBytes()Google metro code; similar to but not exactly Nielsen DMAs.StringgetRegion()Region code using ISO-3166-2; 2-letter state code if USA.com.google.protobuf.ByteStringgetRegionBytes()Region code using ISO-3166-2; 2-letter state code if USA.StringgetRegionfips104()Region of a country using FIPS 10-4 notation.com.google.protobuf.ByteStringgetRegionfips104Bytes()Region of a country using FIPS 10-4 notation.OpenRtb.LocationTypegetType()Source of location data; recommended when passing lat/lon.intgetUtcoffset()Local time as the number +/- of minutes from UTC.StringgetZip()Zip/postal code.com.google.protobuf.ByteStringgetZipBytes()Zip/postal code.booleanhasAccuracy()Estimated location accuracy in meters; recommended when lat/lon are specified and derived from a device's location services (i.e., type = 1).booleanhasCity()City using United Nations Code for Trade & Transport Locations.booleanhasCountry()Country using ISO-3166-1 Alpha-3.booleanhasIpservice()Service or provider used to determine geolocation from IP address if applicable (i.e., type = 2).booleanhasLastfix()Number of seconds since this geolocation fix was established.booleanhasLat()Latitude from -90.0 to +90.0, where negative is south.booleanhasLon()Longitude from -180.0 to +180.0, where negative is west.booleanhasMetro()Google metro code; similar to but not exactly Nielsen DMAs.booleanhasRegion()Region code using ISO-3166-2; 2-letter state code if USA.booleanhasRegionfips104()Region of a country using FIPS 10-4 notation.booleanhasType()Source of location data; recommended when passing lat/lon.booleanhasUtcoffset()Local time as the number +/- of minutes from UTC.booleanhasZip()Zip/postal code.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()OpenRtb.BidRequest.Geo.BuildermergeFrom(OpenRtb.BidRequest.Geo other)OpenRtb.BidRequest.Geo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)OpenRtb.BidRequest.Geo.BuildermergeFrom(com.google.protobuf.Message other)OpenRtb.BidRequest.Geo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)OpenRtb.BidRequest.Geo.BuildersetAccuracy(int value)Estimated location accuracy in meters; recommended when lat/lon are specified and derived from a device's location services (i.e., type = 1).OpenRtb.BidRequest.Geo.BuildersetCity(String value)City using United Nations Code for Trade & Transport Locations.OpenRtb.BidRequest.Geo.BuildersetCityBytes(com.google.protobuf.ByteString value)City using United Nations Code for Trade & Transport Locations.OpenRtb.BidRequest.Geo.BuildersetCountry(String value)Country using ISO-3166-1 Alpha-3.OpenRtb.BidRequest.Geo.BuildersetCountryBytes(com.google.protobuf.ByteString value)Country using ISO-3166-1 Alpha-3.<Type> OpenRtb.BidRequest.Geo.BuildersetExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<OpenRtb.BidRequest.Geo,List<Type>> extension, int index, Type value)<Type> OpenRtb.BidRequest.Geo.BuildersetExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<OpenRtb.BidRequest.Geo,Type> extension, Type value)OpenRtb.BidRequest.Geo.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)OpenRtb.BidRequest.Geo.BuildersetIpservice(OpenRtb.LocationService value)Service or provider used to determine geolocation from IP address if applicable (i.e., type = 2).OpenRtb.BidRequest.Geo.BuildersetLastfix(int value)Number of seconds since this geolocation fix was established.OpenRtb.BidRequest.Geo.BuildersetLat(double value)Latitude from -90.0 to +90.0, where negative is south.OpenRtb.BidRequest.Geo.BuildersetLon(double value)Longitude from -180.0 to +180.0, where negative is west.OpenRtb.BidRequest.Geo.BuildersetMetro(String value)Google metro code; similar to but not exactly Nielsen DMAs.OpenRtb.BidRequest.Geo.BuildersetMetroBytes(com.google.protobuf.ByteString value)Google metro code; similar to but not exactly Nielsen DMAs.OpenRtb.BidRequest.Geo.BuildersetRegion(String value)Region code using ISO-3166-2; 2-letter state code if USA.OpenRtb.BidRequest.Geo.BuildersetRegionBytes(com.google.protobuf.ByteString value)Region code using ISO-3166-2; 2-letter state code if USA.OpenRtb.BidRequest.Geo.BuildersetRegionfips104(String value)Region of a country using FIPS 10-4 notation.OpenRtb.BidRequest.Geo.BuildersetRegionfips104Bytes(com.google.protobuf.ByteString value)Region of a country using FIPS 10-4 notation.OpenRtb.BidRequest.Geo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)OpenRtb.BidRequest.Geo.BuildersetType(OpenRtb.LocationType value)Source of location data; recommended when passing lat/lon.OpenRtb.BidRequest.Geo.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)OpenRtb.BidRequest.Geo.BuildersetUtcoffset(int value)Local time as the number +/- of minutes from UTC.OpenRtb.BidRequest.Geo.BuildersetZip(String value)Zip/postal code.OpenRtb.BidRequest.Geo.BuildersetZipBytes(com.google.protobuf.ByteString value)Zip/postal code.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder
addExtension, addExtension, clearExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, mergeExtensionFields, newBuilderForField, setExtension, setExtension, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getOneofFieldDescriptor, getParentForChildren, getUnknownFields, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder
getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtension
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<OpenRtb.BidRequest.Geo.Builder>
-
clear
public OpenRtb.BidRequest.Geo.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Geo,OpenRtb.BidRequest.Geo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<OpenRtb.BidRequest.Geo.Builder>
-
getDefaultInstanceForType
public OpenRtb.BidRequest.Geo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<OpenRtb.BidRequest.Geo>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public OpenRtb.BidRequest.Geo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public OpenRtb.BidRequest.Geo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public OpenRtb.BidRequest.Geo.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<OpenRtb.BidRequest.Geo.Builder>
-
setField
public OpenRtb.BidRequest.Geo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Geo,OpenRtb.BidRequest.Geo.Builder>
-
clearField
public OpenRtb.BidRequest.Geo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Geo,OpenRtb.BidRequest.Geo.Builder>
-
clearOneof
public OpenRtb.BidRequest.Geo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<OpenRtb.BidRequest.Geo.Builder>
-
setRepeatedField
public OpenRtb.BidRequest.Geo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Geo,OpenRtb.BidRequest.Geo.Builder>
-
addRepeatedField
public OpenRtb.BidRequest.Geo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Geo,OpenRtb.BidRequest.Geo.Builder>
-
setExtension
public <Type> OpenRtb.BidRequest.Geo.Builder setExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<OpenRtb.BidRequest.Geo,Type> extension, Type value)
- Overrides:
setExtensionin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Geo,OpenRtb.BidRequest.Geo.Builder>
-
setExtension
public <Type> OpenRtb.BidRequest.Geo.Builder setExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<OpenRtb.BidRequest.Geo,List<Type>> extension, int index, Type value)
- Overrides:
setExtensionin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Geo,OpenRtb.BidRequest.Geo.Builder>
-
addExtension
public <Type> OpenRtb.BidRequest.Geo.Builder addExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<OpenRtb.BidRequest.Geo,List<Type>> extension, Type value)
- Overrides:
addExtensionin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Geo,OpenRtb.BidRequest.Geo.Builder>
-
clearExtension
public <Type> OpenRtb.BidRequest.Geo.Builder clearExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<OpenRtb.BidRequest.Geo,?> extension)
- Overrides:
clearExtensionin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Geo,OpenRtb.BidRequest.Geo.Builder>
-
mergeFrom
public OpenRtb.BidRequest.Geo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OpenRtb.BidRequest.Geo.Builder>
-
mergeFrom
public OpenRtb.BidRequest.Geo.Builder mergeFrom(OpenRtb.BidRequest.Geo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<OpenRtb.BidRequest.Geo,OpenRtb.BidRequest.Geo.Builder>
-
mergeFrom
public OpenRtb.BidRequest.Geo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OpenRtb.BidRequest.Geo.Builder>- Throws:
IOException
-
hasLat
public boolean hasLat()
Latitude from -90.0 to +90.0, where negative is south.
optional double lat = 1;- Specified by:
hasLatin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- Whether the lat field is set.
-
getLat
public double getLat()
Latitude from -90.0 to +90.0, where negative is south.
optional double lat = 1;- Specified by:
getLatin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- The lat.
-
setLat
public OpenRtb.BidRequest.Geo.Builder setLat(double value)
Latitude from -90.0 to +90.0, where negative is south.
optional double lat = 1;- Parameters:
value- The lat to set.- Returns:
- This builder for chaining.
-
clearLat
public OpenRtb.BidRequest.Geo.Builder clearLat()
Latitude from -90.0 to +90.0, where negative is south.
optional double lat = 1;- Returns:
- This builder for chaining.
-
hasLon
public boolean hasLon()
Longitude from -180.0 to +180.0, where negative is west.
optional double lon = 2;- Specified by:
hasLonin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- Whether the lon field is set.
-
getLon
public double getLon()
Longitude from -180.0 to +180.0, where negative is west.
optional double lon = 2;- Specified by:
getLonin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- The lon.
-
setLon
public OpenRtb.BidRequest.Geo.Builder setLon(double value)
Longitude from -180.0 to +180.0, where negative is west.
optional double lon = 2;- Parameters:
value- The lon to set.- Returns:
- This builder for chaining.
-
clearLon
public OpenRtb.BidRequest.Geo.Builder clearLon()
Longitude from -180.0 to +180.0, where negative is west.
optional double lon = 2;- Returns:
- This builder for chaining.
-
hasCountry
public boolean hasCountry()
Country using ISO-3166-1 Alpha-3.
optional string country = 3;- Specified by:
hasCountryin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- Whether the country field is set.
-
getCountry
public String getCountry()
Country using ISO-3166-1 Alpha-3.
optional string country = 3;- Specified by:
getCountryin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- The country.
-
getCountryBytes
public com.google.protobuf.ByteString getCountryBytes()
Country using ISO-3166-1 Alpha-3.
optional string country = 3;- Specified by:
getCountryBytesin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- The bytes for country.
-
setCountry
public OpenRtb.BidRequest.Geo.Builder setCountry(String value)
Country using ISO-3166-1 Alpha-3.
optional string country = 3;- Parameters:
value- The country to set.- Returns:
- This builder for chaining.
-
clearCountry
public OpenRtb.BidRequest.Geo.Builder clearCountry()
Country using ISO-3166-1 Alpha-3.
optional string country = 3;- Returns:
- This builder for chaining.
-
setCountryBytes
public OpenRtb.BidRequest.Geo.Builder setCountryBytes(com.google.protobuf.ByteString value)
Country using ISO-3166-1 Alpha-3.
optional string country = 3;- Parameters:
value- The bytes for country to set.- Returns:
- This builder for chaining.
-
hasRegion
public boolean hasRegion()
Region code using ISO-3166-2; 2-letter state code if USA.
optional string region = 4;- Specified by:
hasRegionin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- Whether the region field is set.
-
getRegion
public String getRegion()
Region code using ISO-3166-2; 2-letter state code if USA.
optional string region = 4;- Specified by:
getRegionin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.ByteString getRegionBytes()
Region code using ISO-3166-2; 2-letter state code if USA.
optional string region = 4;- Specified by:
getRegionBytesin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- The bytes for region.
-
setRegion
public OpenRtb.BidRequest.Geo.Builder setRegion(String value)
Region code using ISO-3166-2; 2-letter state code if USA.
optional string region = 4;- Parameters:
value- The region to set.- Returns:
- This builder for chaining.
-
clearRegion
public OpenRtb.BidRequest.Geo.Builder clearRegion()
Region code using ISO-3166-2; 2-letter state code if USA.
optional string region = 4;- Returns:
- This builder for chaining.
-
setRegionBytes
public OpenRtb.BidRequest.Geo.Builder setRegionBytes(com.google.protobuf.ByteString value)
Region code using ISO-3166-2; 2-letter state code if USA.
optional string region = 4;- Parameters:
value- The bytes for region to set.- Returns:
- This builder for chaining.
-
hasRegionfips104
public boolean hasRegionfips104()
Region of a country using FIPS 10-4 notation. While OpenRTB supports this attribute, it has been withdrawn by NIST in 2008.
optional string regionfips104 = 5;- Specified by:
hasRegionfips104in interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- Whether the regionfips104 field is set.
-
getRegionfips104
public String getRegionfips104()
Region of a country using FIPS 10-4 notation. While OpenRTB supports this attribute, it has been withdrawn by NIST in 2008.
optional string regionfips104 = 5;- Specified by:
getRegionfips104in interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- The regionfips104.
-
getRegionfips104Bytes
public com.google.protobuf.ByteString getRegionfips104Bytes()
Region of a country using FIPS 10-4 notation. While OpenRTB supports this attribute, it has been withdrawn by NIST in 2008.
optional string regionfips104 = 5;- Specified by:
getRegionfips104Bytesin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- The bytes for regionfips104.
-
setRegionfips104
public OpenRtb.BidRequest.Geo.Builder setRegionfips104(String value)
Region of a country using FIPS 10-4 notation. While OpenRTB supports this attribute, it has been withdrawn by NIST in 2008.
optional string regionfips104 = 5;- Parameters:
value- The regionfips104 to set.- Returns:
- This builder for chaining.
-
clearRegionfips104
public OpenRtb.BidRequest.Geo.Builder clearRegionfips104()
Region of a country using FIPS 10-4 notation. While OpenRTB supports this attribute, it has been withdrawn by NIST in 2008.
optional string regionfips104 = 5;- Returns:
- This builder for chaining.
-
setRegionfips104Bytes
public OpenRtb.BidRequest.Geo.Builder setRegionfips104Bytes(com.google.protobuf.ByteString value)
Region of a country using FIPS 10-4 notation. While OpenRTB supports this attribute, it has been withdrawn by NIST in 2008.
optional string regionfips104 = 5;- Parameters:
value- The bytes for regionfips104 to set.- Returns:
- This builder for chaining.
-
hasMetro
public boolean hasMetro()
Google metro code; similar to but not exactly Nielsen DMAs. See Appendix A for a link to the codes. (http://code.google.com/apis/adwords/docs/appendix/metrocodes.html).
optional string metro = 6;- Specified by:
hasMetroin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- Whether the metro field is set.
-
getMetro
public String getMetro()
Google metro code; similar to but not exactly Nielsen DMAs. See Appendix A for a link to the codes. (http://code.google.com/apis/adwords/docs/appendix/metrocodes.html).
optional string metro = 6;- Specified by:
getMetroin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- The metro.
-
getMetroBytes
public com.google.protobuf.ByteString getMetroBytes()
Google metro code; similar to but not exactly Nielsen DMAs. See Appendix A for a link to the codes. (http://code.google.com/apis/adwords/docs/appendix/metrocodes.html).
optional string metro = 6;- Specified by:
getMetroBytesin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- The bytes for metro.
-
setMetro
public OpenRtb.BidRequest.Geo.Builder setMetro(String value)
Google metro code; similar to but not exactly Nielsen DMAs. See Appendix A for a link to the codes. (http://code.google.com/apis/adwords/docs/appendix/metrocodes.html).
optional string metro = 6;- Parameters:
value- The metro to set.- Returns:
- This builder for chaining.
-
clearMetro
public OpenRtb.BidRequest.Geo.Builder clearMetro()
Google metro code; similar to but not exactly Nielsen DMAs. See Appendix A for a link to the codes. (http://code.google.com/apis/adwords/docs/appendix/metrocodes.html).
optional string metro = 6;- Returns:
- This builder for chaining.
-
setMetroBytes
public OpenRtb.BidRequest.Geo.Builder setMetroBytes(com.google.protobuf.ByteString value)
Google metro code; similar to but not exactly Nielsen DMAs. See Appendix A for a link to the codes. (http://code.google.com/apis/adwords/docs/appendix/metrocodes.html).
optional string metro = 6;- Parameters:
value- The bytes for metro to set.- Returns:
- This builder for chaining.
-
hasCity
public boolean hasCity()
City using United Nations Code for Trade & Transport Locations. See Appendix A for a link to the codes. (http://www.unece.org/cefact/locode/service/location.htm).
optional string city = 7;- Specified by:
hasCityin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- Whether the city field is set.
-
getCity
public String getCity()
City using United Nations Code for Trade & Transport Locations. See Appendix A for a link to the codes. (http://www.unece.org/cefact/locode/service/location.htm).
optional string city = 7;- Specified by:
getCityin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- The city.
-
getCityBytes
public com.google.protobuf.ByteString getCityBytes()
City using United Nations Code for Trade & Transport Locations. See Appendix A for a link to the codes. (http://www.unece.org/cefact/locode/service/location.htm).
optional string city = 7;- Specified by:
getCityBytesin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- The bytes for city.
-
setCity
public OpenRtb.BidRequest.Geo.Builder setCity(String value)
City using United Nations Code for Trade & Transport Locations. See Appendix A for a link to the codes. (http://www.unece.org/cefact/locode/service/location.htm).
optional string city = 7;- Parameters:
value- The city to set.- Returns:
- This builder for chaining.
-
clearCity
public OpenRtb.BidRequest.Geo.Builder clearCity()
City using United Nations Code for Trade & Transport Locations. See Appendix A for a link to the codes. (http://www.unece.org/cefact/locode/service/location.htm).
optional string city = 7;- Returns:
- This builder for chaining.
-
setCityBytes
public OpenRtb.BidRequest.Geo.Builder setCityBytes(com.google.protobuf.ByteString value)
City using United Nations Code for Trade & Transport Locations. See Appendix A for a link to the codes. (http://www.unece.org/cefact/locode/service/location.htm).
optional string city = 7;- Parameters:
value- The bytes for city to set.- Returns:
- This builder for chaining.
-
hasZip
public boolean hasZip()
Zip/postal code.
optional string zip = 8;- Specified by:
hasZipin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- Whether the zip field is set.
-
getZip
public String getZip()
Zip/postal code.
optional string zip = 8;- Specified by:
getZipin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- The zip.
-
getZipBytes
public com.google.protobuf.ByteString getZipBytes()
Zip/postal code.
optional string zip = 8;- Specified by:
getZipBytesin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- The bytes for zip.
-
setZip
public OpenRtb.BidRequest.Geo.Builder setZip(String value)
Zip/postal code.
optional string zip = 8;- Parameters:
value- The zip to set.- Returns:
- This builder for chaining.
-
clearZip
public OpenRtb.BidRequest.Geo.Builder clearZip()
Zip/postal code.
optional string zip = 8;- Returns:
- This builder for chaining.
-
setZipBytes
public OpenRtb.BidRequest.Geo.Builder setZipBytes(com.google.protobuf.ByteString value)
Zip/postal code.
optional string zip = 8;- Parameters:
value- The bytes for zip to set.- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()
Source of location data; recommended when passing lat/lon.
optional .com.google.openrtb.LocationType type = 9;- Specified by:
hasTypein interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- Whether the type field is set.
-
getType
public OpenRtb.LocationType getType()
Source of location data; recommended when passing lat/lon.
optional .com.google.openrtb.LocationType type = 9;- Specified by:
getTypein interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- The type.
-
setType
public OpenRtb.BidRequest.Geo.Builder setType(OpenRtb.LocationType value)
Source of location data; recommended when passing lat/lon.
optional .com.google.openrtb.LocationType type = 9;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public OpenRtb.BidRequest.Geo.Builder clearType()
Source of location data; recommended when passing lat/lon.
optional .com.google.openrtb.LocationType type = 9;- Returns:
- This builder for chaining.
-
hasAccuracy
public boolean hasAccuracy()
Estimated location accuracy in meters; recommended when lat/lon are specified and derived from a device's location services (i.e., type = 1). Note that this is the accuracy as reported from the device. Consult OS specific documentation (e.g., Android, iOS) for exact interpretation.
optional int32 accuracy = 11;- Specified by:
hasAccuracyin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- Whether the accuracy field is set.
-
getAccuracy
public int getAccuracy()
Estimated location accuracy in meters; recommended when lat/lon are specified and derived from a device's location services (i.e., type = 1). Note that this is the accuracy as reported from the device. Consult OS specific documentation (e.g., Android, iOS) for exact interpretation.
optional int32 accuracy = 11;- Specified by:
getAccuracyin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- The accuracy.
-
setAccuracy
public OpenRtb.BidRequest.Geo.Builder setAccuracy(int value)
Estimated location accuracy in meters; recommended when lat/lon are specified and derived from a device's location services (i.e., type = 1). Note that this is the accuracy as reported from the device. Consult OS specific documentation (e.g., Android, iOS) for exact interpretation.
optional int32 accuracy = 11;- Parameters:
value- The accuracy to set.- Returns:
- This builder for chaining.
-
clearAccuracy
public OpenRtb.BidRequest.Geo.Builder clearAccuracy()
Estimated location accuracy in meters; recommended when lat/lon are specified and derived from a device's location services (i.e., type = 1). Note that this is the accuracy as reported from the device. Consult OS specific documentation (e.g., Android, iOS) for exact interpretation.
optional int32 accuracy = 11;- Returns:
- This builder for chaining.
-
hasLastfix
public boolean hasLastfix()
Number of seconds since this geolocation fix was established. Note that devices may cache location data across multiple fetches. Ideally, this value should be from the time the actual fix was taken.
optional int32 lastfix = 12;- Specified by:
hasLastfixin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- Whether the lastfix field is set.
-
getLastfix
public int getLastfix()
Number of seconds since this geolocation fix was established. Note that devices may cache location data across multiple fetches. Ideally, this value should be from the time the actual fix was taken.
optional int32 lastfix = 12;- Specified by:
getLastfixin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- The lastfix.
-
setLastfix
public OpenRtb.BidRequest.Geo.Builder setLastfix(int value)
Number of seconds since this geolocation fix was established. Note that devices may cache location data across multiple fetches. Ideally, this value should be from the time the actual fix was taken.
optional int32 lastfix = 12;- Parameters:
value- The lastfix to set.- Returns:
- This builder for chaining.
-
clearLastfix
public OpenRtb.BidRequest.Geo.Builder clearLastfix()
Number of seconds since this geolocation fix was established. Note that devices may cache location data across multiple fetches. Ideally, this value should be from the time the actual fix was taken.
optional int32 lastfix = 12;- Returns:
- This builder for chaining.
-
hasIpservice
public boolean hasIpservice()
Service or provider used to determine geolocation from IP address if applicable (i.e., type = 2).
optional .com.google.openrtb.LocationService ipservice = 13;- Specified by:
hasIpservicein interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- Whether the ipservice field is set.
-
getIpservice
public OpenRtb.LocationService getIpservice()
Service or provider used to determine geolocation from IP address if applicable (i.e., type = 2).
optional .com.google.openrtb.LocationService ipservice = 13;- Specified by:
getIpservicein interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- The ipservice.
-
setIpservice
public OpenRtb.BidRequest.Geo.Builder setIpservice(OpenRtb.LocationService value)
Service or provider used to determine geolocation from IP address if applicable (i.e., type = 2).
optional .com.google.openrtb.LocationService ipservice = 13;- Parameters:
value- The ipservice to set.- Returns:
- This builder for chaining.
-
clearIpservice
public OpenRtb.BidRequest.Geo.Builder clearIpservice()
Service or provider used to determine geolocation from IP address if applicable (i.e., type = 2).
optional .com.google.openrtb.LocationService ipservice = 13;- Returns:
- This builder for chaining.
-
hasUtcoffset
public boolean hasUtcoffset()
Local time as the number +/- of minutes from UTC.
optional int32 utcoffset = 10;- Specified by:
hasUtcoffsetin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- Whether the utcoffset field is set.
-
getUtcoffset
public int getUtcoffset()
Local time as the number +/- of minutes from UTC.
optional int32 utcoffset = 10;- Specified by:
getUtcoffsetin interfaceOpenRtb.BidRequest.GeoOrBuilder- Returns:
- The utcoffset.
-
setUtcoffset
public OpenRtb.BidRequest.Geo.Builder setUtcoffset(int value)
Local time as the number +/- of minutes from UTC.
optional int32 utcoffset = 10;- Parameters:
value- The utcoffset to set.- Returns:
- This builder for chaining.
-
clearUtcoffset
public OpenRtb.BidRequest.Geo.Builder clearUtcoffset()
Local time as the number +/- of minutes from UTC.
optional int32 utcoffset = 10;- Returns:
- This builder for chaining.
-
setUnknownFields
public final OpenRtb.BidRequest.Geo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OpenRtb.BidRequest.Geo.Builder>
-
mergeUnknownFields
public final OpenRtb.BidRequest.Geo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OpenRtb.BidRequest.Geo.Builder>
-
-