All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.protos.adx.NetworkBid Maven / Gradle / Ivy

// 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.
     * 
*/ boolean hasId(); /** * required bytes id = 2; * *
     * Unique request id generated by Google. This is 16 bytes long.
     * 
*/ com.google.protobuf.ByteString getId(); /** * optional bytes ip = 4; * *
     * 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.
     * 
*/ boolean hasIp(); /** * optional bytes ip = 4; * *
     * 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.
     * 
*/ com.google.protobuf.ByteString getIp(); /** * repeated .com.google.protos.adx.BidRequest.UserDataTreatment user_data_treatment = 49; * *
     * 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
     * 
*/ java.util.List getUserDataTreatmentList(); /** * repeated .com.google.protos.adx.BidRequest.UserDataTreatment user_data_treatment = 49; * *
     * 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
     * 
*/ int getUserDataTreatmentCount(); /** * repeated .com.google.protos.adx.BidRequest.UserDataTreatment user_data_treatment = 49; * *
     * 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
     * 
*/ com.google.protos.adx.NetworkBid.BidRequest.UserDataTreatment getUserDataTreatment(int index); /** * optional string google_user_id = 21; * *
     * 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.
     * 
*/ boolean hasGoogleUserId(); /** * optional string google_user_id = 21; * *
     * 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.
     * 
*/ java.lang.String getGoogleUserId(); /** * optional string google_user_id = 21; * *
     * 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.
     * 
*/ com.google.protobuf.ByteString getGoogleUserIdBytes(); /** * optional string constrained_usage_google_user_id = 47; * *
     * 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.
     * 
*/ boolean hasConstrainedUsageGoogleUserId(); /** * optional string constrained_usage_google_user_id = 47; * *
     * 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.
     * 
*/ java.lang.String getConstrainedUsageGoogleUserId(); /** * optional string constrained_usage_google_user_id = 47; * *
     * 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.
     * 
*/ com.google.protobuf.ByteString getConstrainedUsageGoogleUserIdBytes(); /** * optional uint32 cookie_version = 20; * *
     * 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.
     * 
*/ boolean hasCookieVersion(); /** * optional uint32 cookie_version = 20; * *
     * 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.
     * 
*/ int getCookieVersion(); /** * optional int32 cookie_age_seconds = 31; * *
     * The time in seconds since the google_user_id was created.
     * This number may be quantized.
     * 
*/ boolean hasCookieAgeSeconds(); /** * optional int32 cookie_age_seconds = 31; * *
     * The time in seconds since the google_user_id was created.
     * This number may be quantized.
     * 
*/ int getCookieAgeSeconds(); /** * optional bytes hosted_match_data = 37; * *
     * 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.
     * 
*/ boolean hasHostedMatchData(); /** * optional bytes hosted_match_data = 37; * *
     * 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.
     * 
*/ com.google.protobuf.ByteString getHostedMatchData(); /** * optional bytes constrained_usage_hosted_match_data = 48; * *
     * 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.
     * 
*/ boolean hasConstrainedUsageHostedMatchData(); /** * optional bytes constrained_usage_hosted_match_data = 48; * *
     * 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.
     * 
*/ com.google.protobuf.ByteString getConstrainedUsageHostedMatchData(); /** * optional string user_agent = 6; * *
     * A string that identifies the browser and type of device that sent the
     * request.
     * 
*/ boolean hasUserAgent(); /** * optional string user_agent = 6; * *
     * A string that identifies the browser and type of device that sent the
     * request.
     * 
*/ java.lang.String getUserAgent(); /** * optional string user_agent = 6; * *
     * A string that identifies the browser and type of device that sent the
     * request.
     * 
*/ com.google.protobuf.ByteString getUserAgentBytes(); /** * optional int32 geo_criteria_id = 39; * *
     * 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.
     * 
*/ boolean hasGeoCriteriaId(); /** * optional int32 geo_criteria_id = 39; * *
     * 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.
     * 
*/ int getGeoCriteriaId(); /** * optional string postal_code = 33; * *
     * 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.
     * 
*/ boolean hasPostalCode(); /** * optional string postal_code = 33; * *
     * 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.
     * 
*/ java.lang.String getPostalCode(); /** * optional string postal_code = 33; * *
     * 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.
     * 
*/ com.google.protobuf.ByteString getPostalCodeBytes(); /** * optional string postal_code_prefix = 34; */ boolean hasPostalCodePrefix(); /** * optional string postal_code_prefix = 34; */ java.lang.String getPostalCodePrefix(); /** * optional string postal_code_prefix = 34; */ com.google.protobuf.ByteString getPostalCodePrefixBytes(); /** * optional bytes encrypted_hyperlocal_set = 40; * *
     * Hyperlocal targeting signal when available, encrypted as described at
     * https://developers.google.com/ad-exchange/rtb/response-guide/decrypt-hyperlocal
     * 
*/ boolean hasEncryptedHyperlocalSet(); /** * optional bytes encrypted_hyperlocal_set = 40; * *
     * Hyperlocal targeting signal when available, encrypted as described at
     * https://developers.google.com/ad-exchange/rtb/response-guide/decrypt-hyperlocal
     * 
*/ com.google.protobuf.ByteString getEncryptedHyperlocalSet(); /** * optional .com.google.protos.adx.BidRequest.HyperlocalSet hyperlocal_set = 53; * *
     * Unencrypted version of encrypted_hyperlocal_set. This field is only set
     * when using an SSL connection.
     * 
*/ boolean hasHyperlocalSet(); /** * optional .com.google.protos.adx.BidRequest.HyperlocalSet hyperlocal_set = 53; * *
     * Unencrypted version of encrypted_hyperlocal_set. This field is only set
     * when using an SSL connection.
     * 
*/ com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSet getHyperlocalSet(); /** * optional .com.google.protos.adx.BidRequest.HyperlocalSet hyperlocal_set = 53; * *
     * Unencrypted version of encrypted_hyperlocal_set. This field is only set
     * when using an SSL connection.
     * 
*/ com.google.protos.adx.NetworkBid.BidRequest.HyperlocalSetOrBuilder getHyperlocalSetOrBuilder(); /** * optional int32 timezone_offset = 25; * *
     * The offset of the user's time from GMT in minutes. For example, GMT+10 is
     * timezone_offset = 600.
     * 
*/ boolean hasTimezoneOffset(); /** * optional int32 timezone_offset = 25; * *
     * The offset of the user's time from GMT in minutes. For example, GMT+10 is
     * timezone_offset = 600.
     * 
*/ int getTimezoneOffset(); /** * repeated int32 user_vertical = 30 [packed = true]; * *
     * List of detected user verticals. Currently unused.
     * 
*/ java.util.List getUserVerticalList(); /** * repeated int32 user_vertical = 30 [packed = true]; * *
     * List of detected user verticals. Currently unused.
     * 
*/ int getUserVerticalCount(); /** * repeated int32 user_vertical = 30 [packed = true]; * *
     * List of detected user verticals. Currently unused.
     * 
*/ int getUserVertical(int index); /** * optional .com.google.protos.adx.BidRequest.UserDemographic user_demographic = 50; */ boolean hasUserDemographic(); /** * optional .com.google.protos.adx.BidRequest.UserDemographic user_demographic = 50; */ com.google.protos.adx.NetworkBid.BidRequest.UserDemographic getUserDemographic(); /** * optional .com.google.protos.adx.BidRequest.UserDemographic user_demographic = 50; */ com.google.protos.adx.NetworkBid.BidRequest.UserDemographicOrBuilder getUserDemographicOrBuilder(); /** * repeated .com.google.protos.adx.BidRequest.UserList user_list = 32; */ java.util.List getUserListList(); /** * repeated .com.google.protos.adx.BidRequest.UserList user_list = 32; */ com.google.protos.adx.NetworkBid.BidRequest.UserList getUserList(int index); /** * repeated .com.google.protos.adx.BidRequest.UserList user_list = 32; */ int getUserListCount(); /** * repeated .com.google.protos.adx.BidRequest.UserList user_list = 32; */ java.util.List getUserListOrBuilderList(); /** * repeated .com.google.protos.adx.BidRequest.UserList user_list = 32; */ com.google.protos.adx.NetworkBid.BidRequest.UserListOrBuilder getUserListOrBuilder( int index); /** * optional int32 seller_network_id = 41; * *
     * 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.
     * 
*/ boolean hasSellerNetworkId(); /** * optional int32 seller_network_id = 41; * *
     * 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.
     * 
*/ int getSellerNetworkId(); /** * optional fixed64 partner_id = 52; * *
     * 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.
     * 
*/ boolean hasPartnerId(); /** * optional fixed64 partner_id = 52; * *
     * 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.
     * 
*/ long getPartnerId(); /** * optional string url = 11; * *
     * 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.
     * 
*/ boolean hasUrl(); /** * optional string url = 11; * *
     * 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.
     * 
*/ java.lang.String getUrl(); /** * optional string url = 11; * *
     * 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.
     * 
*/ com.google.protobuf.ByteString getUrlBytes(); /** * optional string anonymous_id = 19; * *
     * 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.
     * 
*/ boolean hasAnonymousId(); /** * optional string anonymous_id = 19; * *
     * 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.
     * 
*/ java.lang.String getAnonymousId(); /** * optional string anonymous_id = 19; * *
     * 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.
     * 
*/ com.google.protobuf.ByteString getAnonymousIdBytes(); /** * repeated string detected_language = 12; * *
     * 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
     * 
*/ com.google.protobuf.ProtocolStringList getDetectedLanguageList(); /** * repeated string detected_language = 12; * *
     * 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
     * 
*/ int getDetectedLanguageCount(); /** * repeated string detected_language = 12; * *
     * 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
     * 
*/ java.lang.String getDetectedLanguage(int index); /** * repeated string detected_language = 12; * *
     * 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
     * 
*/ com.google.protobuf.ByteString getDetectedLanguageBytes(int index); /** * repeated .com.google.protos.adx.BidRequest.Vertical detected_vertical = 13; * *
     * Unordered list of detected content verticals. See the
     * publisher-verticals.txt file in the technical documentation for a list of
     * ids.
     * 
*/ java.util.List getDetectedVerticalList(); /** * repeated .com.google.protos.adx.BidRequest.Vertical detected_vertical = 13; * *
     * Unordered list of detected content verticals. See the
     * publisher-verticals.txt file in the technical documentation for a list of
     * ids.
     * 
*/ com.google.protos.adx.NetworkBid.BidRequest.Vertical getDetectedVertical(int index); /** * repeated .com.google.protos.adx.BidRequest.Vertical detected_vertical = 13; * *
     * Unordered list of detected content verticals. See the
     * publisher-verticals.txt file in the technical documentation for a list of
     * ids.
     * 
*/ int getDetectedVerticalCount(); /** * repeated .com.google.protos.adx.BidRequest.Vertical detected_vertical = 13; * *
     * Unordered list of detected content verticals. See the
     * publisher-verticals.txt file in the technical documentation for a list of
     * ids.
     * 
*/ java.util.List getDetectedVerticalOrBuilderList(); /** * repeated .com.google.protos.adx.BidRequest.Vertical detected_vertical = 13; * *
     * Unordered list of detected content verticals. See the
     * publisher-verticals.txt file in the technical documentation for a list of
     * ids.
     * 
*/ com.google.protos.adx.NetworkBid.BidRequest.VerticalOrBuilder getDetectedVerticalOrBuilder( int index); /** * repeated int32 detected_content_label = 26 [packed = true]; * *
     * List of detected content labels. See content-labels.txt file in the
     * technical documentation for a list of ids.
     * 
*/ java.util.List getDetectedContentLabelList(); /** * repeated int32 detected_content_label = 26 [packed = true]; * *
     * List of detected content labels. See content-labels.txt file in the
     * technical documentation for a list of ids.
     * 
*/ int getDetectedContentLabelCount(); /** * repeated int32 detected_content_label = 26 [packed = true]; * *
     * List of detected content labels. See content-labels.txt file in the
     * technical documentation for a list of ids.
     * 
*/ int getDetectedContentLabel(int index); /** * optional .com.google.protos.adx.BidRequest.Device device = 54; */ boolean hasDevice(); /** * optional .com.google.protos.adx.BidRequest.Device device = 54; */ com.google.protos.adx.NetworkBid.BidRequest.Device getDevice(); /** * optional .com.google.protos.adx.BidRequest.Device device = 54; */ com.google.protos.adx.NetworkBid.BidRequest.DeviceOrBuilder getDeviceOrBuilder(); /** * repeated .com.google.protos.adx.BidRequest.KeyValue key_value = 38; */ java.util.List getKeyValueList(); /** * repeated .com.google.protos.adx.BidRequest.KeyValue key_value = 38; */ com.google.protos.adx.NetworkBid.BidRequest.KeyValue getKeyValue(int index); /** * repeated .com.google.protos.adx.BidRequest.KeyValue key_value = 38; */ int getKeyValueCount(); /** * repeated .com.google.protos.adx.BidRequest.KeyValue key_value = 38; */ java.util.List getKeyValueOrBuilderList(); /** * repeated .com.google.protos.adx.BidRequest.KeyValue key_value = 38; */ com.google.protos.adx.NetworkBid.BidRequest.KeyValueOrBuilder getKeyValueOrBuilder( int index); /** * optional .com.google.protos.adx.BidRequest.Mobile mobile = 28; */ boolean hasMobile(); /** * optional .com.google.protos.adx.BidRequest.Mobile mobile = 28; */ com.google.protos.adx.NetworkBid.BidRequest.Mobile getMobile(); /** * optional .com.google.protos.adx.BidRequest.Mobile mobile = 28; */ com.google.protos.adx.NetworkBid.BidRequest.MobileOrBuilder getMobileOrBuilder(); /** * optional .com.google.protos.adx.BidRequest.Video video = 29; */ boolean hasVideo(); /** * optional .com.google.protos.adx.BidRequest.Video video = 29; */ com.google.protos.adx.NetworkBid.BidRequest.Video getVideo(); /** * optional .com.google.protos.adx.BidRequest.Video video = 29; */ com.google.protos.adx.NetworkBid.BidRequest.VideoOrBuilder getVideoOrBuilder(); /** * optional fixed64 publisher_settings_list_id = 42; * *
     * 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.
     * 
*/ boolean hasPublisherSettingsListId(); /** * optional fixed64 publisher_settings_list_id = 42; * *
     * 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.
     * 
*/ long getPublisherSettingsListId(); /** * optional .com.google.protos.adx.BidRequest.PublisherType publisher_type = 51 [default = UNKNOWN_PUBLISHER_TYPE]; */ boolean hasPublisherType(); /** * optional .com.google.protos.adx.BidRequest.PublisherType publisher_type = 51 [default = UNKNOWN_PUBLISHER_TYPE]; */ com.google.protos.adx.NetworkBid.BidRequest.PublisherType getPublisherType(); /** * repeated .com.google.protos.adx.BidRequest.AdSlot adslot = 14; */ java.util.List getAdslotList(); /** * repeated .com.google.protos.adx.BidRequest.AdSlot adslot = 14; */ com.google.protos.adx.NetworkBid.BidRequest.AdSlot getAdslot(int index); /** * repeated .com.google.protos.adx.BidRequest.AdSlot adslot = 14; */ int getAdslotCount(); /** * repeated .com.google.protos.adx.BidRequest.AdSlot adslot = 14; */ java.util.List getAdslotOrBuilderList(); /** * repeated .com.google.protos.adx.BidRequest.AdSlot adslot = 14; */ com.google.protos.adx.NetworkBid.BidRequest.AdSlotOrBuilder getAdslotOrBuilder( int index); /** * repeated .com.google.protos.adx.BidRequest.BidResponseFeedback bid_response_feedback = 44; */ java.util.List getBidResponseFeedbackList(); /** * repeated .com.google.protos.adx.BidRequest.BidResponseFeedback bid_response_feedback = 44; */ com.google.protos.adx.NetworkBid.BidRequest.BidResponseFeedback getBidResponseFeedback(int index); /** * repeated .com.google.protos.adx.BidRequest.BidResponseFeedback bid_response_feedback = 44; */ int getBidResponseFeedbackCount(); /** * repeated .com.google.protos.adx.BidRequest.BidResponseFeedback bid_response_feedback = 44; */ java.util.List getBidResponseFeedbackOrBuilderList(); /** * repeated .com.google.protos.adx.BidRequest.BidResponseFeedback bid_response_feedback = 44; */ com.google.protos.adx.NetworkBid.BidRequest.BidResponseFeedbackOrBuilder getBidResponseFeedbackOrBuilder( int index); /** * optional bool is_test = 15 [default = false]; * *
     * 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.
     * 
*/ boolean hasIsTest(); /** * optional bool is_test = 15 [default = false]; * *
     * 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.
     * 
*/ boolean getIsTest(); /** * optional bool is_ping = 17 [default = false]; * *
     * 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.
     * 
*/ boolean hasIsPing(); /** * optional bool is_ping = 17 [default = false]; * *
     * 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.
     * 
*/ boolean getIsPing(); /** * optional bool is_predicted_to_be_ignored = 45 [default = false]; * *
     * 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.
     * 
*/ boolean hasIsPredictedToBeIgnored(); /** * optional bool is_predicted_to_be_ignored = 45 [default = false]; * *
     * 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.
     * 
*/ boolean getIsPredictedToBeIgnored(); /** * optional int32 DEPRECATED_protocol_version = 1; * *
     * These are deprecated. Please ignore.
     * 
*/ boolean hasDEPRECATEDProtocolVersion(); /** * optional int32 DEPRECATED_protocol_version = 1; * *
     * These are deprecated. Please ignore.
     * 
*/ int getDEPRECATEDProtocolVersion(); /** * optional string DEPRECATED_click_tracking_url = 3; */ boolean hasDEPRECATEDClickTrackingUrl(); /** * optional string DEPRECATED_click_tracking_url = 3; */ java.lang.String getDEPRECATEDClickTrackingUrl(); /** * optional string DEPRECATED_click_tracking_url = 3; */ com.google.protobuf.ByteString getDEPRECATEDClickTrackingUrlBytes(); /** * optional uint64 DEPRECATED_cookie = 5; */ boolean hasDEPRECATEDCookie(); /** * optional uint64 DEPRECATED_cookie = 5; */ long getDEPRECATEDCookie(); /** * optional string DEPRECATED_country = 7; */ boolean hasDEPRECATEDCountry(); /** * optional string DEPRECATED_country = 7; */ java.lang.String getDEPRECATEDCountry(); /** * optional string DEPRECATED_country = 7; */ com.google.protobuf.ByteString getDEPRECATEDCountryBytes(); /** * optional string DEPRECATED_region = 8; */ boolean hasDEPRECATEDRegion(); /** * optional string DEPRECATED_region = 8; */ java.lang.String getDEPRECATEDRegion(); /** * optional string DEPRECATED_region = 8; */ com.google.protobuf.ByteString getDEPRECATEDRegionBytes(); /** * optional string DEPRECATED_city = 9; */ boolean hasDEPRECATEDCity(); /** * optional string DEPRECATED_city = 9; */ java.lang.String getDEPRECATEDCity(); /** * optional string DEPRECATED_city = 9; */ com.google.protobuf.ByteString getDEPRECATEDCityBytes(); /** * optional int32 DEPRECATED_metro = 10; */ boolean hasDEPRECATEDMetro(); /** * optional int32 DEPRECATED_metro = 10; */ int getDEPRECATEDMetro(); /** * optional bytes DEPRECATED_hashed_cookie = 16; */ boolean hasDEPRECATEDHashedCookie(); /** * optional bytes DEPRECATED_hashed_cookie = 16; */ com.google.protobuf.ByteString getDEPRECATEDHashedCookie(); /** * repeated string DEPRECATED_excluded_click_through_url = 18; */ com.google.protobuf.ProtocolStringList getDEPRECATEDExcludedClickThroughUrlList(); /** * repeated string DEPRECATED_excluded_click_through_url = 18; */ int getDEPRECATEDExcludedClickThroughUrlCount(); /** * repeated string DEPRECATED_excluded_click_through_url = 18; */ java.lang.String getDEPRECATEDExcludedClickThroughUrl(int index); /** * repeated string DEPRECATED_excluded_click_through_url = 18; */ com.google.protobuf.ByteString getDEPRECATEDExcludedClickThroughUrlBytes(int index); /** * optional string DEPRECATED_seller_network = 22; */ boolean hasDEPRECATEDSellerNetwork(); /** * optional string DEPRECATED_seller_network = 22; */ java.lang.String getDEPRECATEDSellerNetwork(); /** * optional string DEPRECATED_seller_network = 22; */ com.google.protobuf.ByteString getDEPRECATEDSellerNetworkBytes(); /** * optional bytes DEPRECATED_publisher_settings_list_id = 23; */ boolean hasDEPRECATEDPublisherSettingsListId(); /** * optional bytes DEPRECATED_publisher_settings_list_id = 23; */ com.google.protobuf.ByteString getDEPRECATEDPublisherSettingsListId(); /** * repeated .com.google.protos.adx.BidRequest.MatchingNetwork DEPRECATED_matching_network = 27; */ java.util.List getDEPRECATEDMatchingNetworkList(); /** * repeated .com.google.protos.adx.BidRequest.MatchingNetwork DEPRECATED_matching_network = 27; */ com.google.protos.adx.NetworkBid.BidRequest.MatchingNetwork getDEPRECATEDMatchingNetwork(int index); /** * repeated .com.google.protos.adx.BidRequest.MatchingNetwork DEPRECATED_matching_network = 27; */ int getDEPRECATEDMatchingNetworkCount(); /** * repeated .com.google.protos.adx.BidRequest.MatchingNetwork DEPRECATED_matching_network = 27; */ java.util.List getDEPRECATEDMatchingNetworkOrBuilderList(); /** * repeated .com.google.protos.adx.BidRequest.MatchingNetwork DEPRECATED_matching_network = 27; */ com.google.protos.adx.NetworkBid.BidRequest.MatchingNetworkOrBuilder getDEPRECATEDMatchingNetworkOrBuilder( int index); /** * optional bool DEPRECATED_experimental_deadline = 35 [default = false]; */ boolean hasDEPRECATEDExperimentalDeadline(); /** * optional bool DEPRECATED_experimental_deadline = 35 [default = false]; */ boolean getDEPRECATEDExperimentalDeadline(); /** * repeated int32 DEPRECATED_site_list_id = 36; */ java.util.List getDEPRECATEDSiteListIdList(); /** * repeated int32 DEPRECATED_site_list_id = 36; */ int getDEPRECATEDSiteListIdCount(); /** * repeated int32 DEPRECATED_site_list_id = 36; */ int getDEPRECATEDSiteListId(int index); /** * optional int32 DEPRECATED_vertical_dictionary_version = 24; */ boolean hasDEPRECATEDVerticalDictionaryVersion(); /** * optional int32 DEPRECATED_vertical_dictionary_version = 24; */ int getDEPRECATEDVerticalDictionaryVersion(); } /** * Protobuf type {@code com.google.protos.adx.BidRequest} * *
   * 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.
       * 
*/ java.util.List getCornersList(); /** * 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.
       * 
*/ com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point getCorners(int 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.
       * 
*/ int getCornersCount(); /** * 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.
       * 
*/ java.util.List getCornersOrBuilderList(); /** * 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.
       * 
*/ 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.
       * 
*/ public java.util.List getCornersList() { return 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.
       * 
*/ public java.util.List getCornersOrBuilderList() { return 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.
       * 
*/ 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.
       * 
*/ public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point getCorners(int index) { return corners_.get(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) { 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.
         * 
*/ public java.util.List getCornersList() { if (cornersBuilder_ == null) { return java.util.Collections.unmodifiableList(corners_); } else { return cornersBuilder_.getMessageList(); } } /** * 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 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.
         * 
*/ public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point getCorners(int index) { if (cornersBuilder_ == null) { return corners_.get(index); } else { return cornersBuilder_.getMessage(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 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.
         * 
*/ public Builder setCorners( int index, com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.Builder builderForValue) { if (cornersBuilder_ == null) { ensureCornersIsMutable(); corners_.set(index, builderForValue.build()); onChanged(); } else { cornersBuilder_.setMessage(index, builderForValue.build()); } 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(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.
         * 
*/ public Builder addCorners( com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.Builder builderForValue) { if (cornersBuilder_ == null) { ensureCornersIsMutable(); corners_.add(builderForValue.build()); onChanged(); } else { cornersBuilder_.addMessage(builderForValue.build()); } 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.Builder builderForValue) { if (cornersBuilder_ == null) { ensureCornersIsMutable(); corners_.add(index, builderForValue.build()); onChanged(); } else { cornersBuilder_.addMessage(index, builderForValue.build()); } 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 addAllCorners( java.lang.Iterable values) { if (cornersBuilder_ == null) { ensureCornersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, corners_); onChanged(); } else { cornersBuilder_.addAllMessages(values); } 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 clearCorners() { if (cornersBuilder_ == null) { corners_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { cornersBuilder_.clear(); } 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 removeCorners(int index) { if (cornersBuilder_ == null) { ensureCornersIsMutable(); corners_.remove(index); onChanged(); } else { cornersBuilder_.remove(index); } 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 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.
         * 
*/ public java.util.List getCornersOrBuilderList() { if (cornersBuilder_ != null) { return cornersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(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.
         * 
*/ public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.Builder addCornersBuilder() { return getCornersFieldBuilder().addBuilder( com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.getDefaultInstance()); } /** * 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.Point.Builder addCornersBuilder( int index) { return getCornersFieldBuilder().addBuilder( index, com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.getDefaultInstance()); } /** * 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 java.util.List getCornersBuilderList() { return getCornersFieldBuilder().getBuilderList(); } 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> getCornersFieldBuilder() { if (cornersBuilder_ == null) { cornersBuilder_ = new 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>( corners_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); corners_ = null; } return cornersBuilder_; } // @@protoc_insertion_point(builder_scope:com.google.protos.adx.BidRequest.Hyperlocal) } static { defaultInstance = new Hyperlocal(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.adx.BidRequest.Hyperlocal) } public interface HyperlocalSetOrBuilder extends // @@protoc_insertion_point(interface_extends:com.google.protos.adx.BidRequest.HyperlocalSet) com.google.protobuf.MessageOrBuilder { /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
       * This field currently contains at most one hyperlocal polygon.
       * 
*/ java.util.List getHyperlocalList(); /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
       * This field currently contains at most one hyperlocal polygon.
       * 
*/ com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal getHyperlocal(int index); /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
       * This field currently contains at most one hyperlocal polygon.
       * 
*/ int getHyperlocalCount(); /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
       * This field currently contains at most one hyperlocal polygon.
       * 
*/ java.util.List getHyperlocalOrBuilderList(); /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
       * This field currently contains at most one hyperlocal polygon.
       * 
*/ com.google.protos.adx.NetworkBid.BidRequest.HyperlocalOrBuilder getHyperlocalOrBuilder( int index); /** * 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.
       * 
*/ boolean hasCenterPoint(); /** * 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.
       * 
*/ com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point getCenterPoint(); /** * 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.
       * 
*/ 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.
       * 
*/ public java.util.List getHyperlocalList() { return hyperlocal_; } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
       * This field currently contains at most one hyperlocal polygon.
       * 
*/ public java.util.List getHyperlocalOrBuilderList() { return hyperlocal_; } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
       * This field currently contains at most one hyperlocal polygon.
       * 
*/ public int getHyperlocalCount() { return hyperlocal_.size(); } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
       * This field currently contains at most one hyperlocal polygon.
       * 
*/ public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal getHyperlocal(int index) { return hyperlocal_.get(index); } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
       * 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.
       * 
*/ public boolean hasCenterPoint() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * 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.
       * 
*/ public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point getCenterPoint() { return 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.
       * 
*/ 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.
         * 
*/ public java.util.List getHyperlocalList() { if (hyperlocalBuilder_ == null) { return java.util.Collections.unmodifiableList(hyperlocal_); } else { return hyperlocalBuilder_.getMessageList(); } } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
         * This field currently contains at most one hyperlocal polygon.
         * 
*/ public int getHyperlocalCount() { if (hyperlocalBuilder_ == null) { return hyperlocal_.size(); } else { return hyperlocalBuilder_.getCount(); } } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
         * This field currently contains at most one hyperlocal polygon.
         * 
*/ public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal getHyperlocal(int index) { if (hyperlocalBuilder_ == null) { return hyperlocal_.get(index); } else { return hyperlocalBuilder_.getMessage(index); } } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
         * This field currently contains at most one hyperlocal polygon.
         * 
*/ public Builder setHyperlocal( int index, com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal value) { if (hyperlocalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHyperlocalIsMutable(); hyperlocal_.set(index, value); onChanged(); } else { hyperlocalBuilder_.setMessage(index, value); } return this; } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
         * This field currently contains at most one hyperlocal polygon.
         * 
*/ public Builder setHyperlocal( int index, com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Builder builderForValue) { if (hyperlocalBuilder_ == null) { ensureHyperlocalIsMutable(); hyperlocal_.set(index, builderForValue.build()); onChanged(); } else { hyperlocalBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
         * This field currently contains at most one hyperlocal polygon.
         * 
*/ public Builder addHyperlocal(com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal value) { if (hyperlocalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHyperlocalIsMutable(); hyperlocal_.add(value); onChanged(); } else { hyperlocalBuilder_.addMessage(value); } return this; } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
         * This field currently contains at most one hyperlocal polygon.
         * 
*/ public Builder addHyperlocal( int index, com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal value) { if (hyperlocalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHyperlocalIsMutable(); hyperlocal_.add(index, value); onChanged(); } else { hyperlocalBuilder_.addMessage(index, value); } return this; } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
         * This field currently contains at most one hyperlocal polygon.
         * 
*/ public Builder addHyperlocal( com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Builder builderForValue) { if (hyperlocalBuilder_ == null) { ensureHyperlocalIsMutable(); hyperlocal_.add(builderForValue.build()); onChanged(); } else { hyperlocalBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
         * This field currently contains at most one hyperlocal polygon.
         * 
*/ public Builder addHyperlocal( int index, com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Builder builderForValue) { if (hyperlocalBuilder_ == null) { ensureHyperlocalIsMutable(); hyperlocal_.add(index, builderForValue.build()); onChanged(); } else { hyperlocalBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
         * This field currently contains at most one hyperlocal polygon.
         * 
*/ public Builder addAllHyperlocal( java.lang.Iterable values) { if (hyperlocalBuilder_ == null) { ensureHyperlocalIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, hyperlocal_); onChanged(); } else { hyperlocalBuilder_.addAllMessages(values); } return this; } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
         * This field currently contains at most one hyperlocal polygon.
         * 
*/ public Builder clearHyperlocal() { if (hyperlocalBuilder_ == null) { hyperlocal_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { hyperlocalBuilder_.clear(); } return this; } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
         * This field currently contains at most one hyperlocal polygon.
         * 
*/ public Builder removeHyperlocal(int index) { if (hyperlocalBuilder_ == null) { ensureHyperlocalIsMutable(); hyperlocal_.remove(index); onChanged(); } else { hyperlocalBuilder_.remove(index); } return this; } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
         * This field currently contains at most one hyperlocal polygon.
         * 
*/ public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Builder getHyperlocalBuilder( int index) { return getHyperlocalFieldBuilder().getBuilder(index); } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
         * This field currently contains at most one hyperlocal polygon.
         * 
*/ public com.google.protos.adx.NetworkBid.BidRequest.HyperlocalOrBuilder getHyperlocalOrBuilder( int index) { if (hyperlocalBuilder_ == null) { return hyperlocal_.get(index); } else { return hyperlocalBuilder_.getMessageOrBuilder(index); } } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
         * This field currently contains at most one hyperlocal polygon.
         * 
*/ public java.util.List getHyperlocalOrBuilderList() { if (hyperlocalBuilder_ != null) { return hyperlocalBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(hyperlocal_); } } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
         * This field currently contains at most one hyperlocal polygon.
         * 
*/ public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Builder addHyperlocalBuilder() { return getHyperlocalFieldBuilder().addBuilder( com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.getDefaultInstance()); } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
         * This field currently contains at most one hyperlocal polygon.
         * 
*/ public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Builder addHyperlocalBuilder( int index) { return getHyperlocalFieldBuilder().addBuilder( index, com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.getDefaultInstance()); } /** * repeated .com.google.protos.adx.BidRequest.Hyperlocal hyperlocal = 1; * *
         * This field currently contains at most one hyperlocal polygon.
         * 
*/ public java.util.List getHyperlocalBuilderList() { return getHyperlocalFieldBuilder().getBuilderList(); } 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> getHyperlocalFieldBuilder() { if (hyperlocalBuilder_ == null) { hyperlocalBuilder_ = new 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>( hyperlocal_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); hyperlocal_ = null; } return hyperlocalBuilder_; } private com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point centerPoint_ = com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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> centerPointBuilder_; /** * 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.
         * 
*/ public boolean hasCenterPoint() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * 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.
         * 
*/ public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point getCenterPoint() { if (centerPointBuilder_ == null) { return centerPoint_; } else { return centerPointBuilder_.getMessage(); } } /** * 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.
         * 
*/ public Builder setCenterPoint(com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point value) { if (centerPointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } centerPoint_ = value; onChanged(); } else { centerPointBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * 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.
         * 
*/ public Builder setCenterPoint( com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.Builder builderForValue) { if (centerPointBuilder_ == null) { centerPoint_ = builderForValue.build(); onChanged(); } else { centerPointBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * 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.
         * 
*/ public Builder mergeCenterPoint(com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point value) { if (centerPointBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && centerPoint_ != com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.getDefaultInstance()) { centerPoint_ = com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.newBuilder(centerPoint_).mergeFrom(value).buildPartial(); } else { centerPoint_ = value; } onChanged(); } else { centerPointBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * 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.
         * 
*/ public Builder clearCenterPoint() { if (centerPointBuilder_ == null) { centerPoint_ = com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.getDefaultInstance(); onChanged(); } else { centerPointBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * 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.
         * 
*/ public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.Point.Builder getCenterPointBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCenterPointFieldBuilder().getBuilder(); } /** * 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.
         * 
*/ public com.google.protos.adx.NetworkBid.BidRequest.Hyperlocal.PointOrBuilder getCenterPointOrBuilder() { if (centerPointBuilder_ != null) { return centerPointBuilder_.getMessageOrBuilder(); } else { return 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.
         * 
*/ private com.google.protobuf.SingleFieldBuilder< 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> getCenterPointFieldBuilder() { if (centerPointBuilder_ == null) { centerPointBuilder_ = new com.google.protobuf.SingleFieldBuilder< 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>( getCenterPoint(), getParentForChildren(), isClean()); centerPoint_ = null; } return centerPointBuilder_; } // @@protoc_insertion_point(builder_scope:com.google.protos.adx.BidRequest.HyperlocalSet) } static { defaultInstance = new HyperlocalSet(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.adx.BidRequest.HyperlocalSet) } public interface UserDemographicOrBuilder extends // @@protoc_insertion_point(interface_extends:com.google.protos.adx.BidRequest.UserDemographic) com.google.protobuf.MessageOrBuilder { /** * optional .com.google.protos.adx.BidRequest.UserDemographic.Gender gender = 1 [default = UNKNOWN]; * *
       * Gender
       * 
*/ boolean hasGender(); /** * optional .com.google.protos.adx.BidRequest.UserDemographic.Gender gender = 1 [default = UNKNOWN]; * *
       * Gender
       * 
*/ com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.Gender getGender(); /** * optional int32 age_low = 2 [default = 0]; * *
       * Age interval
       * 
*/ boolean hasAgeLow(); /** * optional int32 age_low = 2 [default = 0]; * *
       * Age interval
       * 
*/ int getAgeLow(); /** * optional int32 age_high = 3 [default = 999]; */ boolean hasAgeHigh(); /** * optional int32 age_high = 3 [default = 999]; */ int getAgeHigh(); } /** * Protobuf type {@code com.google.protos.adx.BidRequest.UserDemographic} * *
     * Demographic data provided by the publisher.
     * 
*/ public static final class UserDemographic extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.google.protos.adx.BidRequest.UserDemographic) UserDemographicOrBuilder { // Use UserDemographic.newBuilder() to construct. private UserDemographic(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private UserDemographic(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final UserDemographic defaultInstance; public static UserDemographic getDefaultInstance() { return defaultInstance; } public UserDemographic getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UserDemographic( 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: { int rawValue = input.readEnum(); com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.Gender value = com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.Gender.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; gender_ = value; } break; } case 16: { bitField0_ |= 0x00000002; ageLow_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; ageHigh_ = 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_UserDemographic_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_UserDemographic_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.class, com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UserDemographic parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UserDemographic(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } /** * Protobuf enum {@code com.google.protos.adx.BidRequest.UserDemographic.Gender} */ public enum Gender implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0, 0), /** * MALE = 1; */ MALE(1, 1), /** * FEMALE = 2; */ FEMALE(2, 2), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * MALE = 1; */ public static final int MALE_VALUE = 1; /** * FEMALE = 2; */ public static final int FEMALE_VALUE = 2; public final int getNumber() { return value; } public static Gender valueOf(int value) { switch (value) { case 0: return UNKNOWN; case 1: return MALE; case 2: return FEMALE; 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 Gender findValueByNumber(int number) { return Gender.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.UserDemographic.getDescriptor().getEnumTypes().get(0); } private static final Gender[] VALUES = values(); public static Gender 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 Gender(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:com.google.protos.adx.BidRequest.UserDemographic.Gender) } private int bitField0_; public static final int GENDER_FIELD_NUMBER = 1; private com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.Gender gender_; /** * optional .com.google.protos.adx.BidRequest.UserDemographic.Gender gender = 1 [default = UNKNOWN]; * *
       * Gender
       * 
*/ public boolean hasGender() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .com.google.protos.adx.BidRequest.UserDemographic.Gender gender = 1 [default = UNKNOWN]; * *
       * Gender
       * 
*/ public com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.Gender getGender() { return gender_; } public static final int AGE_LOW_FIELD_NUMBER = 2; private int ageLow_; /** * optional int32 age_low = 2 [default = 0]; * *
       * Age interval
       * 
*/ public boolean hasAgeLow() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 age_low = 2 [default = 0]; * *
       * Age interval
       * 
*/ public int getAgeLow() { return ageLow_; } public static final int AGE_HIGH_FIELD_NUMBER = 3; private int ageHigh_; /** * optional int32 age_high = 3 [default = 999]; */ public boolean hasAgeHigh() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 age_high = 3 [default = 999]; */ public int getAgeHigh() { return ageHigh_; } private void initFields() { gender_ = com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.Gender.UNKNOWN; ageLow_ = 0; ageHigh_ = 999; } 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.writeEnum(1, gender_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, ageLow_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, ageHigh_); } 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 .computeEnumSize(1, gender_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, ageLow_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, ageHigh_); } 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.UserDemographic parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.adx.NetworkBid.BidRequest.UserDemographic 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.UserDemographic parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.adx.NetworkBid.BidRequest.UserDemographic 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.UserDemographic parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.UserDemographic 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.UserDemographic parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.UserDemographic 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.UserDemographic parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.UserDemographic 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.UserDemographic 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.UserDemographic} * *
       * Demographic data provided by the publisher.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:com.google.protos.adx.BidRequest.UserDemographic) com.google.protos.adx.NetworkBid.BidRequest.UserDemographicOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_UserDemographic_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_UserDemographic_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.class, com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.Builder.class); } // Construct using com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.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(); gender_ = com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.Gender.UNKNOWN; bitField0_ = (bitField0_ & ~0x00000001); ageLow_ = 0; bitField0_ = (bitField0_ & ~0x00000002); ageHigh_ = 999; 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_UserDemographic_descriptor; } public com.google.protos.adx.NetworkBid.BidRequest.UserDemographic getDefaultInstanceForType() { return com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.getDefaultInstance(); } public com.google.protos.adx.NetworkBid.BidRequest.UserDemographic build() { com.google.protos.adx.NetworkBid.BidRequest.UserDemographic result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.adx.NetworkBid.BidRequest.UserDemographic buildPartial() { com.google.protos.adx.NetworkBid.BidRequest.UserDemographic result = new com.google.protos.adx.NetworkBid.BidRequest.UserDemographic(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.gender_ = gender_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.ageLow_ = ageLow_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.ageHigh_ = ageHigh_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protos.adx.NetworkBid.BidRequest.UserDemographic) { return mergeFrom((com.google.protos.adx.NetworkBid.BidRequest.UserDemographic)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protos.adx.NetworkBid.BidRequest.UserDemographic other) { if (other == com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.getDefaultInstance()) return this; if (other.hasGender()) { setGender(other.getGender()); } if (other.hasAgeLow()) { setAgeLow(other.getAgeLow()); } if (other.hasAgeHigh()) { setAgeHigh(other.getAgeHigh()); } 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.UserDemographic parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.adx.NetworkBid.BidRequest.UserDemographic) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.Gender gender_ = com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.Gender.UNKNOWN; /** * optional .com.google.protos.adx.BidRequest.UserDemographic.Gender gender = 1 [default = UNKNOWN]; * *
         * Gender
         * 
*/ public boolean hasGender() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .com.google.protos.adx.BidRequest.UserDemographic.Gender gender = 1 [default = UNKNOWN]; * *
         * Gender
         * 
*/ public com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.Gender getGender() { return gender_; } /** * optional .com.google.protos.adx.BidRequest.UserDemographic.Gender gender = 1 [default = UNKNOWN]; * *
         * Gender
         * 
*/ public Builder setGender(com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.Gender value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; gender_ = value; onChanged(); return this; } /** * optional .com.google.protos.adx.BidRequest.UserDemographic.Gender gender = 1 [default = UNKNOWN]; * *
         * Gender
         * 
*/ public Builder clearGender() { bitField0_ = (bitField0_ & ~0x00000001); gender_ = com.google.protos.adx.NetworkBid.BidRequest.UserDemographic.Gender.UNKNOWN; onChanged(); return this; } private int ageLow_ ; /** * optional int32 age_low = 2 [default = 0]; * *
         * Age interval
         * 
*/ public boolean hasAgeLow() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 age_low = 2 [default = 0]; * *
         * Age interval
         * 
*/ public int getAgeLow() { return ageLow_; } /** * optional int32 age_low = 2 [default = 0]; * *
         * Age interval
         * 
*/ public Builder setAgeLow(int value) { bitField0_ |= 0x00000002; ageLow_ = value; onChanged(); return this; } /** * optional int32 age_low = 2 [default = 0]; * *
         * Age interval
         * 
*/ public Builder clearAgeLow() { bitField0_ = (bitField0_ & ~0x00000002); ageLow_ = 0; onChanged(); return this; } private int ageHigh_ = 999; /** * optional int32 age_high = 3 [default = 999]; */ public boolean hasAgeHigh() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 age_high = 3 [default = 999]; */ public int getAgeHigh() { return ageHigh_; } /** * optional int32 age_high = 3 [default = 999]; */ public Builder setAgeHigh(int value) { bitField0_ |= 0x00000004; ageHigh_ = value; onChanged(); return this; } /** * optional int32 age_high = 3 [default = 999]; */ public Builder clearAgeHigh() { bitField0_ = (bitField0_ & ~0x00000004); ageHigh_ = 999; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.adx.BidRequest.UserDemographic) } static { defaultInstance = new UserDemographic(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.adx.BidRequest.UserDemographic) } public interface UserListOrBuilder extends // @@protoc_insertion_point(interface_extends:com.google.protos.adx.BidRequest.UserList) com.google.protobuf.MessageOrBuilder { /** * optional int64 id = 1; * *
       * The user list id.
       * 
*/ boolean hasId(); /** * optional int64 id = 1; * *
       * The user list id.
       * 
*/ long getId(); /** * optional int32 age_seconds = 2; * *
       * The time in seconds since the user was added to the list.
       * 
*/ boolean hasAgeSeconds(); /** * optional int32 age_seconds = 2; * *
       * 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; * *
       * The user list id.
       * 
*/ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 id = 1; * *
       * The user list id.
       * 
*/ 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.
       * 
*/ public boolean hasAgeSeconds() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 age_seconds = 2; * *
       * The time in seconds since the user was added to the list.
       * 
*/ public int getAgeSeconds() { return ageSeconds_; } private void initFields() { id_ = 0L; ageSeconds_ = 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.writeInt64(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, ageSeconds_); } 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 .computeInt64Size(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, ageSeconds_); } 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.UserList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.adx.NetworkBid.BidRequest.UserList 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.UserList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.adx.NetworkBid.BidRequest.UserList 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.UserList parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.UserList 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.UserList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.UserList 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.UserList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.UserList 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.UserList 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.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 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; * *
         * The user list id.
         * 
*/ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 id = 1; * *
         * The user list id.
         * 
*/ public long getId() { return id_; } /** * optional int64 id = 1; * *
         * The user list id.
         * 
*/ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * optional int64 id = 1; * *
         * The user list id.
         * 
*/ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } private int ageSeconds_ ; /** * optional int32 age_seconds = 2; * *
         * The time in seconds since the user was added to the list.
         * 
*/ public boolean hasAgeSeconds() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 age_seconds = 2; * *
         * The time in seconds since the user was added to the list.
         * 
*/ public int getAgeSeconds() { return ageSeconds_; } /** * optional int32 age_seconds = 2; * *
         * The time in seconds since the user was added to the list.
         * 
*/ public Builder setAgeSeconds(int value) { bitField0_ |= 0x00000002; ageSeconds_ = value; onChanged(); return this; } /** * optional int32 age_seconds = 2; * *
         * The time in seconds since the user was added to the list.
         * 
*/ public Builder clearAgeSeconds() { bitField0_ = (bitField0_ & ~0x00000002); ageSeconds_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.adx.BidRequest.UserList) } static { defaultInstance = new UserList(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.adx.BidRequest.UserList) } public interface VerticalOrBuilder extends // @@protoc_insertion_point(interface_extends:com.google.protos.adx.BidRequest.Vertical) com.google.protobuf.MessageOrBuilder { /** * required int32 id = 1; * *
       * The vertical id. See the publisher-verticals.txt file in the technical
       * documentation for a list of ids.
       * 
*/ boolean hasId(); /** * required int32 id = 1; * *
       * The vertical id. See the publisher-verticals.txt file in the technical
       * documentation for a list of ids.
       * 
*/ int getId(); /** * required float weight = 2; * *
       * Weight for this vertical, in the (0.0, 1.0] range. More relevant
       * verticals have higher weights.
       * 
*/ boolean hasWeight(); /** * required float weight = 2; * *
       * Weight for this vertical, in the (0.0, 1.0] range. More relevant
       * verticals have higher weights.
       * 
*/ float getWeight(); } /** * Protobuf type {@code com.google.protos.adx.BidRequest.Vertical} * *
     * One or more detected verticals for the page as determined by Google.
     * 
*/ public static final class Vertical extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.google.protos.adx.BidRequest.Vertical) VerticalOrBuilder { // Use Vertical.newBuilder() to construct. private Vertical(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Vertical(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Vertical defaultInstance; public static Vertical getDefaultInstance() { return defaultInstance; } public Vertical getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Vertical( 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.readInt32(); break; } case 21: { bitField0_ |= 0x00000002; weight_ = 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_Vertical_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Vertical_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protos.adx.NetworkBid.BidRequest.Vertical.class, com.google.protos.adx.NetworkBid.BidRequest.Vertical.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Vertical parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Vertical(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 int id_; /** * required int32 id = 1; * *
       * The vertical id. See the publisher-verticals.txt file in the technical
       * documentation for a list of ids.
       * 
*/ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 id = 1; * *
       * The vertical id. See the publisher-verticals.txt file in the technical
       * documentation for a list of ids.
       * 
*/ public int getId() { return id_; } public static final int WEIGHT_FIELD_NUMBER = 2; private float weight_; /** * required float weight = 2; * *
       * Weight for this vertical, in the (0.0, 1.0] range. More relevant
       * verticals have higher weights.
       * 
*/ public boolean hasWeight() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required float weight = 2; * *
       * Weight for this vertical, in the (0.0, 1.0] range. More relevant
       * verticals have higher weights.
       * 
*/ public float getWeight() { return weight_; } private void initFields() { id_ = 0; weight_ = 0F; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasId()) { memoizedIsInitialized = 0; return false; } if (!hasWeight()) { memoizedIsInitialized = 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, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeFloat(2, weight_); } 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, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(2, weight_); } 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.Vertical parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.adx.NetworkBid.BidRequest.Vertical 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.Vertical parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.adx.NetworkBid.BidRequest.Vertical 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.Vertical parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.Vertical 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.Vertical parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.Vertical 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.Vertical parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.Vertical 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.Vertical 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.Vertical} * *
       * One or more detected verticals for the page as determined by Google.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:com.google.protos.adx.BidRequest.Vertical) com.google.protos.adx.NetworkBid.BidRequest.VerticalOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Vertical_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Vertical_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protos.adx.NetworkBid.BidRequest.Vertical.class, com.google.protos.adx.NetworkBid.BidRequest.Vertical.Builder.class); } // Construct using com.google.protos.adx.NetworkBid.BidRequest.Vertical.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_ = 0; bitField0_ = (bitField0_ & ~0x00000001); weight_ = 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_Vertical_descriptor; } public com.google.protos.adx.NetworkBid.BidRequest.Vertical getDefaultInstanceForType() { return com.google.protos.adx.NetworkBid.BidRequest.Vertical.getDefaultInstance(); } public com.google.protos.adx.NetworkBid.BidRequest.Vertical build() { com.google.protos.adx.NetworkBid.BidRequest.Vertical result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.adx.NetworkBid.BidRequest.Vertical buildPartial() { com.google.protos.adx.NetworkBid.BidRequest.Vertical result = new com.google.protos.adx.NetworkBid.BidRequest.Vertical(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.weight_ = weight_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protos.adx.NetworkBid.BidRequest.Vertical) { return mergeFrom((com.google.protos.adx.NetworkBid.BidRequest.Vertical)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protos.adx.NetworkBid.BidRequest.Vertical other) { if (other == com.google.protos.adx.NetworkBid.BidRequest.Vertical.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasWeight()) { setWeight(other.getWeight()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasId()) { return false; } if (!hasWeight()) { return false; } 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.Vertical parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.adx.NetworkBid.BidRequest.Vertical) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int id_ ; /** * required int32 id = 1; * *
         * The vertical id. See the publisher-verticals.txt file in the technical
         * documentation for a list of ids.
         * 
*/ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 id = 1; * *
         * The vertical id. See the publisher-verticals.txt file in the technical
         * documentation for a list of ids.
         * 
*/ public int getId() { return id_; } /** * required int32 id = 1; * *
         * The vertical id. See the publisher-verticals.txt file in the technical
         * documentation for a list of ids.
         * 
*/ public Builder setId(int value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * required int32 id = 1; * *
         * The vertical id. See the publisher-verticals.txt file in the technical
         * documentation for a list of ids.
         * 
*/ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0; onChanged(); return this; } private float weight_ ; /** * required float weight = 2; * *
         * Weight for this vertical, in the (0.0, 1.0] range. More relevant
         * verticals have higher weights.
         * 
*/ public boolean hasWeight() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required float weight = 2; * *
         * Weight for this vertical, in the (0.0, 1.0] range. More relevant
         * verticals have higher weights.
         * 
*/ public float getWeight() { return weight_; } /** * required float weight = 2; * *
         * Weight for this vertical, in the (0.0, 1.0] range. More relevant
         * verticals have higher weights.
         * 
*/ public Builder setWeight(float value) { bitField0_ |= 0x00000002; weight_ = value; onChanged(); return this; } /** * required float weight = 2; * *
         * Weight for this vertical, in the (0.0, 1.0] range. More relevant
         * verticals have higher weights.
         * 
*/ public Builder clearWeight() { bitField0_ = (bitField0_ & ~0x00000002); weight_ = 0F; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.adx.BidRequest.Vertical) } static { defaultInstance = new Vertical(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.adx.BidRequest.Vertical) } public interface DeviceOrBuilder extends // @@protoc_insertion_point(interface_extends:com.google.protos.adx.BidRequest.Device) com.google.protobuf.MessageOrBuilder { /** * optional .com.google.protos.adx.BidRequest.Device.DeviceType device_type = 1 [default = UNKNOWN_DEVICE]; */ boolean hasDeviceType(); /** * optional .com.google.protos.adx.BidRequest.Device.DeviceType device_type = 1 [default = UNKNOWN_DEVICE]; */ com.google.protos.adx.NetworkBid.BidRequest.Device.DeviceType getDeviceType(); /** * optional string platform = 2; * *
       * The platform of the device. Examples: android, iphone, palm
       * 
*/ boolean hasPlatform(); /** * optional string platform = 2; * *
       * The platform of the device. Examples: android, iphone, palm
       * 
*/ java.lang.String getPlatform(); /** * optional string platform = 2; * *
       * The platform of the device. Examples: android, iphone, palm
       * 
*/ com.google.protobuf.ByteString getPlatformBytes(); /** * optional string brand = 3 [default = ""]; * *
       * The brand of the device, e.g. Nokia, Samsung.
       * 
*/ boolean hasBrand(); /** * optional string brand = 3 [default = ""]; * *
       * The brand of the device, e.g. Nokia, Samsung.
       * 
*/ java.lang.String getBrand(); /** * optional string brand = 3 [default = ""]; * *
       * The brand of the device, e.g. Nokia, Samsung.
       * 
*/ com.google.protobuf.ByteString getBrandBytes(); /** * optional string model = 4 [default = ""]; * *
       * The model of the device, e.g. N70, Galaxy.
       * 
*/ boolean hasModel(); /** * optional string model = 4 [default = ""]; * *
       * The model of the device, e.g. N70, Galaxy.
       * 
*/ java.lang.String getModel(); /** * optional string model = 4 [default = ""]; * *
       * The model of the device, e.g. N70, Galaxy.
       * 
*/ com.google.protobuf.ByteString getModelBytes(); /** * optional .com.google.protos.adx.BidRequest.Device.OsVersion os_version = 5; * *
       * The OS version; e.g. 2 for Android 2.1, or 3.3 for iOS 3.3.1.
       * 
*/ boolean hasOsVersion(); /** * optional .com.google.protos.adx.BidRequest.Device.OsVersion os_version = 5; * *
       * The OS version; e.g. 2 for Android 2.1, or 3.3 for iOS 3.3.1.
       * 
*/ com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion getOsVersion(); /** * optional .com.google.protos.adx.BidRequest.Device.OsVersion os_version = 5; * *
       * The OS version; e.g. 2 for Android 2.1, or 3.3 for iOS 3.3.1.
       * 
*/ com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersionOrBuilder getOsVersionOrBuilder(); /** * 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.
       * 
*/ boolean hasCarrierId(); /** * 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.
       * 
*/ long getCarrierId(); /** * optional int32 screen_width = 7 [default = 0]; * *
       * The width of the device screen in pixels.
       * 
*/ boolean hasScreenWidth(); /** * optional int32 screen_width = 7 [default = 0]; * *
       * The width of the device screen in pixels.
       * 
*/ int getScreenWidth(); /** * optional int32 screen_height = 8 [default = 0]; * *
       * The height of the device screen in pixels.
       * 
*/ boolean hasScreenHeight(); /** * optional int32 screen_height = 8 [default = 0]; * *
       * The height of the device screen in pixels.
       * 
*/ int getScreenHeight(); /** * 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.
       * 
*/ boolean hasScreenPixelRatioMillis(); /** * 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.
       * 
*/ int getScreenPixelRatioMillis(); /** * 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.
       * 
*/ boolean hasScreenOrientation(); /** * 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.
       * 
*/ com.google.protos.adx.NetworkBid.BidRequest.Device.ScreenOrientation getScreenOrientation(); /** * optional string hardware_version = 11; * *
       * Apple iOS device model, e.g., "iphone 5s", "iphone 6+", "ipad 4".
       * 
*/ boolean hasHardwareVersion(); /** * optional string hardware_version = 11; * *
       * Apple iOS device model, e.g., "iphone 5s", "iphone 6+", "ipad 4".
       * 
*/ java.lang.String getHardwareVersion(); /** * optional string hardware_version = 11; * *
       * Apple iOS device model, e.g., "iphone 5s", "iphone 6+", "ipad 4".
       * 
*/ com.google.protobuf.ByteString getHardwareVersionBytes(); } /** * Protobuf type {@code com.google.protos.adx.BidRequest.Device} * *
     * Information about the device.
     * 
*/ public static final class Device extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.google.protos.adx.BidRequest.Device) DeviceOrBuilder { // Use Device.newBuilder() to construct. private Device(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Device(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Device defaultInstance; public static Device getDefaultInstance() { return defaultInstance; } public Device getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Device( 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: { int rawValue = input.readEnum(); com.google.protos.adx.NetworkBid.BidRequest.Device.DeviceType value = com.google.protos.adx.NetworkBid.BidRequest.Device.DeviceType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; deviceType_ = value; } break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; platform_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; brand_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; model_ = bs; break; } case 42: { com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = osVersion_.toBuilder(); } osVersion_ = input.readMessage(com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(osVersion_); osVersion_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 48: { bitField0_ |= 0x00000020; carrierId_ = input.readInt64(); break; } case 56: { bitField0_ |= 0x00000040; screenWidth_ = input.readInt32(); break; } case 64: { bitField0_ |= 0x00000080; screenHeight_ = input.readInt32(); break; } case 72: { bitField0_ |= 0x00000100; screenPixelRatioMillis_ = input.readInt32(); break; } case 80: { int rawValue = input.readEnum(); com.google.protos.adx.NetworkBid.BidRequest.Device.ScreenOrientation value = com.google.protos.adx.NetworkBid.BidRequest.Device.ScreenOrientation.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(10, rawValue); } else { bitField0_ |= 0x00000200; screenOrientation_ = value; } break; } case 90: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000400; hardwareVersion_ = bs; 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_Device_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Device_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protos.adx.NetworkBid.BidRequest.Device.class, com.google.protos.adx.NetworkBid.BidRequest.Device.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Device parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Device(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } /** * Protobuf enum {@code com.google.protos.adx.BidRequest.Device.DeviceType} * *
       * The type of device on which the ad will be shown.
       * 
*/ public enum DeviceType implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN_DEVICE = 0; */ UNKNOWN_DEVICE(0, 0), /** * HIGHEND_PHONE = 1; */ HIGHEND_PHONE(1, 1), /** * TABLET = 2; */ TABLET(2, 2), /** * PERSONAL_COMPUTER = 3; * *
         * Desktop or laptop devices.
         * 
*/ PERSONAL_COMPUTER(3, 3), /** * CONNECTED_TV = 4; * *
         * Includes both TVs and set-top boxes.
         * 
*/ CONNECTED_TV(4, 4), /** * GAME_CONSOLE = 5; */ GAME_CONSOLE(5, 5), ; /** * UNKNOWN_DEVICE = 0; */ public static final int UNKNOWN_DEVICE_VALUE = 0; /** * HIGHEND_PHONE = 1; */ public static final int HIGHEND_PHONE_VALUE = 1; /** * TABLET = 2; */ public static final int TABLET_VALUE = 2; /** * PERSONAL_COMPUTER = 3; * *
         * Desktop or laptop devices.
         * 
*/ public static final int PERSONAL_COMPUTER_VALUE = 3; /** * CONNECTED_TV = 4; * *
         * Includes both TVs and set-top boxes.
         * 
*/ public static final int CONNECTED_TV_VALUE = 4; /** * GAME_CONSOLE = 5; */ public static final int GAME_CONSOLE_VALUE = 5; public final int getNumber() { return value; } public static DeviceType valueOf(int value) { switch (value) { case 0: return UNKNOWN_DEVICE; case 1: return HIGHEND_PHONE; case 2: return TABLET; case 3: return PERSONAL_COMPUTER; case 4: return CONNECTED_TV; case 5: return GAME_CONSOLE; 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 DeviceType findValueByNumber(int number) { return DeviceType.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.Device.getDescriptor().getEnumTypes().get(0); } private static final DeviceType[] VALUES = values(); public static DeviceType 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 DeviceType(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:com.google.protos.adx.BidRequest.Device.DeviceType) } /** * Protobuf enum {@code com.google.protos.adx.BidRequest.Device.ScreenOrientation} */ public enum ScreenOrientation implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN_ORIENTATION = 0; */ UNKNOWN_ORIENTATION(0, 0), /** * PORTRAIT = 1; */ PORTRAIT(1, 1), /** * LANDSCAPE = 2; */ LANDSCAPE(2, 2), ; /** * UNKNOWN_ORIENTATION = 0; */ public static final int UNKNOWN_ORIENTATION_VALUE = 0; /** * PORTRAIT = 1; */ public static final int PORTRAIT_VALUE = 1; /** * LANDSCAPE = 2; */ public static final int LANDSCAPE_VALUE = 2; public final int getNumber() { return value; } public static ScreenOrientation valueOf(int value) { switch (value) { case 0: return UNKNOWN_ORIENTATION; case 1: return PORTRAIT; case 2: return 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.Device.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.Device.ScreenOrientation) } public interface OsVersionOrBuilder extends // @@protoc_insertion_point(interface_extends:com.google.protos.adx.BidRequest.Device.OsVersion) com.google.protobuf.MessageOrBuilder { /** * optional int32 major = 1; */ boolean hasMajor(); /** * optional int32 major = 1; */ int getMajor(); /** * optional int32 minor = 2; */ boolean hasMinor(); /** * optional int32 minor = 2; */ int getMinor(); /** * optional int32 micro = 3; */ boolean hasMicro(); /** * optional int32 micro = 3; */ int getMicro(); } /** * Protobuf type {@code com.google.protos.adx.BidRequest.Device.OsVersion} * *
       * Contains the OS version of the platform. For instance, for Android 2,
       * major=2, minor=0. For iPhone 3.3.1, major=3 and minor=3.
       * 
*/ public static final class OsVersion extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.google.protos.adx.BidRequest.Device.OsVersion) OsVersionOrBuilder { // Use OsVersion.newBuilder() to construct. private OsVersion(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OsVersion(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OsVersion defaultInstance; public static OsVersion getDefaultInstance() { return defaultInstance; } public OsVersion getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OsVersion( 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; major_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; minor_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; micro_ = 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_Device_OsVersion_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Device_OsVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion.class, com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OsVersion parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OsVersion(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int MAJOR_FIELD_NUMBER = 1; private int major_; /** * optional int32 major = 1; */ public boolean hasMajor() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 major = 1; */ public int getMajor() { return major_; } public static final int MINOR_FIELD_NUMBER = 2; private int minor_; /** * optional int32 minor = 2; */ public boolean hasMinor() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 minor = 2; */ public int getMinor() { return minor_; } public static final int MICRO_FIELD_NUMBER = 3; private int micro_; /** * optional int32 micro = 3; */ public boolean hasMicro() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 micro = 3; */ public int getMicro() { return micro_; } private void initFields() { major_ = 0; minor_ = 0; micro_ = 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, major_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, minor_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, micro_); } 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, major_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, minor_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, micro_); } 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.Device.OsVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion 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.Device.OsVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion 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.Device.OsVersion parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion 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.Device.OsVersion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion 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.Device.OsVersion parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion 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.Device.OsVersion 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.Device.OsVersion} * *
         * Contains the OS version of the platform. For instance, for Android 2,
         * major=2, minor=0. For iPhone 3.3.1, major=3 and minor=3.
         * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:com.google.protos.adx.BidRequest.Device.OsVersion) com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Device_OsVersion_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Device_OsVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion.class, com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion.Builder.class); } // Construct using com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion.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(); major_ = 0; bitField0_ = (bitField0_ & ~0x00000001); minor_ = 0; bitField0_ = (bitField0_ & ~0x00000002); micro_ = 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_Device_OsVersion_descriptor; } public com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion getDefaultInstanceForType() { return com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion.getDefaultInstance(); } public com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion build() { com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion buildPartial() { com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion result = new com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.major_ = major_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.minor_ = minor_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.micro_ = micro_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion) { return mergeFrom((com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion other) { if (other == com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion.getDefaultInstance()) return this; if (other.hasMajor()) { setMajor(other.getMajor()); } if (other.hasMinor()) { setMinor(other.getMinor()); } if (other.hasMicro()) { setMicro(other.getMicro()); } 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.Device.OsVersion parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int major_ ; /** * optional int32 major = 1; */ public boolean hasMajor() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 major = 1; */ public int getMajor() { return major_; } /** * optional int32 major = 1; */ public Builder setMajor(int value) { bitField0_ |= 0x00000001; major_ = value; onChanged(); return this; } /** * optional int32 major = 1; */ public Builder clearMajor() { bitField0_ = (bitField0_ & ~0x00000001); major_ = 0; onChanged(); return this; } private int minor_ ; /** * optional int32 minor = 2; */ public boolean hasMinor() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 minor = 2; */ public int getMinor() { return minor_; } /** * optional int32 minor = 2; */ public Builder setMinor(int value) { bitField0_ |= 0x00000002; minor_ = value; onChanged(); return this; } /** * optional int32 minor = 2; */ public Builder clearMinor() { bitField0_ = (bitField0_ & ~0x00000002); minor_ = 0; onChanged(); return this; } private int micro_ ; /** * optional int32 micro = 3; */ public boolean hasMicro() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 micro = 3; */ public int getMicro() { return micro_; } /** * optional int32 micro = 3; */ public Builder setMicro(int value) { bitField0_ |= 0x00000004; micro_ = value; onChanged(); return this; } /** * optional int32 micro = 3; */ public Builder clearMicro() { bitField0_ = (bitField0_ & ~0x00000004); micro_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.adx.BidRequest.Device.OsVersion) } static { defaultInstance = new OsVersion(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.adx.BidRequest.Device.OsVersion) } private int bitField0_; public static final int DEVICE_TYPE_FIELD_NUMBER = 1; private com.google.protos.adx.NetworkBid.BidRequest.Device.DeviceType deviceType_; /** * optional .com.google.protos.adx.BidRequest.Device.DeviceType device_type = 1 [default = UNKNOWN_DEVICE]; */ public boolean hasDeviceType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .com.google.protos.adx.BidRequest.Device.DeviceType device_type = 1 [default = UNKNOWN_DEVICE]; */ public com.google.protos.adx.NetworkBid.BidRequest.Device.DeviceType getDeviceType() { return deviceType_; } public static final int PLATFORM_FIELD_NUMBER = 2; private java.lang.Object platform_; /** * optional string platform = 2; * *
       * The platform of the device. Examples: android, iphone, palm
       * 
*/ public boolean hasPlatform() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string platform = 2; * *
       * The platform of the device. Examples: android, iphone, palm
       * 
*/ public java.lang.String getPlatform() { java.lang.Object ref = platform_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { platform_ = s; } return s; } } /** * optional string platform = 2; * *
       * The platform of the device. Examples: android, iphone, palm
       * 
*/ public com.google.protobuf.ByteString getPlatformBytes() { java.lang.Object ref = platform_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); platform_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BRAND_FIELD_NUMBER = 3; private java.lang.Object brand_; /** * optional string brand = 3 [default = ""]; * *
       * The brand of the device, e.g. Nokia, Samsung.
       * 
*/ public boolean hasBrand() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string brand = 3 [default = ""]; * *
       * The brand of the device, e.g. Nokia, Samsung.
       * 
*/ public java.lang.String getBrand() { java.lang.Object ref = brand_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { brand_ = s; } return s; } } /** * optional string brand = 3 [default = ""]; * *
       * The brand of the device, e.g. Nokia, Samsung.
       * 
*/ public com.google.protobuf.ByteString getBrandBytes() { java.lang.Object ref = brand_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); brand_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MODEL_FIELD_NUMBER = 4; private java.lang.Object model_; /** * optional string model = 4 [default = ""]; * *
       * The model of the device, e.g. N70, Galaxy.
       * 
*/ public boolean hasModel() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string model = 4 [default = ""]; * *
       * The model of the device, e.g. N70, Galaxy.
       * 
*/ public java.lang.String getModel() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { model_ = s; } return s; } } /** * optional string model = 4 [default = ""]; * *
       * The model of the device, e.g. N70, Galaxy.
       * 
*/ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); model_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OS_VERSION_FIELD_NUMBER = 5; private com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion osVersion_; /** * optional .com.google.protos.adx.BidRequest.Device.OsVersion os_version = 5; * *
       * The OS version; e.g. 2 for Android 2.1, or 3.3 for iOS 3.3.1.
       * 
*/ public boolean hasOsVersion() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .com.google.protos.adx.BidRequest.Device.OsVersion os_version = 5; * *
       * 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.OsVersion getOsVersion() { return osVersion_; } /** * optional .com.google.protos.adx.BidRequest.Device.OsVersion os_version = 5; * *
       * 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.
       * 
*/ public boolean hasCarrierId() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * 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.
       * 
*/ public long getCarrierId() { return carrierId_; } public static final int SCREEN_WIDTH_FIELD_NUMBER = 7; private int screenWidth_; /** * optional int32 screen_width = 7 [default = 0]; * *
       * The width of the device screen in pixels.
       * 
*/ public boolean hasScreenWidth() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int32 screen_width = 7 [default = 0]; * *
       * The width of the device screen in pixels.
       * 
*/ public int getScreenWidth() { return screenWidth_; } public static final int SCREEN_HEIGHT_FIELD_NUMBER = 8; private int screenHeight_; /** * optional int32 screen_height = 8 [default = 0]; * *
       * The height of the device screen in pixels.
       * 
*/ public boolean hasScreenHeight() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int32 screen_height = 8 [default = 0]; * *
       * The height of the device screen in pixels.
       * 
*/ 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.
       * 
*/ public boolean hasScreenPixelRatioMillis() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * 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.
       * 
*/ 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.
       * 
*/ public boolean hasScreenOrientation() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * 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.
       * 
*/ public com.google.protos.adx.NetworkBid.BidRequest.Device.ScreenOrientation getScreenOrientation() { return screenOrientation_; } public static final int HARDWARE_VERSION_FIELD_NUMBER = 11; private java.lang.Object hardwareVersion_; /** * optional string hardware_version = 11; * *
       * Apple iOS device model, e.g., "iphone 5s", "iphone 6+", "ipad 4".
       * 
*/ public boolean hasHardwareVersion() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional string hardware_version = 11; * *
       * Apple iOS device model, e.g., "iphone 5s", "iphone 6+", "ipad 4".
       * 
*/ public java.lang.String getHardwareVersion() { java.lang.Object ref = hardwareVersion_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { hardwareVersion_ = s; } return s; } } /** * optional string hardware_version = 11; * *
       * Apple iOS device model, e.g., "iphone 5s", "iphone 6+", "ipad 4".
       * 
*/ public com.google.protobuf.ByteString getHardwareVersionBytes() { java.lang.Object ref = hardwareVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hardwareVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { deviceType_ = com.google.protos.adx.NetworkBid.BidRequest.Device.DeviceType.UNKNOWN_DEVICE; platform_ = ""; brand_ = ""; model_ = ""; osVersion_ = com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion.getDefaultInstance(); carrierId_ = 0L; screenWidth_ = 0; screenHeight_ = 0; screenPixelRatioMillis_ = 0; screenOrientation_ = com.google.protos.adx.NetworkBid.BidRequest.Device.ScreenOrientation.UNKNOWN_ORIENTATION; hardwareVersion_ = ""; } 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.writeEnum(1, deviceType_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getPlatformBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getBrandBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getModelBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, osVersion_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt64(6, carrierId_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt32(7, screenWidth_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeInt32(8, screenHeight_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeInt32(9, screenPixelRatioMillis_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeEnum(10, screenOrientation_.getNumber()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBytes(11, getHardwareVersionBytes()); } 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 .computeEnumSize(1, deviceType_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getPlatformBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getBrandBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getModelBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, osVersion_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, carrierId_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, screenWidth_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, screenHeight_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, screenPixelRatioMillis_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, screenOrientation_.getNumber()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(11, getHardwareVersionBytes()); } 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.Device parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.adx.NetworkBid.BidRequest.Device 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.Device parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.adx.NetworkBid.BidRequest.Device 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.Device parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.Device 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.Device parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.Device 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.Device parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.Device 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.Device 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.Device} * *
       * Information about the device.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:com.google.protos.adx.BidRequest.Device) com.google.protos.adx.NetworkBid.BidRequest.DeviceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Device_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Device_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protos.adx.NetworkBid.BidRequest.Device.class, com.google.protos.adx.NetworkBid.BidRequest.Device.Builder.class); } // Construct using com.google.protos.adx.NetworkBid.BidRequest.Device.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getOsVersionFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); deviceType_ = com.google.protos.adx.NetworkBid.BidRequest.Device.DeviceType.UNKNOWN_DEVICE; bitField0_ = (bitField0_ & ~0x00000001); platform_ = ""; bitField0_ = (bitField0_ & ~0x00000002); brand_ = ""; bitField0_ = (bitField0_ & ~0x00000004); model_ = ""; bitField0_ = (bitField0_ & ~0x00000008); if (osVersionBuilder_ == null) { osVersion_ = com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion.getDefaultInstance(); } else { osVersionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); carrierId_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); screenWidth_ = 0; bitField0_ = (bitField0_ & ~0x00000040); screenHeight_ = 0; bitField0_ = (bitField0_ & ~0x00000080); screenPixelRatioMillis_ = 0; bitField0_ = (bitField0_ & ~0x00000100); screenOrientation_ = com.google.protos.adx.NetworkBid.BidRequest.Device.ScreenOrientation.UNKNOWN_ORIENTATION; bitField0_ = (bitField0_ & ~0x00000200); hardwareVersion_ = ""; bitField0_ = (bitField0_ & ~0x00000400); 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_Device_descriptor; } public com.google.protos.adx.NetworkBid.BidRequest.Device getDefaultInstanceForType() { return com.google.protos.adx.NetworkBid.BidRequest.Device.getDefaultInstance(); } public com.google.protos.adx.NetworkBid.BidRequest.Device build() { com.google.protos.adx.NetworkBid.BidRequest.Device result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.adx.NetworkBid.BidRequest.Device buildPartial() { com.google.protos.adx.NetworkBid.BidRequest.Device result = new com.google.protos.adx.NetworkBid.BidRequest.Device(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.deviceType_ = deviceType_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.platform_ = platform_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.brand_ = brand_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.model_ = model_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (osVersionBuilder_ == null) { result.osVersion_ = osVersion_; } else { result.osVersion_ = osVersionBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.carrierId_ = carrierId_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.screenWidth_ = screenWidth_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.screenHeight_ = screenHeight_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.screenPixelRatioMillis_ = screenPixelRatioMillis_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.screenOrientation_ = screenOrientation_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.hardwareVersion_ = hardwareVersion_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protos.adx.NetworkBid.BidRequest.Device) { return mergeFrom((com.google.protos.adx.NetworkBid.BidRequest.Device)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protos.adx.NetworkBid.BidRequest.Device other) { if (other == com.google.protos.adx.NetworkBid.BidRequest.Device.getDefaultInstance()) return this; if (other.hasDeviceType()) { setDeviceType(other.getDeviceType()); } if (other.hasPlatform()) { bitField0_ |= 0x00000002; platform_ = other.platform_; onChanged(); } if (other.hasBrand()) { bitField0_ |= 0x00000004; brand_ = other.brand_; onChanged(); } if (other.hasModel()) { bitField0_ |= 0x00000008; model_ = other.model_; onChanged(); } if (other.hasOsVersion()) { mergeOsVersion(other.getOsVersion()); } if (other.hasCarrierId()) { setCarrierId(other.getCarrierId()); } if (other.hasScreenWidth()) { setScreenWidth(other.getScreenWidth()); } if (other.hasScreenHeight()) { setScreenHeight(other.getScreenHeight()); } if (other.hasScreenPixelRatioMillis()) { setScreenPixelRatioMillis(other.getScreenPixelRatioMillis()); } if (other.hasScreenOrientation()) { setScreenOrientation(other.getScreenOrientation()); } if (other.hasHardwareVersion()) { bitField0_ |= 0x00000400; hardwareVersion_ = other.hardwareVersion_; onChanged(); } 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.Device parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.adx.NetworkBid.BidRequest.Device) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protos.adx.NetworkBid.BidRequest.Device.DeviceType deviceType_ = com.google.protos.adx.NetworkBid.BidRequest.Device.DeviceType.UNKNOWN_DEVICE; /** * optional .com.google.protos.adx.BidRequest.Device.DeviceType device_type = 1 [default = UNKNOWN_DEVICE]; */ public boolean hasDeviceType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .com.google.protos.adx.BidRequest.Device.DeviceType device_type = 1 [default = UNKNOWN_DEVICE]; */ public com.google.protos.adx.NetworkBid.BidRequest.Device.DeviceType getDeviceType() { return deviceType_; } /** * optional .com.google.protos.adx.BidRequest.Device.DeviceType device_type = 1 [default = UNKNOWN_DEVICE]; */ public Builder setDeviceType(com.google.protos.adx.NetworkBid.BidRequest.Device.DeviceType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; deviceType_ = value; onChanged(); return this; } /** * optional .com.google.protos.adx.BidRequest.Device.DeviceType device_type = 1 [default = UNKNOWN_DEVICE]; */ public Builder clearDeviceType() { bitField0_ = (bitField0_ & ~0x00000001); deviceType_ = com.google.protos.adx.NetworkBid.BidRequest.Device.DeviceType.UNKNOWN_DEVICE; onChanged(); return this; } private java.lang.Object platform_ = ""; /** * optional string platform = 2; * *
         * The platform of the device. Examples: android, iphone, palm
         * 
*/ public boolean hasPlatform() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string platform = 2; * *
         * The platform of the device. Examples: android, iphone, palm
         * 
*/ public java.lang.String getPlatform() { java.lang.Object ref = platform_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { platform_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string platform = 2; * *
         * The platform of the device. Examples: android, iphone, palm
         * 
*/ public com.google.protobuf.ByteString getPlatformBytes() { java.lang.Object ref = platform_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); platform_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string platform = 2; * *
         * The platform of the device. Examples: android, iphone, palm
         * 
*/ public Builder setPlatform( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; platform_ = value; onChanged(); return this; } /** * optional string platform = 2; * *
         * The platform of the device. Examples: android, iphone, palm
         * 
*/ public Builder clearPlatform() { bitField0_ = (bitField0_ & ~0x00000002); platform_ = getDefaultInstance().getPlatform(); onChanged(); return this; } /** * optional string platform = 2; * *
         * The platform of the device. Examples: android, iphone, palm
         * 
*/ public Builder setPlatformBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; platform_ = value; onChanged(); return this; } private java.lang.Object brand_ = ""; /** * optional string brand = 3 [default = ""]; * *
         * The brand of the device, e.g. Nokia, Samsung.
         * 
*/ public boolean hasBrand() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string brand = 3 [default = ""]; * *
         * The brand of the device, e.g. Nokia, Samsung.
         * 
*/ public java.lang.String getBrand() { java.lang.Object ref = brand_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { brand_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string brand = 3 [default = ""]; * *
         * The brand of the device, e.g. Nokia, Samsung.
         * 
*/ public com.google.protobuf.ByteString getBrandBytes() { java.lang.Object ref = brand_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); brand_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string brand = 3 [default = ""]; * *
         * The brand of the device, e.g. Nokia, Samsung.
         * 
*/ public Builder setBrand( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; brand_ = value; onChanged(); return this; } /** * optional string brand = 3 [default = ""]; * *
         * The brand of the device, e.g. Nokia, Samsung.
         * 
*/ public Builder clearBrand() { bitField0_ = (bitField0_ & ~0x00000004); brand_ = getDefaultInstance().getBrand(); onChanged(); return this; } /** * optional string brand = 3 [default = ""]; * *
         * The brand of the device, e.g. Nokia, Samsung.
         * 
*/ public Builder setBrandBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; brand_ = value; onChanged(); return this; } private java.lang.Object model_ = ""; /** * optional string model = 4 [default = ""]; * *
         * The model of the device, e.g. N70, Galaxy.
         * 
*/ public boolean hasModel() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string model = 4 [default = ""]; * *
         * The model of the device, e.g. N70, Galaxy.
         * 
*/ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { model_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string model = 4 [default = ""]; * *
         * The model of the device, e.g. N70, Galaxy.
         * 
*/ public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); model_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string model = 4 [default = ""]; * *
         * The model of the device, e.g. N70, Galaxy.
         * 
*/ public Builder setModel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; model_ = value; onChanged(); return this; } /** * optional string model = 4 [default = ""]; * *
         * The model of the device, e.g. N70, Galaxy.
         * 
*/ public Builder clearModel() { bitField0_ = (bitField0_ & ~0x00000008); model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** * optional string model = 4 [default = ""]; * *
         * The model of the device, e.g. N70, Galaxy.
         * 
*/ public Builder setModelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; model_ = value; onChanged(); return this; } private com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion osVersion_ = com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion, com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion.Builder, com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersionOrBuilder> osVersionBuilder_; /** * optional .com.google.protos.adx.BidRequest.Device.OsVersion os_version = 5; * *
         * The OS version; e.g. 2 for Android 2.1, or 3.3 for iOS 3.3.1.
         * 
*/ public boolean hasOsVersion() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .com.google.protos.adx.BidRequest.Device.OsVersion os_version = 5; * *
         * 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.OsVersion getOsVersion() { if (osVersionBuilder_ == null) { return osVersion_; } else { return osVersionBuilder_.getMessage(); } } /** * optional .com.google.protos.adx.BidRequest.Device.OsVersion os_version = 5; * *
         * The OS version; e.g. 2 for Android 2.1, or 3.3 for iOS 3.3.1.
         * 
*/ public Builder setOsVersion(com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion value) { if (osVersionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } osVersion_ = value; onChanged(); } else { osVersionBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .com.google.protos.adx.BidRequest.Device.OsVersion os_version = 5; * *
         * The OS version; e.g. 2 for Android 2.1, or 3.3 for iOS 3.3.1.
         * 
*/ public Builder setOsVersion( com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion.Builder builderForValue) { if (osVersionBuilder_ == null) { osVersion_ = builderForValue.build(); onChanged(); } else { osVersionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .com.google.protos.adx.BidRequest.Device.OsVersion os_version = 5; * *
         * The OS version; e.g. 2 for Android 2.1, or 3.3 for iOS 3.3.1.
         * 
*/ public Builder mergeOsVersion(com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion value) { if (osVersionBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && osVersion_ != com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion.getDefaultInstance()) { osVersion_ = com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion.newBuilder(osVersion_).mergeFrom(value).buildPartial(); } else { osVersion_ = value; } onChanged(); } else { osVersionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .com.google.protos.adx.BidRequest.Device.OsVersion os_version = 5; * *
         * The OS version; e.g. 2 for Android 2.1, or 3.3 for iOS 3.3.1.
         * 
*/ public Builder clearOsVersion() { if (osVersionBuilder_ == null) { osVersion_ = com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion.getDefaultInstance(); onChanged(); } else { osVersionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .com.google.protos.adx.BidRequest.Device.OsVersion os_version = 5; * *
         * 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.OsVersion.Builder getOsVersionBuilder() { bitField0_ |= 0x00000010; onChanged(); return getOsVersionFieldBuilder().getBuilder(); } /** * optional .com.google.protos.adx.BidRequest.Device.OsVersion os_version = 5; * *
         * 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() { if (osVersionBuilder_ != null) { return osVersionBuilder_.getMessageOrBuilder(); } else { return osVersion_; } } /** * optional .com.google.protos.adx.BidRequest.Device.OsVersion os_version = 5; * *
         * The OS version; e.g. 2 for Android 2.1, or 3.3 for iOS 3.3.1.
         * 
*/ private com.google.protobuf.SingleFieldBuilder< com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion, com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion.Builder, com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersionOrBuilder> getOsVersionFieldBuilder() { if (osVersionBuilder_ == null) { osVersionBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion, com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersion.Builder, com.google.protos.adx.NetworkBid.BidRequest.Device.OsVersionOrBuilder>( getOsVersion(), getParentForChildren(), isClean()); osVersion_ = null; } return osVersionBuilder_; } 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.
         * 
*/ public boolean hasCarrierId() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * 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.
         * 
*/ 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.
         * 
*/ public Builder setCarrierId(long value) { bitField0_ |= 0x00000020; carrierId_ = value; onChanged(); return this; } /** * 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.
         * 
*/ public Builder clearCarrierId() { bitField0_ = (bitField0_ & ~0x00000020); carrierId_ = 0L; onChanged(); return this; } private int screenWidth_ ; /** * optional int32 screen_width = 7 [default = 0]; * *
         * The width of the device screen in pixels.
         * 
*/ public boolean hasScreenWidth() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int32 screen_width = 7 [default = 0]; * *
         * The width of the device screen in pixels.
         * 
*/ public int getScreenWidth() { return screenWidth_; } /** * optional int32 screen_width = 7 [default = 0]; * *
         * The width of the device screen in pixels.
         * 
*/ public Builder setScreenWidth(int value) { bitField0_ |= 0x00000040; screenWidth_ = value; onChanged(); return this; } /** * optional int32 screen_width = 7 [default = 0]; * *
         * The width of the device screen in pixels.
         * 
*/ public Builder clearScreenWidth() { bitField0_ = (bitField0_ & ~0x00000040); screenWidth_ = 0; onChanged(); return this; } private int screenHeight_ ; /** * optional int32 screen_height = 8 [default = 0]; * *
         * The height of the device screen in pixels.
         * 
*/ public boolean hasScreenHeight() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int32 screen_height = 8 [default = 0]; * *
         * The height of the device screen in pixels.
         * 
*/ public int getScreenHeight() { return screenHeight_; } /** * optional int32 screen_height = 8 [default = 0]; * *
         * The height of the device screen in pixels.
         * 
*/ public Builder setScreenHeight(int value) { bitField0_ |= 0x00000080; screenHeight_ = value; onChanged(); return this; } /** * optional int32 screen_height = 8 [default = 0]; * *
         * The height of the device screen in pixels.
         * 
*/ public Builder clearScreenHeight() { bitField0_ = (bitField0_ & ~0x00000080); screenHeight_ = 0; onChanged(); return this; } 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.
         * 
*/ public boolean hasScreenPixelRatioMillis() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * 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.
         * 
*/ 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.
         * 
*/ public Builder setScreenPixelRatioMillis(int value) { bitField0_ |= 0x00000100; screenPixelRatioMillis_ = value; onChanged(); return this; } /** * 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.
         * 
*/ public Builder clearScreenPixelRatioMillis() { bitField0_ = (bitField0_ & ~0x00000100); screenPixelRatioMillis_ = 0; onChanged(); return this; } private com.google.protos.adx.NetworkBid.BidRequest.Device.ScreenOrientation screenOrientation_ = com.google.protos.adx.NetworkBid.BidRequest.Device.ScreenOrientation.UNKNOWN_ORIENTATION; /** * 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.
         * 
*/ public boolean hasScreenOrientation() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * 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.
         * 
*/ public com.google.protos.adx.NetworkBid.BidRequest.Device.ScreenOrientation getScreenOrientation() { return 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.
         * 
*/ public Builder setScreenOrientation(com.google.protos.adx.NetworkBid.BidRequest.Device.ScreenOrientation value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; screenOrientation_ = value; onChanged(); return this; } /** * 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.
         * 
*/ public Builder clearScreenOrientation() { bitField0_ = (bitField0_ & ~0x00000200); screenOrientation_ = com.google.protos.adx.NetworkBid.BidRequest.Device.ScreenOrientation.UNKNOWN_ORIENTATION; onChanged(); return this; } private java.lang.Object hardwareVersion_ = ""; /** * optional string hardware_version = 11; * *
         * Apple iOS device model, e.g., "iphone 5s", "iphone 6+", "ipad 4".
         * 
*/ public boolean hasHardwareVersion() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional string hardware_version = 11; * *
         * Apple iOS device model, e.g., "iphone 5s", "iphone 6+", "ipad 4".
         * 
*/ public java.lang.String getHardwareVersion() { java.lang.Object ref = hardwareVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { hardwareVersion_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string hardware_version = 11; * *
         * Apple iOS device model, e.g., "iphone 5s", "iphone 6+", "ipad 4".
         * 
*/ public com.google.protobuf.ByteString getHardwareVersionBytes() { java.lang.Object ref = hardwareVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hardwareVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string hardware_version = 11; * *
         * Apple iOS device model, e.g., "iphone 5s", "iphone 6+", "ipad 4".
         * 
*/ public Builder setHardwareVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; hardwareVersion_ = value; onChanged(); return this; } /** * optional string hardware_version = 11; * *
         * Apple iOS device model, e.g., "iphone 5s", "iphone 6+", "ipad 4".
         * 
*/ public Builder clearHardwareVersion() { bitField0_ = (bitField0_ & ~0x00000400); hardwareVersion_ = getDefaultInstance().getHardwareVersion(); onChanged(); return this; } /** * optional string hardware_version = 11; * *
         * Apple iOS device model, e.g., "iphone 5s", "iphone 6+", "ipad 4".
         * 
*/ public Builder setHardwareVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; hardwareVersion_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.adx.BidRequest.Device) } static { defaultInstance = new Device(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.adx.BidRequest.Device) } public interface KeyValueOrBuilder extends // @@protoc_insertion_point(interface_extends:com.google.protos.adx.BidRequest.KeyValue) com.google.protobuf.MessageOrBuilder { /** * optional string key = 1; */ boolean hasKey(); /** * optional string key = 1; */ java.lang.String getKey(); /** * optional string key = 1; */ com.google.protobuf.ByteString getKeyBytes(); /** * optional string value = 2; */ boolean hasValue(); /** * optional string value = 2; */ java.lang.String getValue(); /** * optional string value = 2; */ com.google.protobuf.ByteString getValueBytes(); } /** * Protobuf type {@code com.google.protos.adx.BidRequest.KeyValue} * *
     * Additional key-value attributes. Currently unused.
     * 
*/ public static final class KeyValue extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.google.protos.adx.BidRequest.KeyValue) KeyValueOrBuilder { // Use KeyValue.newBuilder() to construct. private KeyValue(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private KeyValue(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final KeyValue defaultInstance; public static KeyValue getDefaultInstance() { return defaultInstance; } public KeyValue getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private KeyValue( 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_ |= 0x00000001; key_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; value_ = bs; 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_KeyValue_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_KeyValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protos.adx.NetworkBid.BidRequest.KeyValue.class, com.google.protos.adx.NetworkBid.BidRequest.KeyValue.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public KeyValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new KeyValue(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; private java.lang.Object key_; /** * optional string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { key_ = s; } return s; } } /** * optional string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; private java.lang.Object value_; /** * optional string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { value_ = s; } return s; } } /** * optional string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { key_ = ""; value_ = ""; } 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.writeBytes(1, getKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getValueBytes()); } 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 .computeBytesSize(1, getKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getValueBytes()); } 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.KeyValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.adx.NetworkBid.BidRequest.KeyValue 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.KeyValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.adx.NetworkBid.BidRequest.KeyValue 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.KeyValue parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.KeyValue 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.KeyValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.KeyValue 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.KeyValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.KeyValue 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.KeyValue 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.KeyValue} * *
       * Additional key-value attributes. Currently unused.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:com.google.protos.adx.BidRequest.KeyValue) com.google.protos.adx.NetworkBid.BidRequest.KeyValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_KeyValue_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_KeyValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protos.adx.NetworkBid.BidRequest.KeyValue.class, com.google.protos.adx.NetworkBid.BidRequest.KeyValue.Builder.class); } // Construct using com.google.protos.adx.NetworkBid.BidRequest.KeyValue.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(); key_ = ""; bitField0_ = (bitField0_ & ~0x00000001); value_ = ""; 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_KeyValue_descriptor; } public com.google.protos.adx.NetworkBid.BidRequest.KeyValue getDefaultInstanceForType() { return com.google.protos.adx.NetworkBid.BidRequest.KeyValue.getDefaultInstance(); } public com.google.protos.adx.NetworkBid.BidRequest.KeyValue build() { com.google.protos.adx.NetworkBid.BidRequest.KeyValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.adx.NetworkBid.BidRequest.KeyValue buildPartial() { com.google.protos.adx.NetworkBid.BidRequest.KeyValue result = new com.google.protos.adx.NetworkBid.BidRequest.KeyValue(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protos.adx.NetworkBid.BidRequest.KeyValue) { return mergeFrom((com.google.protos.adx.NetworkBid.BidRequest.KeyValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protos.adx.NetworkBid.BidRequest.KeyValue other) { if (other == com.google.protos.adx.NetworkBid.BidRequest.KeyValue.getDefaultInstance()) return this; if (other.hasKey()) { bitField0_ |= 0x00000001; key_ = other.key_; onChanged(); } if (other.hasValue()) { bitField0_ |= 0x00000002; value_ = other.value_; onChanged(); } 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.KeyValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.adx.NetworkBid.BidRequest.KeyValue) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object key_ = ""; /** * optional string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { key_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string key = 1; */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } /** * optional string key = 1; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * optional string key = 1; */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } private java.lang.Object value_ = ""; /** * optional string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { value_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string value = 2; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * optional string value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * optional string value = 2; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.adx.BidRequest.KeyValue) } static { defaultInstance = new KeyValue(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.adx.BidRequest.KeyValue) } public interface MobileOrBuilder extends // @@protoc_insertion_point(interface_extends:com.google.protos.adx.BidRequest.Mobile) com.google.protobuf.MessageOrBuilder { /** * 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.
       * 
*/ boolean hasIsApp(); /** * 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.
       * 
*/ boolean getIsApp(); /** * 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
       * 
*/ boolean hasAppId(); /** * 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
       * 
*/ java.lang.String getAppId(); /** * 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
       * 
*/ com.google.protobuf.ByteString getAppIdBytes(); /** * optional bool is_interstitial_request = 10 [default = false]; * *
       * If true, then this is a mobile full screen ad request.
       * 
*/ boolean hasIsInterstitialRequest(); /** * optional bool is_interstitial_request = 10 [default = false]; * *
       * If true, then this is a mobile full screen ad request.
       * 
*/ boolean getIsInterstitialRequest(); /** * 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
       * 
*/ java.util.List getAppCategoryIdsList(); /** * 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
       * 
*/ int getAppCategoryIdsCount(); /** * 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
       * 
*/ int getAppCategoryIds(int index); /** * 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.
       * 
*/ boolean hasIsMobileWebOptimized(); /** * 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.
       * 
*/ boolean getIsMobileWebOptimized(); /** * 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.
       * 
*/ boolean hasEncryptedAdvertisingId(); /** * 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.
       * 
*/ com.google.protobuf.ByteString getEncryptedAdvertisingId(); /** * 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.
       * 
*/ boolean hasAdvertisingId(); /** * 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.
       * 
*/ com.google.protobuf.ByteString getAdvertisingId(); /** * optional bytes encrypted_hashed_idfa = 21; */ boolean hasEncryptedHashedIdfa(); /** * optional bytes encrypted_hashed_idfa = 21; */ com.google.protobuf.ByteString getEncryptedHashedIdfa(); /** * optional bytes hashed_idfa = 28; * *
       * Unencrypted version of encrypted_hashed_idfa. This field is only set
       * when using an SSL connection. This field is a 16 byte MD5.
       * 
*/ boolean hasHashedIdfa(); /** * optional bytes hashed_idfa = 28; * *
       * Unencrypted version of encrypted_hashed_idfa. This field is only set
       * when using an SSL connection. This field is a 16 byte MD5.
       * 
*/ com.google.protobuf.ByteString getHashedIdfa(); /** * 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.
       * 
*/ boolean hasConstrainedUsageEncryptedAdvertisingId(); /** * 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.
       * 
*/ com.google.protobuf.ByteString getConstrainedUsageEncryptedAdvertisingId(); /** * 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.
       * 
*/ boolean hasConstrainedUsageAdvertisingId(); /** * 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.
       * 
*/ com.google.protobuf.ByteString getConstrainedUsageAdvertisingId(); /** * optional bytes constrained_usage_encrypted_hashed_idfa = 23; */ boolean hasConstrainedUsageEncryptedHashedIdfa(); /** * optional bytes constrained_usage_encrypted_hashed_idfa = 23; */ com.google.protobuf.ByteString getConstrainedUsageEncryptedHashedIdfa(); /** * 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.
       * 
*/ boolean hasConstrainedUsageHashedIdfa(); /** * 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.
       * 
*/ com.google.protobuf.ByteString getConstrainedUsageHashedIdfa(); /** * optional string app_name = 24; * *
       * App name for Android apps in Google Play store.
       * 
*/ boolean hasAppName(); /** * optional string app_name = 24; * *
       * App name for Android apps in Google Play store.
       * 
*/ java.lang.String getAppName(); /** * optional string app_name = 24; * *
       * App name for Android apps in Google Play store.
       * 
*/ com.google.protobuf.ByteString getAppNameBytes(); /** * optional float app_rating = 25; * *
       * Average user rating for the app. The range of user rating is between 1.0
       * and 5.0. Currently only available for apps in Google Play store.
       * 
*/ boolean hasAppRating(); /** * optional float app_rating = 25; * *
       * Average user rating for the app. The range of user rating is between 1.0
       * and 5.0. Currently only available for apps in Google Play store.
       * 
*/ float getAppRating(); /** * optional string DEPRECATED_app_name = 1; * *
       * These are deprecated. Please ignore.
       * 
*/ boolean hasDEPRECATEDAppName(); /** * optional string DEPRECATED_app_name = 1; * *
       * These are deprecated. Please ignore.
       * 
*/ java.lang.String getDEPRECATEDAppName(); /** * optional string DEPRECATED_app_name = 1; * *
       * These are deprecated. Please ignore.
       * 
*/ com.google.protobuf.ByteString getDEPRECATEDAppNameBytes(); /** * optional string DEPRECATED_company_name = 2; */ boolean hasDEPRECATEDCompanyName(); /** * optional string DEPRECATED_company_name = 2; */ java.lang.String getDEPRECATEDCompanyName(); /** * optional string DEPRECATED_company_name = 2; */ com.google.protobuf.ByteString getDEPRECATEDCompanyNameBytes(); /** * optional string DEPRECATED_platform = 3; */ boolean hasDEPRECATEDPlatform(); /** * optional string DEPRECATED_platform = 3; */ java.lang.String getDEPRECATEDPlatform(); /** * optional string DEPRECATED_platform = 3; */ com.google.protobuf.ByteString getDEPRECATEDPlatformBytes(); /** * optional string DEPRECATED_carrier_name = 4; */ boolean hasDEPRECATEDCarrierName(); /** * optional string DEPRECATED_carrier_name = 4; */ java.lang.String getDEPRECATEDCarrierName(); /** * optional string DEPRECATED_carrier_name = 4; */ com.google.protobuf.ByteString getDEPRECATEDCarrierNameBytes(); /** * optional string DEPRECATED_carrier_country = 5; */ boolean hasDEPRECATEDCarrierCountry(); /** * optional string DEPRECATED_carrier_country = 5; */ java.lang.String getDEPRECATEDCarrierCountry(); /** * optional string DEPRECATED_carrier_country = 5; */ com.google.protobuf.ByteString getDEPRECATEDCarrierCountryBytes(); /** * optional .com.google.protos.adx.BidRequest.Mobile.MobileDeviceType DEPRECATED_mobile_device_type = 8 [default = UNKNOWN]; */ boolean hasDEPRECATEDMobileDeviceType(); /** * optional .com.google.protos.adx.BidRequest.Mobile.MobileDeviceType DEPRECATED_mobile_device_type = 8 [default = UNKNOWN]; */ com.google.protos.adx.NetworkBid.BidRequest.Mobile.MobileDeviceType getDEPRECATEDMobileDeviceType(); /** * optional int32 DEPRECATED_screen_orientation = 9 [default = 0]; */ boolean hasDEPRECATEDScreenOrientation(); /** * optional int32 DEPRECATED_screen_orientation = 9 [default = 0]; */ int getDEPRECATEDScreenOrientation(); /** * optional string DEPRECATED_brand = 12; */ boolean hasDEPRECATEDBrand(); /** * optional string DEPRECATED_brand = 12; */ java.lang.String getDEPRECATEDBrand(); /** * optional string DEPRECATED_brand = 12; */ com.google.protobuf.ByteString getDEPRECATEDBrandBytes(); /** * optional string DEPRECATED_model = 13; */ boolean hasDEPRECATEDModel(); /** * optional string DEPRECATED_model = 13; */ java.lang.String getDEPRECATEDModel(); /** * optional string DEPRECATED_model = 13; */ com.google.protobuf.ByteString getDEPRECATEDModelBytes(); /** * optional .com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion DEPRECATED_os_version = 14; */ boolean hasDEPRECATEDOsVersion(); /** * optional .com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion DEPRECATED_os_version = 14; */ com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion getDEPRECATEDOsVersion(); /** * optional .com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion DEPRECATED_os_version = 14; */ com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersionOrBuilder getDEPRECATEDOsVersionOrBuilder(); /** * optional int32 DEPRECATED_screen_width = 15; */ boolean hasDEPRECATEDScreenWidth(); /** * optional int32 DEPRECATED_screen_width = 15; */ int getDEPRECATEDScreenWidth(); /** * optional int32 DEPRECATED_screen_height = 16; */ boolean hasDEPRECATEDScreenHeight(); /** * optional int32 DEPRECATED_screen_height = 16; */ int getDEPRECATEDScreenHeight(); /** * optional int64 DEPRECATED_carrier_id = 18; */ boolean hasDEPRECATEDCarrierId(); /** * optional int64 DEPRECATED_carrier_id = 18; */ long getDEPRECATEDCarrierId(); /** * optional int32 DEPRECATED_device_pixel_ratio_millis = 19 [default = 1000]; */ boolean hasDEPRECATEDDevicePixelRatioMillis(); /** * optional int32 DEPRECATED_device_pixel_ratio_millis = 19 [default = 1000]; */ int getDEPRECATEDDevicePixelRatioMillis(); } /** * Protobuf type {@code com.google.protos.adx.BidRequest.Mobile} * *
     * 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.
       * 
*/ public boolean hasIsApp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * 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.
       * 
*/ 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
       * 
*/ public boolean hasAppId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * 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
       * 
*/ public java.lang.String getAppId() { java.lang.Object ref = appId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { appId_ = s; } return s; } } /** * 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
       * 
*/ 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.
       * 
*/ public boolean hasIsInterstitialRequest() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bool is_interstitial_request = 10 [default = false]; * *
       * 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
       * 
*/ public java.util.List getAppCategoryIdsList() { return 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
       * 
*/ 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.
       * 
*/ public boolean hasIsMobileWebOptimized() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * 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.
       * 
*/ 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.
       * 
*/ public boolean hasEncryptedAdvertisingId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * 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.
       * 
*/ 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.
       * 
*/ public boolean hasAdvertisingId() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * 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.
       * 
*/ public com.google.protobuf.ByteString getAdvertisingId() { return advertisingId_; } public static final int ENCRYPTED_HASHED_IDFA_FIELD_NUMBER = 21; private com.google.protobuf.ByteString encryptedHashedIdfa_; /** * optional bytes encrypted_hashed_idfa = 21; */ public boolean hasEncryptedHashedIdfa() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bytes encrypted_hashed_idfa = 21; */ public com.google.protobuf.ByteString getEncryptedHashedIdfa() { return encryptedHashedIdfa_; } public static final int HASHED_IDFA_FIELD_NUMBER = 28; private com.google.protobuf.ByteString hashedIdfa_; /** * optional bytes hashed_idfa = 28; * *
       * Unencrypted version of encrypted_hashed_idfa. This field is only set
       * when using an SSL connection. This field is a 16 byte MD5.
       * 
*/ public boolean hasHashedIdfa() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional bytes hashed_idfa = 28; * *
       * 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.
       * 
*/ public boolean hasConstrainedUsageEncryptedAdvertisingId() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * 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.
       * 
*/ 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.
       * 
*/ public boolean hasConstrainedUsageAdvertisingId() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * 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.
       * 
*/ 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.
       * 
*/ public boolean hasConstrainedUsageHashedIdfa() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * 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.
       * 
*/ 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.
       * 
*/ public boolean hasAppName() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional string app_name = 24; * *
       * App name for Android apps in Google Play store.
       * 
*/ public java.lang.String getAppName() { java.lang.Object ref = appName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { appName_ = s; } return s; } } /** * optional string app_name = 24; * *
       * App name for Android apps in Google Play store.
       * 
*/ public com.google.protobuf.ByteString getAppNameBytes() { java.lang.Object ref = appName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int APP_RATING_FIELD_NUMBER = 25; private float appRating_; /** * optional float app_rating = 25; * *
       * Average user rating for the app. The range of user rating is between 1.0
       * and 5.0. Currently only available for apps in Google Play store.
       * 
*/ public boolean hasAppRating() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional float app_rating = 25; * *
       * Average user rating for the app. The range of user rating is between 1.0
       * and 5.0. Currently only available for apps in Google Play store.
       * 
*/ public float getAppRating() { return appRating_; } public static final int DEPRECATED_APP_NAME_FIELD_NUMBER = 1; private java.lang.Object dEPRECATEDAppName_; /** * optional string DEPRECATED_app_name = 1; * *
       * These are deprecated. Please ignore.
       * 
*/ public boolean hasDEPRECATEDAppName() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional string DEPRECATED_app_name = 1; * *
       * These are deprecated. Please ignore.
       * 
*/ public java.lang.String getDEPRECATEDAppName() { java.lang.Object ref = dEPRECATEDAppName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { dEPRECATEDAppName_ = s; } return s; } } /** * optional string DEPRECATED_app_name = 1; * *
       * These are deprecated. Please ignore.
       * 
*/ public com.google.protobuf.ByteString getDEPRECATEDAppNameBytes() { java.lang.Object ref = dEPRECATEDAppName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dEPRECATEDAppName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEPRECATED_COMPANY_NAME_FIELD_NUMBER = 2; private java.lang.Object dEPRECATEDCompanyName_; /** * optional string DEPRECATED_company_name = 2; */ public boolean hasDEPRECATEDCompanyName() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional string DEPRECATED_company_name = 2; */ public java.lang.String getDEPRECATEDCompanyName() { java.lang.Object ref = dEPRECATEDCompanyName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { dEPRECATEDCompanyName_ = s; } return s; } } /** * optional string DEPRECATED_company_name = 2; */ public com.google.protobuf.ByteString getDEPRECATEDCompanyNameBytes() { java.lang.Object ref = dEPRECATEDCompanyName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dEPRECATEDCompanyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEPRECATED_PLATFORM_FIELD_NUMBER = 3; private java.lang.Object dEPRECATEDPlatform_; /** * optional string DEPRECATED_platform = 3; */ public boolean hasDEPRECATEDPlatform() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional string DEPRECATED_platform = 3; */ public java.lang.String getDEPRECATEDPlatform() { java.lang.Object ref = dEPRECATEDPlatform_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { dEPRECATEDPlatform_ = s; } return s; } } /** * optional string DEPRECATED_platform = 3; */ public com.google.protobuf.ByteString getDEPRECATEDPlatformBytes() { java.lang.Object ref = dEPRECATEDPlatform_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dEPRECATEDPlatform_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEPRECATED_CARRIER_NAME_FIELD_NUMBER = 4; private java.lang.Object dEPRECATEDCarrierName_; /** * optional string DEPRECATED_carrier_name = 4; */ public boolean hasDEPRECATEDCarrierName() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * optional string DEPRECATED_carrier_name = 4; */ public java.lang.String getDEPRECATEDCarrierName() { java.lang.Object ref = dEPRECATEDCarrierName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { dEPRECATEDCarrierName_ = s; } return s; } } /** * optional string DEPRECATED_carrier_name = 4; */ public com.google.protobuf.ByteString getDEPRECATEDCarrierNameBytes() { java.lang.Object ref = dEPRECATEDCarrierName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dEPRECATEDCarrierName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEPRECATED_CARRIER_COUNTRY_FIELD_NUMBER = 5; private java.lang.Object dEPRECATEDCarrierCountry_; /** * optional string DEPRECATED_carrier_country = 5; */ public boolean hasDEPRECATEDCarrierCountry() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * optional string DEPRECATED_carrier_country = 5; */ public java.lang.String getDEPRECATEDCarrierCountry() { java.lang.Object ref = dEPRECATEDCarrierCountry_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { dEPRECATEDCarrierCountry_ = s; } return s; } } /** * optional string DEPRECATED_carrier_country = 5; */ public com.google.protobuf.ByteString getDEPRECATEDCarrierCountryBytes() { java.lang.Object ref = dEPRECATEDCarrierCountry_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dEPRECATEDCarrierCountry_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEPRECATED_MOBILE_DEVICE_TYPE_FIELD_NUMBER = 8; private com.google.protos.adx.NetworkBid.BidRequest.Mobile.MobileDeviceType dEPRECATEDMobileDeviceType_; /** * optional .com.google.protos.adx.BidRequest.Mobile.MobileDeviceType DEPRECATED_mobile_device_type = 8 [default = UNKNOWN]; */ public boolean hasDEPRECATEDMobileDeviceType() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * optional .com.google.protos.adx.BidRequest.Mobile.MobileDeviceType DEPRECATED_mobile_device_type = 8 [default = UNKNOWN]; */ public com.google.protos.adx.NetworkBid.BidRequest.Mobile.MobileDeviceType getDEPRECATEDMobileDeviceType() { return dEPRECATEDMobileDeviceType_; } public static final int DEPRECATED_SCREEN_ORIENTATION_FIELD_NUMBER = 9; private int dEPRECATEDScreenOrientation_; /** * optional int32 DEPRECATED_screen_orientation = 9 [default = 0]; */ public boolean hasDEPRECATEDScreenOrientation() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * optional int32 DEPRECATED_screen_orientation = 9 [default = 0]; */ public int getDEPRECATEDScreenOrientation() { return dEPRECATEDScreenOrientation_; } public static final int DEPRECATED_BRAND_FIELD_NUMBER = 12; private java.lang.Object dEPRECATEDBrand_; /** * optional string DEPRECATED_brand = 12; */ public boolean hasDEPRECATEDBrand() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * optional string DEPRECATED_brand = 12; */ public java.lang.String getDEPRECATEDBrand() { java.lang.Object ref = dEPRECATEDBrand_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { dEPRECATEDBrand_ = s; } return s; } } /** * optional string DEPRECATED_brand = 12; */ public com.google.protobuf.ByteString getDEPRECATEDBrandBytes() { java.lang.Object ref = dEPRECATEDBrand_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dEPRECATEDBrand_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEPRECATED_MODEL_FIELD_NUMBER = 13; private java.lang.Object dEPRECATEDModel_; /** * optional string DEPRECATED_model = 13; */ public boolean hasDEPRECATEDModel() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * optional string DEPRECATED_model = 13; */ public java.lang.String getDEPRECATEDModel() { java.lang.Object ref = dEPRECATEDModel_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { dEPRECATEDModel_ = s; } return s; } } /** * optional string DEPRECATED_model = 13; */ public com.google.protobuf.ByteString getDEPRECATEDModelBytes() { java.lang.Object ref = dEPRECATEDModel_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dEPRECATEDModel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEPRECATED_OS_VERSION_FIELD_NUMBER = 14; private com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion dEPRECATEDOsVersion_; /** * optional .com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion DEPRECATED_os_version = 14; */ public boolean hasDEPRECATEDOsVersion() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * optional .com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion DEPRECATED_os_version = 14; */ public com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion getDEPRECATEDOsVersion() { return dEPRECATEDOsVersion_; } /** * optional .com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion DEPRECATED_os_version = 14; */ public com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersionOrBuilder getDEPRECATEDOsVersionOrBuilder() { return dEPRECATEDOsVersion_; } public static final int DEPRECATED_SCREEN_WIDTH_FIELD_NUMBER = 15; private int dEPRECATEDScreenWidth_; /** * optional int32 DEPRECATED_screen_width = 15; */ public boolean hasDEPRECATEDScreenWidth() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * optional int32 DEPRECATED_screen_width = 15; */ public int getDEPRECATEDScreenWidth() { return dEPRECATEDScreenWidth_; } public static final int DEPRECATED_SCREEN_HEIGHT_FIELD_NUMBER = 16; private int dEPRECATEDScreenHeight_; /** * optional int32 DEPRECATED_screen_height = 16; */ public boolean hasDEPRECATEDScreenHeight() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * optional int32 DEPRECATED_screen_height = 16; */ public int getDEPRECATEDScreenHeight() { return dEPRECATEDScreenHeight_; } public static final int DEPRECATED_CARRIER_ID_FIELD_NUMBER = 18; private long dEPRECATEDCarrierId_; /** * optional int64 DEPRECATED_carrier_id = 18; */ public boolean hasDEPRECATEDCarrierId() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** * optional int64 DEPRECATED_carrier_id = 18; */ public long getDEPRECATEDCarrierId() { return dEPRECATEDCarrierId_; } public static final int DEPRECATED_DEVICE_PIXEL_RATIO_MILLIS_FIELD_NUMBER = 19; private int dEPRECATEDDevicePixelRatioMillis_; /** * optional int32 DEPRECATED_device_pixel_ratio_millis = 19 [default = 1000]; */ public boolean hasDEPRECATEDDevicePixelRatioMillis() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** * optional int32 DEPRECATED_device_pixel_ratio_millis = 19 [default = 1000]; */ public int getDEPRECATEDDevicePixelRatioMillis() { return dEPRECATEDDevicePixelRatioMillis_; } private void initFields() { isApp_ = false; appId_ = ""; isInterstitialRequest_ = false; appCategoryIds_ = java.util.Collections.emptyList(); isMobileWebOptimized_ = false; encryptedAdvertisingId_ = com.google.protobuf.ByteString.EMPTY; advertisingId_ = com.google.protobuf.ByteString.EMPTY; encryptedHashedIdfa_ = com.google.protobuf.ByteString.EMPTY; hashedIdfa_ = com.google.protobuf.ByteString.EMPTY; constrainedUsageEncryptedAdvertisingId_ = com.google.protobuf.ByteString.EMPTY; constrainedUsageAdvertisingId_ = com.google.protobuf.ByteString.EMPTY; constrainedUsageEncryptedHashedIdfa_ = com.google.protobuf.ByteString.EMPTY; constrainedUsageHashedIdfa_ = com.google.protobuf.ByteString.EMPTY; appName_ = ""; appRating_ = 0F; dEPRECATEDAppName_ = ""; dEPRECATEDCompanyName_ = ""; dEPRECATEDPlatform_ = ""; dEPRECATEDCarrierName_ = ""; dEPRECATEDCarrierCountry_ = ""; dEPRECATEDMobileDeviceType_ = com.google.protos.adx.NetworkBid.BidRequest.Mobile.MobileDeviceType.UNKNOWN; dEPRECATEDScreenOrientation_ = 0; dEPRECATEDBrand_ = ""; dEPRECATEDModel_ = ""; dEPRECATEDOsVersion_ = com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion.getDefaultInstance(); dEPRECATEDScreenWidth_ = 0; dEPRECATEDScreenHeight_ = 0; dEPRECATEDCarrierId_ = 0L; dEPRECATEDDevicePixelRatioMillis_ = 1000; } 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_ & 0x00004000) == 0x00004000)) { output.writeBytes(1, getDEPRECATEDAppNameBytes()); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeBytes(2, getDEPRECATEDCompanyNameBytes()); } if (((bitField0_ & 0x00010000) == 0x00010000)) { output.writeBytes(3, getDEPRECATEDPlatformBytes()); } if (((bitField0_ & 0x00020000) == 0x00020000)) { output.writeBytes(4, getDEPRECATEDCarrierNameBytes()); } if (((bitField0_ & 0x00040000) == 0x00040000)) { output.writeBytes(5, getDEPRECATEDCarrierCountryBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(6, getAppIdBytes()); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBool(7, isApp_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { output.writeEnum(8, dEPRECATEDMobileDeviceType_.getNumber()); } if (((bitField0_ & 0x00100000) == 0x00100000)) { output.writeInt32(9, dEPRECATEDScreenOrientation_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(10, isInterstitialRequest_); } for (int i = 0; i < appCategoryIds_.size(); i++) { output.writeInt32(11, appCategoryIds_.get(i)); } if (((bitField0_ & 0x00200000) == 0x00200000)) { output.writeBytes(12, getDEPRECATEDBrandBytes()); } if (((bitField0_ & 0x00400000) == 0x00400000)) { output.writeBytes(13, getDEPRECATEDModelBytes()); } if (((bitField0_ & 0x00800000) == 0x00800000)) { output.writeMessage(14, dEPRECATEDOsVersion_); } if (((bitField0_ & 0x01000000) == 0x01000000)) { output.writeInt32(15, dEPRECATEDScreenWidth_); } if (((bitField0_ & 0x02000000) == 0x02000000)) { output.writeInt32(16, dEPRECATEDScreenHeight_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(17, isMobileWebOptimized_); } if (((bitField0_ & 0x04000000) == 0x04000000)) { output.writeInt64(18, dEPRECATEDCarrierId_); } if (((bitField0_ & 0x08000000) == 0x08000000)) { output.writeInt32(19, dEPRECATEDDevicePixelRatioMillis_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(20, encryptedAdvertisingId_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBytes(21, encryptedHashedIdfa_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBytes(22, constrainedUsageEncryptedAdvertisingId_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBytes(23, constrainedUsageEncryptedHashedIdfa_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeBytes(24, getAppNameBytes()); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeFloat(25, appRating_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(27, advertisingId_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBytes(28, hashedIdfa_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBytes(29, constrainedUsageAdvertisingId_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeBytes(30, constrainedUsageHashedIdfa_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getDEPRECATEDAppNameBytes()); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getDEPRECATEDCompanyNameBytes()); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getDEPRECATEDPlatformBytes()); } if (((bitField0_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getDEPRECATEDCarrierNameBytes()); } if (((bitField0_ & 0x00040000) == 0x00040000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getDEPRECATEDCarrierCountryBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getAppIdBytes()); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, isApp_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, dEPRECATEDMobileDeviceType_.getNumber()); } if (((bitField0_ & 0x00100000) == 0x00100000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, dEPRECATEDScreenOrientation_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, isInterstitialRequest_); } { int dataSize = 0; for (int i = 0; i < appCategoryIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(appCategoryIds_.get(i)); } size += dataSize; size += 1 * getAppCategoryIdsList().size(); } if (((bitField0_ & 0x00200000) == 0x00200000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, getDEPRECATEDBrandBytes()); } if (((bitField0_ & 0x00400000) == 0x00400000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(13, getDEPRECATEDModelBytes()); } if (((bitField0_ & 0x00800000) == 0x00800000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, dEPRECATEDOsVersion_); } if (((bitField0_ & 0x01000000) == 0x01000000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(15, dEPRECATEDScreenWidth_); } if (((bitField0_ & 0x02000000) == 0x02000000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(16, dEPRECATEDScreenHeight_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(17, isMobileWebOptimized_); } if (((bitField0_ & 0x04000000) == 0x04000000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(18, dEPRECATEDCarrierId_); } if (((bitField0_ & 0x08000000) == 0x08000000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(19, dEPRECATEDDevicePixelRatioMillis_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(20, encryptedAdvertisingId_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(21, encryptedHashedIdfa_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(22, constrainedUsageEncryptedAdvertisingId_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(23, constrainedUsageEncryptedHashedIdfa_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(24, getAppNameBytes()); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(25, appRating_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(27, advertisingId_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(28, hashedIdfa_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(29, constrainedUsageAdvertisingId_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(30, constrainedUsageHashedIdfa_); } 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 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.adx.NetworkBid.BidRequest.Mobile 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 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protos.adx.NetworkBid.BidRequest.Mobile 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 parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.Mobile 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 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.Mobile 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 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protos.adx.NetworkBid.BidRequest.Mobile 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 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} * *
       * 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 Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:com.google.protos.adx.BidRequest.Mobile) com.google.protos.adx.NetworkBid.BidRequest.MobileOrBuilder { 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); } // Construct using com.google.protos.adx.NetworkBid.BidRequest.Mobile.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getDEPRECATEDOsVersionFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); isApp_ = false; bitField0_ = (bitField0_ & ~0x00000001); appId_ = ""; bitField0_ = (bitField0_ & ~0x00000002); isInterstitialRequest_ = false; bitField0_ = (bitField0_ & ~0x00000004); appCategoryIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); isMobileWebOptimized_ = false; bitField0_ = (bitField0_ & ~0x00000010); encryptedAdvertisingId_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); advertisingId_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); encryptedHashedIdfa_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); hashedIdfa_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000100); constrainedUsageEncryptedAdvertisingId_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000200); constrainedUsageAdvertisingId_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000400); constrainedUsageEncryptedHashedIdfa_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000800); constrainedUsageHashedIdfa_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00001000); appName_ = ""; bitField0_ = (bitField0_ & ~0x00002000); appRating_ = 0F; bitField0_ = (bitField0_ & ~0x00004000); dEPRECATEDAppName_ = ""; bitField0_ = (bitField0_ & ~0x00008000); dEPRECATEDCompanyName_ = ""; bitField0_ = (bitField0_ & ~0x00010000); dEPRECATEDPlatform_ = ""; bitField0_ = (bitField0_ & ~0x00020000); dEPRECATEDCarrierName_ = ""; bitField0_ = (bitField0_ & ~0x00040000); dEPRECATEDCarrierCountry_ = ""; bitField0_ = (bitField0_ & ~0x00080000); dEPRECATEDMobileDeviceType_ = com.google.protos.adx.NetworkBid.BidRequest.Mobile.MobileDeviceType.UNKNOWN; bitField0_ = (bitField0_ & ~0x00100000); dEPRECATEDScreenOrientation_ = 0; bitField0_ = (bitField0_ & ~0x00200000); dEPRECATEDBrand_ = ""; bitField0_ = (bitField0_ & ~0x00400000); dEPRECATEDModel_ = ""; bitField0_ = (bitField0_ & ~0x00800000); if (dEPRECATEDOsVersionBuilder_ == null) { dEPRECATEDOsVersion_ = com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion.getDefaultInstance(); } else { dEPRECATEDOsVersionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x01000000); dEPRECATEDScreenWidth_ = 0; bitField0_ = (bitField0_ & ~0x02000000); dEPRECATEDScreenHeight_ = 0; bitField0_ = (bitField0_ & ~0x04000000); dEPRECATEDCarrierId_ = 0L; bitField0_ = (bitField0_ & ~0x08000000); dEPRECATEDDevicePixelRatioMillis_ = 1000; bitField0_ = (bitField0_ & ~0x10000000); 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_descriptor; } public com.google.protos.adx.NetworkBid.BidRequest.Mobile getDefaultInstanceForType() { return com.google.protos.adx.NetworkBid.BidRequest.Mobile.getDefaultInstance(); } public com.google.protos.adx.NetworkBid.BidRequest.Mobile build() { com.google.protos.adx.NetworkBid.BidRequest.Mobile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protos.adx.NetworkBid.BidRequest.Mobile buildPartial() { com.google.protos.adx.NetworkBid.BidRequest.Mobile result = new com.google.protos.adx.NetworkBid.BidRequest.Mobile(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.isApp_ = isApp_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.appId_ = appId_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.isInterstitialRequest_ = isInterstitialRequest_; if (((bitField0_ & 0x00000008) == 0x00000008)) { appCategoryIds_ = java.util.Collections.unmodifiableList(appCategoryIds_); bitField0_ = (bitField0_ & ~0x00000008); } result.appCategoryIds_ = appCategoryIds_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.isMobileWebOptimized_ = isMobileWebOptimized_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } result.encryptedAdvertisingId_ = encryptedAdvertisingId_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } result.advertisingId_ = advertisingId_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000040; } result.encryptedHashedIdfa_ = encryptedHashedIdfa_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000080; } result.hashedIdfa_ = hashedIdfa_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000100; } result.constrainedUsageEncryptedAdvertisingId_ = constrainedUsageEncryptedAdvertisingId_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000200; } result.constrainedUsageAdvertisingId_ = constrainedUsageAdvertisingId_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000400; } result.constrainedUsageEncryptedHashedIdfa_ = constrainedUsageEncryptedHashedIdfa_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00000800; } result.constrainedUsageHashedIdfa_ = constrainedUsageHashedIdfa_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00001000; } result.appName_ = appName_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00002000; } result.appRating_ = appRating_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00004000; } result.dEPRECATEDAppName_ = dEPRECATEDAppName_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00008000; } result.dEPRECATEDCompanyName_ = dEPRECATEDCompanyName_; if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00010000; } result.dEPRECATEDPlatform_ = dEPRECATEDPlatform_; if (((from_bitField0_ & 0x00040000) == 0x00040000)) { to_bitField0_ |= 0x00020000; } result.dEPRECATEDCarrierName_ = dEPRECATEDCarrierName_; if (((from_bitField0_ & 0x00080000) == 0x00080000)) { to_bitField0_ |= 0x00040000; } result.dEPRECATEDCarrierCountry_ = dEPRECATEDCarrierCountry_; if (((from_bitField0_ & 0x00100000) == 0x00100000)) { to_bitField0_ |= 0x00080000; } result.dEPRECATEDMobileDeviceType_ = dEPRECATEDMobileDeviceType_; if (((from_bitField0_ & 0x00200000) == 0x00200000)) { to_bitField0_ |= 0x00100000; } result.dEPRECATEDScreenOrientation_ = dEPRECATEDScreenOrientation_; if (((from_bitField0_ & 0x00400000) == 0x00400000)) { to_bitField0_ |= 0x00200000; } result.dEPRECATEDBrand_ = dEPRECATEDBrand_; if (((from_bitField0_ & 0x00800000) == 0x00800000)) { to_bitField0_ |= 0x00400000; } result.dEPRECATEDModel_ = dEPRECATEDModel_; if (((from_bitField0_ & 0x01000000) == 0x01000000)) { to_bitField0_ |= 0x00800000; } if (dEPRECATEDOsVersionBuilder_ == null) { result.dEPRECATEDOsVersion_ = dEPRECATEDOsVersion_; } else { result.dEPRECATEDOsVersion_ = dEPRECATEDOsVersionBuilder_.build(); } if (((from_bitField0_ & 0x02000000) == 0x02000000)) { to_bitField0_ |= 0x01000000; } result.dEPRECATEDScreenWidth_ = dEPRECATEDScreenWidth_; if (((from_bitField0_ & 0x04000000) == 0x04000000)) { to_bitField0_ |= 0x02000000; } result.dEPRECATEDScreenHeight_ = dEPRECATEDScreenHeight_; if (((from_bitField0_ & 0x08000000) == 0x08000000)) { to_bitField0_ |= 0x04000000; } result.dEPRECATEDCarrierId_ = dEPRECATEDCarrierId_; if (((from_bitField0_ & 0x10000000) == 0x10000000)) { to_bitField0_ |= 0x08000000; } result.dEPRECATEDDevicePixelRatioMillis_ = dEPRECATEDDevicePixelRatioMillis_; 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) { return mergeFrom((com.google.protos.adx.NetworkBid.BidRequest.Mobile)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protos.adx.NetworkBid.BidRequest.Mobile other) { if (other == com.google.protos.adx.NetworkBid.BidRequest.Mobile.getDefaultInstance()) return this; if (other.hasIsApp()) { setIsApp(other.getIsApp()); } if (other.hasAppId()) { bitField0_ |= 0x00000002; appId_ = other.appId_; onChanged(); } if (other.hasIsInterstitialRequest()) { setIsInterstitialRequest(other.getIsInterstitialRequest()); } if (!other.appCategoryIds_.isEmpty()) { if (appCategoryIds_.isEmpty()) { appCategoryIds_ = other.appCategoryIds_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureAppCategoryIdsIsMutable(); appCategoryIds_.addAll(other.appCategoryIds_); } onChanged(); } if (other.hasIsMobileWebOptimized()) { setIsMobileWebOptimized(other.getIsMobileWebOptimized()); } if (other.hasEncryptedAdvertisingId()) { setEncryptedAdvertisingId(other.getEncryptedAdvertisingId()); } if (other.hasAdvertisingId()) { setAdvertisingId(other.getAdvertisingId()); } if (other.hasEncryptedHashedIdfa()) { setEncryptedHashedIdfa(other.getEncryptedHashedIdfa()); } if (other.hasHashedIdfa()) { setHashedIdfa(other.getHashedIdfa()); } if (other.hasConstrainedUsageEncryptedAdvertisingId()) { setConstrainedUsageEncryptedAdvertisingId(other.getConstrainedUsageEncryptedAdvertisingId()); } if (other.hasConstrainedUsageAdvertisingId()) { setConstrainedUsageAdvertisingId(other.getConstrainedUsageAdvertisingId()); } if (other.hasConstrainedUsageEncryptedHashedIdfa()) { setConstrainedUsageEncryptedHashedIdfa(other.getConstrainedUsageEncryptedHashedIdfa()); } if (other.hasConstrainedUsageHashedIdfa()) { setConstrainedUsageHashedIdfa(other.getConstrainedUsageHashedIdfa()); } if (other.hasAppName()) { bitField0_ |= 0x00002000; appName_ = other.appName_; onChanged(); } if (other.hasAppRating()) { setAppRating(other.getAppRating()); } if (other.hasDEPRECATEDAppName()) { bitField0_ |= 0x00008000; dEPRECATEDAppName_ = other.dEPRECATEDAppName_; onChanged(); } if (other.hasDEPRECATEDCompanyName()) { bitField0_ |= 0x00010000; dEPRECATEDCompanyName_ = other.dEPRECATEDCompanyName_; onChanged(); } if (other.hasDEPRECATEDPlatform()) { bitField0_ |= 0x00020000; dEPRECATEDPlatform_ = other.dEPRECATEDPlatform_; onChanged(); } if (other.hasDEPRECATEDCarrierName()) { bitField0_ |= 0x00040000; dEPRECATEDCarrierName_ = other.dEPRECATEDCarrierName_; onChanged(); } if (other.hasDEPRECATEDCarrierCountry()) { bitField0_ |= 0x00080000; dEPRECATEDCarrierCountry_ = other.dEPRECATEDCarrierCountry_; onChanged(); } if (other.hasDEPRECATEDMobileDeviceType()) { setDEPRECATEDMobileDeviceType(other.getDEPRECATEDMobileDeviceType()); } if (other.hasDEPRECATEDScreenOrientation()) { setDEPRECATEDScreenOrientation(other.getDEPRECATEDScreenOrientation()); } if (other.hasDEPRECATEDBrand()) { bitField0_ |= 0x00400000; dEPRECATEDBrand_ = other.dEPRECATEDBrand_; onChanged(); } if (other.hasDEPRECATEDModel()) { bitField0_ |= 0x00800000; dEPRECATEDModel_ = other.dEPRECATEDModel_; onChanged(); } if (other.hasDEPRECATEDOsVersion()) { mergeDEPRECATEDOsVersion(other.getDEPRECATEDOsVersion()); } if (other.hasDEPRECATEDScreenWidth()) { setDEPRECATEDScreenWidth(other.getDEPRECATEDScreenWidth()); } if (other.hasDEPRECATEDScreenHeight()) { setDEPRECATEDScreenHeight(other.getDEPRECATEDScreenHeight()); } if (other.hasDEPRECATEDCarrierId()) { setDEPRECATEDCarrierId(other.getDEPRECATEDCarrierId()); } if (other.hasDEPRECATEDDevicePixelRatioMillis()) { setDEPRECATEDDevicePixelRatioMillis(other.getDEPRECATEDDevicePixelRatioMillis()); } 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 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protos.adx.NetworkBid.BidRequest.Mobile) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; 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.
         * 
*/ public boolean hasIsApp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * 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.
         * 
*/ public boolean getIsApp() { return 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.
         * 
*/ public Builder setIsApp(boolean value) { bitField0_ |= 0x00000001; isApp_ = value; onChanged(); return this; } /** * 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.
         * 
*/ public Builder clearIsApp() { bitField0_ = (bitField0_ & ~0x00000001); isApp_ = false; onChanged(); return this; } 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
         * 
*/ public boolean hasAppId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * 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
         * 
*/ public java.lang.String getAppId() { java.lang.Object ref = appId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { appId_ = s; } return s; } else { return (java.lang.String) ref; } } /** * 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
         * 
*/ public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof 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; } } /** * 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
         * 
*/ public Builder setAppId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; appId_ = value; onChanged(); return this; } /** * 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
         * 
*/ public Builder clearAppId() { bitField0_ = (bitField0_ & ~0x00000002); appId_ = getDefaultInstance().getAppId(); onChanged(); return this; } /** * 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
         * 
*/ public Builder setAppIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; appId_ = value; onChanged(); return this; } private boolean isInterstitialRequest_ ; /** * optional bool is_interstitial_request = 10 [default = false]; * *
         * If true, then this is a mobile full screen ad request.
         * 
*/ public boolean hasIsInterstitialRequest() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bool is_interstitial_request = 10 [default = false]; * *
         * If true, then this is a mobile full screen ad request.
         * 
*/ public boolean getIsInterstitialRequest() { return isInterstitialRequest_; } /** * optional bool is_interstitial_request = 10 [default = false]; * *
         * If true, then this is a mobile full screen ad request.
         * 
*/ public Builder setIsInterstitialRequest(boolean value) { bitField0_ |= 0x00000004; isInterstitialRequest_ = value; onChanged(); return this; } /** * optional bool is_interstitial_request = 10 [default = false]; * *
         * If true, then this is a mobile full screen ad request.
         * 
*/ public Builder clearIsInterstitialRequest() { bitField0_ = (bitField0_ & ~0x00000004); isInterstitialRequest_ = false; onChanged(); return this; } private java.util.List appCategoryIds_ = java.util.Collections.emptyList(); private void ensureAppCategoryIdsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { appCategoryIds_ = new java.util.ArrayList(appCategoryIds_); bitField0_ |= 0x00000008; } } /** * 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 java.util.List getAppCategoryIdsList() { return java.util.Collections.unmodifiableList(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
         * 
*/ 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
         * 
*/ public Builder addAppCategoryIds(int value) { ensureAppCategoryIdsIsMutable(); appCategoryIds_.add(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
         * 
*/ public Builder addAllAppCategoryIds( java.lang.Iterable values) { ensureAppCategoryIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, appCategoryIds_); 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
         * 
*/ public Builder clearAppCategoryIds() { appCategoryIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } 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.
         * 
*/ public boolean hasIsMobileWebOptimized() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * 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.
         * 
*/ public boolean getIsMobileWebOptimized() { return 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.
         * 
*/ public Builder setIsMobileWebOptimized(boolean value) { bitField0_ |= 0x00000010; isMobileWebOptimized_ = value; onChanged(); return this; } /** * 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.
         * 
*/ public Builder clearIsMobileWebOptimized() { bitField0_ = (bitField0_ & ~0x00000010); isMobileWebOptimized_ = false; onChanged(); return this; } private com.google.protobuf.ByteString encryptedAdvertisingId_ = com.google.protobuf.ByteString.EMPTY; /** * 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.
         * 
*/ public boolean hasEncryptedAdvertisingId() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * 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.
         * 
*/ public com.google.protobuf.ByteString getEncryptedAdvertisingId() { return 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.
         * 
*/ public Builder setEncryptedAdvertisingId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; encryptedAdvertisingId_ = value; onChanged(); return this; } /** * 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.
         * 
*/ public Builder clearEncryptedAdvertisingId() { bitField0_ = (bitField0_ & ~0x00000020); encryptedAdvertisingId_ = getDefaultInstance().getEncryptedAdvertisingId(); onChanged(); return this; } private com.google.protobuf.ByteString advertisingId_ = com.google.protobuf.ByteString.EMPTY; /** * 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.
         * 
*/ public boolean hasAdvertisingId() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * 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.
         * 
*/ public com.google.protobuf.ByteString getAdvertisingId() { return 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.
         * 
*/ public Builder setAdvertisingId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; advertisingId_ = value; onChanged(); return this; } /** * 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.
         * 
*/ public Builder clearAdvertisingId() { bitField0_ = (bitField0_ & ~0x00000040); advertisingId_ = getDefaultInstance().getAdvertisingId(); onChanged(); return this; } private com.google.protobuf.ByteString encryptedHashedIdfa_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes encrypted_hashed_idfa = 21; */ public boolean hasEncryptedHashedIdfa() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional bytes encrypted_hashed_idfa = 21; */ public com.google.protobuf.ByteString getEncryptedHashedIdfa() { return encryptedHashedIdfa_; } /** * optional bytes encrypted_hashed_idfa = 21; */ public Builder setEncryptedHashedIdfa(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; encryptedHashedIdfa_ = value; onChanged(); return this; } /** * optional bytes encrypted_hashed_idfa = 21; */ public Builder clearEncryptedHashedIdfa() { bitField0_ = (bitField0_ & ~0x00000080); encryptedHashedIdfa_ = getDefaultInstance().getEncryptedHashedIdfa(); onChanged(); return this; } private com.google.protobuf.ByteString hashedIdfa_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes hashed_idfa = 28; * *
         * Unencrypted version of encrypted_hashed_idfa. This field is only set
         * when using an SSL connection. This field is a 16 byte MD5.
         * 
*/ public boolean hasHashedIdfa() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional bytes hashed_idfa = 28; * *
         * 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_; } /** * optional bytes hashed_idfa = 28; * *
         * Unencrypted version of encrypted_hashed_idfa. This field is only set
         * when using an SSL connection. This field is a 16 byte MD5.
         * 
*/ public Builder setHashedIdfa(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; hashedIdfa_ = value; onChanged(); return this; } /** * optional bytes hashed_idfa = 28; * *
         * Unencrypted version of encrypted_hashed_idfa. This field is only set
         * when using an SSL connection. This field is a 16 byte MD5.
         * 
*/ public Builder clearHashedIdfa() { bitField0_ = (bitField0_ & ~0x00000100); hashedIdfa_ = getDefaultInstance().getHashedIdfa(); onChanged(); return this; } private com.google.protobuf.ByteString constrainedUsageEncryptedAdvertisingId_ = com.google.protobuf.ByteString.EMPTY; /** * 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.
         * 
*/ public boolean hasConstrainedUsageEncryptedAdvertisingId() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * 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.
         * 
*/ public com.google.protobuf.ByteString getConstrainedUsageEncryptedAdvertisingId() { return 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.
         * 
*/ public Builder setConstrainedUsageEncryptedAdvertisingId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; constrainedUsageEncryptedAdvertisingId_ = value; onChanged(); return this; } /** * 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.
         * 
*/ public Builder clearConstrainedUsageEncryptedAdvertisingId() { bitField0_ = (bitField0_ & ~0x00000200); constrainedUsageEncryptedAdvertisingId_ = getDefaultInstance().getConstrainedUsageEncryptedAdvertisingId(); onChanged(); return this; } private com.google.protobuf.ByteString constrainedUsageAdvertisingId_ = com.google.protobuf.ByteString.EMPTY; /** * 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.
         * 
*/ public boolean hasConstrainedUsageAdvertisingId() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * 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.
         * 
*/ public com.google.protobuf.ByteString getConstrainedUsageAdvertisingId() { return 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.
         * 
*/ public Builder setConstrainedUsageAdvertisingId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; constrainedUsageAdvertisingId_ = value; onChanged(); return this; } /** * 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.
         * 
*/ public Builder clearConstrainedUsageAdvertisingId() { bitField0_ = (bitField0_ & ~0x00000400); constrainedUsageAdvertisingId_ = getDefaultInstance().getConstrainedUsageAdvertisingId(); onChanged(); return this; } private com.google.protobuf.ByteString constrainedUsageEncryptedHashedIdfa_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes constrained_usage_encrypted_hashed_idfa = 23; */ public boolean hasConstrainedUsageEncryptedHashedIdfa() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional bytes constrained_usage_encrypted_hashed_idfa = 23; */ public com.google.protobuf.ByteString getConstrainedUsageEncryptedHashedIdfa() { return constrainedUsageEncryptedHashedIdfa_; } /** * optional bytes constrained_usage_encrypted_hashed_idfa = 23; */ public Builder setConstrainedUsageEncryptedHashedIdfa(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; constrainedUsageEncryptedHashedIdfa_ = value; onChanged(); return this; } /** * optional bytes constrained_usage_encrypted_hashed_idfa = 23; */ public Builder clearConstrainedUsageEncryptedHashedIdfa() { bitField0_ = (bitField0_ & ~0x00000800); constrainedUsageEncryptedHashedIdfa_ = getDefaultInstance().getConstrainedUsageEncryptedHashedIdfa(); onChanged(); return this; } private com.google.protobuf.ByteString constrainedUsageHashedIdfa_ = com.google.protobuf.ByteString.EMPTY; /** * 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.
         * 
*/ public boolean hasConstrainedUsageHashedIdfa() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * 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.
         * 
*/ public com.google.protobuf.ByteString getConstrainedUsageHashedIdfa() { return 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.
         * 
*/ public Builder setConstrainedUsageHashedIdfa(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00001000; constrainedUsageHashedIdfa_ = value; onChanged(); return this; } /** * 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.
         * 
*/ public Builder clearConstrainedUsageHashedIdfa() { bitField0_ = (bitField0_ & ~0x00001000); constrainedUsageHashedIdfa_ = getDefaultInstance().getConstrainedUsageHashedIdfa(); onChanged(); return this; } private java.lang.Object appName_ = ""; /** * optional string app_name = 24; * *
         * App name for Android apps in Google Play store.
         * 
*/ public boolean hasAppName() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional string app_name = 24; * *
         * App name for Android apps in Google Play store.
         * 
*/ public java.lang.String getAppName() { java.lang.Object ref = appName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { appName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string app_name = 24; * *
         * App name for Android apps in Google Play store.
         * 
*/ public com.google.protobuf.ByteString getAppNameBytes() { java.lang.Object ref = appName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string app_name = 24; * *
         * App name for Android apps in Google Play store.
         * 
*/ public Builder setAppName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; appName_ = value; onChanged(); return this; } /** * optional string app_name = 24; * *
         * App name for Android apps in Google Play store.
         * 
*/ public Builder clearAppName() { bitField0_ = (bitField0_ & ~0x00002000); appName_ = getDefaultInstance().getAppName(); onChanged(); return this; } /** * optional string app_name = 24; * *
         * App name for Android apps in Google Play store.
         * 
*/ public Builder setAppNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; appName_ = value; onChanged(); return this; } private float appRating_ ; /** * optional float app_rating = 25; * *
         * Average user rating for the app. The range of user rating is between 1.0
         * and 5.0. Currently only available for apps in Google Play store.
         * 
*/ public boolean hasAppRating() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional float app_rating = 25; * *
         * Average user rating for the app. The range of user rating is between 1.0
         * and 5.0. Currently only available for apps in Google Play store.
         * 
*/ public float getAppRating() { return appRating_; } /** * optional float app_rating = 25; * *
         * Average user rating for the app. The range of user rating is between 1.0
         * and 5.0. Currently only available for apps in Google Play store.
         * 
*/ public Builder setAppRating(float value) { bitField0_ |= 0x00004000; appRating_ = value; onChanged(); return this; } /** * optional float app_rating = 25; * *
         * Average user rating for the app. The range of user rating is between 1.0
         * and 5.0. Currently only available for apps in Google Play store.
         * 
*/ public Builder clearAppRating() { bitField0_ = (bitField0_ & ~0x00004000); appRating_ = 0F; onChanged(); return this; } private java.lang.Object dEPRECATEDAppName_ = ""; /** * optional string DEPRECATED_app_name = 1; * *
         * These are deprecated. Please ignore.
         * 
*/ public boolean hasDEPRECATEDAppName() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional string DEPRECATED_app_name = 1; * *
         * These are deprecated. Please ignore.
         * 
*/ public java.lang.String getDEPRECATEDAppName() { java.lang.Object ref = dEPRECATEDAppName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { dEPRECATEDAppName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string DEPRECATED_app_name = 1; * *
         * These are deprecated. Please ignore.
         * 
*/ public com.google.protobuf.ByteString getDEPRECATEDAppNameBytes() { java.lang.Object ref = dEPRECATEDAppName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dEPRECATEDAppName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string DEPRECATED_app_name = 1; * *
         * These are deprecated. Please ignore.
         * 
*/ public Builder setDEPRECATEDAppName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; dEPRECATEDAppName_ = value; onChanged(); return this; } /** * optional string DEPRECATED_app_name = 1; * *
         * These are deprecated. Please ignore.
         * 
*/ public Builder clearDEPRECATEDAppName() { bitField0_ = (bitField0_ & ~0x00008000); dEPRECATEDAppName_ = getDefaultInstance().getDEPRECATEDAppName(); onChanged(); return this; } /** * optional string DEPRECATED_app_name = 1; * *
         * These are deprecated. Please ignore.
         * 
*/ public Builder setDEPRECATEDAppNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; dEPRECATEDAppName_ = value; onChanged(); return this; } private java.lang.Object dEPRECATEDCompanyName_ = ""; /** * optional string DEPRECATED_company_name = 2; */ public boolean hasDEPRECATEDCompanyName() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional string DEPRECATED_company_name = 2; */ public java.lang.String getDEPRECATEDCompanyName() { java.lang.Object ref = dEPRECATEDCompanyName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { dEPRECATEDCompanyName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string DEPRECATED_company_name = 2; */ public com.google.protobuf.ByteString getDEPRECATEDCompanyNameBytes() { java.lang.Object ref = dEPRECATEDCompanyName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dEPRECATEDCompanyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string DEPRECATED_company_name = 2; */ public Builder setDEPRECATEDCompanyName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00010000; dEPRECATEDCompanyName_ = value; onChanged(); return this; } /** * optional string DEPRECATED_company_name = 2; */ public Builder clearDEPRECATEDCompanyName() { bitField0_ = (bitField0_ & ~0x00010000); dEPRECATEDCompanyName_ = getDefaultInstance().getDEPRECATEDCompanyName(); onChanged(); return this; } /** * optional string DEPRECATED_company_name = 2; */ public Builder setDEPRECATEDCompanyNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00010000; dEPRECATEDCompanyName_ = value; onChanged(); return this; } private java.lang.Object dEPRECATEDPlatform_ = ""; /** * optional string DEPRECATED_platform = 3; */ public boolean hasDEPRECATEDPlatform() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * optional string DEPRECATED_platform = 3; */ public java.lang.String getDEPRECATEDPlatform() { java.lang.Object ref = dEPRECATEDPlatform_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { dEPRECATEDPlatform_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string DEPRECATED_platform = 3; */ public com.google.protobuf.ByteString getDEPRECATEDPlatformBytes() { java.lang.Object ref = dEPRECATEDPlatform_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dEPRECATEDPlatform_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string DEPRECATED_platform = 3; */ public Builder setDEPRECATEDPlatform( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00020000; dEPRECATEDPlatform_ = value; onChanged(); return this; } /** * optional string DEPRECATED_platform = 3; */ public Builder clearDEPRECATEDPlatform() { bitField0_ = (bitField0_ & ~0x00020000); dEPRECATEDPlatform_ = getDefaultInstance().getDEPRECATEDPlatform(); onChanged(); return this; } /** * optional string DEPRECATED_platform = 3; */ public Builder setDEPRECATEDPlatformBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00020000; dEPRECATEDPlatform_ = value; onChanged(); return this; } private java.lang.Object dEPRECATEDCarrierName_ = ""; /** * optional string DEPRECATED_carrier_name = 4; */ public boolean hasDEPRECATEDCarrierName() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * optional string DEPRECATED_carrier_name = 4; */ public java.lang.String getDEPRECATEDCarrierName() { java.lang.Object ref = dEPRECATEDCarrierName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { dEPRECATEDCarrierName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string DEPRECATED_carrier_name = 4; */ public com.google.protobuf.ByteString getDEPRECATEDCarrierNameBytes() { java.lang.Object ref = dEPRECATEDCarrierName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dEPRECATEDCarrierName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string DEPRECATED_carrier_name = 4; */ public Builder setDEPRECATEDCarrierName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00040000; dEPRECATEDCarrierName_ = value; onChanged(); return this; } /** * optional string DEPRECATED_carrier_name = 4; */ public Builder clearDEPRECATEDCarrierName() { bitField0_ = (bitField0_ & ~0x00040000); dEPRECATEDCarrierName_ = getDefaultInstance().getDEPRECATEDCarrierName(); onChanged(); return this; } /** * optional string DEPRECATED_carrier_name = 4; */ public Builder setDEPRECATEDCarrierNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00040000; dEPRECATEDCarrierName_ = value; onChanged(); return this; } private java.lang.Object dEPRECATEDCarrierCountry_ = ""; /** * optional string DEPRECATED_carrier_country = 5; */ public boolean hasDEPRECATEDCarrierCountry() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * optional string DEPRECATED_carrier_country = 5; */ public java.lang.String getDEPRECATEDCarrierCountry() { java.lang.Object ref = dEPRECATEDCarrierCountry_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { dEPRECATEDCarrierCountry_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string DEPRECATED_carrier_country = 5; */ public com.google.protobuf.ByteString getDEPRECATEDCarrierCountryBytes() { java.lang.Object ref = dEPRECATEDCarrierCountry_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dEPRECATEDCarrierCountry_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string DEPRECATED_carrier_country = 5; */ public Builder setDEPRECATEDCarrierCountry( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00080000; dEPRECATEDCarrierCountry_ = value; onChanged(); return this; } /** * optional string DEPRECATED_carrier_country = 5; */ public Builder clearDEPRECATEDCarrierCountry() { bitField0_ = (bitField0_ & ~0x00080000); dEPRECATEDCarrierCountry_ = getDefaultInstance().getDEPRECATEDCarrierCountry(); onChanged(); return this; } /** * optional string DEPRECATED_carrier_country = 5; */ public Builder setDEPRECATEDCarrierCountryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00080000; dEPRECATEDCarrierCountry_ = value; onChanged(); return this; } private com.google.protos.adx.NetworkBid.BidRequest.Mobile.MobileDeviceType dEPRECATEDMobileDeviceType_ = com.google.protos.adx.NetworkBid.BidRequest.Mobile.MobileDeviceType.UNKNOWN; /** * optional .com.google.protos.adx.BidRequest.Mobile.MobileDeviceType DEPRECATED_mobile_device_type = 8 [default = UNKNOWN]; */ public boolean hasDEPRECATEDMobileDeviceType() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * optional .com.google.protos.adx.BidRequest.Mobile.MobileDeviceType DEPRECATED_mobile_device_type = 8 [default = UNKNOWN]; */ public com.google.protos.adx.NetworkBid.BidRequest.Mobile.MobileDeviceType getDEPRECATEDMobileDeviceType() { return dEPRECATEDMobileDeviceType_; } /** * optional .com.google.protos.adx.BidRequest.Mobile.MobileDeviceType DEPRECATED_mobile_device_type = 8 [default = UNKNOWN]; */ public Builder setDEPRECATEDMobileDeviceType(com.google.protos.adx.NetworkBid.BidRequest.Mobile.MobileDeviceType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00100000; dEPRECATEDMobileDeviceType_ = value; onChanged(); return this; } /** * optional .com.google.protos.adx.BidRequest.Mobile.MobileDeviceType DEPRECATED_mobile_device_type = 8 [default = UNKNOWN]; */ public Builder clearDEPRECATEDMobileDeviceType() { bitField0_ = (bitField0_ & ~0x00100000); dEPRECATEDMobileDeviceType_ = com.google.protos.adx.NetworkBid.BidRequest.Mobile.MobileDeviceType.UNKNOWN; onChanged(); return this; } private int dEPRECATEDScreenOrientation_ ; /** * optional int32 DEPRECATED_screen_orientation = 9 [default = 0]; */ public boolean hasDEPRECATEDScreenOrientation() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * optional int32 DEPRECATED_screen_orientation = 9 [default = 0]; */ public int getDEPRECATEDScreenOrientation() { return dEPRECATEDScreenOrientation_; } /** * optional int32 DEPRECATED_screen_orientation = 9 [default = 0]; */ public Builder setDEPRECATEDScreenOrientation(int value) { bitField0_ |= 0x00200000; dEPRECATEDScreenOrientation_ = value; onChanged(); return this; } /** * optional int32 DEPRECATED_screen_orientation = 9 [default = 0]; */ public Builder clearDEPRECATEDScreenOrientation() { bitField0_ = (bitField0_ & ~0x00200000); dEPRECATEDScreenOrientation_ = 0; onChanged(); return this; } private java.lang.Object dEPRECATEDBrand_ = ""; /** * optional string DEPRECATED_brand = 12; */ public boolean hasDEPRECATEDBrand() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * optional string DEPRECATED_brand = 12; */ public java.lang.String getDEPRECATEDBrand() { java.lang.Object ref = dEPRECATEDBrand_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { dEPRECATEDBrand_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string DEPRECATED_brand = 12; */ public com.google.protobuf.ByteString getDEPRECATEDBrandBytes() { java.lang.Object ref = dEPRECATEDBrand_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dEPRECATEDBrand_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string DEPRECATED_brand = 12; */ public Builder setDEPRECATEDBrand( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00400000; dEPRECATEDBrand_ = value; onChanged(); return this; } /** * optional string DEPRECATED_brand = 12; */ public Builder clearDEPRECATEDBrand() { bitField0_ = (bitField0_ & ~0x00400000); dEPRECATEDBrand_ = getDefaultInstance().getDEPRECATEDBrand(); onChanged(); return this; } /** * optional string DEPRECATED_brand = 12; */ public Builder setDEPRECATEDBrandBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00400000; dEPRECATEDBrand_ = value; onChanged(); return this; } private java.lang.Object dEPRECATEDModel_ = ""; /** * optional string DEPRECATED_model = 13; */ public boolean hasDEPRECATEDModel() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * optional string DEPRECATED_model = 13; */ public java.lang.String getDEPRECATEDModel() { java.lang.Object ref = dEPRECATEDModel_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { dEPRECATEDModel_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string DEPRECATED_model = 13; */ public com.google.protobuf.ByteString getDEPRECATEDModelBytes() { java.lang.Object ref = dEPRECATEDModel_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dEPRECATEDModel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string DEPRECATED_model = 13; */ public Builder setDEPRECATEDModel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00800000; dEPRECATEDModel_ = value; onChanged(); return this; } /** * optional string DEPRECATED_model = 13; */ public Builder clearDEPRECATEDModel() { bitField0_ = (bitField0_ & ~0x00800000); dEPRECATEDModel_ = getDefaultInstance().getDEPRECATEDModel(); onChanged(); return this; } /** * optional string DEPRECATED_model = 13; */ public Builder setDEPRECATEDModelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00800000; dEPRECATEDModel_ = value; onChanged(); return this; } private com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion dEPRECATEDOsVersion_ = com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion, com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion.Builder, com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersionOrBuilder> dEPRECATEDOsVersionBuilder_; /** * optional .com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion DEPRECATED_os_version = 14; */ public boolean hasDEPRECATEDOsVersion() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * optional .com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion DEPRECATED_os_version = 14; */ public com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion getDEPRECATEDOsVersion() { if (dEPRECATEDOsVersionBuilder_ == null) { return dEPRECATEDOsVersion_; } else { return dEPRECATEDOsVersionBuilder_.getMessage(); } } /** * optional .com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion DEPRECATED_os_version = 14; */ public Builder setDEPRECATEDOsVersion(com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion value) { if (dEPRECATEDOsVersionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dEPRECATEDOsVersion_ = value; onChanged(); } else { dEPRECATEDOsVersionBuilder_.setMessage(value); } bitField0_ |= 0x01000000; return this; } /** * optional .com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion DEPRECATED_os_version = 14; */ public Builder setDEPRECATEDOsVersion( com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion.Builder builderForValue) { if (dEPRECATEDOsVersionBuilder_ == null) { dEPRECATEDOsVersion_ = builderForValue.build(); onChanged(); } else { dEPRECATEDOsVersionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x01000000; return this; } /** * optional .com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion DEPRECATED_os_version = 14; */ public Builder mergeDEPRECATEDOsVersion(com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion value) { if (dEPRECATEDOsVersionBuilder_ == null) { if (((bitField0_ & 0x01000000) == 0x01000000) && dEPRECATEDOsVersion_ != com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion.getDefaultInstance()) { dEPRECATEDOsVersion_ = com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion.newBuilder(dEPRECATEDOsVersion_).mergeFrom(value).buildPartial(); } else { dEPRECATEDOsVersion_ = value; } onChanged(); } else { dEPRECATEDOsVersionBuilder_.mergeFrom(value); } bitField0_ |= 0x01000000; return this; } /** * optional .com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion DEPRECATED_os_version = 14; */ public Builder clearDEPRECATEDOsVersion() { if (dEPRECATEDOsVersionBuilder_ == null) { dEPRECATEDOsVersion_ = com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion.getDefaultInstance(); onChanged(); } else { dEPRECATEDOsVersionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x01000000); return this; } /** * optional .com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion DEPRECATED_os_version = 14; */ public com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion.Builder getDEPRECATEDOsVersionBuilder() { bitField0_ |= 0x01000000; onChanged(); return getDEPRECATEDOsVersionFieldBuilder().getBuilder(); } /** * optional .com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion DEPRECATED_os_version = 14; */ public com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersionOrBuilder getDEPRECATEDOsVersionOrBuilder() { if (dEPRECATEDOsVersionBuilder_ != null) { return dEPRECATEDOsVersionBuilder_.getMessageOrBuilder(); } else { return dEPRECATEDOsVersion_; } } /** * optional .com.google.protos.adx.BidRequest.Mobile.DeviceOsVersion DEPRECATED_os_version = 14; */ private com.google.protobuf.SingleFieldBuilder< com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion, com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion.Builder, com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersionOrBuilder> getDEPRECATEDOsVersionFieldBuilder() { if (dEPRECATEDOsVersionBuilder_ == null) { dEPRECATEDOsVersionBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion, com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersion.Builder, com.google.protos.adx.NetworkBid.BidRequest.Mobile.DeviceOsVersionOrBuilder>( getDEPRECATEDOsVersion(), getParentForChildren(), isClean()); dEPRECATEDOsVersion_ = null; } return dEPRECATEDOsVersionBuilder_; } private int dEPRECATEDScreenWidth_ ; /** * optional int32 DEPRECATED_screen_width = 15; */ public boolean hasDEPRECATEDScreenWidth() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * optional int32 DEPRECATED_screen_width = 15; */ public int getDEPRECATEDScreenWidth() { return dEPRECATEDScreenWidth_; } /** * optional int32 DEPRECATED_screen_width = 15; */ public Builder setDEPRECATEDScreenWidth(int value) { bitField0_ |= 0x02000000; dEPRECATEDScreenWidth_ = value; onChanged(); return this; } /** * optional int32 DEPRECATED_screen_width = 15; */ public Builder clearDEPRECATEDScreenWidth() { bitField0_ = (bitField0_ & ~0x02000000); dEPRECATEDScreenWidth_ = 0; onChanged(); return this; } private int dEPRECATEDScreenHeight_ ; /** * optional int32 DEPRECATED_screen_height = 16; */ public boolean hasDEPRECATEDScreenHeight() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** * optional int32 DEPRECATED_screen_height = 16; */ public int getDEPRECATEDScreenHeight() { return dEPRECATEDScreenHeight_; } /** * optional int32 DEPRECATED_screen_height = 16; */ public Builder setDEPRECATEDScreenHeight(int value) { bitField0_ |= 0x04000000; dEPRECATEDScreenHeight_ = value; onChanged(); return this; } /** * optional int32 DEPRECATED_screen_height = 16; */ public Builder clearDEPRECATEDScreenHeight() { bitField0_ = (bitField0_ & ~0x04000000); dEPRECATEDScreenHeight_ = 0; onChanged(); return this; } private long dEPRECATEDCarrierId_ ; /** * optional int64 DEPRECATED_carrier_id = 18; */ public boolean hasDEPRECATEDCarrierId() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** * optional int64 DEPRECATED_carrier_id = 18; */ public long getDEPRECATEDCarrierId() { return dEPRECATEDCarrierId_; } /** * optional int64 DEPRECATED_carrier_id = 18; */ public Builder setDEPRECATEDCarrierId(long value) { bitField0_ |= 0x08000000; dEPRECATEDCarrierId_ = value; onChanged(); return this; } /** * optional int64 DEPRECATED_carrier_id = 18; */ public Builder clearDEPRECATEDCarrierId() { bitField0_ = (bitField0_ & ~0x08000000); dEPRECATEDCarrierId_ = 0L; onChanged(); return this; } private int dEPRECATEDDevicePixelRatioMillis_ = 1000; /** * optional int32 DEPRECATED_device_pixel_ratio_millis = 19 [default = 1000]; */ public boolean hasDEPRECATEDDevicePixelRatioMillis() { return ((bitField0_ & 0x10000000) == 0x10000000); } /** * optional int32 DEPRECATED_device_pixel_ratio_millis = 19 [default = 1000]; */ public int getDEPRECATEDDevicePixelRatioMillis() { return dEPRECATEDDevicePixelRatioMillis_; } /** * optional int32 DEPRECATED_device_pixel_ratio_millis = 19 [default = 1000]; */ public Builder setDEPRECATEDDevicePixelRatioMillis(int value) { bitField0_ |= 0x10000000; dEPRECATEDDevicePixelRatioMillis_ = value; onChanged(); return this; } /** * optional int32 DEPRECATED_device_pixel_ratio_millis = 19 [default = 1000]; */ public Builder clearDEPRECATEDDevicePixelRatioMillis() { bitField0_ = (bitField0_ & ~0x10000000); dEPRECATEDDevicePixelRatioMillis_ = 1000; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.google.protos.adx.BidRequest.Mobile) } static { defaultInstance = new Mobile(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.google.protos.adx.BidRequest.Mobile) } public interface VideoOrBuilder extends // @@protoc_insertion_point(interface_extends:com.google.protos.adx.BidRequest.Video) com.google.protobuf.MessageOrBuilder { /** * optional .com.google.protos.adx.BidRequest.Video.Placement placement = 16 [default = UNKNOWN_PLACEMENT]; */ boolean hasPlacement(); /** * optional .com.google.protos.adx.BidRequest.Video.Placement placement = 16 [default = UNKNOWN_PLACEMENT]; */ com.google.protos.adx.NetworkBid.BidRequest.Video.Placement getPlacement(); /** * optional string description_url = 10; * *
       * The URL of the page that the publisher gives Google to describe the video
       * content, with parameters removed.
       * 
*/ boolean hasDescriptionUrl(); /** * optional string description_url = 10; * *
       * The URL of the page that the publisher gives Google to describe the video
       * content, with parameters removed.
       * 
*/ java.lang.String getDescriptionUrl(); /** * optional string description_url = 10; * *
       * The URL of the page that the publisher gives Google to describe the video
       * content, with parameters removed.
       * 
*/ com.google.protobuf.ByteString getDescriptionUrlBytes(); /** * optional bool is_embedded_offsite = 11 [default = false]; * *
       * 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.
       * 
*/ boolean hasIsEmbeddedOffsite(); /** * optional bool is_embedded_offsite = 11 [default = false]; * *
       * 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.
       * 
*/ boolean getIsEmbeddedOffsite(); /** * optional .com.google.protos.adx.BidRequest.Video.VideoPlaybackMethod playback_method = 14 [default = METHOD_UNKNOWN]; */ boolean hasPlaybackMethod(); /** * optional .com.google.protos.adx.BidRequest.Video.VideoPlaybackMethod playback_method = 14 [default = METHOD_UNKNOWN]; */ com.google.protos.adx.NetworkBid.BidRequest.Video.VideoPlaybackMethod getPlaybackMethod(); /** * optional bool is_clickable = 15; * *
       * 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.
       * 
*/ boolean hasIsClickable(); /** * optional bool is_clickable = 15; * *
       * 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.
       * 
*/ boolean getIsClickable(); /** * optional int32 videoad_start_delay = 1; * *
       * 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.
       * 
*/ boolean hasVideoadStartDelay(); /** * optional int32 videoad_start_delay = 1; * *
       * 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.
       * 
*/ int getVideoadStartDelay(); /** * optional int32 max_ad_duration = 2; * *
       * The maximum duration in milliseconds of the ad that you should return.
       * If this is not set or has value <= 0, any duration is allowed.
       * 
*/ boolean hasMaxAdDuration(); /** * optional int32 max_ad_duration = 2; * *
       * The maximum duration in milliseconds of the ad that you should return.
       * If this is not set or has value <= 0, any duration is allowed.
       * 
*/ int getMaxAdDuration(); /** * optional int32 min_ad_duration = 8; * *
       * The minimum duration in milliseconds of the ad that you should return.
       * If this is not set or has value <= 0, there is no minimum duration.
       * 
*/ boolean hasMinAdDuration(); /** * optional int32 min_ad_duration = 8; * *
       * The minimum duration in milliseconds of the ad that you should return.
       * If this is not set or has value <= 0, there is no minimum duration.
       * 
*/ int getMinAdDuration(); /** * optional int32 max_ads_in_pod = 12; * *
       * 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.
       * 
*/ boolean hasMaxAdsInPod(); /** * optional int32 max_ads_in_pod = 12; * *
       * 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.
       * 
*/ int getMaxAdsInPod(); /** * optional .com.google.protos.adx.BidRequest.Video.SkippableBidRequestType video_ad_skippable = 4 [default = ALLOW_SKIPPABLE]; */ boolean hasVideoAdSkippable(); /** * optional .com.google.protos.adx.BidRequest.Video.SkippableBidRequestType video_ad_skippable = 4 [default = ALLOW_SKIPPABLE]; */ com.google.protos.adx.NetworkBid.BidRequest.Video.SkippableBidRequestType getVideoAdSkippable(); /** * optional int32 skippable_max_ad_duration = 5; * *
       * 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.
       * 
*/ boolean hasSkippableMaxAdDuration(); /** * optional int32 skippable_max_ad_duration = 5; * *
       * 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.
       * 
*/ int getSkippableMaxAdDuration(); /** * repeated .com.google.protos.adx.BidRequest.Video.VideoFormat allowed_video_formats = 6; */ java.util.List getAllowedVideoFormatsList(); /** * repeated .com.google.protos.adx.BidRequest.Video.VideoFormat allowed_video_formats = 6; */ int getAllowedVideoFormatsCount(); /** * repeated .com.google.protos.adx.BidRequest.Video.VideoFormat allowed_video_formats = 6; */ com.google.protos.adx.NetworkBid.BidRequest.Video.VideoFormat getAllowedVideoFormats(int index); /** * repeated .com.google.protos.adx.BidRequest.Video.CompanionSlot companion_slot = 7; */ java.util.List getCompanionSlotList(); /** * repeated .com.google.protos.adx.BidRequest.Video.CompanionSlot companion_slot = 7; */ com.google.protos.adx.NetworkBid.BidRequest.Video.CompanionSlot getCompanionSlot(int index); /** * repeated .com.google.protos.adx.BidRequest.Video.CompanionSlot companion_slot = 7; */ int getCompanionSlotCount(); /** * repeated .com.google.protos.adx.BidRequest.Video.CompanionSlot companion_slot = 7; */ java.util.List getCompanionSlotOrBuilderList(); /** * repeated .com.google.protos.adx.BidRequest.Video.CompanionSlot companion_slot = 7; */ com.google.protos.adx.NetworkBid.BidRequest.Video.CompanionSlotOrBuilder getCompanionSlotOrBuilder( int index); /** * optional .com.google.protos.adx.BidRequest.Video.EndCapSupport end_cap_support = 13 [default = END_CAP_NOT_ENABLED]; */ boolean hasEndCapSupport(); /** * optional .com.google.protos.adx.BidRequest.Video.EndCapSupport end_cap_support = 13 [default = END_CAP_NOT_ENABLED]; */ com.google.protos.adx.NetworkBid.BidRequest.Video.EndCapSupport getEndCapSupport(); /** * optional .com.google.protos.adx.BidRequest.Video.ContentAttributes content_attributes = 9; */ boolean hasContentAttributes(); /** * optional .com.google.protos.adx.BidRequest.Video.ContentAttributes content_attributes = 9; */ com.google.protos.adx.NetworkBid.BidRequest.Video.ContentAttributes getContentAttributes(); /** * optional .com.google.protos.adx.BidRequest.Video.ContentAttributes content_attributes = 9; */ com.google.protos.adx.NetworkBid.BidRequest.Video.ContentAttributesOrBuilder getContentAttributesOrBuilder(); /** * optional .com.google.protos.adx.BidRequest.Video.InventoryType DEPRECATED_inventory_type = 3 [default = WEB_VIDEO]; */ boolean hasDEPRECATEDInventoryType(); /** * optional .com.google.protos.adx.BidRequest.Video.InventoryType DEPRECATED_inventory_type = 3 [default = WEB_VIDEO]; */ com.google.protos.adx.NetworkBid.BidRequest.Video.InventoryType getDEPRECATEDInventoryType(); } /** * Protobuf type {@code com.google.protos.adx.BidRequest.Video} * *
     * Information about the video if this is an in-video ad request.
     * 
*/ public static final class Video extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.google.protos.adx.BidRequest.Video) VideoOrBuilder { // Use Video.newBuilder() to construct. private Video(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Video(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Video defaultInstance; public static Video getDefaultInstance() { return defaultInstance; } public Video getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Video( 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_ |= 0x00000020; videoadStartDelay_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000040; maxAdDuration_ = input.readInt32(); break; } case 24: { int rawValue = input.readEnum(); com.google.protos.adx.NetworkBid.BidRequest.Video.InventoryType value = com.google.protos.adx.NetworkBid.BidRequest.Video.InventoryType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00002000; dEPRECATEDInventoryType_ = value; } break; } case 32: { int rawValue = input.readEnum(); com.google.protos.adx.NetworkBid.BidRequest.Video.SkippableBidRequestType value = com.google.protos.adx.NetworkBid.BidRequest.Video.SkippableBidRequestType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(4, rawValue); } else { bitField0_ |= 0x00000200; videoAdSkippable_ = value; } break; } case 40: { bitField0_ |= 0x00000400; skippableMaxAdDuration_ = input.readInt32(); break; } case 48: { int rawValue = input.readEnum(); com.google.protos.adx.NetworkBid.BidRequest.Video.VideoFormat value = com.google.protos.adx.NetworkBid.BidRequest.Video.VideoFormat.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(6, rawValue); } else { if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { allowedVideoFormats_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } allowedVideoFormats_.add(value); } break; } case 50: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); com.google.protos.adx.NetworkBid.BidRequest.Video.VideoFormat value = com.google.protos.adx.NetworkBid.BidRequest.Video.VideoFormat.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(6, rawValue); } else { if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { allowedVideoFormats_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } allowedVideoFormats_.add(value); } } input.popLimit(oldLimit); break; } case 58: { if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { companionSlot_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00001000; } companionSlot_.add(input.readMessage(com.google.protos.adx.NetworkBid.BidRequest.Video.CompanionSlot.PARSER, extensionRegistry)); break; } case 64: { bitField0_ |= 0x00000080; minAdDuration_ = input.readInt32(); break; } case 74: { com.google.protos.adx.NetworkBid.BidRequest.Video.ContentAttributes.Builder subBuilder = null; if (((bitField0_ & 0x00001000) == 0x00001000)) { subBuilder = contentAttributes_.toBuilder(); } contentAttributes_ = input.readMessage(com.google.protos.adx.NetworkBid.BidRequest.Video.ContentAttributes.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(contentAttributes_); contentAttributes_ = subBuilder.buildPartial(); } bitField0_ |= 0x00001000; break; } case 82: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; descriptionUrl_ = bs; break; } case 88: { bitField0_ |= 0x00000004; isEmbeddedOffsite_ = input.readBool(); break; } case 96: { bitField0_ |= 0x00000100; maxAdsInPod_ = input.readInt32(); break; } case 104: { int rawValue = input.readEnum(); com.google.protos.adx.NetworkBid.BidRequest.Video.EndCapSupport value = com.google.protos.adx.NetworkBid.BidRequest.Video.EndCapSupport.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(13, rawValue); } else { bitField0_ |= 0x00000800; endCapSupport_ = value; } break; } case 112: { int rawValue = input.readEnum(); com.google.protos.adx.NetworkBid.BidRequest.Video.VideoPlaybackMethod value = com.google.protos.adx.NetworkBid.BidRequest.Video.VideoPlaybackMethod.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(14, rawValue); } else { bitField0_ |= 0x00000008; playbackMethod_ = value; } break; } case 120: { bitField0_ |= 0x00000010; isClickable_ = input.readBool(); break; } case 128: { int rawValue = input.readEnum(); com.google.protos.adx.NetworkBid.BidRequest.Video.Placement value = com.google.protos.adx.NetworkBid.BidRequest.Video.Placement.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(16, rawValue); } else { bitField0_ |= 0x00000001; placement_ = value; } 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_ & 0x00000800) == 0x00000800)) { allowedVideoFormats_ = java.util.Collections.unmodifiableList(allowedVideoFormats_); } if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { companionSlot_ = java.util.Collections.unmodifiableList(companionSlot_); } 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_Video_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protos.adx.NetworkBid.internal_static_com_google_protos_adx_BidRequest_Video_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protos.adx.NetworkBid.BidRequest.Video.class, com.google.protos.adx.NetworkBid.BidRequest.Video.Builder.class); } public static com.google.protobuf.Parser




© 2015 - 2024 Weber Informatics LLC | Privacy Policy