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

com.google.ads.googleads.v17.common.DynamicLocalAsset Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v17/common/asset_types.proto

// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;

/**
 * 
 * A dynamic local asset.
 * 
* * Protobuf type {@code google.ads.googleads.v17.common.DynamicLocalAsset} */ public final class DynamicLocalAsset extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.DynamicLocalAsset) DynamicLocalAssetOrBuilder { private static final long serialVersionUID = 0L; // Use DynamicLocalAsset.newBuilder() to construct. private DynamicLocalAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DynamicLocalAsset() { dealId_ = ""; dealName_ = ""; subtitle_ = ""; description_ = ""; price_ = ""; salePrice_ = ""; imageUrl_ = ""; address_ = ""; category_ = ""; contextualKeywords_ = com.google.protobuf.LazyStringArrayList.emptyList(); formattedPrice_ = ""; formattedSalePrice_ = ""; androidAppLink_ = ""; similarDealIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); iosAppLink_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DynamicLocalAsset(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_DynamicLocalAsset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_DynamicLocalAsset_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.DynamicLocalAsset.class, com.google.ads.googleads.v17.common.DynamicLocalAsset.Builder.class); } public static final int DEAL_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object dealId_ = ""; /** *
   * Required. Deal ID which can be any sequence of letters and digits, and must
   * be unique and match the values of remarketing tag. Required.
   * 
* * string deal_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The dealId. */ @java.lang.Override public java.lang.String getDealId() { java.lang.Object ref = dealId_; 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(); dealId_ = s; return s; } } /** *
   * Required. Deal ID which can be any sequence of letters and digits, and must
   * be unique and match the values of remarketing tag. Required.
   * 
* * string deal_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for dealId. */ @java.lang.Override public com.google.protobuf.ByteString getDealIdBytes() { java.lang.Object ref = dealId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dealId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEAL_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object dealName_ = ""; /** *
   * Required. Deal name, for example, 50% off at Mountain View Grocers.
   * Required.
   * 
* * string deal_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The dealName. */ @java.lang.Override public java.lang.String getDealName() { java.lang.Object ref = dealName_; 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(); dealName_ = s; return s; } } /** *
   * Required. Deal name, for example, 50% off at Mountain View Grocers.
   * Required.
   * 
* * string deal_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for dealName. */ @java.lang.Override public com.google.protobuf.ByteString getDealNameBytes() { java.lang.Object ref = dealName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dealName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBTITLE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object subtitle_ = ""; /** *
   * Subtitle, for example, Groceries.
   * 
* * string subtitle = 3; * @return The subtitle. */ @java.lang.Override public java.lang.String getSubtitle() { java.lang.Object ref = subtitle_; 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(); subtitle_ = s; return s; } } /** *
   * Subtitle, for example, Groceries.
   * 
* * string subtitle = 3; * @return The bytes for subtitle. */ @java.lang.Override public com.google.protobuf.ByteString getSubtitleBytes() { java.lang.Object ref = subtitle_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subtitle_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** *
   * Description, for example, Save on your weekly bill.
   * 
* * string description = 4; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** *
   * Description, for example, Save on your weekly bill.
   * 
* * string description = 4; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRICE_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object price_ = ""; /** *
   * Price which can be a number followed by the alphabetic currency code,
   * ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD.
   * 
* * string price = 5; * @return The price. */ @java.lang.Override public java.lang.String getPrice() { java.lang.Object ref = price_; 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(); price_ = s; return s; } } /** *
   * Price which can be a number followed by the alphabetic currency code,
   * ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD.
   * 
* * string price = 5; * @return The bytes for price. */ @java.lang.Override public com.google.protobuf.ByteString getPriceBytes() { java.lang.Object ref = price_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); price_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SALE_PRICE_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object salePrice_ = ""; /** *
   * Sale price which can be number followed by the alphabetic currency code,
   * ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00 USD.
   * Must be less than the 'price' field.
   * 
* * string sale_price = 6; * @return The salePrice. */ @java.lang.Override public java.lang.String getSalePrice() { java.lang.Object ref = salePrice_; 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(); salePrice_ = s; return s; } } /** *
   * Sale price which can be number followed by the alphabetic currency code,
   * ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00 USD.
   * Must be less than the 'price' field.
   * 
* * string sale_price = 6; * @return The bytes for salePrice. */ @java.lang.Override public com.google.protobuf.ByteString getSalePriceBytes() { java.lang.Object ref = salePrice_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); salePrice_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IMAGE_URL_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object imageUrl_ = ""; /** *
   * Image URL, for example, http://www.example.com/image.png. The image will
   * not be uploaded as image asset.
   * 
* * string image_url = 7; * @return The imageUrl. */ @java.lang.Override public java.lang.String getImageUrl() { java.lang.Object ref = imageUrl_; 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(); imageUrl_ = s; return s; } } /** *
   * Image URL, for example, http://www.example.com/image.png. The image will
   * not be uploaded as image asset.
   * 
* * string image_url = 7; * @return The bytes for imageUrl. */ @java.lang.Override public com.google.protobuf.ByteString getImageUrlBytes() { java.lang.Object ref = imageUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); imageUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ADDRESS_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object address_ = ""; /** *
   * Address which can be specified in one of the following formats.
   * (1) City, state, code, country, for example, Mountain View, CA, USA.
   * (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043.
   * (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403.
   * 
* * string address = 8; * @return The address. */ @java.lang.Override public java.lang.String getAddress() { java.lang.Object ref = address_; 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(); address_ = s; return s; } } /** *
   * Address which can be specified in one of the following formats.
   * (1) City, state, code, country, for example, Mountain View, CA, USA.
   * (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043.
   * (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403.
   * 
* * string address = 8; * @return The bytes for address. */ @java.lang.Override public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CATEGORY_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object category_ = ""; /** *
   * Category, for example, Food.
   * 
* * string category = 9; * @return The category. */ @java.lang.Override public java.lang.String getCategory() { java.lang.Object ref = category_; 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(); category_ = s; return s; } } /** *
   * Category, for example, Food.
   * 
* * string category = 9; * @return The bytes for category. */ @java.lang.Override public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); category_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTEXTUAL_KEYWORDS_FIELD_NUMBER = 10; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList contextualKeywords_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * Contextual keywords, for example, Save groceries coupons.
   * 
* * repeated string contextual_keywords = 10; * @return A list containing the contextualKeywords. */ public com.google.protobuf.ProtocolStringList getContextualKeywordsList() { return contextualKeywords_; } /** *
   * Contextual keywords, for example, Save groceries coupons.
   * 
* * repeated string contextual_keywords = 10; * @return The count of contextualKeywords. */ public int getContextualKeywordsCount() { return contextualKeywords_.size(); } /** *
   * Contextual keywords, for example, Save groceries coupons.
   * 
* * repeated string contextual_keywords = 10; * @param index The index of the element to return. * @return The contextualKeywords at the given index. */ public java.lang.String getContextualKeywords(int index) { return contextualKeywords_.get(index); } /** *
   * Contextual keywords, for example, Save groceries coupons.
   * 
* * repeated string contextual_keywords = 10; * @param index The index of the value to return. * @return The bytes of the contextualKeywords at the given index. */ public com.google.protobuf.ByteString getContextualKeywordsBytes(int index) { return contextualKeywords_.getByteString(index); } public static final int FORMATTED_PRICE_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object formattedPrice_ = ""; /** *
   * Formatted price which can be any characters. If set, this attribute will be
   * used instead of 'price', for example, Starting at $100.00.
   * 
* * string formatted_price = 11; * @return The formattedPrice. */ @java.lang.Override public java.lang.String getFormattedPrice() { java.lang.Object ref = formattedPrice_; 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(); formattedPrice_ = s; return s; } } /** *
   * Formatted price which can be any characters. If set, this attribute will be
   * used instead of 'price', for example, Starting at $100.00.
   * 
* * string formatted_price = 11; * @return The bytes for formattedPrice. */ @java.lang.Override public com.google.protobuf.ByteString getFormattedPriceBytes() { java.lang.Object ref = formattedPrice_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); formattedPrice_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FORMATTED_SALE_PRICE_FIELD_NUMBER = 12; @SuppressWarnings("serial") private volatile java.lang.Object formattedSalePrice_ = ""; /** *
   * Formatted sale price which can be any characters. If set, this attribute
   * will be used instead of 'sale price', for example, On sale for $80.00.
   * 
* * string formatted_sale_price = 12; * @return The formattedSalePrice. */ @java.lang.Override public java.lang.String getFormattedSalePrice() { java.lang.Object ref = formattedSalePrice_; 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(); formattedSalePrice_ = s; return s; } } /** *
   * Formatted sale price which can be any characters. If set, this attribute
   * will be used instead of 'sale price', for example, On sale for $80.00.
   * 
* * string formatted_sale_price = 12; * @return The bytes for formattedSalePrice. */ @java.lang.Override public com.google.protobuf.ByteString getFormattedSalePriceBytes() { java.lang.Object ref = formattedSalePrice_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); formattedSalePrice_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ANDROID_APP_LINK_FIELD_NUMBER = 13; @SuppressWarnings("serial") private volatile java.lang.Object androidAppLink_ = ""; /** *
   * Android deep link, for example,
   * android-app://com.example.android/http/example.com/gizmos?1234.
   * 
* * string android_app_link = 13; * @return The androidAppLink. */ @java.lang.Override public java.lang.String getAndroidAppLink() { java.lang.Object ref = androidAppLink_; 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(); androidAppLink_ = s; return s; } } /** *
   * Android deep link, for example,
   * android-app://com.example.android/http/example.com/gizmos?1234.
   * 
* * string android_app_link = 13; * @return The bytes for androidAppLink. */ @java.lang.Override public com.google.protobuf.ByteString getAndroidAppLinkBytes() { java.lang.Object ref = androidAppLink_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); androidAppLink_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SIMILAR_DEAL_IDS_FIELD_NUMBER = 14; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList similarDealIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * Similar deal IDs, for example, 1275.
   * 
* * repeated string similar_deal_ids = 14; * @return A list containing the similarDealIds. */ public com.google.protobuf.ProtocolStringList getSimilarDealIdsList() { return similarDealIds_; } /** *
   * Similar deal IDs, for example, 1275.
   * 
* * repeated string similar_deal_ids = 14; * @return The count of similarDealIds. */ public int getSimilarDealIdsCount() { return similarDealIds_.size(); } /** *
   * Similar deal IDs, for example, 1275.
   * 
* * repeated string similar_deal_ids = 14; * @param index The index of the element to return. * @return The similarDealIds at the given index. */ public java.lang.String getSimilarDealIds(int index) { return similarDealIds_.get(index); } /** *
   * Similar deal IDs, for example, 1275.
   * 
* * repeated string similar_deal_ids = 14; * @param index The index of the value to return. * @return The bytes of the similarDealIds at the given index. */ public com.google.protobuf.ByteString getSimilarDealIdsBytes(int index) { return similarDealIds_.getByteString(index); } public static final int IOS_APP_LINK_FIELD_NUMBER = 15; @SuppressWarnings("serial") private volatile java.lang.Object iosAppLink_ = ""; /** *
   * iOS deep link, for example, exampleApp://content/page.
   * 
* * string ios_app_link = 15; * @return The iosAppLink. */ @java.lang.Override public java.lang.String getIosAppLink() { java.lang.Object ref = iosAppLink_; 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(); iosAppLink_ = s; return s; } } /** *
   * iOS deep link, for example, exampleApp://content/page.
   * 
* * string ios_app_link = 15; * @return The bytes for iosAppLink. */ @java.lang.Override public com.google.protobuf.ByteString getIosAppLinkBytes() { java.lang.Object ref = iosAppLink_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); iosAppLink_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IOS_APP_STORE_ID_FIELD_NUMBER = 16; private long iosAppStoreId_ = 0L; /** *
   * iOS app store ID. This is used to check if the user has the app installed
   * on their device before deep linking. If this field is set, then the
   * ios_app_link field must also be present.
   * 
* * int64 ios_app_store_id = 16; * @return The iosAppStoreId. */ @java.lang.Override public long getIosAppStoreId() { return iosAppStoreId_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dealId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dealId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dealName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dealName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subtitle_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subtitle_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(price_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, price_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(salePrice_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, salePrice_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, imageUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, address_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, category_); } for (int i = 0; i < contextualKeywords_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, contextualKeywords_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedPrice_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, formattedPrice_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedSalePrice_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, formattedSalePrice_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(androidAppLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, androidAppLink_); } for (int i = 0; i < similarDealIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, similarDealIds_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iosAppLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, iosAppLink_); } if (iosAppStoreId_ != 0L) { output.writeInt64(16, iosAppStoreId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dealId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dealId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dealName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dealName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subtitle_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subtitle_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(price_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, price_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(salePrice_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, salePrice_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, imageUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, address_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, category_); } { int dataSize = 0; for (int i = 0; i < contextualKeywords_.size(); i++) { dataSize += computeStringSizeNoTag(contextualKeywords_.getRaw(i)); } size += dataSize; size += 1 * getContextualKeywordsList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedPrice_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, formattedPrice_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedSalePrice_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, formattedSalePrice_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(androidAppLink_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, androidAppLink_); } { int dataSize = 0; for (int i = 0; i < similarDealIds_.size(); i++) { dataSize += computeStringSizeNoTag(similarDealIds_.getRaw(i)); } size += dataSize; size += 1 * getSimilarDealIdsList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iosAppLink_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, iosAppLink_); } if (iosAppStoreId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(16, iosAppStoreId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v17.common.DynamicLocalAsset)) { return super.equals(obj); } com.google.ads.googleads.v17.common.DynamicLocalAsset other = (com.google.ads.googleads.v17.common.DynamicLocalAsset) obj; if (!getDealId() .equals(other.getDealId())) return false; if (!getDealName() .equals(other.getDealName())) return false; if (!getSubtitle() .equals(other.getSubtitle())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getPrice() .equals(other.getPrice())) return false; if (!getSalePrice() .equals(other.getSalePrice())) return false; if (!getImageUrl() .equals(other.getImageUrl())) return false; if (!getAddress() .equals(other.getAddress())) return false; if (!getCategory() .equals(other.getCategory())) return false; if (!getContextualKeywordsList() .equals(other.getContextualKeywordsList())) return false; if (!getFormattedPrice() .equals(other.getFormattedPrice())) return false; if (!getFormattedSalePrice() .equals(other.getFormattedSalePrice())) return false; if (!getAndroidAppLink() .equals(other.getAndroidAppLink())) return false; if (!getSimilarDealIdsList() .equals(other.getSimilarDealIdsList())) return false; if (!getIosAppLink() .equals(other.getIosAppLink())) return false; if (getIosAppStoreId() != other.getIosAppStoreId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DEAL_ID_FIELD_NUMBER; hash = (53 * hash) + getDealId().hashCode(); hash = (37 * hash) + DEAL_NAME_FIELD_NUMBER; hash = (53 * hash) + getDealName().hashCode(); hash = (37 * hash) + SUBTITLE_FIELD_NUMBER; hash = (53 * hash) + getSubtitle().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + PRICE_FIELD_NUMBER; hash = (53 * hash) + getPrice().hashCode(); hash = (37 * hash) + SALE_PRICE_FIELD_NUMBER; hash = (53 * hash) + getSalePrice().hashCode(); hash = (37 * hash) + IMAGE_URL_FIELD_NUMBER; hash = (53 * hash) + getImageUrl().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + CATEGORY_FIELD_NUMBER; hash = (53 * hash) + getCategory().hashCode(); if (getContextualKeywordsCount() > 0) { hash = (37 * hash) + CONTEXTUAL_KEYWORDS_FIELD_NUMBER; hash = (53 * hash) + getContextualKeywordsList().hashCode(); } hash = (37 * hash) + FORMATTED_PRICE_FIELD_NUMBER; hash = (53 * hash) + getFormattedPrice().hashCode(); hash = (37 * hash) + FORMATTED_SALE_PRICE_FIELD_NUMBER; hash = (53 * hash) + getFormattedSalePrice().hashCode(); hash = (37 * hash) + ANDROID_APP_LINK_FIELD_NUMBER; hash = (53 * hash) + getAndroidAppLink().hashCode(); if (getSimilarDealIdsCount() > 0) { hash = (37 * hash) + SIMILAR_DEAL_IDS_FIELD_NUMBER; hash = (53 * hash) + getSimilarDealIdsList().hashCode(); } hash = (37 * hash) + IOS_APP_LINK_FIELD_NUMBER; hash = (53 * hash) + getIosAppLink().hashCode(); hash = (37 * hash) + IOS_APP_STORE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIosAppStoreId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.common.DynamicLocalAsset parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.DynamicLocalAsset parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.common.DynamicLocalAsset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.DynamicLocalAsset 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.ads.googleads.v17.common.DynamicLocalAsset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.DynamicLocalAsset parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.common.DynamicLocalAsset parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.common.DynamicLocalAsset parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v17.common.DynamicLocalAsset parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.common.DynamicLocalAsset parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v17.common.DynamicLocalAsset parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.common.DynamicLocalAsset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v17.common.DynamicLocalAsset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * A dynamic local asset.
   * 
* * Protobuf type {@code google.ads.googleads.v17.common.DynamicLocalAsset} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.DynamicLocalAsset) com.google.ads.googleads.v17.common.DynamicLocalAssetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_DynamicLocalAsset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_DynamicLocalAsset_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.DynamicLocalAsset.class, com.google.ads.googleads.v17.common.DynamicLocalAsset.Builder.class); } // Construct using com.google.ads.googleads.v17.common.DynamicLocalAsset.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; dealId_ = ""; dealName_ = ""; subtitle_ = ""; description_ = ""; price_ = ""; salePrice_ = ""; imageUrl_ = ""; address_ = ""; category_ = ""; contextualKeywords_ = com.google.protobuf.LazyStringArrayList.emptyList(); formattedPrice_ = ""; formattedSalePrice_ = ""; androidAppLink_ = ""; similarDealIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); iosAppLink_ = ""; iosAppStoreId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_DynamicLocalAsset_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.common.DynamicLocalAsset getDefaultInstanceForType() { return com.google.ads.googleads.v17.common.DynamicLocalAsset.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.common.DynamicLocalAsset build() { com.google.ads.googleads.v17.common.DynamicLocalAsset result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.common.DynamicLocalAsset buildPartial() { com.google.ads.googleads.v17.common.DynamicLocalAsset result = new com.google.ads.googleads.v17.common.DynamicLocalAsset(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.common.DynamicLocalAsset result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.dealId_ = dealId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.dealName_ = dealName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.subtitle_ = subtitle_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.price_ = price_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.salePrice_ = salePrice_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.imageUrl_ = imageUrl_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.address_ = address_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.category_ = category_; } if (((from_bitField0_ & 0x00000200) != 0)) { contextualKeywords_.makeImmutable(); result.contextualKeywords_ = contextualKeywords_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.formattedPrice_ = formattedPrice_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.formattedSalePrice_ = formattedSalePrice_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.androidAppLink_ = androidAppLink_; } if (((from_bitField0_ & 0x00002000) != 0)) { similarDealIds_.makeImmutable(); result.similarDealIds_ = similarDealIds_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.iosAppLink_ = iosAppLink_; } if (((from_bitField0_ & 0x00008000) != 0)) { result.iosAppStoreId_ = iosAppStoreId_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v17.common.DynamicLocalAsset) { return mergeFrom((com.google.ads.googleads.v17.common.DynamicLocalAsset)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.common.DynamicLocalAsset other) { if (other == com.google.ads.googleads.v17.common.DynamicLocalAsset.getDefaultInstance()) return this; if (!other.getDealId().isEmpty()) { dealId_ = other.dealId_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDealName().isEmpty()) { dealName_ = other.dealName_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getSubtitle().isEmpty()) { subtitle_ = other.subtitle_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getPrice().isEmpty()) { price_ = other.price_; bitField0_ |= 0x00000010; onChanged(); } if (!other.getSalePrice().isEmpty()) { salePrice_ = other.salePrice_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getImageUrl().isEmpty()) { imageUrl_ = other.imageUrl_; bitField0_ |= 0x00000040; onChanged(); } if (!other.getAddress().isEmpty()) { address_ = other.address_; bitField0_ |= 0x00000080; onChanged(); } if (!other.getCategory().isEmpty()) { category_ = other.category_; bitField0_ |= 0x00000100; onChanged(); } if (!other.contextualKeywords_.isEmpty()) { if (contextualKeywords_.isEmpty()) { contextualKeywords_ = other.contextualKeywords_; bitField0_ |= 0x00000200; } else { ensureContextualKeywordsIsMutable(); contextualKeywords_.addAll(other.contextualKeywords_); } onChanged(); } if (!other.getFormattedPrice().isEmpty()) { formattedPrice_ = other.formattedPrice_; bitField0_ |= 0x00000400; onChanged(); } if (!other.getFormattedSalePrice().isEmpty()) { formattedSalePrice_ = other.formattedSalePrice_; bitField0_ |= 0x00000800; onChanged(); } if (!other.getAndroidAppLink().isEmpty()) { androidAppLink_ = other.androidAppLink_; bitField0_ |= 0x00001000; onChanged(); } if (!other.similarDealIds_.isEmpty()) { if (similarDealIds_.isEmpty()) { similarDealIds_ = other.similarDealIds_; bitField0_ |= 0x00002000; } else { ensureSimilarDealIdsIsMutable(); similarDealIds_.addAll(other.similarDealIds_); } onChanged(); } if (!other.getIosAppLink().isEmpty()) { iosAppLink_ = other.iosAppLink_; bitField0_ |= 0x00004000; onChanged(); } if (other.getIosAppStoreId() != 0L) { setIosAppStoreId(other.getIosAppStoreId()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { dealId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { dealName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { subtitle_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { price_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { salePrice_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { imageUrl_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { address_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 74: { category_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000100; break; } // case 74 case 82: { java.lang.String s = input.readStringRequireUtf8(); ensureContextualKeywordsIsMutable(); contextualKeywords_.add(s); break; } // case 82 case 90: { formattedPrice_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 90 case 98: { formattedSalePrice_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000800; break; } // case 98 case 106: { androidAppLink_ = input.readStringRequireUtf8(); bitField0_ |= 0x00001000; break; } // case 106 case 114: { java.lang.String s = input.readStringRequireUtf8(); ensureSimilarDealIdsIsMutable(); similarDealIds_.add(s); break; } // case 114 case 122: { iosAppLink_ = input.readStringRequireUtf8(); bitField0_ |= 0x00004000; break; } // case 122 case 128: { iosAppStoreId_ = input.readInt64(); bitField0_ |= 0x00008000; break; } // case 128 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object dealId_ = ""; /** *
     * Required. Deal ID which can be any sequence of letters and digits, and must
     * be unique and match the values of remarketing tag. Required.
     * 
* * string deal_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The dealId. */ public java.lang.String getDealId() { java.lang.Object ref = dealId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dealId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. Deal ID which can be any sequence of letters and digits, and must
     * be unique and match the values of remarketing tag. Required.
     * 
* * string deal_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for dealId. */ public com.google.protobuf.ByteString getDealIdBytes() { java.lang.Object ref = dealId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dealId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Required. Deal ID which can be any sequence of letters and digits, and must
     * be unique and match the values of remarketing tag. Required.
     * 
* * string deal_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The dealId to set. * @return This builder for chaining. */ public Builder setDealId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dealId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Required. Deal ID which can be any sequence of letters and digits, and must
     * be unique and match the values of remarketing tag. Required.
     * 
* * string deal_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearDealId() { dealId_ = getDefaultInstance().getDealId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Required. Deal ID which can be any sequence of letters and digits, and must
     * be unique and match the values of remarketing tag. Required.
     * 
* * string deal_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for dealId to set. * @return This builder for chaining. */ public Builder setDealIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dealId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object dealName_ = ""; /** *
     * Required. Deal name, for example, 50% off at Mountain View Grocers.
     * Required.
     * 
* * string deal_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The dealName. */ public java.lang.String getDealName() { java.lang.Object ref = dealName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dealName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. Deal name, for example, 50% off at Mountain View Grocers.
     * Required.
     * 
* * string deal_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for dealName. */ public com.google.protobuf.ByteString getDealNameBytes() { java.lang.Object ref = dealName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dealName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Required. Deal name, for example, 50% off at Mountain View Grocers.
     * Required.
     * 
* * string deal_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The dealName to set. * @return This builder for chaining. */ public Builder setDealName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dealName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Required. Deal name, for example, 50% off at Mountain View Grocers.
     * Required.
     * 
* * string deal_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearDealName() { dealName_ = getDefaultInstance().getDealName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * Required. Deal name, for example, 50% off at Mountain View Grocers.
     * Required.
     * 
* * string deal_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for dealName to set. * @return This builder for chaining. */ public Builder setDealNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dealName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object subtitle_ = ""; /** *
     * Subtitle, for example, Groceries.
     * 
* * string subtitle = 3; * @return The subtitle. */ public java.lang.String getSubtitle() { java.lang.Object ref = subtitle_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subtitle_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Subtitle, for example, Groceries.
     * 
* * string subtitle = 3; * @return The bytes for subtitle. */ public com.google.protobuf.ByteString getSubtitleBytes() { java.lang.Object ref = subtitle_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subtitle_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Subtitle, for example, Groceries.
     * 
* * string subtitle = 3; * @param value The subtitle to set. * @return This builder for chaining. */ public Builder setSubtitle( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subtitle_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Subtitle, for example, Groceries.
     * 
* * string subtitle = 3; * @return This builder for chaining. */ public Builder clearSubtitle() { subtitle_ = getDefaultInstance().getSubtitle(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * Subtitle, for example, Groceries.
     * 
* * string subtitle = 3; * @param value The bytes for subtitle to set. * @return This builder for chaining. */ public Builder setSubtitleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subtitle_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
     * Description, for example, Save on your weekly bill.
     * 
* * string description = 4; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Description, for example, Save on your weekly bill.
     * 
* * string description = 4; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Description, for example, Save on your weekly bill.
     * 
* * string description = 4; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Description, for example, Save on your weekly bill.
     * 
* * string description = 4; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * Description, for example, Save on your weekly bill.
     * 
* * string description = 4; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object price_ = ""; /** *
     * Price which can be a number followed by the alphabetic currency code,
     * ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD.
     * 
* * string price = 5; * @return The price. */ public java.lang.String getPrice() { java.lang.Object ref = price_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); price_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Price which can be a number followed by the alphabetic currency code,
     * ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD.
     * 
* * string price = 5; * @return The bytes for price. */ public com.google.protobuf.ByteString getPriceBytes() { java.lang.Object ref = price_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); price_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Price which can be a number followed by the alphabetic currency code,
     * ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD.
     * 
* * string price = 5; * @param value The price to set. * @return This builder for chaining. */ public Builder setPrice( java.lang.String value) { if (value == null) { throw new NullPointerException(); } price_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Price which can be a number followed by the alphabetic currency code,
     * ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD.
     * 
* * string price = 5; * @return This builder for chaining. */ public Builder clearPrice() { price_ = getDefaultInstance().getPrice(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * Price which can be a number followed by the alphabetic currency code,
     * ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD.
     * 
* * string price = 5; * @param value The bytes for price to set. * @return This builder for chaining. */ public Builder setPriceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); price_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object salePrice_ = ""; /** *
     * Sale price which can be number followed by the alphabetic currency code,
     * ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00 USD.
     * Must be less than the 'price' field.
     * 
* * string sale_price = 6; * @return The salePrice. */ public java.lang.String getSalePrice() { java.lang.Object ref = salePrice_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); salePrice_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Sale price which can be number followed by the alphabetic currency code,
     * ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00 USD.
     * Must be less than the 'price' field.
     * 
* * string sale_price = 6; * @return The bytes for salePrice. */ public com.google.protobuf.ByteString getSalePriceBytes() { java.lang.Object ref = salePrice_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); salePrice_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Sale price which can be number followed by the alphabetic currency code,
     * ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00 USD.
     * Must be less than the 'price' field.
     * 
* * string sale_price = 6; * @param value The salePrice to set. * @return This builder for chaining. */ public Builder setSalePrice( java.lang.String value) { if (value == null) { throw new NullPointerException(); } salePrice_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Sale price which can be number followed by the alphabetic currency code,
     * ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00 USD.
     * Must be less than the 'price' field.
     * 
* * string sale_price = 6; * @return This builder for chaining. */ public Builder clearSalePrice() { salePrice_ = getDefaultInstance().getSalePrice(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
     * Sale price which can be number followed by the alphabetic currency code,
     * ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00 USD.
     * Must be less than the 'price' field.
     * 
* * string sale_price = 6; * @param value The bytes for salePrice to set. * @return This builder for chaining. */ public Builder setSalePriceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); salePrice_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object imageUrl_ = ""; /** *
     * Image URL, for example, http://www.example.com/image.png. The image will
     * not be uploaded as image asset.
     * 
* * string image_url = 7; * @return The imageUrl. */ public java.lang.String getImageUrl() { java.lang.Object ref = imageUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Image URL, for example, http://www.example.com/image.png. The image will
     * not be uploaded as image asset.
     * 
* * string image_url = 7; * @return The bytes for imageUrl. */ public com.google.protobuf.ByteString getImageUrlBytes() { java.lang.Object ref = imageUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); imageUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Image URL, for example, http://www.example.com/image.png. The image will
     * not be uploaded as image asset.
     * 
* * string image_url = 7; * @param value The imageUrl to set. * @return This builder for chaining. */ public Builder setImageUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } imageUrl_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Image URL, for example, http://www.example.com/image.png. The image will
     * not be uploaded as image asset.
     * 
* * string image_url = 7; * @return This builder for chaining. */ public Builder clearImageUrl() { imageUrl_ = getDefaultInstance().getImageUrl(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
     * Image URL, for example, http://www.example.com/image.png. The image will
     * not be uploaded as image asset.
     * 
* * string image_url = 7; * @param value The bytes for imageUrl to set. * @return This builder for chaining. */ public Builder setImageUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); imageUrl_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private java.lang.Object address_ = ""; /** *
     * Address which can be specified in one of the following formats.
     * (1) City, state, code, country, for example, Mountain View, CA, USA.
     * (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043.
     * (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403.
     * 
* * string address = 8; * @return The address. */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Address which can be specified in one of the following formats.
     * (1) City, state, code, country, for example, Mountain View, CA, USA.
     * (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043.
     * (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403.
     * 
* * string address = 8; * @return The bytes for address. */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Address which can be specified in one of the following formats.
     * (1) City, state, code, country, for example, Mountain View, CA, USA.
     * (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043.
     * (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403.
     * 
* * string address = 8; * @param value The address to set. * @return This builder for chaining. */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } address_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * Address which can be specified in one of the following formats.
     * (1) City, state, code, country, for example, Mountain View, CA, USA.
     * (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043.
     * (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403.
     * 
* * string address = 8; * @return This builder for chaining. */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** *
     * Address which can be specified in one of the following formats.
     * (1) City, state, code, country, for example, Mountain View, CA, USA.
     * (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043.
     * (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403.
     * 
* * string address = 8; * @param value The bytes for address to set. * @return This builder for chaining. */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); address_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private java.lang.Object category_ = ""; /** *
     * Category, for example, Food.
     * 
* * string category = 9; * @return The category. */ public java.lang.String getCategory() { java.lang.Object ref = category_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); category_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Category, for example, Food.
     * 
* * string category = 9; * @return The bytes for category. */ public com.google.protobuf.ByteString getCategoryBytes() { java.lang.Object ref = category_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); category_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Category, for example, Food.
     * 
* * string category = 9; * @param value The category to set. * @return This builder for chaining. */ public Builder setCategory( java.lang.String value) { if (value == null) { throw new NullPointerException(); } category_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * Category, for example, Food.
     * 
* * string category = 9; * @return This builder for chaining. */ public Builder clearCategory() { category_ = getDefaultInstance().getCategory(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** *
     * Category, for example, Food.
     * 
* * string category = 9; * @param value The bytes for category to set. * @return This builder for chaining. */ public Builder setCategoryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); category_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList contextualKeywords_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureContextualKeywordsIsMutable() { if (!contextualKeywords_.isModifiable()) { contextualKeywords_ = new com.google.protobuf.LazyStringArrayList(contextualKeywords_); } bitField0_ |= 0x00000200; } /** *
     * Contextual keywords, for example, Save groceries coupons.
     * 
* * repeated string contextual_keywords = 10; * @return A list containing the contextualKeywords. */ public com.google.protobuf.ProtocolStringList getContextualKeywordsList() { contextualKeywords_.makeImmutable(); return contextualKeywords_; } /** *
     * Contextual keywords, for example, Save groceries coupons.
     * 
* * repeated string contextual_keywords = 10; * @return The count of contextualKeywords. */ public int getContextualKeywordsCount() { return contextualKeywords_.size(); } /** *
     * Contextual keywords, for example, Save groceries coupons.
     * 
* * repeated string contextual_keywords = 10; * @param index The index of the element to return. * @return The contextualKeywords at the given index. */ public java.lang.String getContextualKeywords(int index) { return contextualKeywords_.get(index); } /** *
     * Contextual keywords, for example, Save groceries coupons.
     * 
* * repeated string contextual_keywords = 10; * @param index The index of the value to return. * @return The bytes of the contextualKeywords at the given index. */ public com.google.protobuf.ByteString getContextualKeywordsBytes(int index) { return contextualKeywords_.getByteString(index); } /** *
     * Contextual keywords, for example, Save groceries coupons.
     * 
* * repeated string contextual_keywords = 10; * @param index The index to set the value at. * @param value The contextualKeywords to set. * @return This builder for chaining. */ public Builder setContextualKeywords( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureContextualKeywordsIsMutable(); contextualKeywords_.set(index, value); bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     * Contextual keywords, for example, Save groceries coupons.
     * 
* * repeated string contextual_keywords = 10; * @param value The contextualKeywords to add. * @return This builder for chaining. */ public Builder addContextualKeywords( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureContextualKeywordsIsMutable(); contextualKeywords_.add(value); bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     * Contextual keywords, for example, Save groceries coupons.
     * 
* * repeated string contextual_keywords = 10; * @param values The contextualKeywords to add. * @return This builder for chaining. */ public Builder addAllContextualKeywords( java.lang.Iterable values) { ensureContextualKeywordsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, contextualKeywords_); bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     * Contextual keywords, for example, Save groceries coupons.
     * 
* * repeated string contextual_keywords = 10; * @return This builder for chaining. */ public Builder clearContextualKeywords() { contextualKeywords_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000200);; onChanged(); return this; } /** *
     * Contextual keywords, for example, Save groceries coupons.
     * 
* * repeated string contextual_keywords = 10; * @param value The bytes of the contextualKeywords to add. * @return This builder for chaining. */ public Builder addContextualKeywordsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureContextualKeywordsIsMutable(); contextualKeywords_.add(value); bitField0_ |= 0x00000200; onChanged(); return this; } private java.lang.Object formattedPrice_ = ""; /** *
     * Formatted price which can be any characters. If set, this attribute will be
     * used instead of 'price', for example, Starting at $100.00.
     * 
* * string formatted_price = 11; * @return The formattedPrice. */ public java.lang.String getFormattedPrice() { java.lang.Object ref = formattedPrice_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); formattedPrice_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Formatted price which can be any characters. If set, this attribute will be
     * used instead of 'price', for example, Starting at $100.00.
     * 
* * string formatted_price = 11; * @return The bytes for formattedPrice. */ public com.google.protobuf.ByteString getFormattedPriceBytes() { java.lang.Object ref = formattedPrice_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); formattedPrice_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Formatted price which can be any characters. If set, this attribute will be
     * used instead of 'price', for example, Starting at $100.00.
     * 
* * string formatted_price = 11; * @param value The formattedPrice to set. * @return This builder for chaining. */ public Builder setFormattedPrice( java.lang.String value) { if (value == null) { throw new NullPointerException(); } formattedPrice_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     * Formatted price which can be any characters. If set, this attribute will be
     * used instead of 'price', for example, Starting at $100.00.
     * 
* * string formatted_price = 11; * @return This builder for chaining. */ public Builder clearFormattedPrice() { formattedPrice_ = getDefaultInstance().getFormattedPrice(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** *
     * Formatted price which can be any characters. If set, this attribute will be
     * used instead of 'price', for example, Starting at $100.00.
     * 
* * string formatted_price = 11; * @param value The bytes for formattedPrice to set. * @return This builder for chaining. */ public Builder setFormattedPriceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); formattedPrice_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } private java.lang.Object formattedSalePrice_ = ""; /** *
     * Formatted sale price which can be any characters. If set, this attribute
     * will be used instead of 'sale price', for example, On sale for $80.00.
     * 
* * string formatted_sale_price = 12; * @return The formattedSalePrice. */ public java.lang.String getFormattedSalePrice() { java.lang.Object ref = formattedSalePrice_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); formattedSalePrice_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Formatted sale price which can be any characters. If set, this attribute
     * will be used instead of 'sale price', for example, On sale for $80.00.
     * 
* * string formatted_sale_price = 12; * @return The bytes for formattedSalePrice. */ public com.google.protobuf.ByteString getFormattedSalePriceBytes() { java.lang.Object ref = formattedSalePrice_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); formattedSalePrice_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Formatted sale price which can be any characters. If set, this attribute
     * will be used instead of 'sale price', for example, On sale for $80.00.
     * 
* * string formatted_sale_price = 12; * @param value The formattedSalePrice to set. * @return This builder for chaining. */ public Builder setFormattedSalePrice( java.lang.String value) { if (value == null) { throw new NullPointerException(); } formattedSalePrice_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** *
     * Formatted sale price which can be any characters. If set, this attribute
     * will be used instead of 'sale price', for example, On sale for $80.00.
     * 
* * string formatted_sale_price = 12; * @return This builder for chaining. */ public Builder clearFormattedSalePrice() { formattedSalePrice_ = getDefaultInstance().getFormattedSalePrice(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** *
     * Formatted sale price which can be any characters. If set, this attribute
     * will be used instead of 'sale price', for example, On sale for $80.00.
     * 
* * string formatted_sale_price = 12; * @param value The bytes for formattedSalePrice to set. * @return This builder for chaining. */ public Builder setFormattedSalePriceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); formattedSalePrice_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } private java.lang.Object androidAppLink_ = ""; /** *
     * Android deep link, for example,
     * android-app://com.example.android/http/example.com/gizmos?1234.
     * 
* * string android_app_link = 13; * @return The androidAppLink. */ public java.lang.String getAndroidAppLink() { java.lang.Object ref = androidAppLink_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); androidAppLink_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Android deep link, for example,
     * android-app://com.example.android/http/example.com/gizmos?1234.
     * 
* * string android_app_link = 13; * @return The bytes for androidAppLink. */ public com.google.protobuf.ByteString getAndroidAppLinkBytes() { java.lang.Object ref = androidAppLink_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); androidAppLink_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Android deep link, for example,
     * android-app://com.example.android/http/example.com/gizmos?1234.
     * 
* * string android_app_link = 13; * @param value The androidAppLink to set. * @return This builder for chaining. */ public Builder setAndroidAppLink( java.lang.String value) { if (value == null) { throw new NullPointerException(); } androidAppLink_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     * Android deep link, for example,
     * android-app://com.example.android/http/example.com/gizmos?1234.
     * 
* * string android_app_link = 13; * @return This builder for chaining. */ public Builder clearAndroidAppLink() { androidAppLink_ = getDefaultInstance().getAndroidAppLink(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** *
     * Android deep link, for example,
     * android-app://com.example.android/http/example.com/gizmos?1234.
     * 
* * string android_app_link = 13; * @param value The bytes for androidAppLink to set. * @return This builder for chaining. */ public Builder setAndroidAppLinkBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); androidAppLink_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList similarDealIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSimilarDealIdsIsMutable() { if (!similarDealIds_.isModifiable()) { similarDealIds_ = new com.google.protobuf.LazyStringArrayList(similarDealIds_); } bitField0_ |= 0x00002000; } /** *
     * Similar deal IDs, for example, 1275.
     * 
* * repeated string similar_deal_ids = 14; * @return A list containing the similarDealIds. */ public com.google.protobuf.ProtocolStringList getSimilarDealIdsList() { similarDealIds_.makeImmutable(); return similarDealIds_; } /** *
     * Similar deal IDs, for example, 1275.
     * 
* * repeated string similar_deal_ids = 14; * @return The count of similarDealIds. */ public int getSimilarDealIdsCount() { return similarDealIds_.size(); } /** *
     * Similar deal IDs, for example, 1275.
     * 
* * repeated string similar_deal_ids = 14; * @param index The index of the element to return. * @return The similarDealIds at the given index. */ public java.lang.String getSimilarDealIds(int index) { return similarDealIds_.get(index); } /** *
     * Similar deal IDs, for example, 1275.
     * 
* * repeated string similar_deal_ids = 14; * @param index The index of the value to return. * @return The bytes of the similarDealIds at the given index. */ public com.google.protobuf.ByteString getSimilarDealIdsBytes(int index) { return similarDealIds_.getByteString(index); } /** *
     * Similar deal IDs, for example, 1275.
     * 
* * repeated string similar_deal_ids = 14; * @param index The index to set the value at. * @param value The similarDealIds to set. * @return This builder for chaining. */ public Builder setSimilarDealIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSimilarDealIdsIsMutable(); similarDealIds_.set(index, value); bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     * Similar deal IDs, for example, 1275.
     * 
* * repeated string similar_deal_ids = 14; * @param value The similarDealIds to add. * @return This builder for chaining. */ public Builder addSimilarDealIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSimilarDealIdsIsMutable(); similarDealIds_.add(value); bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     * Similar deal IDs, for example, 1275.
     * 
* * repeated string similar_deal_ids = 14; * @param values The similarDealIds to add. * @return This builder for chaining. */ public Builder addAllSimilarDealIds( java.lang.Iterable values) { ensureSimilarDealIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, similarDealIds_); bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     * Similar deal IDs, for example, 1275.
     * 
* * repeated string similar_deal_ids = 14; * @return This builder for chaining. */ public Builder clearSimilarDealIds() { similarDealIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00002000);; onChanged(); return this; } /** *
     * Similar deal IDs, for example, 1275.
     * 
* * repeated string similar_deal_ids = 14; * @param value The bytes of the similarDealIds to add. * @return This builder for chaining. */ public Builder addSimilarDealIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSimilarDealIdsIsMutable(); similarDealIds_.add(value); bitField0_ |= 0x00002000; onChanged(); return this; } private java.lang.Object iosAppLink_ = ""; /** *
     * iOS deep link, for example, exampleApp://content/page.
     * 
* * string ios_app_link = 15; * @return The iosAppLink. */ public java.lang.String getIosAppLink() { java.lang.Object ref = iosAppLink_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); iosAppLink_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * iOS deep link, for example, exampleApp://content/page.
     * 
* * string ios_app_link = 15; * @return The bytes for iosAppLink. */ public com.google.protobuf.ByteString getIosAppLinkBytes() { java.lang.Object ref = iosAppLink_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); iosAppLink_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * iOS deep link, for example, exampleApp://content/page.
     * 
* * string ios_app_link = 15; * @param value The iosAppLink to set. * @return This builder for chaining. */ public Builder setIosAppLink( java.lang.String value) { if (value == null) { throw new NullPointerException(); } iosAppLink_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     * iOS deep link, for example, exampleApp://content/page.
     * 
* * string ios_app_link = 15; * @return This builder for chaining. */ public Builder clearIosAppLink() { iosAppLink_ = getDefaultInstance().getIosAppLink(); bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } /** *
     * iOS deep link, for example, exampleApp://content/page.
     * 
* * string ios_app_link = 15; * @param value The bytes for iosAppLink to set. * @return This builder for chaining. */ public Builder setIosAppLinkBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); iosAppLink_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } private long iosAppStoreId_ ; /** *
     * iOS app store ID. This is used to check if the user has the app installed
     * on their device before deep linking. If this field is set, then the
     * ios_app_link field must also be present.
     * 
* * int64 ios_app_store_id = 16; * @return The iosAppStoreId. */ @java.lang.Override public long getIosAppStoreId() { return iosAppStoreId_; } /** *
     * iOS app store ID. This is used to check if the user has the app installed
     * on their device before deep linking. If this field is set, then the
     * ios_app_link field must also be present.
     * 
* * int64 ios_app_store_id = 16; * @param value The iosAppStoreId to set. * @return This builder for chaining. */ public Builder setIosAppStoreId(long value) { iosAppStoreId_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     * iOS app store ID. This is used to check if the user has the app installed
     * on their device before deep linking. If this field is set, then the
     * ios_app_link field must also be present.
     * 
* * int64 ios_app_store_id = 16; * @return This builder for chaining. */ public Builder clearIosAppStoreId() { bitField0_ = (bitField0_ & ~0x00008000); iosAppStoreId_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.common.DynamicLocalAsset) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.DynamicLocalAsset) private static final com.google.ads.googleads.v17.common.DynamicLocalAsset DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.DynamicLocalAsset(); } public static com.google.ads.googleads.v17.common.DynamicLocalAsset getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DynamicLocalAsset parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v17.common.DynamicLocalAsset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy