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

com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset 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 hotels and rentals asset.
 * 
* * Protobuf type {@code google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset} */ public final class DynamicHotelsAndRentalsAsset extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset) DynamicHotelsAndRentalsAssetOrBuilder { private static final long serialVersionUID = 0L; // Use DynamicHotelsAndRentalsAsset.newBuilder() to construct. private DynamicHotelsAndRentalsAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DynamicHotelsAndRentalsAsset() { propertyId_ = ""; propertyName_ = ""; imageUrl_ = ""; destinationName_ = ""; description_ = ""; price_ = ""; salePrice_ = ""; category_ = ""; contextualKeywords_ = com.google.protobuf.LazyStringArrayList.emptyList(); address_ = ""; androidAppLink_ = ""; iosAppLink_ = ""; formattedPrice_ = ""; formattedSalePrice_ = ""; similarPropertyIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DynamicHotelsAndRentalsAsset(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_DynamicHotelsAndRentalsAsset_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_DynamicHotelsAndRentalsAsset_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset.class, com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset.Builder.class); } public static final int PROPERTY_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object propertyId_ = ""; /** *
   * Required. Property ID which can be any sequence of letters and digits, and
   * must be unique and match the values of remarketing tag. Required.
   * 
* * string property_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The propertyId. */ @java.lang.Override public java.lang.String getPropertyId() { java.lang.Object ref = propertyId_; 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(); propertyId_ = s; return s; } } /** *
   * Required. Property ID which can be any sequence of letters and digits, and
   * must be unique and match the values of remarketing tag. Required.
   * 
* * string property_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for propertyId. */ @java.lang.Override public com.google.protobuf.ByteString getPropertyIdBytes() { java.lang.Object ref = propertyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); propertyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROPERTY_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object propertyName_ = ""; /** *
   * Required. Property name, for example, Mountain View Hotel. Required.
   * 
* * string property_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The propertyName. */ @java.lang.Override public java.lang.String getPropertyName() { java.lang.Object ref = propertyName_; 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(); propertyName_ = s; return s; } } /** *
   * Required. Property name, for example, Mountain View Hotel. Required.
   * 
* * string property_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for propertyName. */ @java.lang.Override public com.google.protobuf.ByteString getPropertyNameBytes() { java.lang.Object ref = propertyName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); propertyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IMAGE_URL_FIELD_NUMBER = 3; @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 = 3; * @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 = 3; * @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 DESTINATION_NAME_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object destinationName_ = ""; /** *
   * Destination name, for example, Downtown Mountain View.
   * 
* * string destination_name = 4; * @return The destinationName. */ @java.lang.Override public java.lang.String getDestinationName() { java.lang.Object ref = destinationName_; 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(); destinationName_ = s; return s; } } /** *
   * Destination name, for example, Downtown Mountain View.
   * 
* * string destination_name = 4; * @return The bytes for destinationName. */ @java.lang.Override public com.google.protobuf.ByteString getDestinationNameBytes() { java.lang.Object ref = destinationName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); destinationName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** *
   * Description, for example, Close to SJC Airport.
   * 
* * string description = 5; * @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, Close to SJC Airport.
   * 
* * string description = 5; * @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 = 6; @SuppressWarnings("serial") private volatile java.lang.Object price_ = ""; /** *
   * Price which can be number followed by the alphabetic currency code,
   * ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD.
   * 
* * string price = 6; * @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 number followed by the alphabetic currency code,
   * ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD.
   * 
* * string price = 6; * @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 = 7; @SuppressWarnings("serial") private volatile java.lang.Object salePrice_ = ""; /** *
   * ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00 USD.
   * Must be less than the 'price' field.
   * 
* * string sale_price = 7; * @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; } } /** *
   * ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00 USD.
   * Must be less than the 'price' field.
   * 
* * string sale_price = 7; * @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 STAR_RATING_FIELD_NUMBER = 8; private long starRating_ = 0L; /** *
   * Star rating. Must be a number between 1 to 5, inclusive.
   * 
* * int64 star_rating = 8; * @return The starRating. */ @java.lang.Override public long getStarRating() { return starRating_; } public static final int CATEGORY_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object category_ = ""; /** *
   * Category, for example, Hotel suite.
   * 
* * 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, Hotel suite.
   * 
* * 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, Mountain View "Hotels", South Bay hotels.
   * 
* * repeated string contextual_keywords = 10; * @return A list containing the contextualKeywords. */ public com.google.protobuf.ProtocolStringList getContextualKeywordsList() { return contextualKeywords_; } /** *
   * Contextual keywords, for example, Mountain View "Hotels", South Bay hotels.
   * 
* * repeated string contextual_keywords = 10; * @return The count of contextualKeywords. */ public int getContextualKeywordsCount() { return contextualKeywords_.size(); } /** *
   * Contextual keywords, for example, Mountain View "Hotels", South Bay hotels.
   * 
* * 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, Mountain View "Hotels", South Bay hotels.
   * 
* * 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 ADDRESS_FIELD_NUMBER = 11; @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 = 11; * @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 = 11; * @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 ANDROID_APP_LINK_FIELD_NUMBER = 12; @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 = 12; * @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 = 12; * @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 IOS_APP_LINK_FIELD_NUMBER = 13; @SuppressWarnings("serial") private volatile java.lang.Object iosAppLink_ = ""; /** *
   * iOS deep link, for example, exampleApp://content/page.
   * 
* * string ios_app_link = 13; * @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 = 13; * @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 = 14; 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 = 14; * @return The iosAppStoreId. */ @java.lang.Override public long getIosAppStoreId() { return iosAppStoreId_; } public static final int FORMATTED_PRICE_FIELD_NUMBER = 15; @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 = 15; * @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 = 15; * @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 = 16; @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 = 16; * @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 = 16; * @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 SIMILAR_PROPERTY_IDS_FIELD_NUMBER = 17; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList similarPropertyIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * Similar property IDs.
   * 
* * repeated string similar_property_ids = 17; * @return A list containing the similarPropertyIds. */ public com.google.protobuf.ProtocolStringList getSimilarPropertyIdsList() { return similarPropertyIds_; } /** *
   * Similar property IDs.
   * 
* * repeated string similar_property_ids = 17; * @return The count of similarPropertyIds. */ public int getSimilarPropertyIdsCount() { return similarPropertyIds_.size(); } /** *
   * Similar property IDs.
   * 
* * repeated string similar_property_ids = 17; * @param index The index of the element to return. * @return The similarPropertyIds at the given index. */ public java.lang.String getSimilarPropertyIds(int index) { return similarPropertyIds_.get(index); } /** *
   * Similar property IDs.
   * 
* * repeated string similar_property_ids = 17; * @param index The index of the value to return. * @return The bytes of the similarPropertyIds at the given index. */ public com.google.protobuf.ByteString getSimilarPropertyIdsBytes(int index) { return similarPropertyIds_.getByteString(index); } 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(propertyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, propertyId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propertyName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, propertyName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, imageUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, destinationName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(price_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, price_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(salePrice_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, salePrice_); } if (starRating_ != 0L) { output.writeInt64(8, starRating_); } 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(address_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, address_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(androidAppLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, androidAppLink_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iosAppLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, iosAppLink_); } if (iosAppStoreId_ != 0L) { output.writeInt64(14, iosAppStoreId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedPrice_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, formattedPrice_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedSalePrice_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, formattedSalePrice_); } for (int i = 0; i < similarPropertyIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, similarPropertyIds_.getRaw(i)); } 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(propertyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, propertyId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propertyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, propertyName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, imageUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, destinationName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(price_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, price_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(salePrice_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, salePrice_); } if (starRating_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, starRating_); } 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(address_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, address_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(androidAppLink_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, androidAppLink_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iosAppLink_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, iosAppLink_); } if (iosAppStoreId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(14, iosAppStoreId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedPrice_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, formattedPrice_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedSalePrice_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, formattedSalePrice_); } { int dataSize = 0; for (int i = 0; i < similarPropertyIds_.size(); i++) { dataSize += computeStringSizeNoTag(similarPropertyIds_.getRaw(i)); } size += dataSize; size += 2 * getSimilarPropertyIdsList().size(); } 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.DynamicHotelsAndRentalsAsset)) { return super.equals(obj); } com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset other = (com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset) obj; if (!getPropertyId() .equals(other.getPropertyId())) return false; if (!getPropertyName() .equals(other.getPropertyName())) return false; if (!getImageUrl() .equals(other.getImageUrl())) return false; if (!getDestinationName() .equals(other.getDestinationName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getPrice() .equals(other.getPrice())) return false; if (!getSalePrice() .equals(other.getSalePrice())) return false; if (getStarRating() != other.getStarRating()) return false; if (!getCategory() .equals(other.getCategory())) return false; if (!getContextualKeywordsList() .equals(other.getContextualKeywordsList())) return false; if (!getAddress() .equals(other.getAddress())) return false; if (!getAndroidAppLink() .equals(other.getAndroidAppLink())) return false; if (!getIosAppLink() .equals(other.getIosAppLink())) return false; if (getIosAppStoreId() != other.getIosAppStoreId()) return false; if (!getFormattedPrice() .equals(other.getFormattedPrice())) return false; if (!getFormattedSalePrice() .equals(other.getFormattedSalePrice())) return false; if (!getSimilarPropertyIdsList() .equals(other.getSimilarPropertyIdsList())) 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) + PROPERTY_ID_FIELD_NUMBER; hash = (53 * hash) + getPropertyId().hashCode(); hash = (37 * hash) + PROPERTY_NAME_FIELD_NUMBER; hash = (53 * hash) + getPropertyName().hashCode(); hash = (37 * hash) + IMAGE_URL_FIELD_NUMBER; hash = (53 * hash) + getImageUrl().hashCode(); hash = (37 * hash) + DESTINATION_NAME_FIELD_NUMBER; hash = (53 * hash) + getDestinationName().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) + STAR_RATING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStarRating()); 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) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + ANDROID_APP_LINK_FIELD_NUMBER; hash = (53 * hash) + getAndroidAppLink().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 = (37 * hash) + FORMATTED_PRICE_FIELD_NUMBER; hash = (53 * hash) + getFormattedPrice().hashCode(); hash = (37 * hash) + FORMATTED_SALE_PRICE_FIELD_NUMBER; hash = (53 * hash) + getFormattedSalePrice().hashCode(); if (getSimilarPropertyIdsCount() > 0) { hash = (37 * hash) + SIMILAR_PROPERTY_IDS_FIELD_NUMBER; hash = (53 * hash) + getSimilarPropertyIdsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset 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.DynamicHotelsAndRentalsAsset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset 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.DynamicHotelsAndRentalsAsset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset 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.DynamicHotelsAndRentalsAsset 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.DynamicHotelsAndRentalsAsset 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.DynamicHotelsAndRentalsAsset 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.DynamicHotelsAndRentalsAsset 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.DynamicHotelsAndRentalsAsset 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.DynamicHotelsAndRentalsAsset 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.DynamicHotelsAndRentalsAsset 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 hotels and rentals asset.
   * 
* * Protobuf type {@code google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset) com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAssetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_DynamicHotelsAndRentalsAsset_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_DynamicHotelsAndRentalsAsset_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset.class, com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset.Builder.class); } // Construct using com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; propertyId_ = ""; propertyName_ = ""; imageUrl_ = ""; destinationName_ = ""; description_ = ""; price_ = ""; salePrice_ = ""; starRating_ = 0L; category_ = ""; contextualKeywords_ = com.google.protobuf.LazyStringArrayList.emptyList(); address_ = ""; androidAppLink_ = ""; iosAppLink_ = ""; iosAppStoreId_ = 0L; formattedPrice_ = ""; formattedSalePrice_ = ""; similarPropertyIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); 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_DynamicHotelsAndRentalsAsset_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset getDefaultInstanceForType() { return com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset build() { com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset buildPartial() { com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset result = new com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.propertyId_ = propertyId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.propertyName_ = propertyName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.imageUrl_ = imageUrl_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.destinationName_ = destinationName_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.description_ = description_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.price_ = price_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.salePrice_ = salePrice_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.starRating_ = starRating_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.category_ = category_; } if (((from_bitField0_ & 0x00000200) != 0)) { contextualKeywords_.makeImmutable(); result.contextualKeywords_ = contextualKeywords_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.address_ = address_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.androidAppLink_ = androidAppLink_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.iosAppLink_ = iosAppLink_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.iosAppStoreId_ = iosAppStoreId_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.formattedPrice_ = formattedPrice_; } if (((from_bitField0_ & 0x00008000) != 0)) { result.formattedSalePrice_ = formattedSalePrice_; } if (((from_bitField0_ & 0x00010000) != 0)) { similarPropertyIds_.makeImmutable(); result.similarPropertyIds_ = similarPropertyIds_; } } @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.DynamicHotelsAndRentalsAsset) { return mergeFrom((com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset other) { if (other == com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset.getDefaultInstance()) return this; if (!other.getPropertyId().isEmpty()) { propertyId_ = other.propertyId_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getPropertyName().isEmpty()) { propertyName_ = other.propertyName_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getImageUrl().isEmpty()) { imageUrl_ = other.imageUrl_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getDestinationName().isEmpty()) { destinationName_ = other.destinationName_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000010; onChanged(); } if (!other.getPrice().isEmpty()) { price_ = other.price_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getSalePrice().isEmpty()) { salePrice_ = other.salePrice_; bitField0_ |= 0x00000040; onChanged(); } if (other.getStarRating() != 0L) { setStarRating(other.getStarRating()); } 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.getAddress().isEmpty()) { address_ = other.address_; bitField0_ |= 0x00000400; onChanged(); } if (!other.getAndroidAppLink().isEmpty()) { androidAppLink_ = other.androidAppLink_; bitField0_ |= 0x00000800; onChanged(); } if (!other.getIosAppLink().isEmpty()) { iosAppLink_ = other.iosAppLink_; bitField0_ |= 0x00001000; onChanged(); } if (other.getIosAppStoreId() != 0L) { setIosAppStoreId(other.getIosAppStoreId()); } if (!other.getFormattedPrice().isEmpty()) { formattedPrice_ = other.formattedPrice_; bitField0_ |= 0x00004000; onChanged(); } if (!other.getFormattedSalePrice().isEmpty()) { formattedSalePrice_ = other.formattedSalePrice_; bitField0_ |= 0x00008000; onChanged(); } if (!other.similarPropertyIds_.isEmpty()) { if (similarPropertyIds_.isEmpty()) { similarPropertyIds_ = other.similarPropertyIds_; bitField0_ |= 0x00010000; } else { ensureSimilarPropertyIdsIsMutable(); similarPropertyIds_.addAll(other.similarPropertyIds_); } onChanged(); } 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: { propertyId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { propertyName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { imageUrl_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { destinationName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { price_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { salePrice_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 64: { starRating_ = input.readInt64(); bitField0_ |= 0x00000080; break; } // case 64 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: { address_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 90 case 98: { androidAppLink_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000800; break; } // case 98 case 106: { iosAppLink_ = input.readStringRequireUtf8(); bitField0_ |= 0x00001000; break; } // case 106 case 112: { iosAppStoreId_ = input.readInt64(); bitField0_ |= 0x00002000; break; } // case 112 case 122: { formattedPrice_ = input.readStringRequireUtf8(); bitField0_ |= 0x00004000; break; } // case 122 case 130: { formattedSalePrice_ = input.readStringRequireUtf8(); bitField0_ |= 0x00008000; break; } // case 130 case 138: { java.lang.String s = input.readStringRequireUtf8(); ensureSimilarPropertyIdsIsMutable(); similarPropertyIds_.add(s); break; } // case 138 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 propertyId_ = ""; /** *
     * Required. Property ID which can be any sequence of letters and digits, and
     * must be unique and match the values of remarketing tag. Required.
     * 
* * string property_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The propertyId. */ public java.lang.String getPropertyId() { java.lang.Object ref = propertyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); propertyId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. Property ID which can be any sequence of letters and digits, and
     * must be unique and match the values of remarketing tag. Required.
     * 
* * string property_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for propertyId. */ public com.google.protobuf.ByteString getPropertyIdBytes() { java.lang.Object ref = propertyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); propertyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Required. Property ID which can be any sequence of letters and digits, and
     * must be unique and match the values of remarketing tag. Required.
     * 
* * string property_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The propertyId to set. * @return This builder for chaining. */ public Builder setPropertyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } propertyId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Required. Property ID which can be any sequence of letters and digits, and
     * must be unique and match the values of remarketing tag. Required.
     * 
* * string property_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearPropertyId() { propertyId_ = getDefaultInstance().getPropertyId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Required. Property ID which can be any sequence of letters and digits, and
     * must be unique and match the values of remarketing tag. Required.
     * 
* * string property_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for propertyId to set. * @return This builder for chaining. */ public Builder setPropertyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); propertyId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object propertyName_ = ""; /** *
     * Required. Property name, for example, Mountain View Hotel. Required.
     * 
* * string property_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The propertyName. */ public java.lang.String getPropertyName() { java.lang.Object ref = propertyName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); propertyName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. Property name, for example, Mountain View Hotel. Required.
     * 
* * string property_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for propertyName. */ public com.google.protobuf.ByteString getPropertyNameBytes() { java.lang.Object ref = propertyName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); propertyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Required. Property name, for example, Mountain View Hotel. Required.
     * 
* * string property_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The propertyName to set. * @return This builder for chaining. */ public Builder setPropertyName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } propertyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Required. Property name, for example, Mountain View Hotel. Required.
     * 
* * string property_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearPropertyName() { propertyName_ = getDefaultInstance().getPropertyName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * Required. Property name, for example, Mountain View Hotel. Required.
     * 
* * string property_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for propertyName to set. * @return This builder for chaining. */ public Builder setPropertyNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); propertyName_ = value; bitField0_ |= 0x00000002; 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 = 3; * @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 = 3; * @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 = 3; * @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_ |= 0x00000004; 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 = 3; * @return This builder for chaining. */ public Builder clearImageUrl() { imageUrl_ = getDefaultInstance().getImageUrl(); bitField0_ = (bitField0_ & ~0x00000004); 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 = 3; * @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_ |= 0x00000004; onChanged(); return this; } private java.lang.Object destinationName_ = ""; /** *
     * Destination name, for example, Downtown Mountain View.
     * 
* * string destination_name = 4; * @return The destinationName. */ public java.lang.String getDestinationName() { java.lang.Object ref = destinationName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Destination name, for example, Downtown Mountain View.
     * 
* * string destination_name = 4; * @return The bytes for destinationName. */ public com.google.protobuf.ByteString getDestinationNameBytes() { java.lang.Object ref = destinationName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); destinationName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Destination name, for example, Downtown Mountain View.
     * 
* * string destination_name = 4; * @param value The destinationName to set. * @return This builder for chaining. */ public Builder setDestinationName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } destinationName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Destination name, for example, Downtown Mountain View.
     * 
* * string destination_name = 4; * @return This builder for chaining. */ public Builder clearDestinationName() { destinationName_ = getDefaultInstance().getDestinationName(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * Destination name, for example, Downtown Mountain View.
     * 
* * string destination_name = 4; * @param value The bytes for destinationName to set. * @return This builder for chaining. */ public Builder setDestinationNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
     * Description, for example, Close to SJC Airport.
     * 
* * string description = 5; * @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, Close to SJC Airport.
     * 
* * string description = 5; * @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, Close to SJC Airport.
     * 
* * string description = 5; * @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_ |= 0x00000010; onChanged(); return this; } /** *
     * Description, for example, Close to SJC Airport.
     * 
* * string description = 5; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * Description, for example, Close to SJC Airport.
     * 
* * string description = 5; * @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_ |= 0x00000010; onChanged(); return this; } private java.lang.Object price_ = ""; /** *
     * Price which can be number followed by the alphabetic currency code,
     * ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD.
     * 
* * string price = 6; * @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 number followed by the alphabetic currency code,
     * ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD.
     * 
* * string price = 6; * @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 number followed by the alphabetic currency code,
     * ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD.
     * 
* * string price = 6; * @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_ |= 0x00000020; onChanged(); return this; } /** *
     * Price which can be number followed by the alphabetic currency code,
     * ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD.
     * 
* * string price = 6; * @return This builder for chaining. */ public Builder clearPrice() { price_ = getDefaultInstance().getPrice(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
     * Price which can be number followed by the alphabetic currency code,
     * ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD.
     * 
* * string price = 6; * @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_ |= 0x00000020; onChanged(); return this; } private java.lang.Object salePrice_ = ""; /** *
     * ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00 USD.
     * Must be less than the 'price' field.
     * 
* * string sale_price = 7; * @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; } } /** *
     * ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00 USD.
     * Must be less than the 'price' field.
     * 
* * string sale_price = 7; * @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; } } /** *
     * ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00 USD.
     * Must be less than the 'price' field.
     * 
* * string sale_price = 7; * @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_ |= 0x00000040; onChanged(); return this; } /** *
     * ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00 USD.
     * Must be less than the 'price' field.
     * 
* * string sale_price = 7; * @return This builder for chaining. */ public Builder clearSalePrice() { salePrice_ = getDefaultInstance().getSalePrice(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
     * ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00 USD.
     * Must be less than the 'price' field.
     * 
* * string sale_price = 7; * @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_ |= 0x00000040; onChanged(); return this; } private long starRating_ ; /** *
     * Star rating. Must be a number between 1 to 5, inclusive.
     * 
* * int64 star_rating = 8; * @return The starRating. */ @java.lang.Override public long getStarRating() { return starRating_; } /** *
     * Star rating. Must be a number between 1 to 5, inclusive.
     * 
* * int64 star_rating = 8; * @param value The starRating to set. * @return This builder for chaining. */ public Builder setStarRating(long value) { starRating_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * Star rating. Must be a number between 1 to 5, inclusive.
     * 
* * int64 star_rating = 8; * @return This builder for chaining. */ public Builder clearStarRating() { bitField0_ = (bitField0_ & ~0x00000080); starRating_ = 0L; onChanged(); return this; } private java.lang.Object category_ = ""; /** *
     * Category, for example, Hotel suite.
     * 
* * 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, Hotel suite.
     * 
* * 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, Hotel suite.
     * 
* * 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, Hotel suite.
     * 
* * string category = 9; * @return This builder for chaining. */ public Builder clearCategory() { category_ = getDefaultInstance().getCategory(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** *
     * Category, for example, Hotel suite.
     * 
* * 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, Mountain View "Hotels", South Bay hotels.
     * 
* * 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, Mountain View "Hotels", South Bay hotels.
     * 
* * repeated string contextual_keywords = 10; * @return The count of contextualKeywords. */ public int getContextualKeywordsCount() { return contextualKeywords_.size(); } /** *
     * Contextual keywords, for example, Mountain View "Hotels", South Bay hotels.
     * 
* * 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, Mountain View "Hotels", South Bay hotels.
     * 
* * 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, Mountain View "Hotels", South Bay hotels.
     * 
* * 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, Mountain View "Hotels", South Bay hotels.
     * 
* * 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, Mountain View "Hotels", South Bay hotels.
     * 
* * 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, Mountain View "Hotels", South Bay hotels.
     * 
* * 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, Mountain View "Hotels", South Bay hotels.
     * 
* * 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 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 = 11; * @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 = 11; * @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 = 11; * @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_ |= 0x00000400; 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 = 11; * @return This builder for chaining. */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); bitField0_ = (bitField0_ & ~0x00000400); 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 = 11; * @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_ |= 0x00000400; 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 = 12; * @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 = 12; * @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 = 12; * @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_ |= 0x00000800; onChanged(); return this; } /** *
     * Android deep link, for example,
     * android-app://com.example.android/http/example.com/gizmos?1234.
     * 
* * string android_app_link = 12; * @return This builder for chaining. */ public Builder clearAndroidAppLink() { androidAppLink_ = getDefaultInstance().getAndroidAppLink(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** *
     * Android deep link, for example,
     * android-app://com.example.android/http/example.com/gizmos?1234.
     * 
* * string android_app_link = 12; * @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_ |= 0x00000800; onChanged(); return this; } private java.lang.Object iosAppLink_ = ""; /** *
     * iOS deep link, for example, exampleApp://content/page.
     * 
* * string ios_app_link = 13; * @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 = 13; * @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 = 13; * @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_ |= 0x00001000; onChanged(); return this; } /** *
     * iOS deep link, for example, exampleApp://content/page.
     * 
* * string ios_app_link = 13; * @return This builder for chaining. */ public Builder clearIosAppLink() { iosAppLink_ = getDefaultInstance().getIosAppLink(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** *
     * iOS deep link, for example, exampleApp://content/page.
     * 
* * string ios_app_link = 13; * @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_ |= 0x00001000; 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 = 14; * @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 = 14; * @param value The iosAppStoreId to set. * @return This builder for chaining. */ public Builder setIosAppStoreId(long value) { iosAppStoreId_ = value; bitField0_ |= 0x00002000; 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 = 14; * @return This builder for chaining. */ public Builder clearIosAppStoreId() { bitField0_ = (bitField0_ & ~0x00002000); iosAppStoreId_ = 0L; 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 = 15; * @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 = 15; * @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 = 15; * @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_ |= 0x00004000; 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 = 15; * @return This builder for chaining. */ public Builder clearFormattedPrice() { formattedPrice_ = getDefaultInstance().getFormattedPrice(); bitField0_ = (bitField0_ & ~0x00004000); 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 = 15; * @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_ |= 0x00004000; 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 = 16; * @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 = 16; * @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 = 16; * @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_ |= 0x00008000; 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 = 16; * @return This builder for chaining. */ public Builder clearFormattedSalePrice() { formattedSalePrice_ = getDefaultInstance().getFormattedSalePrice(); bitField0_ = (bitField0_ & ~0x00008000); 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 = 16; * @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_ |= 0x00008000; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList similarPropertyIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSimilarPropertyIdsIsMutable() { if (!similarPropertyIds_.isModifiable()) { similarPropertyIds_ = new com.google.protobuf.LazyStringArrayList(similarPropertyIds_); } bitField0_ |= 0x00010000; } /** *
     * Similar property IDs.
     * 
* * repeated string similar_property_ids = 17; * @return A list containing the similarPropertyIds. */ public com.google.protobuf.ProtocolStringList getSimilarPropertyIdsList() { similarPropertyIds_.makeImmutable(); return similarPropertyIds_; } /** *
     * Similar property IDs.
     * 
* * repeated string similar_property_ids = 17; * @return The count of similarPropertyIds. */ public int getSimilarPropertyIdsCount() { return similarPropertyIds_.size(); } /** *
     * Similar property IDs.
     * 
* * repeated string similar_property_ids = 17; * @param index The index of the element to return. * @return The similarPropertyIds at the given index. */ public java.lang.String getSimilarPropertyIds(int index) { return similarPropertyIds_.get(index); } /** *
     * Similar property IDs.
     * 
* * repeated string similar_property_ids = 17; * @param index The index of the value to return. * @return The bytes of the similarPropertyIds at the given index. */ public com.google.protobuf.ByteString getSimilarPropertyIdsBytes(int index) { return similarPropertyIds_.getByteString(index); } /** *
     * Similar property IDs.
     * 
* * repeated string similar_property_ids = 17; * @param index The index to set the value at. * @param value The similarPropertyIds to set. * @return This builder for chaining. */ public Builder setSimilarPropertyIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSimilarPropertyIdsIsMutable(); similarPropertyIds_.set(index, value); bitField0_ |= 0x00010000; onChanged(); return this; } /** *
     * Similar property IDs.
     * 
* * repeated string similar_property_ids = 17; * @param value The similarPropertyIds to add. * @return This builder for chaining. */ public Builder addSimilarPropertyIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSimilarPropertyIdsIsMutable(); similarPropertyIds_.add(value); bitField0_ |= 0x00010000; onChanged(); return this; } /** *
     * Similar property IDs.
     * 
* * repeated string similar_property_ids = 17; * @param values The similarPropertyIds to add. * @return This builder for chaining. */ public Builder addAllSimilarPropertyIds( java.lang.Iterable values) { ensureSimilarPropertyIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, similarPropertyIds_); bitField0_ |= 0x00010000; onChanged(); return this; } /** *
     * Similar property IDs.
     * 
* * repeated string similar_property_ids = 17; * @return This builder for chaining. */ public Builder clearSimilarPropertyIds() { similarPropertyIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00010000);; onChanged(); return this; } /** *
     * Similar property IDs.
     * 
* * repeated string similar_property_ids = 17; * @param value The bytes of the similarPropertyIds to add. * @return This builder for chaining. */ public Builder addSimilarPropertyIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSimilarPropertyIdsIsMutable(); similarPropertyIds_.add(value); bitField0_ |= 0x00010000; 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.DynamicHotelsAndRentalsAsset) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset) private static final com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset(); } public static com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DynamicHotelsAndRentalsAsset 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.DynamicHotelsAndRentalsAsset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy