Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: network-bid.proto
package com.google.protos.adx;
public final class NetworkBid {
private NetworkBid() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface BidRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.google.protos.adx.BidRequest)
com.google.protobuf.MessageOrBuilder {
/**
* required bytes id = 2;
*
*
* Unique request id generated by Google. This is 16 bytes long.
*
* The first 3 bytes of the IP address in network byte order for IPv4, or the
* first 6 bytes for IPv6. Note that the number and position of the bytes
* included from IPv6 addresses may change later.
*
* The first 3 bytes of the IP address in network byte order for IPv4, or the
* first 6 bytes for IPv6. Note that the number and position of the bytes
* included from IPv6 addresses may change later.
*
* When set, the user's cookie/id data allows only restricted usage and is not
* available in the usual fields. Instead the data may be accessed through
* the constrained usage fields and stricter usage policies apply. There may
* be multiple restrictions applicable at the same time. You must only use
* the data for use cases allowed by all restrictions.
* You will receive the user_data_treatment value in BidRequests if there are
* any applicable restrictions. However, you must be whitelisted in order to
* receive the constrained usage user data fields. See
* https://developers.google.com/ad-exchange/rtb/user_data_treatments for
* more information.
* The impacted fields are:
* * google_user_id: use constrained_usage_google_user_id
* * hosted_match_data: use constrained_usage_hosted_match_data
* * mobile.encrypted_advertising_id: use
* mobile.constrained_usage_encrypted_advertising_id
* * mobile.encrypted_hashed_idfa: use
* mobile.constrained_usage_encrypted_hashed_idfa
*
* When set, the user's cookie/id data allows only restricted usage and is not
* available in the usual fields. Instead the data may be accessed through
* the constrained usage fields and stricter usage policies apply. There may
* be multiple restrictions applicable at the same time. You must only use
* the data for use cases allowed by all restrictions.
* You will receive the user_data_treatment value in BidRequests if there are
* any applicable restrictions. However, you must be whitelisted in order to
* receive the constrained usage user data fields. See
* https://developers.google.com/ad-exchange/rtb/user_data_treatments for
* more information.
* The impacted fields are:
* * google_user_id: use constrained_usage_google_user_id
* * hosted_match_data: use constrained_usage_hosted_match_data
* * mobile.encrypted_advertising_id: use
* mobile.constrained_usage_encrypted_advertising_id
* * mobile.encrypted_hashed_idfa: use
* mobile.constrained_usage_encrypted_hashed_idfa
*
* When set, the user's cookie/id data allows only restricted usage and is not
* available in the usual fields. Instead the data may be accessed through
* the constrained usage fields and stricter usage policies apply. There may
* be multiple restrictions applicable at the same time. You must only use
* the data for use cases allowed by all restrictions.
* You will receive the user_data_treatment value in BidRequests if there are
* any applicable restrictions. However, you must be whitelisted in order to
* receive the constrained usage user data fields. See
* https://developers.google.com/ad-exchange/rtb/user_data_treatments for
* more information.
* The impacted fields are:
* * google_user_id: use constrained_usage_google_user_id
* * hosted_match_data: use constrained_usage_hosted_match_data
* * mobile.encrypted_advertising_id: use
* mobile.constrained_usage_encrypted_advertising_id
* * mobile.encrypted_hashed_idfa: use
* mobile.constrained_usage_encrypted_hashed_idfa
*
* The Google ID for the user as described in the documentation for the cookie
* matching service. This field is the unpadded web-safe base64 encoded
* version of a binary cookie id. See the "Base 64 Encoding with URL and
* Filename Safe Alphabet" section in RFC 3548 for encoding details. This
* field is the same as the Google ID returned by the cookie matching service.
* Not set if there is one or more user_data_treatment value, see
* constrained_usage_google_user_id instead.
*
* The Google ID for the user as described in the documentation for the cookie
* matching service. This field is the unpadded web-safe base64 encoded
* version of a binary cookie id. See the "Base 64 Encoding with URL and
* Filename Safe Alphabet" section in RFC 3548 for encoding details. This
* field is the same as the Google ID returned by the cookie matching service.
* Not set if there is one or more user_data_treatment value, see
* constrained_usage_google_user_id instead.
*
* The Google ID for the user as described in the documentation for the cookie
* matching service. This field is the unpadded web-safe base64 encoded
* version of a binary cookie id. See the "Base 64 Encoding with URL and
* Filename Safe Alphabet" section in RFC 3548 for encoding details. This
* field is the same as the Google ID returned by the cookie matching service.
* Not set if there is one or more user_data_treatment value, see
* constrained_usage_google_user_id instead.
*
* Only set if there is one or more user_data_treatment value. If
* constrained_usage_google_user_id is set, then google_user_id is not set.
* You must be whitelisted for all user_data_treatments in this request in
* order to receive this field.
*
* Only set if there is one or more user_data_treatment value. If
* constrained_usage_google_user_id is set, then google_user_id is not set.
* You must be whitelisted for all user_data_treatments in this request in
* order to receive this field.
*
* Only set if there is one or more user_data_treatment value. If
* constrained_usage_google_user_id is set, then google_user_id is not set.
* You must be whitelisted for all user_data_treatments in this request in
* order to receive this field.
*
* The version number of the google_user_id. We may sometimes change the
* mapping from cookie to google_user_id. In this case the version will be
* incremented.
*
* The version number of the google_user_id. We may sometimes change the
* mapping from cookie to google_user_id. In this case the version will be
* incremented.
*
* Match data stored for this google_user_id through the cookie matching
* service. If a match exists, then this field holds the decoded data that
* was passed in the google_hm parameter.
* Not set if there is one or more user_data_treatment value, see
* constrained_usage_hosted_match_data instead.
*
* Match data stored for this google_user_id through the cookie matching
* service. If a match exists, then this field holds the decoded data that
* was passed in the google_hm parameter.
* Not set if there is one or more user_data_treatment value, see
* constrained_usage_hosted_match_data instead.
*
* Only set if there is one or more user_data_treatment value. If
* constrained_usage_hosted_match_data is set, then hosted_match_data is not
* set. You must be whitelisted for all user_data_treatments in this request
* in order to receive this field.
*
* Only set if there is one or more user_data_treatment value. If
* constrained_usage_hosted_match_data is set, then hosted_match_data is not
* set. You must be whitelisted for all user_data_treatments in this request
* in order to receive this field.
*
* Geo information. These use a subset of the codes used in the AdWords API.
* See the geo-table.csv table in the technical documentation for a list of
* ids. The geo_criteria_id field replaces the deprecated country, region,
* city, and metro fields.
*
* Geo information. These use a subset of the codes used in the AdWords API.
* See the geo-table.csv table in the technical documentation for a list of
* ids. The geo_criteria_id field replaces the deprecated country, region,
* city, and metro fields.
*
* Detected postal code of the appropriate type for the country (e.g. zip code
* if the country is "US"). The postal_code_prefix field is set when accuracy
* is too low to imply a full code, otherwise the postal_code field is set.
*
* Detected postal code of the appropriate type for the country (e.g. zip code
* if the country is "US"). The postal_code_prefix field is set when accuracy
* is too low to imply a full code, otherwise the postal_code field is set.
*
* Detected postal code of the appropriate type for the country (e.g. zip code
* if the country is "US"). The postal_code_prefix field is set when accuracy
* is too low to imply a full code, otherwise the postal_code field is set.
*
* Hyperlocal targeting signal when available, encrypted as described at
* https://developers.google.com/ad-exchange/rtb/response-guide/decrypt-hyperlocal
*
* Hyperlocal targeting signal when available, encrypted as described at
* https://developers.google.com/ad-exchange/rtb/response-guide/decrypt-hyperlocal
*
* The seller network id. See seller-network-ids.txt file in the technical
* documentation for a list of ids. This is only set if the site is not
* anonymous and the publisher allows site targeting.
*
* The seller network id. See seller-network-ids.txt file in the technical
* documentation for a list of ids. This is only set if the site is not
* anonymous and the publisher allows site targeting.
*
* Id for the partner that provides this inventory. This is only set when
* seller_network_id is also set and further partner information beyond the
* seller_network_id is also available. The value of the partner_id is not
* meaningful beyond providing a stable identifier.
*
* Id for the partner that provides this inventory. This is only set when
* seller_network_id is also set and further partner information beyond the
* seller_network_id is also available. The value of the partner_id is not
* meaningful beyond providing a stable identifier.
*
* The URL of the page with parameters removed. This is only set if the site
* is not anonymous and the publisher allows site targeting. You can use
* anonymous_id for targeting if the inventory is anonymous. Otherwise, use
* detected_vertical's. Only one of url or anonymous_id is ever set in the
* same request.
*
* The URL of the page with parameters removed. This is only set if the site
* is not anonymous and the publisher allows site targeting. You can use
* anonymous_id for targeting if the inventory is anonymous. Otherwise, use
* detected_vertical's. Only one of url or anonymous_id is ever set in the
* same request.
*
* The URL of the page with parameters removed. This is only set if the site
* is not anonymous and the publisher allows site targeting. You can use
* anonymous_id for targeting if the inventory is anonymous. Otherwise, use
* detected_vertical's. Only one of url or anonymous_id is ever set in the
* same request.
*
* An id for the domain of the page. This is set when the inventory is
* anonymous. Only one of url or anonymous_id is ever set in the same
* request.
*
* An id for the domain of the page. This is set when the inventory is
* anonymous. Only one of url or anonymous_id is ever set in the same
* request.
*
* An id for the domain of the page. This is set when the inventory is
* anonymous. Only one of url or anonymous_id is ever set in the same
* request.
*
* Detected user languages, based on the language of the web page, the browser
* settings, and other signals. The order is arbitrary. The codes are 2 or 5
* letters and are documented at
* https://developers.google.com/adwords/api/docs/appendix/languagecodes
*
* Detected user languages, based on the language of the web page, the browser
* settings, and other signals. The order is arbitrary. The codes are 2 or 5
* letters and are documented at
* https://developers.google.com/adwords/api/docs/appendix/languagecodes
*
* Detected user languages, based on the language of the web page, the browser
* settings, and other signals. The order is arbitrary. The codes are 2 or 5
* letters and are documented at
* https://developers.google.com/adwords/api/docs/appendix/languagecodes
*
* Detected user languages, based on the language of the web page, the browser
* settings, and other signals. The order is arbitrary. The codes are 2 or 5
* letters and are documented at
* https://developers.google.com/adwords/api/docs/appendix/languagecodes
*
* The publisher settings list id that applies to this page.
* See the RTB Publisher Settings guide at
* https://developers.google.com/ad-exchange/rtb/pub-settings-guide
* for details.
*
* The publisher settings list id that applies to this page.
* See the RTB Publisher Settings guide at
* https://developers.google.com/ad-exchange/rtb/pub-settings-guide
* for details.
*
* If true, then this is a test request. Results will not be displayed to
* users and you will not be billed for a response even if it wins the
* auction. You should still do regular processing since the request may be
* used to evaluate latencies or for other testing.
*
* If true, then this is a test request. Results will not be displayed to
* users and you will not be billed for a response even if it wins the
* auction. You should still do regular processing since the request may be
* used to evaluate latencies or for other testing.
*
* If true, then this request is intended to measure network latency. Please
* return an empty BidResponse with only processing_time_ms set as quickly as
* possible without executing any bidding logic.
*
* If true, then this request is intended to measure network latency. Please
* return an empty BidResponse with only processing_time_ms set as quickly as
* possible without executing any bidding logic.
*
* If true, then the selective callout model predicted that you will not bid
* on this request. We send a sampled percentage of such requests so that we
* can automatically update the model when bidding patterns change.
*
* If true, then the selective callout model predicted that you will not bid
* on this request. We send a sampled percentage of such requests so that we
* can automatically update the model when bidding patterns change.
*
* This is the message that Google uses to request bids. A single BidRequest
* includes all applicable ad slots from a single impression.
*
*/
public static final class BidRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:com.google.protos.adx.BidRequest)
BidRequestOrBuilder {
// Use BidRequest.newBuilder() to construct.
private BidRequest(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private BidRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final BidRequest defaultInstance;
public static BidRequest getDefaultInstance() {
return defaultInstance;
}
public BidRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BidRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
int mutable_bitField1_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x10000000;
dEPRECATEDProtocolVersion_ = input.readInt32();
break;
}
case 18: {
bitField0_ |= 0x00000001;
id_ = input.readBytes();
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x20000000;
dEPRECATEDClickTrackingUrl_ = bs;
break;
}
case 34: {
bitField0_ |= 0x00000002;
ip_ = input.readBytes();
break;
}
case 40: {
bitField0_ |= 0x40000000;
dEPRECATEDCookie_ = input.readUInt64();
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000100;
userAgent_ = bs;
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x80000000;
dEPRECATEDCountry_ = bs;
break;
}
case 66: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField1_ |= 0x00000001;
dEPRECATEDRegion_ = bs;
break;
}
case 74: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField1_ |= 0x00000002;
dEPRECATEDCity_ = bs;
break;
}
case 80: {
bitField1_ |= 0x00000004;
dEPRECATEDMetro_ = input.readInt32();
break;
}
case 90: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00040000;
url_ = bs;
break;
}
case 98: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00800000) == 0x00800000)) {
detectedLanguage_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00800000;
}
detectedLanguage_.add(bs);
break;
}
case 106: {
if (!((mutable_bitField0_ & 0x01000000) == 0x01000000)) {
detectedVertical_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x01000000;
}
detectedVertical_.add(input.readMessage(com.google.protos.adx.NetworkBid.BidRequest.Vertical.PARSER, extensionRegistry));
break;
}
case 114: {
if (!((mutable_bitField1_ & 0x00000001) == 0x00000001)) {
adslot_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000001;
}
adslot_.add(input.readMessage(com.google.protos.adx.NetworkBid.BidRequest.AdSlot.PARSER, extensionRegistry));
break;
}
case 120: {
bitField0_ |= 0x02000000;
isTest_ = input.readBool();
break;
}
case 130: {
bitField1_ |= 0x00000008;
dEPRECATEDHashedCookie_ = input.readBytes();
break;
}
case 136: {
bitField0_ |= 0x04000000;
isPing_ = input.readBool();
break;
}
case 146: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField1_ & 0x00002000) == 0x00002000)) {
dEPRECATEDExcludedClickThroughUrl_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField1_ |= 0x00002000;
}
dEPRECATEDExcludedClickThroughUrl_.add(bs);
break;
}
case 154: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00080000;
anonymousId_ = bs;
break;
}
case 160: {
bitField0_ |= 0x00000010;
cookieVersion_ = input.readUInt32();
break;
}
case 170: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
googleUserId_ = bs;
break;
}
case 178: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField1_ |= 0x00000010;
dEPRECATEDSellerNetwork_ = bs;
break;
}
case 186: {
bitField1_ |= 0x00000020;
dEPRECATEDPublisherSettingsListId_ = input.readBytes();
break;
}
case 192: {
bitField1_ |= 0x00000080;
dEPRECATEDVerticalDictionaryVersion_ = input.readInt32();
break;
}
case 200: {
bitField0_ |= 0x00004000;
timezoneOffset_ = input.readInt32();
break;
}
case 208: {
if (!((mutable_bitField0_ & 0x02000000) == 0x02000000)) {
detectedContentLabel_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x02000000;
}
detectedContentLabel_.add(input.readInt32());
break;
}
case 210: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x02000000) == 0x02000000) && input.getBytesUntilLimit() > 0) {
detectedContentLabel_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x02000000;
}
while (input.getBytesUntilLimit() > 0) {
detectedContentLabel_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 218: {
if (!((mutable_bitField1_ & 0x00010000) == 0x00010000)) {
dEPRECATEDMatchingNetwork_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00010000;
}
dEPRECATEDMatchingNetwork_.add(input.readMessage(com.google.protos.adx.NetworkBid.BidRequest.MatchingNetwork.PARSER, extensionRegistry));
break;
}
case 226: {
com.google.protos.adx.NetworkBid.BidRequest.Mobile.Builder subBuilder = null;
if (((bitField0_ & 0x00200000) == 0x00200000)) {
subBuilder = mobile_.toBuilder();
}
mobile_ = input.readMessage(com.google.protos.adx.NetworkBid.BidRequest.Mobile.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(mobile_);
mobile_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00200000;
break;
}
case 234: {
com.google.protos.adx.NetworkBid.BidRequest.Video.Builder subBuilder = null;
if (((bitField0_ & 0x00400000) == 0x00400000)) {
subBuilder = video_.toBuilder();
}
video_ = input.readMessage(com.google.protos.adx.NetworkBid.BidRequest.Video.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(video_);
video_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00400000;
break;
}
case 240: {
if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) {
userVertical_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00010000;
}
userVertical_.add(input.readInt32());
break;
}
case 242: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00010000) == 0x00010000) && input.getBytesUntilLimit() > 0) {
userVertical_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00010000;
}
while (input.getBytesUntilLimit() > 0) {
userVertical_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 248: {
bitField0_ |= 0x00000020;
cookieAgeSeconds_ = input.readInt32();
break;
}
case 258: {
if (!((mutable_bitField0_ & 0x00040000) == 0x00040000)) {
userList_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00040000;
}
userList_.add(input.readMessage(com.google.protos.adx.NetworkBid.BidRequest.UserList.PARSER, extensionRegistry));
break;
}
case 266: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000400;
postalCode_ = bs;
break;
}
case 274: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000800;
postalCodePrefix_ = bs;
break;
}
case 280: {
bitField1_ |= 0x00000040;
dEPRECATEDExperimentalDeadline_ = input.readBool();
break;
}
case 288: {
if (!((mutable_bitField1_ & 0x00040000) == 0x00040000)) {
dEPRECATEDSiteListId_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00040000;
}
dEPRECATEDSiteListId_.add(input.readInt32());
break;
}
case 290: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField1_ & 0x00040000) == 0x00040000) && input.getBytesUntilLimit() > 0) {
dEPRECATEDSiteListId_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00040000;
}
while (input.getBytesUntilLimit() > 0) {
dEPRECATEDSiteListId_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 298: {
bitField0_ |= 0x00000040;
hostedMatchData_ = input.readBytes();
break;
}
case 306: {
if (!((mutable_bitField0_ & 0x08000000) == 0x08000000)) {
keyValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x08000000;
}
keyValue_.add(input.readMessage(com.google.protos.adx.NetworkBid.BidRequest.KeyValue.PARSER, extensionRegistry));
break;
}
case 312: {
bitField0_ |= 0x00000200;
geoCriteriaId_ = input.readInt32();
break;
}
case 322: {
bitField0_ |= 0x00001000;
encryptedHyperlocalSet_ = input.readBytes();
break;
}
case 328: {
bitField0_ |= 0x00010000;
sellerNetworkId_ = input.readInt32();
break;
}
case 337: {
bitField0_ |= 0x00800000;
publisherSettingsListId_ = input.readFixed64();
break;
}
case 354: {
if (!((mutable_bitField1_ & 0x00000002) == 0x00000002)) {
bidResponseFeedback_ = new java.util.ArrayList();
mutable_bitField1_ |= 0x00000002;
}
bidResponseFeedback_.add(input.readMessage(com.google.protos.adx.NetworkBid.BidRequest.BidResponseFeedback.PARSER, extensionRegistry));
break;
}
case 360: {
bitField0_ |= 0x08000000;
isPredictedToBeIgnored_ = input.readBool();
break;
}
case 378: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
constrainedUsageGoogleUserId_ = bs;
break;
}
case 386: {
bitField0_ |= 0x00000080;
constrainedUsageHostedMatchData_ = input.readBytes();
break;
}
case 392: {
int rawValue = input.readEnum();
com.google.protos.adx.NetworkBid.BidRequest.UserDataTreatment value = com.google.protos.adx.NetworkBid.BidRequest.UserDataTreatment.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(49, rawValue);
} else {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
userDataTreatment_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
userDataTreatment_.add(value);
}
break;
}
case 394: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
com.google.protos.adx.NetworkBid.BidRequest.UserDataTreatment value = com.google.protos.adx.NetworkBid.BidRequest.UserDataTreatment.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(49, rawValue);
} else {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
userDataTreatment_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
userDataTreatment_.add(value);
}
}
input.popLimit(oldLimit);
break;
}
case 402: {
com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.Builder subBuilder = null;
if (((bitField0_ & 0x00008000) == 0x00008000)) {
subBuilder = userDemographic_.toBuilder();
}
userDemographic_ = input.readMessage(com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(userDemographic_);
userDemographic_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00008000;
break;
}
case 408: {
int rawValue = input.readEnum();
com.google.protos.adx.NetworkBid.BidRequest.PublisherType value = com.google.protos.adx.NetworkBid.BidRequest.PublisherType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(51, rawValue);
} else {
bitField0_ |= 0x01000000;
publisherType_ = value;
}
break;
}
case 417: {
bitField0_ |= 0x00020000;
partnerId_ = input.readFixed64();
break;
}
case 426: {
com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet.Builder subBuilder = null;
if (((bitField0_ & 0x00002000) == 0x00002000)) {
subBuilder = hyperlocalSet_.toBuilder();
}
hyperlocalSet_ = input.readMessage(com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(hyperlocalSet_);
hyperlocalSet_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00002000;
break;
}
case 434: {
com.google.protos.adx.NetworkBid.BidRequest.Device.Builder subBuilder = null;
if (((bitField0_ & 0x00100000) == 0x00100000)) {
subBuilder = device_.toBuilder();
}
device_ = input.readMessage(com.google.protos.adx.NetworkBid.BidRequest.Device.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(device_);
device_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00100000;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00800000) == 0x00800000)) {
detectedLanguage_ = detectedLanguage_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x01000000) == 0x01000000)) {
detectedVertical_ = java.util.Collections.unmodifiableList(detectedVertical_);
}
if (((mutable_bitField1_ & 0x00000001) == 0x00000001)) {
adslot_ = java.util.Collections.unmodifiableList(adslot_);
}
if (((mutable_bitField1_ & 0x00002000) == 0x00002000)) {
dEPRECATEDExcludedClickThroughUrl_ = dEPRECATEDExcludedClickThroughUrl_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x02000000) == 0x02000000)) {
detectedContentLabel_ = java.util.Collections.unmodifiableList(detectedContentLabel_);
}
if (((mutable_bitField1_ & 0x00010000) == 0x00010000)) {
dEPRECATEDMatchingNetwork_ = java.util.Collections.unmodifiableList(dEPRECATEDMatchingNetwork_);
}
if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) {
userVertical_ = java.util.Collections.unmodifiableList(userVertical_);
}
if (((mutable_bitField0_ & 0x00040000) == 0x00040000)) {
userList_ = java.util.Collections.unmodifiableList(userList_);
}
if (((mutable_bitField1_ & 0x00040000) == 0x00040000)) {
dEPRECATEDSiteListId_ = java.util.Collections.unmodifiableList(dEPRECATEDSiteListId_);
}
if (((mutable_bitField0_ & 0x08000000) == 0x08000000)) {
keyValue_ = java.util.Collections.unmodifiableList(keyValue_);
}
if (((mutable_bitField1_ & 0x00000002) == 0x00000002)) {
bidResponseFeedback_ = java.util.Collections.unmodifiableList(bidResponseFeedback_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
userDataTreatment_ = java.util.Collections.unmodifiableList(userDataTreatment_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protos.adx.NetworkBid.BidRequest.class, com.google.protos.adx.NetworkBid.BidRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public BidRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BidRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code com.google.protos.adx.BidRequest.UserDataTreatment}
*
*
* Reasons for constrained usage treatment of user data (google_user_id,
* hosted_match_data, IDFA, etc).
*
*/
public enum UserDataTreatment
implements com.google.protobuf.ProtocolMessageEnum {
/**
* TAG_FOR_CHILD_DIRECTED_TREATMENT = 0;
*/
TAG_FOR_CHILD_DIRECTED_TREATMENT(0, 0),
;
/**
* TAG_FOR_CHILD_DIRECTED_TREATMENT = 0;
*/
public static final int TAG_FOR_CHILD_DIRECTED_TREATMENT_VALUE = 0;
public final int getNumber() { return value; }
public static UserDataTreatment valueOf(int value) {
switch (value) {
case 0: return TAG_FOR_CHILD_DIRECTED_TREATMENT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public UserDataTreatment findValueByNumber(int number) {
return UserDataTreatment.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.google.protos.adx.NetworkBid.BidRequest.getDescriptor().getEnumTypes().get(0);
}
private static final UserDataTreatment[] VALUES = values();
public static UserDataTreatment valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private UserDataTreatment(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.google.protos.adx.BidRequest.UserDataTreatment)
}
/**
* Protobuf enum {@code com.google.protos.adx.BidRequest.PublisherType}
*
*
* Publisher type of the inventory where the ad will be shown. For an AdX
* publisher, its inventory can be either owned and operated (O&O),
* represented by the publisher, or of unknown status. AdSense and AdMob
* inventory is represented by Google.
*
*/
public enum PublisherType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN_PUBLISHER_TYPE = 0;
*/
UNKNOWN_PUBLISHER_TYPE(0, 0),
/**
* ADX_PUBLISHER_OWNED_AND_OPERATED = 1;
*/
ADX_PUBLISHER_OWNED_AND_OPERATED(1, 1),
/**
* ADX_PUBLISHER_REPRESENTED = 2;
*/
ADX_PUBLISHER_REPRESENTED(2, 2),
/**
* GOOGLE_REPRESENTED = 3;
*/
GOOGLE_REPRESENTED(3, 3),
;
/**
* UNKNOWN_PUBLISHER_TYPE = 0;
*/
public static final int UNKNOWN_PUBLISHER_TYPE_VALUE = 0;
/**
* ADX_PUBLISHER_OWNED_AND_OPERATED = 1;
*/
public static final int ADX_PUBLISHER_OWNED_AND_OPERATED_VALUE = 1;
/**
* ADX_PUBLISHER_REPRESENTED = 2;
*/
public static final int ADX_PUBLISHER_REPRESENTED_VALUE = 2;
/**
* GOOGLE_REPRESENTED = 3;
*/
public static final int GOOGLE_REPRESENTED_VALUE = 3;
public final int getNumber() { return value; }
public static PublisherType valueOf(int value) {
switch (value) {
case 0: return UNKNOWN_PUBLISHER_TYPE;
case 1: return ADX_PUBLISHER_OWNED_AND_OPERATED;
case 2: return ADX_PUBLISHER_REPRESENTED;
case 3: return GOOGLE_REPRESENTED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public PublisherType findValueByNumber(int number) {
return PublisherType.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.google.protos.adx.NetworkBid.BidRequest.getDescriptor().getEnumTypes().get(1);
}
private static final PublisherType[] VALUES = values();
public static PublisherType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private PublisherType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.google.protos.adx.BidRequest.PublisherType)
}
public interface HyperlocalOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.google.protos.adx.BidRequest.Hyperlocal)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .com.google.protos.adx.BidRequest.Hyperlocal.Point corners = 1;
*
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
*/
com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.PointOrBuilder getCornersOrBuilder(
int index);
}
/**
* Protobuf type {@code com.google.protos.adx.BidRequest.Hyperlocal}
*
*
* A hyperlocal targeting location when available.
*
*/
public static final class Hyperlocal extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:com.google.protos.adx.BidRequest.Hyperlocal)
HyperlocalOrBuilder {
// Use Hyperlocal.newBuilder() to construct.
private Hyperlocal(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Hyperlocal(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Hyperlocal defaultInstance;
public static Hyperlocal getDefaultInstance() {
return defaultInstance;
}
public Hyperlocal getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Hyperlocal(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
corners_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
corners_.add(input.readMessage(com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
corners_ = java.util.Collections.unmodifiableList(corners_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Hyperlocal_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Hyperlocal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.class, com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Hyperlocal parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Hyperlocal(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public interface PointOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.google.protos.adx.BidRequest.Hyperlocal.Point)
com.google.protobuf.MessageOrBuilder {
/**
* optional float latitude = 1;
*/
boolean hasLatitude();
/**
* optional float latitude = 1;
*/
float getLatitude();
/**
* optional float longitude = 2;
*/
boolean hasLongitude();
/**
* optional float longitude = 2;
*/
float getLongitude();
}
/**
* Protobuf type {@code com.google.protos.adx.BidRequest.Hyperlocal.Point}
*
*
* A location on the Earth's surface.
*
*/
public static final class Point extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:com.google.protos.adx.BidRequest.Hyperlocal.Point)
PointOrBuilder {
// Use Point.newBuilder() to construct.
private Point(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Point(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Point defaultInstance;
public static Point getDefaultInstance() {
return defaultInstance;
}
public Point getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Point(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 13: {
bitField0_ |= 0x00000001;
latitude_ = input.readFloat();
break;
}
case 21: {
bitField0_ |= 0x00000002;
longitude_ = input.readFloat();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Hyperlocal_Point_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Hyperlocal_Point_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.class, com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Point parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Point(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int LATITUDE_FIELD_NUMBER = 1;
private float latitude_;
/**
* optional float latitude = 1;
*/
public boolean hasLatitude() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional float latitude = 1;
*/
public float getLatitude() {
return latitude_;
}
public static final int LONGITUDE_FIELD_NUMBER = 2;
private float longitude_;
/**
* optional float longitude = 2;
*/
public boolean hasLongitude() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional float longitude = 2;
*/
public float getLongitude() {
return longitude_;
}
private void initFields() {
latitude_ = 0F;
longitude_ = 0F;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeFloat(1, latitude_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeFloat(2, longitude_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(1, latitude_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(2, longitude_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.google.protos.adx.BidRequest.Hyperlocal.Point}
*
*
* A location on the Earth's surface.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:com.google.protos.adx.BidRequest.Hyperlocal.Point)
com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.PointOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Hyperlocal_Point_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Hyperlocal_Point_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.class, com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.Builder.class);
}
// Construct using com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
latitude_ = 0F;
bitField0_ = (bitField0_ & ~0x00000001);
longitude_ = 0F;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Hyperlocal_Point_descriptor;
}
public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point getDefaultInstanceForType() {
return com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.getDefaultInstance();
}
public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point build() {
com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point buildPartial() {
com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point result = new com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.latitude_ = latitude_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.longitude_ = longitude_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point) {
return mergeFrom((com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point other) {
if (other == com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.getDefaultInstance()) return this;
if (other.hasLatitude()) {
setLatitude(other.getLatitude());
}
if (other.hasLongitude()) {
setLongitude(other.getLongitude());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private float latitude_ ;
/**
* optional float latitude = 1;
*/
public boolean hasLatitude() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional float latitude = 1;
*/
public float getLatitude() {
return latitude_;
}
/**
* optional float latitude = 1;
*/
public Builder setLatitude(float value) {
bitField0_ |= 0x00000001;
latitude_ = value;
onChanged();
return this;
}
/**
* optional float latitude = 1;
*/
public Builder clearLatitude() {
bitField0_ = (bitField0_ & ~0x00000001);
latitude_ = 0F;
onChanged();
return this;
}
private float longitude_ ;
/**
* optional float longitude = 2;
*/
public boolean hasLongitude() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional float longitude = 2;
*/
public float getLongitude() {
return longitude_;
}
/**
* optional float longitude = 2;
*/
public Builder setLongitude(float value) {
bitField0_ |= 0x00000002;
longitude_ = value;
onChanged();
return this;
}
/**
* optional float longitude = 2;
*/
public Builder clearLongitude() {
bitField0_ = (bitField0_ & ~0x00000002);
longitude_ = 0F;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.adx.BidRequest.Hyperlocal.Point)
}
static {
defaultInstance = new Point(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.adx.BidRequest.Hyperlocal.Point)
}
public static final int CORNERS_FIELD_NUMBER = 1;
private java.util.List corners_;
/**
* repeated .com.google.protos.adx.BidRequest.Hyperlocal.Point corners = 1;
*
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
*/
public int getCornersCount() {
return corners_.size();
}
/**
* repeated .com.google.protos.adx.BidRequest.Hyperlocal.Point corners = 1;
*
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
*/
public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.PointOrBuilder getCornersOrBuilder(
int index) {
return corners_.get(index);
}
private void initFields() {
corners_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < corners_.size(); i++) {
output.writeMessage(1, corners_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < corners_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, corners_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.google.protos.adx.BidRequest.Hyperlocal}
*
*
* A hyperlocal targeting location when available.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:com.google.protos.adx.BidRequest.Hyperlocal)
com.google.protos.adx.NetworkBid.BidRequest.HyperlocalOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Hyperlocal_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Hyperlocal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.class, com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Builder.class);
}
// Construct using com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getCornersFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (cornersBuilder_ == null) {
corners_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
cornersBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Hyperlocal_descriptor;
}
public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal getDefaultInstanceForType() {
return com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.getDefaultInstance();
}
public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal build() {
com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal buildPartial() {
com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal result = new com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal(this);
int from_bitField0_ = bitField0_;
if (cornersBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
corners_ = java.util.Collections.unmodifiableList(corners_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.corners_ = corners_;
} else {
result.corners_ = cornersBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal) {
return mergeFrom((com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal other) {
if (other == com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.getDefaultInstance()) return this;
if (cornersBuilder_ == null) {
if (!other.corners_.isEmpty()) {
if (corners_.isEmpty()) {
corners_ = other.corners_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCornersIsMutable();
corners_.addAll(other.corners_);
}
onChanged();
}
} else {
if (!other.corners_.isEmpty()) {
if (cornersBuilder_.isEmpty()) {
cornersBuilder_.dispose();
cornersBuilder_ = null;
corners_ = other.corners_;
bitField0_ = (bitField0_ & ~0x00000001);
cornersBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getCornersFieldBuilder() : null;
} else {
cornersBuilder_.addAllMessages(other.corners_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List corners_ =
java.util.Collections.emptyList();
private void ensureCornersIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
corners_ = new java.util.ArrayList(corners_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point, com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.Builder, com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.PointOrBuilder> cornersBuilder_;
/**
* repeated .com.google.protos.adx.BidRequest.Hyperlocal.Point corners = 1;
*
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
*/
public int getCornersCount() {
if (cornersBuilder_ == null) {
return corners_.size();
} else {
return cornersBuilder_.getCount();
}
}
/**
* repeated .com.google.protos.adx.BidRequest.Hyperlocal.Point corners = 1;
*
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
*/
public Builder setCorners(
int index, com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point value) {
if (cornersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCornersIsMutable();
corners_.set(index, value);
onChanged();
} else {
cornersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.google.protos.adx.BidRequest.Hyperlocal.Point corners = 1;
*
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
*/
public Builder addCorners(com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point value) {
if (cornersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCornersIsMutable();
corners_.add(value);
onChanged();
} else {
cornersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.google.protos.adx.BidRequest.Hyperlocal.Point corners = 1;
*
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
*/
public Builder addCorners(
int index, com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point value) {
if (cornersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCornersIsMutable();
corners_.add(index, value);
onChanged();
} else {
cornersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.google.protos.adx.BidRequest.Hyperlocal.Point corners = 1;
*
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
*/
public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.Builder getCornersBuilder(
int index) {
return getCornersFieldBuilder().getBuilder(index);
}
/**
* repeated .com.google.protos.adx.BidRequest.Hyperlocal.Point corners = 1;
*
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
*/
public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.PointOrBuilder getCornersOrBuilder(
int index) {
if (cornersBuilder_ == null) {
return corners_.get(index); } else {
return cornersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.google.protos.adx.BidRequest.Hyperlocal.Point corners = 1;
*
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
* The mobile device can be at any point inside the geofence polygon defined
* by a list of corners. Currently, the polygon is always a parallelogram
* with 4 corners.
*
* The approximate geometric center of the geofence area. It is calculated
* exclusively based on the geometric shape of the geofence area and in no
* way indicates the mobile device's actual location within the geofence
* area. If multiple hyperlocal polygons are specified above then
* center_point is the geometric center of all hyperlocal polygons.
*
* The approximate geometric center of the geofence area. It is calculated
* exclusively based on the geometric shape of the geofence area and in no
* way indicates the mobile device's actual location within the geofence
* area. If multiple hyperlocal polygons are specified above then
* center_point is the geometric center of all hyperlocal polygons.
*
* The approximate geometric center of the geofence area. It is calculated
* exclusively based on the geometric shape of the geofence area and in no
* way indicates the mobile device's actual location within the geofence
* area. If multiple hyperlocal polygons are specified above then
* center_point is the geometric center of all hyperlocal polygons.
*
*/
com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.PointOrBuilder getCenterPointOrBuilder();
}
/**
* Protobuf type {@code com.google.protos.adx.BidRequest.HyperlocalSet}
*/
public static final class HyperlocalSet extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:com.google.protos.adx.BidRequest.HyperlocalSet)
HyperlocalSetOrBuilder {
// Use HyperlocalSet.newBuilder() to construct.
private HyperlocalSet(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private HyperlocalSet(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final HyperlocalSet defaultInstance;
public static HyperlocalSet getDefaultInstance() {
return defaultInstance;
}
public HyperlocalSet getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HyperlocalSet(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
hyperlocal_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
hyperlocal_.add(input.readMessage(com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.PARSER, extensionRegistry));
break;
}
case 18: {
com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = centerPoint_.toBuilder();
}
centerPoint_ = input.readMessage(com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(centerPoint_);
centerPoint_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
hyperlocal_ = java.util.Collections.unmodifiableList(hyperlocal_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_HyperlocalSet_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_HyperlocalSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet.class, com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public HyperlocalSet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HyperlocalSet(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int HYPERLOCAL_FIELD_NUMBER = 1;
private java.util.List hyperlocal_;
/**
* repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1;
*
*
* This field currently contains at most one hyperlocal polygon.
*
* This field currently contains at most one hyperlocal polygon.
*
*/
public com.google.protos.adx.NetworkBid.BidRequest.HyperlocalOrBuilder getHyperlocalOrBuilder(
int index) {
return hyperlocal_.get(index);
}
public static final int CENTER_POINT_FIELD_NUMBER = 2;
private com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point centerPoint_;
/**
* optional .com.google.protos.adx.BidRequest.Hyperlocal.Point center_point = 2;
*
*
* The approximate geometric center of the geofence area. It is calculated
* exclusively based on the geometric shape of the geofence area and in no
* way indicates the mobile device's actual location within the geofence
* area. If multiple hyperlocal polygons are specified above then
* center_point is the geometric center of all hyperlocal polygons.
*
* The approximate geometric center of the geofence area. It is calculated
* exclusively based on the geometric shape of the geofence area and in no
* way indicates the mobile device's actual location within the geofence
* area. If multiple hyperlocal polygons are specified above then
* center_point is the geometric center of all hyperlocal polygons.
*
* The approximate geometric center of the geofence area. It is calculated
* exclusively based on the geometric shape of the geofence area and in no
* way indicates the mobile device's actual location within the geofence
* area. If multiple hyperlocal polygons are specified above then
* center_point is the geometric center of all hyperlocal polygons.
*
*/
public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.PointOrBuilder getCenterPointOrBuilder() {
return centerPoint_;
}
private void initFields() {
hyperlocal_ = java.util.Collections.emptyList();
centerPoint_ = com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < hyperlocal_.size(); i++) {
output.writeMessage(1, hyperlocal_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(2, centerPoint_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < hyperlocal_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, hyperlocal_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, centerPoint_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.google.protos.adx.BidRequest.HyperlocalSet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:com.google.protos.adx.BidRequest.HyperlocalSet)
com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_HyperlocalSet_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_HyperlocalSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet.class, com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet.Builder.class);
}
// Construct using com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getHyperlocalFieldBuilder();
getCenterPointFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (hyperlocalBuilder_ == null) {
hyperlocal_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
hyperlocalBuilder_.clear();
}
if (centerPointBuilder_ == null) {
centerPoint_ = com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.getDefaultInstance();
} else {
centerPointBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_HyperlocalSet_descriptor;
}
public com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet getDefaultInstanceForType() {
return com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet.getDefaultInstance();
}
public com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet build() {
com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet buildPartial() {
com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet result = new com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (hyperlocalBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
hyperlocal_ = java.util.Collections.unmodifiableList(hyperlocal_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.hyperlocal_ = hyperlocal_;
} else {
result.hyperlocal_ = hyperlocalBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
if (centerPointBuilder_ == null) {
result.centerPoint_ = centerPoint_;
} else {
result.centerPoint_ = centerPointBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet) {
return mergeFrom((com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet other) {
if (other == com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet.getDefaultInstance()) return this;
if (hyperlocalBuilder_ == null) {
if (!other.hyperlocal_.isEmpty()) {
if (hyperlocal_.isEmpty()) {
hyperlocal_ = other.hyperlocal_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureHyperlocalIsMutable();
hyperlocal_.addAll(other.hyperlocal_);
}
onChanged();
}
} else {
if (!other.hyperlocal_.isEmpty()) {
if (hyperlocalBuilder_.isEmpty()) {
hyperlocalBuilder_.dispose();
hyperlocalBuilder_ = null;
hyperlocal_ = other.hyperlocal_;
bitField0_ = (bitField0_ & ~0x00000001);
hyperlocalBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getHyperlocalFieldBuilder() : null;
} else {
hyperlocalBuilder_.addAllMessages(other.hyperlocal_);
}
}
}
if (other.hasCenterPoint()) {
mergeCenterPoint(other.getCenterPoint());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List hyperlocal_ =
java.util.Collections.emptyList();
private void ensureHyperlocalIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
hyperlocal_ = new java.util.ArrayList(hyperlocal_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal, com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Builder, com.google.protos.adx.NetworkBid.BidRequest.HyperlocalOrBuilder> hyperlocalBuilder_;
/**
* repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1;
*
*
* This field currently contains at most one hyperlocal polygon.
*
* The approximate geometric center of the geofence area. It is calculated
* exclusively based on the geometric shape of the geofence area and in no
* way indicates the mobile device's actual location within the geofence
* area. If multiple hyperlocal polygons are specified above then
* center_point is the geometric center of all hyperlocal polygons.
*
* The approximate geometric center of the geofence area. It is calculated
* exclusively based on the geometric shape of the geofence area and in no
* way indicates the mobile device's actual location within the geofence
* area. If multiple hyperlocal polygons are specified above then
* center_point is the geometric center of all hyperlocal polygons.
*
* The approximate geometric center of the geofence area. It is calculated
* exclusively based on the geometric shape of the geofence area and in no
* way indicates the mobile device's actual location within the geofence
* area. If multiple hyperlocal polygons are specified above then
* center_point is the geometric center of all hyperlocal polygons.
*
* The approximate geometric center of the geofence area. It is calculated
* exclusively based on the geometric shape of the geofence area and in no
* way indicates the mobile device's actual location within the geofence
* area. If multiple hyperlocal polygons are specified above then
* center_point is the geometric center of all hyperlocal polygons.
*
* The approximate geometric center of the geofence area. It is calculated
* exclusively based on the geometric shape of the geofence area and in no
* way indicates the mobile device's actual location within the geofence
* area. If multiple hyperlocal polygons are specified above then
* center_point is the geometric center of all hyperlocal polygons.
*
* The approximate geometric center of the geofence area. It is calculated
* exclusively based on the geometric shape of the geofence area and in no
* way indicates the mobile device's actual location within the geofence
* area. If multiple hyperlocal polygons are specified above then
* center_point is the geometric center of all hyperlocal polygons.
*
* The approximate geometric center of the geofence area. It is calculated
* exclusively based on the geometric shape of the geofence area and in no
* way indicates the mobile device's actual location within the geofence
* area. If multiple hyperlocal polygons are specified above then
* center_point is the geometric center of all hyperlocal polygons.
*
* The approximate geometric center of the geofence area. It is calculated
* exclusively based on the geometric shape of the geofence area and in no
* way indicates the mobile device's actual location within the geofence
* area. If multiple hyperlocal polygons are specified above then
* center_point is the geometric center of all hyperlocal polygons.
*
* The approximate geometric center of the geofence area. It is calculated
* exclusively based on the geometric shape of the geofence area and in no
* way indicates the mobile device's actual location within the geofence
* area. If multiple hyperlocal polygons are specified above then
* center_point is the geometric center of all hyperlocal polygons.
*
* The time in seconds since the user was added to the list.
*
*/
int getAgeSeconds();
}
/**
* Protobuf type {@code com.google.protos.adx.BidRequest.UserList}
*
*
* This field is not populated by default. We recommend that bidders instead
* store and look up list ids using either google_user_id or hosted_match_data
* as keys.
*
*/
public static final class UserList extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:com.google.protos.adx.BidRequest.UserList)
UserListOrBuilder {
// Use UserList.newBuilder() to construct.
private UserList(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private UserList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final UserList defaultInstance;
public static UserList getDefaultInstance() {
return defaultInstance;
}
public UserList getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UserList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
id_ = input.readInt64();
break;
}
case 16: {
bitField0_ |= 0x00000002;
ageSeconds_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_UserList_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_UserList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protos.adx.NetworkBid.BidRequest.UserList.class, com.google.protos.adx.NetworkBid.BidRequest.UserList.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public UserList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UserList(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private long id_;
/**
* optional int64 id = 1;
*
*
*/
public long getId() {
return id_;
}
public static final int AGE_SECONDS_FIELD_NUMBER = 2;
private int ageSeconds_;
/**
* optional int32 age_seconds = 2;
*
*
* The time in seconds since the user was added to the list.
*
* This field is not populated by default. We recommend that bidders instead
* store and look up list ids using either google_user_id or hosted_match_data
* as keys.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:com.google.protos.adx.BidRequest.UserList)
com.google.protos.adx.NetworkBid.BidRequest.UserListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_UserList_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_UserList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protos.adx.NetworkBid.BidRequest.UserList.class, com.google.protos.adx.NetworkBid.BidRequest.UserList.Builder.class);
}
// Construct using com.google.protos.adx.NetworkBid.BidRequest.UserList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
id_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
ageSeconds_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_UserList_descriptor;
}
public com.google.protos.adx.NetworkBid.BidRequest.UserList getDefaultInstanceForType() {
return com.google.protos.adx.NetworkBid.BidRequest.UserList.getDefaultInstance();
}
public com.google.protos.adx.NetworkBid.BidRequest.UserList build() {
com.google.protos.adx.NetworkBid.BidRequest.UserList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.adx.NetworkBid.BidRequest.UserList buildPartial() {
com.google.protos.adx.NetworkBid.BidRequest.UserList result = new com.google.protos.adx.NetworkBid.BidRequest.UserList(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.id_ = id_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.ageSeconds_ = ageSeconds_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.protos.adx.NetworkBid.BidRequest.UserList) {
return mergeFrom((com.google.protos.adx.NetworkBid.BidRequest.UserList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.protos.adx.NetworkBid.BidRequest.UserList other) {
if (other == com.google.protos.adx.NetworkBid.BidRequest.UserList.getDefaultInstance()) return this;
if (other.hasId()) {
setId(other.getId());
}
if (other.hasAgeSeconds()) {
setAgeSeconds(other.getAgeSeconds());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protos.adx.NetworkBid.BidRequest.UserList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.adx.NetworkBid.BidRequest.UserList) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long id_ ;
/**
* optional int64 id = 1;
*
*
* Unique identifier for the mobile carrier if the device is connected to
* the internet via a carrier (as opposed to via WiFi). To look up carrier
* name and country from carrier ID, please refer to:
* https://developers.google.com/adwords/api/docs/appendix/mobilecarriers.
*
* Unique identifier for the mobile carrier if the device is connected to
* the internet via a carrier (as opposed to via WiFi). To look up carrier
* name and country from carrier ID, please refer to:
* https://developers.google.com/adwords/api/docs/appendix/mobilecarriers.
*
* Used for high-density devices (e.g. iOS retina displays). A non-default
* value indicates that the nominal screen size (with pixels as the unit)
* does not describe the actual number of pixels in the screen. For example,
* nominal width and height may be 320x640 for a screen that actually has
* 640x1080 pixels, in which case screen_width=320, screen_height=640, and
* screen_pixel_ratio_millis=2000, since each axis has twice as many pixels
* as its dimensions would indicate.
*
* Used for high-density devices (e.g. iOS retina displays). A non-default
* value indicates that the nominal screen size (with pixels as the unit)
* does not describe the actual number of pixels in the screen. For example,
* nominal width and height may be 320x640 for a screen that actually has
* 640x1080 pixels, in which case screen_width=320, screen_height=640, and
* screen_pixel_ratio_millis=2000, since each axis has twice as many pixels
* as its dimensions would indicate.
*
* The OS version; e.g. 2 for Android 2.1, or 3.3 for iOS 3.3.1.
*
*/
public com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersionOrBuilder getOsVersionOrBuilder() {
return osVersion_;
}
public static final int CARRIER_ID_FIELD_NUMBER = 6;
private long carrierId_;
/**
* optional int64 carrier_id = 6;
*
*
* Unique identifier for the mobile carrier if the device is connected to
* the internet via a carrier (as opposed to via WiFi). To look up carrier
* name and country from carrier ID, please refer to:
* https://developers.google.com/adwords/api/docs/appendix/mobilecarriers.
*
* Unique identifier for the mobile carrier if the device is connected to
* the internet via a carrier (as opposed to via WiFi). To look up carrier
* name and country from carrier ID, please refer to:
* https://developers.google.com/adwords/api/docs/appendix/mobilecarriers.
*
*/
public long getCarrierId() {
return carrierId_;
}
public static final int SCREEN_WIDTH_FIELD_NUMBER = 7;
private int screenWidth_;
/**
* optional int32 screen_width = 7 [default = 0];
*
*
*/
public int getScreenWidth() {
return screenWidth_;
}
public static final int SCREEN_HEIGHT_FIELD_NUMBER = 8;
private int screenHeight_;
/**
* optional int32 screen_height = 8 [default = 0];
*
*
*/
public int getScreenHeight() {
return screenHeight_;
}
public static final int SCREEN_PIXEL_RATIO_MILLIS_FIELD_NUMBER = 9;
private int screenPixelRatioMillis_;
/**
* optional int32 screen_pixel_ratio_millis = 9 [default = 0];
*
*
* Used for high-density devices (e.g. iOS retina displays). A non-default
* value indicates that the nominal screen size (with pixels as the unit)
* does not describe the actual number of pixels in the screen. For example,
* nominal width and height may be 320x640 for a screen that actually has
* 640x1080 pixels, in which case screen_width=320, screen_height=640, and
* screen_pixel_ratio_millis=2000, since each axis has twice as many pixels
* as its dimensions would indicate.
*
* Used for high-density devices (e.g. iOS retina displays). A non-default
* value indicates that the nominal screen size (with pixels as the unit)
* does not describe the actual number of pixels in the screen. For example,
* nominal width and height may be 320x640 for a screen that actually has
* 640x1080 pixels, in which case screen_width=320, screen_height=640, and
* screen_pixel_ratio_millis=2000, since each axis has twice as many pixels
* as its dimensions would indicate.
*
*/
public int getScreenPixelRatioMillis() {
return screenPixelRatioMillis_;
}
public static final int SCREEN_ORIENTATION_FIELD_NUMBER = 10;
private com.google.protos.adx.NetworkBid.BidRequest.Device.ScreenOrientation screenOrientation_;
/**
* optional .com.google.protos.adx.BidRequest.Device.ScreenOrientation screen_orientation = 10 [default = UNKNOWN_ORIENTATION];
*
*
* The screen orientation of the device when the ad request is sent.
*
* Unique identifier for the mobile carrier if the device is connected to
* the internet via a carrier (as opposed to via WiFi). To look up carrier
* name and country from carrier ID, please refer to:
* https://developers.google.com/adwords/api/docs/appendix/mobilecarriers.
*
* Unique identifier for the mobile carrier if the device is connected to
* the internet via a carrier (as opposed to via WiFi). To look up carrier
* name and country from carrier ID, please refer to:
* https://developers.google.com/adwords/api/docs/appendix/mobilecarriers.
*
*/
public long getCarrierId() {
return carrierId_;
}
/**
* optional int64 carrier_id = 6;
*
*
* Unique identifier for the mobile carrier if the device is connected to
* the internet via a carrier (as opposed to via WiFi). To look up carrier
* name and country from carrier ID, please refer to:
* https://developers.google.com/adwords/api/docs/appendix/mobilecarriers.
*
* Unique identifier for the mobile carrier if the device is connected to
* the internet via a carrier (as opposed to via WiFi). To look up carrier
* name and country from carrier ID, please refer to:
* https://developers.google.com/adwords/api/docs/appendix/mobilecarriers.
*
* Used for high-density devices (e.g. iOS retina displays). A non-default
* value indicates that the nominal screen size (with pixels as the unit)
* does not describe the actual number of pixels in the screen. For example,
* nominal width and height may be 320x640 for a screen that actually has
* 640x1080 pixels, in which case screen_width=320, screen_height=640, and
* screen_pixel_ratio_millis=2000, since each axis has twice as many pixels
* as its dimensions would indicate.
*
* Used for high-density devices (e.g. iOS retina displays). A non-default
* value indicates that the nominal screen size (with pixels as the unit)
* does not describe the actual number of pixels in the screen. For example,
* nominal width and height may be 320x640 for a screen that actually has
* 640x1080 pixels, in which case screen_width=320, screen_height=640, and
* screen_pixel_ratio_millis=2000, since each axis has twice as many pixels
* as its dimensions would indicate.
*
*/
public int getScreenPixelRatioMillis() {
return screenPixelRatioMillis_;
}
/**
* optional int32 screen_pixel_ratio_millis = 9 [default = 0];
*
*
* Used for high-density devices (e.g. iOS retina displays). A non-default
* value indicates that the nominal screen size (with pixels as the unit)
* does not describe the actual number of pixels in the screen. For example,
* nominal width and height may be 320x640 for a screen that actually has
* 640x1080 pixels, in which case screen_width=320, screen_height=640, and
* screen_pixel_ratio_millis=2000, since each axis has twice as many pixels
* as its dimensions would indicate.
*
* Used for high-density devices (e.g. iOS retina displays). A non-default
* value indicates that the nominal screen size (with pixels as the unit)
* does not describe the actual number of pixels in the screen. For example,
* nominal width and height may be 320x640 for a screen that actually has
* 640x1080 pixels, in which case screen_width=320, screen_height=640, and
* screen_pixel_ratio_millis=2000, since each axis has twice as many pixels
* as its dimensions would indicate.
*
* If true, then this request is from a mobile application. Will always be
* true when app_id is set. May also be true for anonymous inventory, in
* which case anonymous_id will be set.
*
* If true, then this request is from a mobile application. Will always be
* true when app_id is set. May also be true for anonymous inventory, in
* which case anonymous_id will be set.
*
* The identifier of the mobile app when this ad query comes from a mobile
* app. If the app was downloaded from the Apple iTunes app store, then
* this is the app-store id. For Android devices, this is the fully
* qualified package name. Examples: 343200656, com.rovio.angrybirds
*
* The identifier of the mobile app when this ad query comes from a mobile
* app. If the app was downloaded from the Apple iTunes app store, then
* this is the app-store id. For Android devices, this is the fully
* qualified package name. Examples: 343200656, com.rovio.angrybirds
*
* The identifier of the mobile app when this ad query comes from a mobile
* app. If the app was downloaded from the Apple iTunes app store, then
* this is the app-store id. For Android devices, this is the fully
* qualified package name. Examples: 343200656, com.rovio.angrybirds
*
* This field contains the IDs of categories to which the current mobile app
* belongs. This field will be empty if is_app is false. The mapping between
* mobile apps and categories is defined by the Google Play Store for
* Android apps, or the Apple iTunes Store for iOS apps. To look up category
* name from category ID, please refer to
* https://developers.google.com/adwords/api/docs/appendix/mobileappcategories
*
* This field contains the IDs of categories to which the current mobile app
* belongs. This field will be empty if is_app is false. The mapping between
* mobile apps and categories is defined by the Google Play Store for
* Android apps, or the Apple iTunes Store for iOS apps. To look up category
* name from category ID, please refer to
* https://developers.google.com/adwords/api/docs/appendix/mobileappcategories
*
* This field contains the IDs of categories to which the current mobile app
* belongs. This field will be empty if is_app is false. The mapping between
* mobile apps and categories is defined by the Google Play Store for
* Android apps, or the Apple iTunes Store for iOS apps. To look up category
* name from category ID, please refer to
* https://developers.google.com/adwords/api/docs/appendix/mobileappcategories
*
* Apple's identifier for advertising (IDFA) as described at
* https://support.google.com/adxbuyer/answer/3221407 or Android's
* advertising identifier. When the encrypted_advertising_id is an IDFA, the
* plaintext after decrypting the ciphertext is the IDFA (16 byte UUID)
* returned by iOS's [ASIdentifierManager advertisingIdentifier]. For
* encrypted_hashed_idfa, the plaintext is the 16 byte MD5 hash of the
* IDFA. Only one of the two fields will be available, depending on the
* version of the SDK making the request. Later SDKs provide unhashed
* values. They are not set if there is one or more user_data_treatment
* value in the BidRequest, see constrained_usage_encrypted_advertising_id
* and constrained_usage_encrypted_hashed_idfa instead.
*
* Apple's identifier for advertising (IDFA) as described at
* https://support.google.com/adxbuyer/answer/3221407 or Android's
* advertising identifier. When the encrypted_advertising_id is an IDFA, the
* plaintext after decrypting the ciphertext is the IDFA (16 byte UUID)
* returned by iOS's [ASIdentifierManager advertisingIdentifier]. For
* encrypted_hashed_idfa, the plaintext is the 16 byte MD5 hash of the
* IDFA. Only one of the two fields will be available, depending on the
* version of the SDK making the request. Later SDKs provide unhashed
* values. They are not set if there is one or more user_data_treatment
* value in the BidRequest, see constrained_usage_encrypted_advertising_id
* and constrained_usage_encrypted_hashed_idfa instead.
*
* Only set if the BidRequest contains one or more user_data_treatment
* value. If constrained_usage_encrypted_advertising_id or
* constrained_usage_encrypted_hashed_idfa is set, then the corresponding
* non-constrained field is not set. You must be whitelisted for all
* user_data_treatments in this request in order to receive these fields.
*
* Only set if the BidRequest contains one or more user_data_treatment
* value. If constrained_usage_encrypted_advertising_id or
* constrained_usage_encrypted_hashed_idfa is set, then the corresponding
* non-constrained field is not set. You must be whitelisted for all
* user_data_treatments in this request in order to receive these fields.
*
* Unencrypted version of constrained_usage_encrypted_advertising_id. This
* field is only set when using an SSL connection. This field is a 16 byte
* UUID.
*
* Unencrypted version of constrained_usage_encrypted_advertising_id. This
* field is only set when using an SSL connection. This field is a 16 byte
* UUID.
*
* Unencrypted version of constrained_usage_encrypted_hashed_idfa. This
* field is only set when using an SSL connection. This field is a 16 byte
* MD5.
*
* Unencrypted version of constrained_usage_encrypted_hashed_idfa. This
* field is only set when using an SSL connection. This field is a 16 byte
* MD5.
*
* Information for ad queries coming from mobile devices. A mobile device is
* either a smartphone or a tablet. This is present for ad queries both from
* mobile devices browsing the web and from mobile apps.
*
*/
public static final class Mobile extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:com.google.protos.adx.BidRequest.Mobile)
MobileOrBuilder {
// Use Mobile.newBuilder() to construct.
private Mobile(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Mobile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Mobile defaultInstance;
public static Mobile getDefaultInstance() {
return defaultInstance;
}
public Mobile getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Mobile(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00004000;
dEPRECATEDAppName_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00008000;
dEPRECATEDCompanyName_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00010000;
dEPRECATEDPlatform_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00020000;
dEPRECATEDCarrierName_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00040000;
dEPRECATEDCarrierCountry_ = bs;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
appId_ = bs;
break;
}
case 56: {
bitField0_ |= 0x00000001;
isApp_ = input.readBool();
break;
}
case 64: {
int rawValue = input.readEnum();
com.google.protos.adx.NetworkBid.BidRequest.Mobile.MobileDeviceType value = com.google.protos.adx.NetworkBid.BidRequest.Mobile.MobileDeviceType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(8, rawValue);
} else {
bitField0_ |= 0x00080000;
dEPRECATEDMobileDeviceType_ = value;
}
break;
}
case 72: {
bitField0_ |= 0x00100000;
dEPRECATEDScreenOrientation_ = input.readInt32();
break;
}
case 80: {
bitField0_ |= 0x00000004;
isInterstitialRequest_ = input.readBool();
break;
}
case 88: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
appCategoryIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
appCategoryIds_.add(input.readInt32());
break;
}
case 90: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
appCategoryIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
while (input.getBytesUntilLimit() > 0) {
appCategoryIds_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 98: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00200000;
dEPRECATEDBrand_ = bs;
break;
}
case 106: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00400000;
dEPRECATEDModel_ = bs;
break;
}
case 114: {
com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion.Builder subBuilder = null;
if (((bitField0_ & 0x00800000) == 0x00800000)) {
subBuilder = dEPRECATEDOsVersion_.toBuilder();
}
dEPRECATEDOsVersion_ = input.readMessage(com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dEPRECATEDOsVersion_);
dEPRECATEDOsVersion_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00800000;
break;
}
case 120: {
bitField0_ |= 0x01000000;
dEPRECATEDScreenWidth_ = input.readInt32();
break;
}
case 128: {
bitField0_ |= 0x02000000;
dEPRECATEDScreenHeight_ = input.readInt32();
break;
}
case 136: {
bitField0_ |= 0x00000008;
isMobileWebOptimized_ = input.readBool();
break;
}
case 144: {
bitField0_ |= 0x04000000;
dEPRECATEDCarrierId_ = input.readInt64();
break;
}
case 152: {
bitField0_ |= 0x08000000;
dEPRECATEDDevicePixelRatioMillis_ = input.readInt32();
break;
}
case 162: {
bitField0_ |= 0x00000010;
encryptedAdvertisingId_ = input.readBytes();
break;
}
case 170: {
bitField0_ |= 0x00000040;
encryptedHashedIdfa_ = input.readBytes();
break;
}
case 178: {
bitField0_ |= 0x00000100;
constrainedUsageEncryptedAdvertisingId_ = input.readBytes();
break;
}
case 186: {
bitField0_ |= 0x00000400;
constrainedUsageEncryptedHashedIdfa_ = input.readBytes();
break;
}
case 194: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00001000;
appName_ = bs;
break;
}
case 205: {
bitField0_ |= 0x00002000;
appRating_ = input.readFloat();
break;
}
case 218: {
bitField0_ |= 0x00000020;
advertisingId_ = input.readBytes();
break;
}
case 226: {
bitField0_ |= 0x00000080;
hashedIdfa_ = input.readBytes();
break;
}
case 234: {
bitField0_ |= 0x00000200;
constrainedUsageAdvertisingId_ = input.readBytes();
break;
}
case 242: {
bitField0_ |= 0x00000800;
constrainedUsageHashedIdfa_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
appCategoryIds_ = java.util.Collections.unmodifiableList(appCategoryIds_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Mobile_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Mobile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protos.adx.NetworkBid.BidRequest.Mobile.class, com.google.protos.adx.NetworkBid.BidRequest.Mobile.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Mobile parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Mobile(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code com.google.protos.adx.BidRequest.Mobile.MobileDeviceType}
*/
public enum MobileDeviceType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN = 0;
*/
UNKNOWN(0, 0),
/**
* HIGHEND_PHONE = 1;
*/
HIGHEND_PHONE(1, 1),
/**
* TABLET = 2;
*/
TABLET(2, 2),
;
/**
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
* HIGHEND_PHONE = 1;
*/
public static final int HIGHEND_PHONE_VALUE = 1;
/**
* TABLET = 2;
*/
public static final int TABLET_VALUE = 2;
public final int getNumber() { return value; }
public static MobileDeviceType valueOf(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return HIGHEND_PHONE;
case 2: return TABLET;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public MobileDeviceType findValueByNumber(int number) {
return MobileDeviceType.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.google.protos.adx.NetworkBid.BidRequest.Mobile.getDescriptor().getEnumTypes().get(0);
}
private static final MobileDeviceType[] VALUES = values();
public static MobileDeviceType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private MobileDeviceType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.google.protos.adx.BidRequest.Mobile.MobileDeviceType)
}
/**
* Protobuf enum {@code com.google.protos.adx.BidRequest.Mobile.ScreenOrientation}
*/
public enum ScreenOrientation
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SCREEN_ORIENTATION_UNKNOWN = 0;
*/
SCREEN_ORIENTATION_UNKNOWN(0, 0),
/**
* SCREEN_ORIENTATION_PORTRAIT = 1;
*/
SCREEN_ORIENTATION_PORTRAIT(1, 1),
/**
* SCREEN_ORIENTATION_LANDSCAPE = 2;
*/
SCREEN_ORIENTATION_LANDSCAPE(2, 2),
;
/**
* SCREEN_ORIENTATION_UNKNOWN = 0;
*/
public static final int SCREEN_ORIENTATION_UNKNOWN_VALUE = 0;
/**
* SCREEN_ORIENTATION_PORTRAIT = 1;
*/
public static final int SCREEN_ORIENTATION_PORTRAIT_VALUE = 1;
/**
* SCREEN_ORIENTATION_LANDSCAPE = 2;
*/
public static final int SCREEN_ORIENTATION_LANDSCAPE_VALUE = 2;
public final int getNumber() { return value; }
public static ScreenOrientation valueOf(int value) {
switch (value) {
case 0: return SCREEN_ORIENTATION_UNKNOWN;
case 1: return SCREEN_ORIENTATION_PORTRAIT;
case 2: return SCREEN_ORIENTATION_LANDSCAPE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ScreenOrientation findValueByNumber(int number) {
return ScreenOrientation.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.google.protos.adx.NetworkBid.BidRequest.Mobile.getDescriptor().getEnumTypes().get(1);
}
private static final ScreenOrientation[] VALUES = values();
public static ScreenOrientation valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private ScreenOrientation(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.google.protos.adx.BidRequest.Mobile.ScreenOrientation)
}
public interface DeviceOsVersionOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 os_version_major = 1;
*/
boolean hasOsVersionMajor();
/**
* optional int32 os_version_major = 1;
*/
int getOsVersionMajor();
/**
* optional int32 os_version_minor = 2;
*/
boolean hasOsVersionMinor();
/**
* optional int32 os_version_minor = 2;
*/
int getOsVersionMinor();
/**
* optional int32 os_version_micro = 3;
*/
boolean hasOsVersionMicro();
/**
* optional int32 os_version_micro = 3;
*/
int getOsVersionMicro();
}
/**
* Protobuf type {@code com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion}
*/
public static final class DeviceOsVersion extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion)
DeviceOsVersionOrBuilder {
// Use DeviceOsVersion.newBuilder() to construct.
private DeviceOsVersion(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private DeviceOsVersion(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final DeviceOsVersion defaultInstance;
public static DeviceOsVersion getDefaultInstance() {
return defaultInstance;
}
public DeviceOsVersion getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeviceOsVersion(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
osVersionMajor_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
osVersionMinor_ = input.readInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
osVersionMicro_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Mobile_DeviceOsVersion_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Mobile_DeviceOsVersion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion.class, com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public DeviceOsVersion parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeviceOsVersion(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int OS_VERSION_MAJOR_FIELD_NUMBER = 1;
private int osVersionMajor_;
/**
* optional int32 os_version_major = 1;
*/
public boolean hasOsVersionMajor() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 os_version_major = 1;
*/
public int getOsVersionMajor() {
return osVersionMajor_;
}
public static final int OS_VERSION_MINOR_FIELD_NUMBER = 2;
private int osVersionMinor_;
/**
* optional int32 os_version_minor = 2;
*/
public boolean hasOsVersionMinor() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int32 os_version_minor = 2;
*/
public int getOsVersionMinor() {
return osVersionMinor_;
}
public static final int OS_VERSION_MICRO_FIELD_NUMBER = 3;
private int osVersionMicro_;
/**
* optional int32 os_version_micro = 3;
*/
public boolean hasOsVersionMicro() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int32 os_version_micro = 3;
*/
public int getOsVersionMicro() {
return osVersionMicro_;
}
private void initFields() {
osVersionMajor_ = 0;
osVersionMinor_ = 0;
osVersionMicro_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, osVersionMajor_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, osVersionMinor_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, osVersionMicro_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, osVersionMajor_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, osVersionMinor_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, osVersionMicro_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion)
com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Mobile_DeviceOsVersion_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Mobile_DeviceOsVersion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion.class, com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion.Builder.class);
}
// Construct using com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
osVersionMajor_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
osVersionMinor_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
osVersionMicro_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Mobile_DeviceOsVersion_descriptor;
}
public com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion getDefaultInstanceForType() {
return com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion.getDefaultInstance();
}
public com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion build() {
com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion buildPartial() {
com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion result = new com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.osVersionMajor_ = osVersionMajor_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.osVersionMinor_ = osVersionMinor_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.osVersionMicro_ = osVersionMicro_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion) {
return mergeFrom((com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion other) {
if (other == com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion.getDefaultInstance()) return this;
if (other.hasOsVersionMajor()) {
setOsVersionMajor(other.getOsVersionMajor());
}
if (other.hasOsVersionMinor()) {
setOsVersionMinor(other.getOsVersionMinor());
}
if (other.hasOsVersionMicro()) {
setOsVersionMicro(other.getOsVersionMicro());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int osVersionMajor_ ;
/**
* optional int32 os_version_major = 1;
*/
public boolean hasOsVersionMajor() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 os_version_major = 1;
*/
public int getOsVersionMajor() {
return osVersionMajor_;
}
/**
* optional int32 os_version_major = 1;
*/
public Builder setOsVersionMajor(int value) {
bitField0_ |= 0x00000001;
osVersionMajor_ = value;
onChanged();
return this;
}
/**
* optional int32 os_version_major = 1;
*/
public Builder clearOsVersionMajor() {
bitField0_ = (bitField0_ & ~0x00000001);
osVersionMajor_ = 0;
onChanged();
return this;
}
private int osVersionMinor_ ;
/**
* optional int32 os_version_minor = 2;
*/
public boolean hasOsVersionMinor() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int32 os_version_minor = 2;
*/
public int getOsVersionMinor() {
return osVersionMinor_;
}
/**
* optional int32 os_version_minor = 2;
*/
public Builder setOsVersionMinor(int value) {
bitField0_ |= 0x00000002;
osVersionMinor_ = value;
onChanged();
return this;
}
/**
* optional int32 os_version_minor = 2;
*/
public Builder clearOsVersionMinor() {
bitField0_ = (bitField0_ & ~0x00000002);
osVersionMinor_ = 0;
onChanged();
return this;
}
private int osVersionMicro_ ;
/**
* optional int32 os_version_micro = 3;
*/
public boolean hasOsVersionMicro() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int32 os_version_micro = 3;
*/
public int getOsVersionMicro() {
return osVersionMicro_;
}
/**
* optional int32 os_version_micro = 3;
*/
public Builder setOsVersionMicro(int value) {
bitField0_ |= 0x00000004;
osVersionMicro_ = value;
onChanged();
return this;
}
/**
* optional int32 os_version_micro = 3;
*/
public Builder clearOsVersionMicro() {
bitField0_ = (bitField0_ & ~0x00000004);
osVersionMicro_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion)
}
static {
defaultInstance = new DeviceOsVersion(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion)
}
private int bitField0_;
public static final int IS_APP_FIELD_NUMBER = 7;
private boolean isApp_;
/**
* optional bool is_app = 7 [default = false];
*
*
* If true, then this request is from a mobile application. Will always be
* true when app_id is set. May also be true for anonymous inventory, in
* which case anonymous_id will be set.
*
* If true, then this request is from a mobile application. Will always be
* true when app_id is set. May also be true for anonymous inventory, in
* which case anonymous_id will be set.
*
*/
public boolean getIsApp() {
return isApp_;
}
public static final int APP_ID_FIELD_NUMBER = 6;
private java.lang.Object appId_;
/**
* optional string app_id = 6;
*
*
* The identifier of the mobile app when this ad query comes from a mobile
* app. If the app was downloaded from the Apple iTunes app store, then
* this is the app-store id. For Android devices, this is the fully
* qualified package name. Examples: 343200656, com.rovio.angrybirds
*
* The identifier of the mobile app when this ad query comes from a mobile
* app. If the app was downloaded from the Apple iTunes app store, then
* this is the app-store id. For Android devices, this is the fully
* qualified package name. Examples: 343200656, com.rovio.angrybirds
*
* The identifier of the mobile app when this ad query comes from a mobile
* app. If the app was downloaded from the Apple iTunes app store, then
* this is the app-store id. For Android devices, this is the fully
* qualified package name. Examples: 343200656, com.rovio.angrybirds
*
*/
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IS_INTERSTITIAL_REQUEST_FIELD_NUMBER = 10;
private boolean isInterstitialRequest_;
/**
* optional bool is_interstitial_request = 10 [default = false];
*
*
* If true, then this is a mobile full screen ad request.
*
* If true, then this is a mobile full screen ad request.
*
*/
public boolean getIsInterstitialRequest() {
return isInterstitialRequest_;
}
public static final int APP_CATEGORY_IDS_FIELD_NUMBER = 11;
private java.util.List appCategoryIds_;
/**
* repeated int32 app_category_ids = 11;
*
*
* This field contains the IDs of categories to which the current mobile app
* belongs. This field will be empty if is_app is false. The mapping between
* mobile apps and categories is defined by the Google Play Store for
* Android apps, or the Apple iTunes Store for iOS apps. To look up category
* name from category ID, please refer to
* https://developers.google.com/adwords/api/docs/appendix/mobileappcategories
*
* This field contains the IDs of categories to which the current mobile app
* belongs. This field will be empty if is_app is false. The mapping between
* mobile apps and categories is defined by the Google Play Store for
* Android apps, or the Apple iTunes Store for iOS apps. To look up category
* name from category ID, please refer to
* https://developers.google.com/adwords/api/docs/appendix/mobileappcategories
*
*/
public int getAppCategoryIdsCount() {
return appCategoryIds_.size();
}
/**
* repeated int32 app_category_ids = 11;
*
*
* This field contains the IDs of categories to which the current mobile app
* belongs. This field will be empty if is_app is false. The mapping between
* mobile apps and categories is defined by the Google Play Store for
* Android apps, or the Apple iTunes Store for iOS apps. To look up category
* name from category ID, please refer to
* https://developers.google.com/adwords/api/docs/appendix/mobileappcategories
*
*/
public int getAppCategoryIds(int index) {
return appCategoryIds_.get(index);
}
public static final int IS_MOBILE_WEB_OPTIMIZED_FIELD_NUMBER = 17;
private boolean isMobileWebOptimized_;
/**
* optional bool is_mobile_web_optimized = 17 [default = false];
*
*
* For a mobile web request, this field indicates whether the page is
* optimized for mobile browsers on high-end mobile phones.
*
* For a mobile web request, this field indicates whether the page is
* optimized for mobile browsers on high-end mobile phones.
*
*/
public boolean getIsMobileWebOptimized() {
return isMobileWebOptimized_;
}
public static final int ENCRYPTED_ADVERTISING_ID_FIELD_NUMBER = 20;
private com.google.protobuf.ByteString encryptedAdvertisingId_;
/**
* optional bytes encrypted_advertising_id = 20;
*
*
* Apple's identifier for advertising (IDFA) as described at
* https://support.google.com/adxbuyer/answer/3221407 or Android's
* advertising identifier. When the encrypted_advertising_id is an IDFA, the
* plaintext after decrypting the ciphertext is the IDFA (16 byte UUID)
* returned by iOS's [ASIdentifierManager advertisingIdentifier]. For
* encrypted_hashed_idfa, the plaintext is the 16 byte MD5 hash of the
* IDFA. Only one of the two fields will be available, depending on the
* version of the SDK making the request. Later SDKs provide unhashed
* values. They are not set if there is one or more user_data_treatment
* value in the BidRequest, see constrained_usage_encrypted_advertising_id
* and constrained_usage_encrypted_hashed_idfa instead.
*
* Apple's identifier for advertising (IDFA) as described at
* https://support.google.com/adxbuyer/answer/3221407 or Android's
* advertising identifier. When the encrypted_advertising_id is an IDFA, the
* plaintext after decrypting the ciphertext is the IDFA (16 byte UUID)
* returned by iOS's [ASIdentifierManager advertisingIdentifier]. For
* encrypted_hashed_idfa, the plaintext is the 16 byte MD5 hash of the
* IDFA. Only one of the two fields will be available, depending on the
* version of the SDK making the request. Later SDKs provide unhashed
* values. They are not set if there is one or more user_data_treatment
* value in the BidRequest, see constrained_usage_encrypted_advertising_id
* and constrained_usage_encrypted_hashed_idfa instead.
*
*/
public com.google.protobuf.ByteString getEncryptedAdvertisingId() {
return encryptedAdvertisingId_;
}
public static final int ADVERTISING_ID_FIELD_NUMBER = 27;
private com.google.protobuf.ByteString advertisingId_;
/**
* optional bytes advertising_id = 27;
*
*
* Unencrypted version of encrypted_advertising_id. This field is only set
* when using an SSL connection. This field is a 16 byte UUID.
*
* Unencrypted version of encrypted_hashed_idfa. This field is only set
* when using an SSL connection. This field is a 16 byte MD5.
*
*/
public com.google.protobuf.ByteString getHashedIdfa() {
return hashedIdfa_;
}
public static final int CONSTRAINED_USAGE_ENCRYPTED_ADVERTISING_ID_FIELD_NUMBER = 22;
private com.google.protobuf.ByteString constrainedUsageEncryptedAdvertisingId_;
/**
* optional bytes constrained_usage_encrypted_advertising_id = 22;
*
*
* Only set if the BidRequest contains one or more user_data_treatment
* value. If constrained_usage_encrypted_advertising_id or
* constrained_usage_encrypted_hashed_idfa is set, then the corresponding
* non-constrained field is not set. You must be whitelisted for all
* user_data_treatments in this request in order to receive these fields.
*
* Only set if the BidRequest contains one or more user_data_treatment
* value. If constrained_usage_encrypted_advertising_id or
* constrained_usage_encrypted_hashed_idfa is set, then the corresponding
* non-constrained field is not set. You must be whitelisted for all
* user_data_treatments in this request in order to receive these fields.
*
*/
public com.google.protobuf.ByteString getConstrainedUsageEncryptedAdvertisingId() {
return constrainedUsageEncryptedAdvertisingId_;
}
public static final int CONSTRAINED_USAGE_ADVERTISING_ID_FIELD_NUMBER = 29;
private com.google.protobuf.ByteString constrainedUsageAdvertisingId_;
/**
* optional bytes constrained_usage_advertising_id = 29;
*
*
* Unencrypted version of constrained_usage_encrypted_advertising_id. This
* field is only set when using an SSL connection. This field is a 16 byte
* UUID.
*
* Unencrypted version of constrained_usage_encrypted_advertising_id. This
* field is only set when using an SSL connection. This field is a 16 byte
* UUID.
*
*/
public com.google.protobuf.ByteString getConstrainedUsageAdvertisingId() {
return constrainedUsageAdvertisingId_;
}
public static final int CONSTRAINED_USAGE_ENCRYPTED_HASHED_IDFA_FIELD_NUMBER = 23;
private com.google.protobuf.ByteString constrainedUsageEncryptedHashedIdfa_;
/**
* optional bytes constrained_usage_encrypted_hashed_idfa = 23;
*/
public boolean hasConstrainedUsageEncryptedHashedIdfa() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional bytes constrained_usage_encrypted_hashed_idfa = 23;
*/
public com.google.protobuf.ByteString getConstrainedUsageEncryptedHashedIdfa() {
return constrainedUsageEncryptedHashedIdfa_;
}
public static final int CONSTRAINED_USAGE_HASHED_IDFA_FIELD_NUMBER = 30;
private com.google.protobuf.ByteString constrainedUsageHashedIdfa_;
/**
* optional bytes constrained_usage_hashed_idfa = 30;
*
*
* Unencrypted version of constrained_usage_encrypted_hashed_idfa. This
* field is only set when using an SSL connection. This field is a 16 byte
* MD5.
*
* Unencrypted version of constrained_usage_encrypted_hashed_idfa. This
* field is only set when using an SSL connection. This field is a 16 byte
* MD5.
*
*/
public com.google.protobuf.ByteString getConstrainedUsageHashedIdfa() {
return constrainedUsageHashedIdfa_;
}
public static final int APP_NAME_FIELD_NUMBER = 24;
private java.lang.Object appName_;
/**
* optional string app_name = 24;
*
*
* App name for Android apps in Google Play store.
*
* Information for ad queries coming from mobile devices. A mobile device is
* either a smartphone or a tablet. This is present for ad queries both from
* mobile devices browsing the web and from mobile apps.
*
* If true, then this request is from a mobile application. Will always be
* true when app_id is set. May also be true for anonymous inventory, in
* which case anonymous_id will be set.
*
* If true, then this request is from a mobile application. Will always be
* true when app_id is set. May also be true for anonymous inventory, in
* which case anonymous_id will be set.
*
* If true, then this request is from a mobile application. Will always be
* true when app_id is set. May also be true for anonymous inventory, in
* which case anonymous_id will be set.
*
* If true, then this request is from a mobile application. Will always be
* true when app_id is set. May also be true for anonymous inventory, in
* which case anonymous_id will be set.
*
* The identifier of the mobile app when this ad query comes from a mobile
* app. If the app was downloaded from the Apple iTunes app store, then
* this is the app-store id. For Android devices, this is the fully
* qualified package name. Examples: 343200656, com.rovio.angrybirds
*
* The identifier of the mobile app when this ad query comes from a mobile
* app. If the app was downloaded from the Apple iTunes app store, then
* this is the app-store id. For Android devices, this is the fully
* qualified package name. Examples: 343200656, com.rovio.angrybirds
*
* The identifier of the mobile app when this ad query comes from a mobile
* app. If the app was downloaded from the Apple iTunes app store, then
* this is the app-store id. For Android devices, this is the fully
* qualified package name. Examples: 343200656, com.rovio.angrybirds
*
* The identifier of the mobile app when this ad query comes from a mobile
* app. If the app was downloaded from the Apple iTunes app store, then
* this is the app-store id. For Android devices, this is the fully
* qualified package name. Examples: 343200656, com.rovio.angrybirds
*
* The identifier of the mobile app when this ad query comes from a mobile
* app. If the app was downloaded from the Apple iTunes app store, then
* this is the app-store id. For Android devices, this is the fully
* qualified package name. Examples: 343200656, com.rovio.angrybirds
*
* The identifier of the mobile app when this ad query comes from a mobile
* app. If the app was downloaded from the Apple iTunes app store, then
* this is the app-store id. For Android devices, this is the fully
* qualified package name. Examples: 343200656, com.rovio.angrybirds
*
* This field contains the IDs of categories to which the current mobile app
* belongs. This field will be empty if is_app is false. The mapping between
* mobile apps and categories is defined by the Google Play Store for
* Android apps, or the Apple iTunes Store for iOS apps. To look up category
* name from category ID, please refer to
* https://developers.google.com/adwords/api/docs/appendix/mobileappcategories
*
* This field contains the IDs of categories to which the current mobile app
* belongs. This field will be empty if is_app is false. The mapping between
* mobile apps and categories is defined by the Google Play Store for
* Android apps, or the Apple iTunes Store for iOS apps. To look up category
* name from category ID, please refer to
* https://developers.google.com/adwords/api/docs/appendix/mobileappcategories
*
*/
public int getAppCategoryIdsCount() {
return appCategoryIds_.size();
}
/**
* repeated int32 app_category_ids = 11;
*
*
* This field contains the IDs of categories to which the current mobile app
* belongs. This field will be empty if is_app is false. The mapping between
* mobile apps and categories is defined by the Google Play Store for
* Android apps, or the Apple iTunes Store for iOS apps. To look up category
* name from category ID, please refer to
* https://developers.google.com/adwords/api/docs/appendix/mobileappcategories
*
*/
public int getAppCategoryIds(int index) {
return appCategoryIds_.get(index);
}
/**
* repeated int32 app_category_ids = 11;
*
*
* This field contains the IDs of categories to which the current mobile app
* belongs. This field will be empty if is_app is false. The mapping between
* mobile apps and categories is defined by the Google Play Store for
* Android apps, or the Apple iTunes Store for iOS apps. To look up category
* name from category ID, please refer to
* https://developers.google.com/adwords/api/docs/appendix/mobileappcategories
*
*/
public Builder setAppCategoryIds(
int index, int value) {
ensureAppCategoryIdsIsMutable();
appCategoryIds_.set(index, value);
onChanged();
return this;
}
/**
* repeated int32 app_category_ids = 11;
*
*
* This field contains the IDs of categories to which the current mobile app
* belongs. This field will be empty if is_app is false. The mapping between
* mobile apps and categories is defined by the Google Play Store for
* Android apps, or the Apple iTunes Store for iOS apps. To look up category
* name from category ID, please refer to
* https://developers.google.com/adwords/api/docs/appendix/mobileappcategories
*
* This field contains the IDs of categories to which the current mobile app
* belongs. This field will be empty if is_app is false. The mapping between
* mobile apps and categories is defined by the Google Play Store for
* Android apps, or the Apple iTunes Store for iOS apps. To look up category
* name from category ID, please refer to
* https://developers.google.com/adwords/api/docs/appendix/mobileappcategories
*
* This field contains the IDs of categories to which the current mobile app
* belongs. This field will be empty if is_app is false. The mapping between
* mobile apps and categories is defined by the Google Play Store for
* Android apps, or the Apple iTunes Store for iOS apps. To look up category
* name from category ID, please refer to
* https://developers.google.com/adwords/api/docs/appendix/mobileappcategories
*
* Apple's identifier for advertising (IDFA) as described at
* https://support.google.com/adxbuyer/answer/3221407 or Android's
* advertising identifier. When the encrypted_advertising_id is an IDFA, the
* plaintext after decrypting the ciphertext is the IDFA (16 byte UUID)
* returned by iOS's [ASIdentifierManager advertisingIdentifier]. For
* encrypted_hashed_idfa, the plaintext is the 16 byte MD5 hash of the
* IDFA. Only one of the two fields will be available, depending on the
* version of the SDK making the request. Later SDKs provide unhashed
* values. They are not set if there is one or more user_data_treatment
* value in the BidRequest, see constrained_usage_encrypted_advertising_id
* and constrained_usage_encrypted_hashed_idfa instead.
*
* Apple's identifier for advertising (IDFA) as described at
* https://support.google.com/adxbuyer/answer/3221407 or Android's
* advertising identifier. When the encrypted_advertising_id is an IDFA, the
* plaintext after decrypting the ciphertext is the IDFA (16 byte UUID)
* returned by iOS's [ASIdentifierManager advertisingIdentifier]. For
* encrypted_hashed_idfa, the plaintext is the 16 byte MD5 hash of the
* IDFA. Only one of the two fields will be available, depending on the
* version of the SDK making the request. Later SDKs provide unhashed
* values. They are not set if there is one or more user_data_treatment
* value in the BidRequest, see constrained_usage_encrypted_advertising_id
* and constrained_usage_encrypted_hashed_idfa instead.
*
* Apple's identifier for advertising (IDFA) as described at
* https://support.google.com/adxbuyer/answer/3221407 or Android's
* advertising identifier. When the encrypted_advertising_id is an IDFA, the
* plaintext after decrypting the ciphertext is the IDFA (16 byte UUID)
* returned by iOS's [ASIdentifierManager advertisingIdentifier]. For
* encrypted_hashed_idfa, the plaintext is the 16 byte MD5 hash of the
* IDFA. Only one of the two fields will be available, depending on the
* version of the SDK making the request. Later SDKs provide unhashed
* values. They are not set if there is one or more user_data_treatment
* value in the BidRequest, see constrained_usage_encrypted_advertising_id
* and constrained_usage_encrypted_hashed_idfa instead.
*
* Apple's identifier for advertising (IDFA) as described at
* https://support.google.com/adxbuyer/answer/3221407 or Android's
* advertising identifier. When the encrypted_advertising_id is an IDFA, the
* plaintext after decrypting the ciphertext is the IDFA (16 byte UUID)
* returned by iOS's [ASIdentifierManager advertisingIdentifier]. For
* encrypted_hashed_idfa, the plaintext is the 16 byte MD5 hash of the
* IDFA. Only one of the two fields will be available, depending on the
* version of the SDK making the request. Later SDKs provide unhashed
* values. They are not set if there is one or more user_data_treatment
* value in the BidRequest, see constrained_usage_encrypted_advertising_id
* and constrained_usage_encrypted_hashed_idfa instead.
*
* Only set if the BidRequest contains one or more user_data_treatment
* value. If constrained_usage_encrypted_advertising_id or
* constrained_usage_encrypted_hashed_idfa is set, then the corresponding
* non-constrained field is not set. You must be whitelisted for all
* user_data_treatments in this request in order to receive these fields.
*
* Only set if the BidRequest contains one or more user_data_treatment
* value. If constrained_usage_encrypted_advertising_id or
* constrained_usage_encrypted_hashed_idfa is set, then the corresponding
* non-constrained field is not set. You must be whitelisted for all
* user_data_treatments in this request in order to receive these fields.
*
* Only set if the BidRequest contains one or more user_data_treatment
* value. If constrained_usage_encrypted_advertising_id or
* constrained_usage_encrypted_hashed_idfa is set, then the corresponding
* non-constrained field is not set. You must be whitelisted for all
* user_data_treatments in this request in order to receive these fields.
*
* Only set if the BidRequest contains one or more user_data_treatment
* value. If constrained_usage_encrypted_advertising_id or
* constrained_usage_encrypted_hashed_idfa is set, then the corresponding
* non-constrained field is not set. You must be whitelisted for all
* user_data_treatments in this request in order to receive these fields.
*
* Unencrypted version of constrained_usage_encrypted_advertising_id. This
* field is only set when using an SSL connection. This field is a 16 byte
* UUID.
*
* Unencrypted version of constrained_usage_encrypted_advertising_id. This
* field is only set when using an SSL connection. This field is a 16 byte
* UUID.
*
* Unencrypted version of constrained_usage_encrypted_advertising_id. This
* field is only set when using an SSL connection. This field is a 16 byte
* UUID.
*
* Unencrypted version of constrained_usage_encrypted_advertising_id. This
* field is only set when using an SSL connection. This field is a 16 byte
* UUID.
*
* Unencrypted version of constrained_usage_encrypted_hashed_idfa. This
* field is only set when using an SSL connection. This field is a 16 byte
* MD5.
*
* Unencrypted version of constrained_usage_encrypted_hashed_idfa. This
* field is only set when using an SSL connection. This field is a 16 byte
* MD5.
*
* Unencrypted version of constrained_usage_encrypted_hashed_idfa. This
* field is only set when using an SSL connection. This field is a 16 byte
* MD5.
*
* Unencrypted version of constrained_usage_encrypted_hashed_idfa. This
* field is only set when using an SSL connection. This field is a 16 byte
* MD5.
*
* If true, the video is embedded on a page outside the publisher's domain.
* When this is set, description_url points to a description of the video
* (as it always does), and the url field in BidRequest is the page in which
* the video is embedded. For example, a request for an in-stream ad in a
* Vimeo video shared on Facebook has is_embedded_offsite set. The url field
* is for a Facebook page and the description_url points to the video on
* Vimeo.
*
* If true, the video is embedded on a page outside the publisher's domain.
* When this is set, description_url points to a description of the video
* (as it always does), and the url field in BidRequest is the page in which
* the video is embedded. For example, a request for an in-stream ad in a
* Vimeo video shared on Facebook has is_embedded_offsite set. The url field
* is for a Facebook page and the description_url points to the video on
* Vimeo.
*
* Whether the inventory allows clicking on the video ad to take the user to
* an advertiser site. Some platforms, notably connected TVs, do not
* support clicking on video ads, in which case this field is set to false.
*
* Whether the inventory allows clicking on the video ad to take the user to
* an advertiser site. Some platforms, notably connected TVs, do not
* support clicking on video ads, in which case this field is set to false.
*
* The time in milliseconds from the start of the video when the ad will be
* displayed. 0 means pre-roll and -1 means post-roll. The value is valid
* only if this param is set. When not set, the display position is unknown.
*
* The time in milliseconds from the start of the video when the ad will be
* displayed. 0 means pre-roll and -1 means post-roll. The value is valid
* only if this param is set. When not set, the display position is unknown.
*
* The maximum number of ads in an Adx video pod. A non-zero value indicates
* that the current ad slot is a video pod that can show multiple video
* ads. Actual number of video ads shown can be less than or equal to this
* value but cannot exceed it.
*
* The maximum number of ads in an Adx video pod. A non-zero value indicates
* that the current ad slot is a video pod that can show multiple video
* ads. Actual number of video ads shown can be less than or equal to this
* value but cannot exceed it.
*
* The maximum duration in milliseconds for the ad you should return, if
* this ad is skippable (this generally differs from the maximum duration
* allowed for non-skippable ads). If this is not set or has value <= 0, any
* duration is allowed.
*
* The maximum duration in milliseconds for the ad you should return, if
* this ad is skippable (this generally differs from the maximum duration
* allowed for non-skippable ads). If this is not set or has value <= 0, any
* duration is allowed.
*