com.google.ads.googleads.v17.common.DynamicTravelAsset Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
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 travel asset.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.DynamicTravelAsset}
*/
public final class DynamicTravelAsset extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.DynamicTravelAsset)
DynamicTravelAssetOrBuilder {
private static final long serialVersionUID = 0L;
// Use DynamicTravelAsset.newBuilder() to construct.
private DynamicTravelAsset(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DynamicTravelAsset() {
destinationId_ = "";
originId_ = "";
title_ = "";
destinationName_ = "";
destinationAddress_ = "";
originName_ = "";
price_ = "";
salePrice_ = "";
formattedPrice_ = "";
formattedSalePrice_ = "";
category_ = "";
contextualKeywords_ =
com.google.protobuf.LazyStringArrayList.emptyList();
similarDestinationIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
imageUrl_ = "";
androidAppLink_ = "";
iosAppLink_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DynamicTravelAsset();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_DynamicTravelAsset_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_DynamicTravelAsset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.DynamicTravelAsset.class, com.google.ads.googleads.v17.common.DynamicTravelAsset.Builder.class);
}
public static final int DESTINATION_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object destinationId_ = "";
/**
*
* Required. Destination ID which can be any sequence of letters and digits,
* and must be unique and match the values of remarketing tag. Required.
*
*
* string destination_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The destinationId.
*/
@java.lang.Override
public java.lang.String getDestinationId() {
java.lang.Object ref = destinationId_;
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();
destinationId_ = s;
return s;
}
}
/**
*
* Required. Destination ID which can be any sequence of letters and digits,
* and must be unique and match the values of remarketing tag. Required.
*
*
* string destination_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The bytes for destinationId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDestinationIdBytes() {
java.lang.Object ref = destinationId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
destinationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ORIGIN_ID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object originId_ = "";
/**
*
* Origin ID which can be any sequence of letters and digits. The ID sequence
* (destination ID + origin ID) must be unique.
*
*
* string origin_id = 2;
* @return The originId.
*/
@java.lang.Override
public java.lang.String getOriginId() {
java.lang.Object ref = originId_;
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();
originId_ = s;
return s;
}
}
/**
*
* Origin ID which can be any sequence of letters and digits. The ID sequence
* (destination ID + origin ID) must be unique.
*
*
* string origin_id = 2;
* @return The bytes for originId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOriginIdBytes() {
java.lang.Object ref = originId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
originId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TITLE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object title_ = "";
/**
*
* Required. Title, for example, Book your train ticket. Required.
*
*
* string title = 3 [(.google.api.field_behavior) = REQUIRED];
* @return The title.
*/
@java.lang.Override
public java.lang.String getTitle() {
java.lang.Object ref = title_;
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();
title_ = s;
return s;
}
}
/**
*
* Required. Title, for example, Book your train ticket. Required.
*
*
* string title = 3 [(.google.api.field_behavior) = REQUIRED];
* @return The bytes for title.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = 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, Paris.
*
*
* 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, Paris.
*
*
* 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 DESTINATION_ADDRESS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object destinationAddress_ = "";
/**
*
* Destination 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 destination_address = 5;
* @return The destinationAddress.
*/
@java.lang.Override
public java.lang.String getDestinationAddress() {
java.lang.Object ref = destinationAddress_;
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();
destinationAddress_ = s;
return s;
}
}
/**
*
* Destination 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 destination_address = 5;
* @return The bytes for destinationAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDestinationAddressBytes() {
java.lang.Object ref = destinationAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
destinationAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ORIGIN_NAME_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object originName_ = "";
/**
*
* Origin name, for example, London.
*
*
* string origin_name = 6;
* @return The originName.
*/
@java.lang.Override
public java.lang.String getOriginName() {
java.lang.Object ref = originName_;
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();
originName_ = s;
return s;
}
}
/**
*
* Origin name, for example, London.
*
*
* string origin_name = 6;
* @return The bytes for originName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOriginNameBytes() {
java.lang.Object ref = originName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
originName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRICE_FIELD_NUMBER = 7;
@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 = 7;
* @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 = 7;
* @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 = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object salePrice_ = "";
/**
*
* Sale price which can be a 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 = 8;
* @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 a 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 = 8;
* @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 FORMATTED_PRICE_FIELD_NUMBER = 9;
@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 = 9;
* @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 = 9;
* @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 = 10;
@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 = 10;
* @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 = 10;
* @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 CATEGORY_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object category_ = "";
/**
*
* Category, for example, Express.
*
*
* string category = 11;
* @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, Express.
*
*
* string category = 11;
* @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 = 12;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList contextualKeywords_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Contextual keywords, for example, Paris trains.
*
*
* repeated string contextual_keywords = 12;
* @return A list containing the contextualKeywords.
*/
public com.google.protobuf.ProtocolStringList
getContextualKeywordsList() {
return contextualKeywords_;
}
/**
*
* Contextual keywords, for example, Paris trains.
*
*
* repeated string contextual_keywords = 12;
* @return The count of contextualKeywords.
*/
public int getContextualKeywordsCount() {
return contextualKeywords_.size();
}
/**
*
* Contextual keywords, for example, Paris trains.
*
*
* repeated string contextual_keywords = 12;
* @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, Paris trains.
*
*
* repeated string contextual_keywords = 12;
* @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 SIMILAR_DESTINATION_IDS_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList similarDestinationIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Similar destination IDs, for example, NYC.
*
*
* repeated string similar_destination_ids = 13;
* @return A list containing the similarDestinationIds.
*/
public com.google.protobuf.ProtocolStringList
getSimilarDestinationIdsList() {
return similarDestinationIds_;
}
/**
*
* Similar destination IDs, for example, NYC.
*
*
* repeated string similar_destination_ids = 13;
* @return The count of similarDestinationIds.
*/
public int getSimilarDestinationIdsCount() {
return similarDestinationIds_.size();
}
/**
*
* Similar destination IDs, for example, NYC.
*
*
* repeated string similar_destination_ids = 13;
* @param index The index of the element to return.
* @return The similarDestinationIds at the given index.
*/
public java.lang.String getSimilarDestinationIds(int index) {
return similarDestinationIds_.get(index);
}
/**
*
* Similar destination IDs, for example, NYC.
*
*
* repeated string similar_destination_ids = 13;
* @param index The index of the value to return.
* @return The bytes of the similarDestinationIds at the given index.
*/
public com.google.protobuf.ByteString
getSimilarDestinationIdsBytes(int index) {
return similarDestinationIds_.getByteString(index);
}
public static final int IMAGE_URL_FIELD_NUMBER = 14;
@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 = 14;
* @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 = 14;
* @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 ANDROID_APP_LINK_FIELD_NUMBER = 15;
@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 = 15;
* @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 = 15;
* @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 = 16;
@SuppressWarnings("serial")
private volatile java.lang.Object iosAppLink_ = "";
/**
*
* iOS deep link, for example, exampleApp://content/page.
*
*
* string ios_app_link = 16;
* @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 = 16;
* @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 = 17;
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 = 17;
* @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(destinationId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destinationId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, originId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, title_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, destinationName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, destinationAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, originName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(price_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, price_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(salePrice_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, salePrice_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedPrice_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, formattedPrice_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedSalePrice_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, formattedSalePrice_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, category_);
}
for (int i = 0; i < contextualKeywords_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, contextualKeywords_.getRaw(i));
}
for (int i = 0; i < similarDestinationIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, similarDestinationIds_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageUrl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, imageUrl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(androidAppLink_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, androidAppLink_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iosAppLink_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, iosAppLink_);
}
if (iosAppStoreId_ != 0L) {
output.writeInt64(17, 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(destinationId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, destinationId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, originId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, title_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, destinationName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, destinationAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, originName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(price_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, price_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(salePrice_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, salePrice_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedPrice_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, formattedPrice_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedSalePrice_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, formattedSalePrice_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, category_);
}
{
int dataSize = 0;
for (int i = 0; i < contextualKeywords_.size(); i++) {
dataSize += computeStringSizeNoTag(contextualKeywords_.getRaw(i));
}
size += dataSize;
size += 1 * getContextualKeywordsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < similarDestinationIds_.size(); i++) {
dataSize += computeStringSizeNoTag(similarDestinationIds_.getRaw(i));
}
size += dataSize;
size += 1 * getSimilarDestinationIdsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageUrl_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, imageUrl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(androidAppLink_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, androidAppLink_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iosAppLink_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, iosAppLink_);
}
if (iosAppStoreId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(17, 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.DynamicTravelAsset)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.DynamicTravelAsset other = (com.google.ads.googleads.v17.common.DynamicTravelAsset) obj;
if (!getDestinationId()
.equals(other.getDestinationId())) return false;
if (!getOriginId()
.equals(other.getOriginId())) return false;
if (!getTitle()
.equals(other.getTitle())) return false;
if (!getDestinationName()
.equals(other.getDestinationName())) return false;
if (!getDestinationAddress()
.equals(other.getDestinationAddress())) return false;
if (!getOriginName()
.equals(other.getOriginName())) return false;
if (!getPrice()
.equals(other.getPrice())) return false;
if (!getSalePrice()
.equals(other.getSalePrice())) return false;
if (!getFormattedPrice()
.equals(other.getFormattedPrice())) return false;
if (!getFormattedSalePrice()
.equals(other.getFormattedSalePrice())) return false;
if (!getCategory()
.equals(other.getCategory())) return false;
if (!getContextualKeywordsList()
.equals(other.getContextualKeywordsList())) return false;
if (!getSimilarDestinationIdsList()
.equals(other.getSimilarDestinationIdsList())) return false;
if (!getImageUrl()
.equals(other.getImageUrl())) return false;
if (!getAndroidAppLink()
.equals(other.getAndroidAppLink())) 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) + DESTINATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getDestinationId().hashCode();
hash = (37 * hash) + ORIGIN_ID_FIELD_NUMBER;
hash = (53 * hash) + getOriginId().hashCode();
hash = (37 * hash) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
hash = (37 * hash) + DESTINATION_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDestinationName().hashCode();
hash = (37 * hash) + DESTINATION_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getDestinationAddress().hashCode();
hash = (37 * hash) + ORIGIN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getOriginName().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) + 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) + CATEGORY_FIELD_NUMBER;
hash = (53 * hash) + getCategory().hashCode();
if (getContextualKeywordsCount() > 0) {
hash = (37 * hash) + CONTEXTUAL_KEYWORDS_FIELD_NUMBER;
hash = (53 * hash) + getContextualKeywordsList().hashCode();
}
if (getSimilarDestinationIdsCount() > 0) {
hash = (37 * hash) + SIMILAR_DESTINATION_IDS_FIELD_NUMBER;
hash = (53 * hash) + getSimilarDestinationIdsList().hashCode();
}
hash = (37 * hash) + IMAGE_URL_FIELD_NUMBER;
hash = (53 * hash) + getImageUrl().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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.DynamicTravelAsset parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.DynamicTravelAsset 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.DynamicTravelAsset parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.DynamicTravelAsset 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.DynamicTravelAsset parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.DynamicTravelAsset 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.DynamicTravelAsset 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.DynamicTravelAsset 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.DynamicTravelAsset 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.DynamicTravelAsset 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.DynamicTravelAsset 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.DynamicTravelAsset 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.DynamicTravelAsset 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 travel asset.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.DynamicTravelAsset}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.DynamicTravelAsset)
com.google.ads.googleads.v17.common.DynamicTravelAssetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_DynamicTravelAsset_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_DynamicTravelAsset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.DynamicTravelAsset.class, com.google.ads.googleads.v17.common.DynamicTravelAsset.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.DynamicTravelAsset.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
destinationId_ = "";
originId_ = "";
title_ = "";
destinationName_ = "";
destinationAddress_ = "";
originName_ = "";
price_ = "";
salePrice_ = "";
formattedPrice_ = "";
formattedSalePrice_ = "";
category_ = "";
contextualKeywords_ =
com.google.protobuf.LazyStringArrayList.emptyList();
similarDestinationIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
imageUrl_ = "";
androidAppLink_ = "";
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_DynamicTravelAsset_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicTravelAsset getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.DynamicTravelAsset.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicTravelAsset build() {
com.google.ads.googleads.v17.common.DynamicTravelAsset result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicTravelAsset buildPartial() {
com.google.ads.googleads.v17.common.DynamicTravelAsset result = new com.google.ads.googleads.v17.common.DynamicTravelAsset(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.common.DynamicTravelAsset result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.destinationId_ = destinationId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.originId_ = originId_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.title_ = title_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.destinationName_ = destinationName_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.destinationAddress_ = destinationAddress_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.originName_ = originName_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.price_ = price_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.salePrice_ = salePrice_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.formattedPrice_ = formattedPrice_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.formattedSalePrice_ = formattedSalePrice_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.category_ = category_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
contextualKeywords_.makeImmutable();
result.contextualKeywords_ = contextualKeywords_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
similarDestinationIds_.makeImmutable();
result.similarDestinationIds_ = similarDestinationIds_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.imageUrl_ = imageUrl_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.androidAppLink_ = androidAppLink_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.iosAppLink_ = iosAppLink_;
}
if (((from_bitField0_ & 0x00010000) != 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.DynamicTravelAsset) {
return mergeFrom((com.google.ads.googleads.v17.common.DynamicTravelAsset)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.DynamicTravelAsset other) {
if (other == com.google.ads.googleads.v17.common.DynamicTravelAsset.getDefaultInstance()) return this;
if (!other.getDestinationId().isEmpty()) {
destinationId_ = other.destinationId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getOriginId().isEmpty()) {
originId_ = other.originId_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getTitle().isEmpty()) {
title_ = other.title_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getDestinationName().isEmpty()) {
destinationName_ = other.destinationName_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getDestinationAddress().isEmpty()) {
destinationAddress_ = other.destinationAddress_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getOriginName().isEmpty()) {
originName_ = other.originName_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getPrice().isEmpty()) {
price_ = other.price_;
bitField0_ |= 0x00000040;
onChanged();
}
if (!other.getSalePrice().isEmpty()) {
salePrice_ = other.salePrice_;
bitField0_ |= 0x00000080;
onChanged();
}
if (!other.getFormattedPrice().isEmpty()) {
formattedPrice_ = other.formattedPrice_;
bitField0_ |= 0x00000100;
onChanged();
}
if (!other.getFormattedSalePrice().isEmpty()) {
formattedSalePrice_ = other.formattedSalePrice_;
bitField0_ |= 0x00000200;
onChanged();
}
if (!other.getCategory().isEmpty()) {
category_ = other.category_;
bitField0_ |= 0x00000400;
onChanged();
}
if (!other.contextualKeywords_.isEmpty()) {
if (contextualKeywords_.isEmpty()) {
contextualKeywords_ = other.contextualKeywords_;
bitField0_ |= 0x00000800;
} else {
ensureContextualKeywordsIsMutable();
contextualKeywords_.addAll(other.contextualKeywords_);
}
onChanged();
}
if (!other.similarDestinationIds_.isEmpty()) {
if (similarDestinationIds_.isEmpty()) {
similarDestinationIds_ = other.similarDestinationIds_;
bitField0_ |= 0x00001000;
} else {
ensureSimilarDestinationIdsIsMutable();
similarDestinationIds_.addAll(other.similarDestinationIds_);
}
onChanged();
}
if (!other.getImageUrl().isEmpty()) {
imageUrl_ = other.imageUrl_;
bitField0_ |= 0x00002000;
onChanged();
}
if (!other.getAndroidAppLink().isEmpty()) {
androidAppLink_ = other.androidAppLink_;
bitField0_ |= 0x00004000;
onChanged();
}
if (!other.getIosAppLink().isEmpty()) {
iosAppLink_ = other.iosAppLink_;
bitField0_ |= 0x00008000;
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: {
destinationId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
originId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
title_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
destinationName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
destinationAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
originName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
price_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
salePrice_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 66
case 74: {
formattedPrice_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 74
case 82: {
formattedSalePrice_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 82
case 90: {
category_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
break;
} // case 90
case 98: {
java.lang.String s = input.readStringRequireUtf8();
ensureContextualKeywordsIsMutable();
contextualKeywords_.add(s);
break;
} // case 98
case 106: {
java.lang.String s = input.readStringRequireUtf8();
ensureSimilarDestinationIdsIsMutable();
similarDestinationIds_.add(s);
break;
} // case 106
case 114: {
imageUrl_ = input.readStringRequireUtf8();
bitField0_ |= 0x00002000;
break;
} // case 114
case 122: {
androidAppLink_ = input.readStringRequireUtf8();
bitField0_ |= 0x00004000;
break;
} // case 122
case 130: {
iosAppLink_ = input.readStringRequireUtf8();
bitField0_ |= 0x00008000;
break;
} // case 130
case 136: {
iosAppStoreId_ = input.readInt64();
bitField0_ |= 0x00010000;
break;
} // case 136
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 destinationId_ = "";
/**
*
* Required. Destination ID which can be any sequence of letters and digits,
* and must be unique and match the values of remarketing tag. Required.
*
*
* string destination_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The destinationId.
*/
public java.lang.String getDestinationId() {
java.lang.Object ref = destinationId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
destinationId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required. Destination ID which can be any sequence of letters and digits,
* and must be unique and match the values of remarketing tag. Required.
*
*
* string destination_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The bytes for destinationId.
*/
public com.google.protobuf.ByteString
getDestinationIdBytes() {
java.lang.Object ref = destinationId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
destinationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required. Destination ID which can be any sequence of letters and digits,
* and must be unique and match the values of remarketing tag. Required.
*
*
* string destination_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @param value The destinationId to set.
* @return This builder for chaining.
*/
public Builder setDestinationId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
destinationId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Required. Destination ID which can be any sequence of letters and digits,
* and must be unique and match the values of remarketing tag. Required.
*
*
* string destination_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @return This builder for chaining.
*/
public Builder clearDestinationId() {
destinationId_ = getDefaultInstance().getDestinationId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Required. Destination ID which can be any sequence of letters and digits,
* and must be unique and match the values of remarketing tag. Required.
*
*
* string destination_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @param value The bytes for destinationId to set.
* @return This builder for chaining.
*/
public Builder setDestinationIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
destinationId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object originId_ = "";
/**
*
* Origin ID which can be any sequence of letters and digits. The ID sequence
* (destination ID + origin ID) must be unique.
*
*
* string origin_id = 2;
* @return The originId.
*/
public java.lang.String getOriginId() {
java.lang.Object ref = originId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
originId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Origin ID which can be any sequence of letters and digits. The ID sequence
* (destination ID + origin ID) must be unique.
*
*
* string origin_id = 2;
* @return The bytes for originId.
*/
public com.google.protobuf.ByteString
getOriginIdBytes() {
java.lang.Object ref = originId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
originId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Origin ID which can be any sequence of letters and digits. The ID sequence
* (destination ID + origin ID) must be unique.
*
*
* string origin_id = 2;
* @param value The originId to set.
* @return This builder for chaining.
*/
public Builder setOriginId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
originId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Origin ID which can be any sequence of letters and digits. The ID sequence
* (destination ID + origin ID) must be unique.
*
*
* string origin_id = 2;
* @return This builder for chaining.
*/
public Builder clearOriginId() {
originId_ = getDefaultInstance().getOriginId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Origin ID which can be any sequence of letters and digits. The ID sequence
* (destination ID + origin ID) must be unique.
*
*
* string origin_id = 2;
* @param value The bytes for originId to set.
* @return This builder for chaining.
*/
public Builder setOriginIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
originId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object title_ = "";
/**
*
* Required. Title, for example, Book your train ticket. Required.
*
*
* string title = 3 [(.google.api.field_behavior) = REQUIRED];
* @return The title.
*/
public java.lang.String getTitle() {
java.lang.Object ref = title_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
title_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required. Title, for example, Book your train ticket. Required.
*
*
* string title = 3 [(.google.api.field_behavior) = REQUIRED];
* @return The bytes for title.
*/
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required. Title, for example, Book your train ticket. Required.
*
*
* string title = 3 [(.google.api.field_behavior) = REQUIRED];
* @param value The title to set.
* @return This builder for chaining.
*/
public Builder setTitle(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
title_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Required. Title, for example, Book your train ticket. Required.
*
*
* string title = 3 [(.google.api.field_behavior) = REQUIRED];
* @return This builder for chaining.
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Required. Title, for example, Book your train ticket. Required.
*
*
* string title = 3 [(.google.api.field_behavior) = REQUIRED];
* @param value The bytes for title to set.
* @return This builder for chaining.
*/
public Builder setTitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
title_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object destinationName_ = "";
/**
*
* Destination name, for example, Paris.
*
*
* 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, Paris.
*
*
* 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, Paris.
*
*
* 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, Paris.
*
*
* 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, Paris.
*
*
* 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 destinationAddress_ = "";
/**
*
* Destination 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 destination_address = 5;
* @return The destinationAddress.
*/
public java.lang.String getDestinationAddress() {
java.lang.Object ref = destinationAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
destinationAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Destination 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 destination_address = 5;
* @return The bytes for destinationAddress.
*/
public com.google.protobuf.ByteString
getDestinationAddressBytes() {
java.lang.Object ref = destinationAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
destinationAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Destination 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 destination_address = 5;
* @param value The destinationAddress to set.
* @return This builder for chaining.
*/
public Builder setDestinationAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
destinationAddress_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Destination 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 destination_address = 5;
* @return This builder for chaining.
*/
public Builder clearDestinationAddress() {
destinationAddress_ = getDefaultInstance().getDestinationAddress();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* Destination 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 destination_address = 5;
* @param value The bytes for destinationAddress to set.
* @return This builder for chaining.
*/
public Builder setDestinationAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
destinationAddress_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object originName_ = "";
/**
*
* Origin name, for example, London.
*
*
* string origin_name = 6;
* @return The originName.
*/
public java.lang.String getOriginName() {
java.lang.Object ref = originName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
originName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Origin name, for example, London.
*
*
* string origin_name = 6;
* @return The bytes for originName.
*/
public com.google.protobuf.ByteString
getOriginNameBytes() {
java.lang.Object ref = originName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
originName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Origin name, for example, London.
*
*
* string origin_name = 6;
* @param value The originName to set.
* @return This builder for chaining.
*/
public Builder setOriginName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
originName_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Origin name, for example, London.
*
*
* string origin_name = 6;
* @return This builder for chaining.
*/
public Builder clearOriginName() {
originName_ = getDefaultInstance().getOriginName();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* Origin name, for example, London.
*
*
* string origin_name = 6;
* @param value The bytes for originName to set.
* @return This builder for chaining.
*/
public Builder setOriginNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
originName_ = value;
bitField0_ |= 0x00000020;
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 = 7;
* @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 = 7;
* @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 = 7;
* @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_ |= 0x00000040;
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 = 7;
* @return This builder for chaining.
*/
public Builder clearPrice() {
price_ = getDefaultInstance().getPrice();
bitField0_ = (bitField0_ & ~0x00000040);
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 = 7;
* @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_ |= 0x00000040;
onChanged();
return this;
}
private java.lang.Object salePrice_ = "";
/**
*
* Sale price which can be a 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 = 8;
* @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 a 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 = 8;
* @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 a 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 = 8;
* @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_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Sale price which can be a 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 = 8;
* @return This builder for chaining.
*/
public Builder clearSalePrice() {
salePrice_ = getDefaultInstance().getSalePrice();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
* Sale price which can be a 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 = 8;
* @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_ |= 0x00000080;
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 = 9;
* @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 = 9;
* @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 = 9;
* @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_ |= 0x00000100;
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 = 9;
* @return This builder for chaining.
*/
public Builder clearFormattedPrice() {
formattedPrice_ = getDefaultInstance().getFormattedPrice();
bitField0_ = (bitField0_ & ~0x00000100);
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 = 9;
* @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_ |= 0x00000100;
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 = 10;
* @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 = 10;
* @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 = 10;
* @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_ |= 0x00000200;
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 = 10;
* @return This builder for chaining.
*/
public Builder clearFormattedSalePrice() {
formattedSalePrice_ = getDefaultInstance().getFormattedSalePrice();
bitField0_ = (bitField0_ & ~0x00000200);
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 = 10;
* @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_ |= 0x00000200;
onChanged();
return this;
}
private java.lang.Object category_ = "";
/**
*
* Category, for example, Express.
*
*
* string category = 11;
* @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, Express.
*
*
* string category = 11;
* @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, Express.
*
*
* string category = 11;
* @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_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* Category, for example, Express.
*
*
* string category = 11;
* @return This builder for chaining.
*/
public Builder clearCategory() {
category_ = getDefaultInstance().getCategory();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
*
* Category, for example, Express.
*
*
* string category = 11;
* @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_ |= 0x00000400;
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_ |= 0x00000800;
}
/**
*
* Contextual keywords, for example, Paris trains.
*
*
* repeated string contextual_keywords = 12;
* @return A list containing the contextualKeywords.
*/
public com.google.protobuf.ProtocolStringList
getContextualKeywordsList() {
contextualKeywords_.makeImmutable();
return contextualKeywords_;
}
/**
*
* Contextual keywords, for example, Paris trains.
*
*
* repeated string contextual_keywords = 12;
* @return The count of contextualKeywords.
*/
public int getContextualKeywordsCount() {
return contextualKeywords_.size();
}
/**
*
* Contextual keywords, for example, Paris trains.
*
*
* repeated string contextual_keywords = 12;
* @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, Paris trains.
*
*
* repeated string contextual_keywords = 12;
* @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, Paris trains.
*
*
* repeated string contextual_keywords = 12;
* @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_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* Contextual keywords, for example, Paris trains.
*
*
* repeated string contextual_keywords = 12;
* @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_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* Contextual keywords, for example, Paris trains.
*
*
* repeated string contextual_keywords = 12;
* @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_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* Contextual keywords, for example, Paris trains.
*
*
* repeated string contextual_keywords = 12;
* @return This builder for chaining.
*/
public Builder clearContextualKeywords() {
contextualKeywords_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);;
onChanged();
return this;
}
/**
*
* Contextual keywords, for example, Paris trains.
*
*
* repeated string contextual_keywords = 12;
* @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_ |= 0x00000800;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList similarDestinationIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureSimilarDestinationIdsIsMutable() {
if (!similarDestinationIds_.isModifiable()) {
similarDestinationIds_ = new com.google.protobuf.LazyStringArrayList(similarDestinationIds_);
}
bitField0_ |= 0x00001000;
}
/**
*
* Similar destination IDs, for example, NYC.
*
*
* repeated string similar_destination_ids = 13;
* @return A list containing the similarDestinationIds.
*/
public com.google.protobuf.ProtocolStringList
getSimilarDestinationIdsList() {
similarDestinationIds_.makeImmutable();
return similarDestinationIds_;
}
/**
*
* Similar destination IDs, for example, NYC.
*
*
* repeated string similar_destination_ids = 13;
* @return The count of similarDestinationIds.
*/
public int getSimilarDestinationIdsCount() {
return similarDestinationIds_.size();
}
/**
*
* Similar destination IDs, for example, NYC.
*
*
* repeated string similar_destination_ids = 13;
* @param index The index of the element to return.
* @return The similarDestinationIds at the given index.
*/
public java.lang.String getSimilarDestinationIds(int index) {
return similarDestinationIds_.get(index);
}
/**
*
* Similar destination IDs, for example, NYC.
*
*
* repeated string similar_destination_ids = 13;
* @param index The index of the value to return.
* @return The bytes of the similarDestinationIds at the given index.
*/
public com.google.protobuf.ByteString
getSimilarDestinationIdsBytes(int index) {
return similarDestinationIds_.getByteString(index);
}
/**
*
* Similar destination IDs, for example, NYC.
*
*
* repeated string similar_destination_ids = 13;
* @param index The index to set the value at.
* @param value The similarDestinationIds to set.
* @return This builder for chaining.
*/
public Builder setSimilarDestinationIds(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureSimilarDestinationIdsIsMutable();
similarDestinationIds_.set(index, value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
* Similar destination IDs, for example, NYC.
*
*
* repeated string similar_destination_ids = 13;
* @param value The similarDestinationIds to add.
* @return This builder for chaining.
*/
public Builder addSimilarDestinationIds(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureSimilarDestinationIdsIsMutable();
similarDestinationIds_.add(value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
* Similar destination IDs, for example, NYC.
*
*
* repeated string similar_destination_ids = 13;
* @param values The similarDestinationIds to add.
* @return This builder for chaining.
*/
public Builder addAllSimilarDestinationIds(
java.lang.Iterable values) {
ensureSimilarDestinationIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, similarDestinationIds_);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
* Similar destination IDs, for example, NYC.
*
*
* repeated string similar_destination_ids = 13;
* @return This builder for chaining.
*/
public Builder clearSimilarDestinationIds() {
similarDestinationIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);;
onChanged();
return this;
}
/**
*
* Similar destination IDs, for example, NYC.
*
*
* repeated string similar_destination_ids = 13;
* @param value The bytes of the similarDestinationIds to add.
* @return This builder for chaining.
*/
public Builder addSimilarDestinationIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureSimilarDestinationIdsIsMutable();
similarDestinationIds_.add(value);
bitField0_ |= 0x00001000;
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 = 14;
* @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 = 14;
* @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 = 14;
* @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_ |= 0x00002000;
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 = 14;
* @return This builder for chaining.
*/
public Builder clearImageUrl() {
imageUrl_ = getDefaultInstance().getImageUrl();
bitField0_ = (bitField0_ & ~0x00002000);
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 = 14;
* @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_ |= 0x00002000;
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 = 15;
* @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 = 15;
* @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 = 15;
* @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_ |= 0x00004000;
onChanged();
return this;
}
/**
*
* Android deep link, for example,
* android-app://com.example.android/http/example.com/gizmos?1234.
*
*
* string android_app_link = 15;
* @return This builder for chaining.
*/
public Builder clearAndroidAppLink() {
androidAppLink_ = getDefaultInstance().getAndroidAppLink();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
/**
*
* Android deep link, for example,
* android-app://com.example.android/http/example.com/gizmos?1234.
*
*
* string android_app_link = 15;
* @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_ |= 0x00004000;
onChanged();
return this;
}
private java.lang.Object iosAppLink_ = "";
/**
*
* iOS deep link, for example, exampleApp://content/page.
*
*
* string ios_app_link = 16;
* @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 = 16;
* @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 = 16;
* @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_ |= 0x00008000;
onChanged();
return this;
}
/**
*
* iOS deep link, for example, exampleApp://content/page.
*
*
* string ios_app_link = 16;
* @return This builder for chaining.
*/
public Builder clearIosAppLink() {
iosAppLink_ = getDefaultInstance().getIosAppLink();
bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
return this;
}
/**
*
* iOS deep link, for example, exampleApp://content/page.
*
*
* string ios_app_link = 16;
* @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_ |= 0x00008000;
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 = 17;
* @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 = 17;
* @param value The iosAppStoreId to set.
* @return This builder for chaining.
*/
public Builder setIosAppStoreId(long value) {
iosAppStoreId_ = value;
bitField0_ |= 0x00010000;
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 = 17;
* @return This builder for chaining.
*/
public Builder clearIosAppStoreId() {
bitField0_ = (bitField0_ & ~0x00010000);
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.DynamicTravelAsset)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.DynamicTravelAsset)
private static final com.google.ads.googleads.v17.common.DynamicTravelAsset DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.DynamicTravelAsset();
}
public static com.google.ads.googleads.v17.common.DynamicTravelAsset getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DynamicTravelAsset 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.DynamicTravelAsset getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy