com.google.ads.googleads.v17.resources.Asset 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/resources/asset.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.resources;
/**
*
* Asset is a part of an ad which can be shared across multiple ads.
* It can be an image (ImageAsset), a video (YoutubeVideoAsset), etc.
* Assets are immutable and cannot be removed. To stop an asset from serving,
* remove the asset from the entity that is using it.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.Asset}
*/
public final class Asset extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.Asset)
AssetOrBuilder {
private static final long serialVersionUID = 0L;
// Use Asset.newBuilder() to construct.
private Asset(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Asset() {
resourceName_ = "";
name_ = "";
type_ = 0;
finalUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
finalMobileUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
trackingUrlTemplate_ = "";
urlCustomParameters_ = java.util.Collections.emptyList();
finalUrlSuffix_ = "";
source_ = 0;
fieldTypePolicySummaries_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Asset();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.AssetProto.internal_static_google_ads_googleads_v17_resources_Asset_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.AssetProto.internal_static_google_ads_googleads_v17_resources_Asset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.Asset.class, com.google.ads.googleads.v17.resources.Asset.Builder.class);
}
private int bitField0_;
private int assetDataCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object assetData_;
public enum AssetDataCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
YOUTUBE_VIDEO_ASSET(5),
MEDIA_BUNDLE_ASSET(6),
IMAGE_ASSET(7),
TEXT_ASSET(8),
LEAD_FORM_ASSET(9),
BOOK_ON_GOOGLE_ASSET(10),
PROMOTION_ASSET(15),
CALLOUT_ASSET(20),
STRUCTURED_SNIPPET_ASSET(21),
SITELINK_ASSET(22),
PAGE_FEED_ASSET(23),
DYNAMIC_EDUCATION_ASSET(24),
MOBILE_APP_ASSET(25),
HOTEL_CALLOUT_ASSET(26),
CALL_ASSET(27),
PRICE_ASSET(28),
CALL_TO_ACTION_ASSET(29),
DYNAMIC_REAL_ESTATE_ASSET(30),
DYNAMIC_CUSTOM_ASSET(31),
DYNAMIC_HOTELS_AND_RENTALS_ASSET(32),
DYNAMIC_FLIGHTS_ASSET(33),
DEMAND_GEN_CAROUSEL_CARD_ASSET(50),
DYNAMIC_TRAVEL_ASSET(35),
DYNAMIC_LOCAL_ASSET(36),
DYNAMIC_JOBS_ASSET(37),
LOCATION_ASSET(39),
HOTEL_PROPERTY_ASSET(41),
ASSETDATA_NOT_SET(0);
private final int value;
private AssetDataCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AssetDataCase valueOf(int value) {
return forNumber(value);
}
public static AssetDataCase forNumber(int value) {
switch (value) {
case 5: return YOUTUBE_VIDEO_ASSET;
case 6: return MEDIA_BUNDLE_ASSET;
case 7: return IMAGE_ASSET;
case 8: return TEXT_ASSET;
case 9: return LEAD_FORM_ASSET;
case 10: return BOOK_ON_GOOGLE_ASSET;
case 15: return PROMOTION_ASSET;
case 20: return CALLOUT_ASSET;
case 21: return STRUCTURED_SNIPPET_ASSET;
case 22: return SITELINK_ASSET;
case 23: return PAGE_FEED_ASSET;
case 24: return DYNAMIC_EDUCATION_ASSET;
case 25: return MOBILE_APP_ASSET;
case 26: return HOTEL_CALLOUT_ASSET;
case 27: return CALL_ASSET;
case 28: return PRICE_ASSET;
case 29: return CALL_TO_ACTION_ASSET;
case 30: return DYNAMIC_REAL_ESTATE_ASSET;
case 31: return DYNAMIC_CUSTOM_ASSET;
case 32: return DYNAMIC_HOTELS_AND_RENTALS_ASSET;
case 33: return DYNAMIC_FLIGHTS_ASSET;
case 50: return DEMAND_GEN_CAROUSEL_CARD_ASSET;
case 35: return DYNAMIC_TRAVEL_ASSET;
case 36: return DYNAMIC_LOCAL_ASSET;
case 37: return DYNAMIC_JOBS_ASSET;
case 39: return LOCATION_ASSET;
case 41: return HOTEL_PROPERTY_ASSET;
case 0: return ASSETDATA_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public AssetDataCase
getAssetDataCase() {
return AssetDataCase.forNumber(
assetDataCase_);
}
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object resourceName_ = "";
/**
*
* Immutable. The resource name of the asset.
* Asset resource names have the form:
*
* `customers/{customer_id}/assets/{asset_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The resourceName.
*/
@java.lang.Override
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
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();
resourceName_ = s;
return s;
}
}
/**
*
* Immutable. The resource name of the asset.
* Asset resource names have the form:
*
* `customers/{customer_id}/assets/{asset_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for resourceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ID_FIELD_NUMBER = 11;
private long id_ = 0L;
/**
*
* Output only. The ID of the asset.
*
*
* optional int64 id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The ID of the asset.
*
*
* optional int64 id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int NAME_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* Optional name of the asset.
*
*
* optional string name = 12;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Optional name of the asset.
*
*
* optional string name = 12;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
* Optional name of the asset.
*
*
* optional string name = 12;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 4;
private int type_ = 0;
/**
*
* Output only. Type of the asset.
*
*
* .google.ads.googleads.v17.enums.AssetTypeEnum.AssetType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Output only. Type of the asset.
*
*
* .google.ads.googleads.v17.enums.AssetTypeEnum.AssetType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The type.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.AssetTypeEnum.AssetType getType() {
com.google.ads.googleads.v17.enums.AssetTypeEnum.AssetType result = com.google.ads.googleads.v17.enums.AssetTypeEnum.AssetType.forNumber(type_);
return result == null ? com.google.ads.googleads.v17.enums.AssetTypeEnum.AssetType.UNRECOGNIZED : result;
}
public static final int FINAL_URLS_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList finalUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* A list of possible final URLs after all cross domain redirects.
*
*
* repeated string final_urls = 14;
* @return A list containing the finalUrls.
*/
public com.google.protobuf.ProtocolStringList
getFinalUrlsList() {
return finalUrls_;
}
/**
*
* A list of possible final URLs after all cross domain redirects.
*
*
* repeated string final_urls = 14;
* @return The count of finalUrls.
*/
public int getFinalUrlsCount() {
return finalUrls_.size();
}
/**
*
* A list of possible final URLs after all cross domain redirects.
*
*
* repeated string final_urls = 14;
* @param index The index of the element to return.
* @return The finalUrls at the given index.
*/
public java.lang.String getFinalUrls(int index) {
return finalUrls_.get(index);
}
/**
*
* A list of possible final URLs after all cross domain redirects.
*
*
* repeated string final_urls = 14;
* @param index The index of the value to return.
* @return The bytes of the finalUrls at the given index.
*/
public com.google.protobuf.ByteString
getFinalUrlsBytes(int index) {
return finalUrls_.getByteString(index);
}
public static final int FINAL_MOBILE_URLS_FIELD_NUMBER = 16;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList finalMobileUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 16;
* @return A list containing the finalMobileUrls.
*/
public com.google.protobuf.ProtocolStringList
getFinalMobileUrlsList() {
return finalMobileUrls_;
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 16;
* @return The count of finalMobileUrls.
*/
public int getFinalMobileUrlsCount() {
return finalMobileUrls_.size();
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 16;
* @param index The index of the element to return.
* @return The finalMobileUrls at the given index.
*/
public java.lang.String getFinalMobileUrls(int index) {
return finalMobileUrls_.get(index);
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 16;
* @param index The index of the value to return.
* @return The bytes of the finalMobileUrls at the given index.
*/
public com.google.protobuf.ByteString
getFinalMobileUrlsBytes(int index) {
return finalMobileUrls_.getByteString(index);
}
public static final int TRACKING_URL_TEMPLATE_FIELD_NUMBER = 17;
@SuppressWarnings("serial")
private volatile java.lang.Object trackingUrlTemplate_ = "";
/**
*
* URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 17;
* @return Whether the trackingUrlTemplate field is set.
*/
@java.lang.Override
public boolean hasTrackingUrlTemplate() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 17;
* @return The trackingUrlTemplate.
*/
@java.lang.Override
public java.lang.String getTrackingUrlTemplate() {
java.lang.Object ref = trackingUrlTemplate_;
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();
trackingUrlTemplate_ = s;
return s;
}
}
/**
*
* URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 17;
* @return The bytes for trackingUrlTemplate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTrackingUrlTemplateBytes() {
java.lang.Object ref = trackingUrlTemplate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingUrlTemplate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int URL_CUSTOM_PARAMETERS_FIELD_NUMBER = 18;
@SuppressWarnings("serial")
private java.util.List urlCustomParameters_;
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
@java.lang.Override
public java.util.List getUrlCustomParametersList() {
return urlCustomParameters_;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v17.common.CustomParameterOrBuilder>
getUrlCustomParametersOrBuilderList() {
return urlCustomParameters_;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
@java.lang.Override
public int getUrlCustomParametersCount() {
return urlCustomParameters_.size();
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.CustomParameter getUrlCustomParameters(int index) {
return urlCustomParameters_.get(index);
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.CustomParameterOrBuilder getUrlCustomParametersOrBuilder(
int index) {
return urlCustomParameters_.get(index);
}
public static final int FINAL_URL_SUFFIX_FIELD_NUMBER = 19;
@SuppressWarnings("serial")
private volatile java.lang.Object finalUrlSuffix_ = "";
/**
*
* URL template for appending params to landing page URLs served with parallel
* tracking.
*
*
* optional string final_url_suffix = 19;
* @return Whether the finalUrlSuffix field is set.
*/
@java.lang.Override
public boolean hasFinalUrlSuffix() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* URL template for appending params to landing page URLs served with parallel
* tracking.
*
*
* optional string final_url_suffix = 19;
* @return The finalUrlSuffix.
*/
@java.lang.Override
public java.lang.String getFinalUrlSuffix() {
java.lang.Object ref = finalUrlSuffix_;
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();
finalUrlSuffix_ = s;
return s;
}
}
/**
*
* URL template for appending params to landing page URLs served with parallel
* tracking.
*
*
* optional string final_url_suffix = 19;
* @return The bytes for finalUrlSuffix.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFinalUrlSuffixBytes() {
java.lang.Object ref = finalUrlSuffix_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
finalUrlSuffix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_FIELD_NUMBER = 38;
private int source_ = 0;
/**
*
* Output only. Source of the asset.
*
*
* .google.ads.googleads.v17.enums.AssetSourceEnum.AssetSource source = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for source.
*/
@java.lang.Override public int getSourceValue() {
return source_;
}
/**
*
* Output only. Source of the asset.
*
*
* .google.ads.googleads.v17.enums.AssetSourceEnum.AssetSource source = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The source.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.AssetSourceEnum.AssetSource getSource() {
com.google.ads.googleads.v17.enums.AssetSourceEnum.AssetSource result = com.google.ads.googleads.v17.enums.AssetSourceEnum.AssetSource.forNumber(source_);
return result == null ? com.google.ads.googleads.v17.enums.AssetSourceEnum.AssetSource.UNRECOGNIZED : result;
}
public static final int POLICY_SUMMARY_FIELD_NUMBER = 13;
private com.google.ads.googleads.v17.resources.AssetPolicySummary policySummary_;
/**
*
* Output only. Policy information for the asset.
*
*
* .google.ads.googleads.v17.resources.AssetPolicySummary policy_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the policySummary field is set.
*/
@java.lang.Override
public boolean hasPolicySummary() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Output only. Policy information for the asset.
*
*
* .google.ads.googleads.v17.resources.AssetPolicySummary policy_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The policySummary.
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.AssetPolicySummary getPolicySummary() {
return policySummary_ == null ? com.google.ads.googleads.v17.resources.AssetPolicySummary.getDefaultInstance() : policySummary_;
}
/**
*
* Output only. Policy information for the asset.
*
*
* .google.ads.googleads.v17.resources.AssetPolicySummary policy_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.AssetPolicySummaryOrBuilder getPolicySummaryOrBuilder() {
return policySummary_ == null ? com.google.ads.googleads.v17.resources.AssetPolicySummary.getDefaultInstance() : policySummary_;
}
public static final int FIELD_TYPE_POLICY_SUMMARIES_FIELD_NUMBER = 40;
@SuppressWarnings("serial")
private java.util.List fieldTypePolicySummaries_;
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List getFieldTypePolicySummariesList() {
return fieldTypePolicySummaries_;
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummaryOrBuilder>
getFieldTypePolicySummariesOrBuilderList() {
return fieldTypePolicySummaries_;
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public int getFieldTypePolicySummariesCount() {
return fieldTypePolicySummaries_.size();
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary getFieldTypePolicySummaries(int index) {
return fieldTypePolicySummaries_.get(index);
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummaryOrBuilder getFieldTypePolicySummariesOrBuilder(
int index) {
return fieldTypePolicySummaries_.get(index);
}
public static final int YOUTUBE_VIDEO_ASSET_FIELD_NUMBER = 5;
/**
*
* Immutable. A YouTube video asset.
*
*
* .google.ads.googleads.v17.common.YoutubeVideoAsset youtube_video_asset = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the youtubeVideoAsset field is set.
*/
@java.lang.Override
public boolean hasYoutubeVideoAsset() {
return assetDataCase_ == 5;
}
/**
*
* Immutable. A YouTube video asset.
*
*
* .google.ads.googleads.v17.common.YoutubeVideoAsset youtube_video_asset = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @return The youtubeVideoAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.YoutubeVideoAsset getYoutubeVideoAsset() {
if (assetDataCase_ == 5) {
return (com.google.ads.googleads.v17.common.YoutubeVideoAsset) assetData_;
}
return com.google.ads.googleads.v17.common.YoutubeVideoAsset.getDefaultInstance();
}
/**
*
* Immutable. A YouTube video asset.
*
*
* .google.ads.googleads.v17.common.YoutubeVideoAsset youtube_video_asset = 5 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.YoutubeVideoAssetOrBuilder getYoutubeVideoAssetOrBuilder() {
if (assetDataCase_ == 5) {
return (com.google.ads.googleads.v17.common.YoutubeVideoAsset) assetData_;
}
return com.google.ads.googleads.v17.common.YoutubeVideoAsset.getDefaultInstance();
}
public static final int MEDIA_BUNDLE_ASSET_FIELD_NUMBER = 6;
/**
*
* Immutable. A media bundle asset.
*
*
* .google.ads.googleads.v17.common.MediaBundleAsset media_bundle_asset = 6 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the mediaBundleAsset field is set.
*/
@java.lang.Override
public boolean hasMediaBundleAsset() {
return assetDataCase_ == 6;
}
/**
*
* Immutable. A media bundle asset.
*
*
* .google.ads.googleads.v17.common.MediaBundleAsset media_bundle_asset = 6 [(.google.api.field_behavior) = IMMUTABLE];
* @return The mediaBundleAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MediaBundleAsset getMediaBundleAsset() {
if (assetDataCase_ == 6) {
return (com.google.ads.googleads.v17.common.MediaBundleAsset) assetData_;
}
return com.google.ads.googleads.v17.common.MediaBundleAsset.getDefaultInstance();
}
/**
*
* Immutable. A media bundle asset.
*
*
* .google.ads.googleads.v17.common.MediaBundleAsset media_bundle_asset = 6 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MediaBundleAssetOrBuilder getMediaBundleAssetOrBuilder() {
if (assetDataCase_ == 6) {
return (com.google.ads.googleads.v17.common.MediaBundleAsset) assetData_;
}
return com.google.ads.googleads.v17.common.MediaBundleAsset.getDefaultInstance();
}
public static final int IMAGE_ASSET_FIELD_NUMBER = 7;
/**
*
* Output only. An image asset.
*
*
* .google.ads.googleads.v17.common.ImageAsset image_asset = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the imageAsset field is set.
*/
@java.lang.Override
public boolean hasImageAsset() {
return assetDataCase_ == 7;
}
/**
*
* Output only. An image asset.
*
*
* .google.ads.googleads.v17.common.ImageAsset image_asset = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The imageAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.ImageAsset getImageAsset() {
if (assetDataCase_ == 7) {
return (com.google.ads.googleads.v17.common.ImageAsset) assetData_;
}
return com.google.ads.googleads.v17.common.ImageAsset.getDefaultInstance();
}
/**
*
* Output only. An image asset.
*
*
* .google.ads.googleads.v17.common.ImageAsset image_asset = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.ImageAssetOrBuilder getImageAssetOrBuilder() {
if (assetDataCase_ == 7) {
return (com.google.ads.googleads.v17.common.ImageAsset) assetData_;
}
return com.google.ads.googleads.v17.common.ImageAsset.getDefaultInstance();
}
public static final int TEXT_ASSET_FIELD_NUMBER = 8;
/**
*
* Immutable. A text asset.
*
*
* .google.ads.googleads.v17.common.TextAsset text_asset = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the textAsset field is set.
*/
@java.lang.Override
public boolean hasTextAsset() {
return assetDataCase_ == 8;
}
/**
*
* Immutable. A text asset.
*
*
* .google.ads.googleads.v17.common.TextAsset text_asset = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return The textAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.TextAsset getTextAsset() {
if (assetDataCase_ == 8) {
return (com.google.ads.googleads.v17.common.TextAsset) assetData_;
}
return com.google.ads.googleads.v17.common.TextAsset.getDefaultInstance();
}
/**
*
* Immutable. A text asset.
*
*
* .google.ads.googleads.v17.common.TextAsset text_asset = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.TextAssetOrBuilder getTextAssetOrBuilder() {
if (assetDataCase_ == 8) {
return (com.google.ads.googleads.v17.common.TextAsset) assetData_;
}
return com.google.ads.googleads.v17.common.TextAsset.getDefaultInstance();
}
public static final int LEAD_FORM_ASSET_FIELD_NUMBER = 9;
/**
*
* A lead form asset.
*
*
* .google.ads.googleads.v17.common.LeadFormAsset lead_form_asset = 9;
* @return Whether the leadFormAsset field is set.
*/
@java.lang.Override
public boolean hasLeadFormAsset() {
return assetDataCase_ == 9;
}
/**
*
* A lead form asset.
*
*
* .google.ads.googleads.v17.common.LeadFormAsset lead_form_asset = 9;
* @return The leadFormAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.LeadFormAsset getLeadFormAsset() {
if (assetDataCase_ == 9) {
return (com.google.ads.googleads.v17.common.LeadFormAsset) assetData_;
}
return com.google.ads.googleads.v17.common.LeadFormAsset.getDefaultInstance();
}
/**
*
* A lead form asset.
*
*
* .google.ads.googleads.v17.common.LeadFormAsset lead_form_asset = 9;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.LeadFormAssetOrBuilder getLeadFormAssetOrBuilder() {
if (assetDataCase_ == 9) {
return (com.google.ads.googleads.v17.common.LeadFormAsset) assetData_;
}
return com.google.ads.googleads.v17.common.LeadFormAsset.getDefaultInstance();
}
public static final int BOOK_ON_GOOGLE_ASSET_FIELD_NUMBER = 10;
/**
*
* A book on google asset.
*
*
* .google.ads.googleads.v17.common.BookOnGoogleAsset book_on_google_asset = 10;
* @return Whether the bookOnGoogleAsset field is set.
*/
@java.lang.Override
public boolean hasBookOnGoogleAsset() {
return assetDataCase_ == 10;
}
/**
*
* A book on google asset.
*
*
* .google.ads.googleads.v17.common.BookOnGoogleAsset book_on_google_asset = 10;
* @return The bookOnGoogleAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.BookOnGoogleAsset getBookOnGoogleAsset() {
if (assetDataCase_ == 10) {
return (com.google.ads.googleads.v17.common.BookOnGoogleAsset) assetData_;
}
return com.google.ads.googleads.v17.common.BookOnGoogleAsset.getDefaultInstance();
}
/**
*
* A book on google asset.
*
*
* .google.ads.googleads.v17.common.BookOnGoogleAsset book_on_google_asset = 10;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.BookOnGoogleAssetOrBuilder getBookOnGoogleAssetOrBuilder() {
if (assetDataCase_ == 10) {
return (com.google.ads.googleads.v17.common.BookOnGoogleAsset) assetData_;
}
return com.google.ads.googleads.v17.common.BookOnGoogleAsset.getDefaultInstance();
}
public static final int PROMOTION_ASSET_FIELD_NUMBER = 15;
/**
*
* A promotion asset.
*
*
* .google.ads.googleads.v17.common.PromotionAsset promotion_asset = 15;
* @return Whether the promotionAsset field is set.
*/
@java.lang.Override
public boolean hasPromotionAsset() {
return assetDataCase_ == 15;
}
/**
*
* A promotion asset.
*
*
* .google.ads.googleads.v17.common.PromotionAsset promotion_asset = 15;
* @return The promotionAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.PromotionAsset getPromotionAsset() {
if (assetDataCase_ == 15) {
return (com.google.ads.googleads.v17.common.PromotionAsset) assetData_;
}
return com.google.ads.googleads.v17.common.PromotionAsset.getDefaultInstance();
}
/**
*
* A promotion asset.
*
*
* .google.ads.googleads.v17.common.PromotionAsset promotion_asset = 15;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.PromotionAssetOrBuilder getPromotionAssetOrBuilder() {
if (assetDataCase_ == 15) {
return (com.google.ads.googleads.v17.common.PromotionAsset) assetData_;
}
return com.google.ads.googleads.v17.common.PromotionAsset.getDefaultInstance();
}
public static final int CALLOUT_ASSET_FIELD_NUMBER = 20;
/**
*
* A callout asset.
*
*
* .google.ads.googleads.v17.common.CalloutAsset callout_asset = 20;
* @return Whether the calloutAsset field is set.
*/
@java.lang.Override
public boolean hasCalloutAsset() {
return assetDataCase_ == 20;
}
/**
*
* A callout asset.
*
*
* .google.ads.googleads.v17.common.CalloutAsset callout_asset = 20;
* @return The calloutAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.CalloutAsset getCalloutAsset() {
if (assetDataCase_ == 20) {
return (com.google.ads.googleads.v17.common.CalloutAsset) assetData_;
}
return com.google.ads.googleads.v17.common.CalloutAsset.getDefaultInstance();
}
/**
*
* A callout asset.
*
*
* .google.ads.googleads.v17.common.CalloutAsset callout_asset = 20;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.CalloutAssetOrBuilder getCalloutAssetOrBuilder() {
if (assetDataCase_ == 20) {
return (com.google.ads.googleads.v17.common.CalloutAsset) assetData_;
}
return com.google.ads.googleads.v17.common.CalloutAsset.getDefaultInstance();
}
public static final int STRUCTURED_SNIPPET_ASSET_FIELD_NUMBER = 21;
/**
*
* A structured snippet asset.
*
*
* .google.ads.googleads.v17.common.StructuredSnippetAsset structured_snippet_asset = 21;
* @return Whether the structuredSnippetAsset field is set.
*/
@java.lang.Override
public boolean hasStructuredSnippetAsset() {
return assetDataCase_ == 21;
}
/**
*
* A structured snippet asset.
*
*
* .google.ads.googleads.v17.common.StructuredSnippetAsset structured_snippet_asset = 21;
* @return The structuredSnippetAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.StructuredSnippetAsset getStructuredSnippetAsset() {
if (assetDataCase_ == 21) {
return (com.google.ads.googleads.v17.common.StructuredSnippetAsset) assetData_;
}
return com.google.ads.googleads.v17.common.StructuredSnippetAsset.getDefaultInstance();
}
/**
*
* A structured snippet asset.
*
*
* .google.ads.googleads.v17.common.StructuredSnippetAsset structured_snippet_asset = 21;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.StructuredSnippetAssetOrBuilder getStructuredSnippetAssetOrBuilder() {
if (assetDataCase_ == 21) {
return (com.google.ads.googleads.v17.common.StructuredSnippetAsset) assetData_;
}
return com.google.ads.googleads.v17.common.StructuredSnippetAsset.getDefaultInstance();
}
public static final int SITELINK_ASSET_FIELD_NUMBER = 22;
/**
*
* A sitelink asset.
*
*
* .google.ads.googleads.v17.common.SitelinkAsset sitelink_asset = 22;
* @return Whether the sitelinkAsset field is set.
*/
@java.lang.Override
public boolean hasSitelinkAsset() {
return assetDataCase_ == 22;
}
/**
*
* A sitelink asset.
*
*
* .google.ads.googleads.v17.common.SitelinkAsset sitelink_asset = 22;
* @return The sitelinkAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.SitelinkAsset getSitelinkAsset() {
if (assetDataCase_ == 22) {
return (com.google.ads.googleads.v17.common.SitelinkAsset) assetData_;
}
return com.google.ads.googleads.v17.common.SitelinkAsset.getDefaultInstance();
}
/**
*
* A sitelink asset.
*
*
* .google.ads.googleads.v17.common.SitelinkAsset sitelink_asset = 22;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.SitelinkAssetOrBuilder getSitelinkAssetOrBuilder() {
if (assetDataCase_ == 22) {
return (com.google.ads.googleads.v17.common.SitelinkAsset) assetData_;
}
return com.google.ads.googleads.v17.common.SitelinkAsset.getDefaultInstance();
}
public static final int PAGE_FEED_ASSET_FIELD_NUMBER = 23;
/**
*
* A page feed asset.
*
*
* .google.ads.googleads.v17.common.PageFeedAsset page_feed_asset = 23;
* @return Whether the pageFeedAsset field is set.
*/
@java.lang.Override
public boolean hasPageFeedAsset() {
return assetDataCase_ == 23;
}
/**
*
* A page feed asset.
*
*
* .google.ads.googleads.v17.common.PageFeedAsset page_feed_asset = 23;
* @return The pageFeedAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.PageFeedAsset getPageFeedAsset() {
if (assetDataCase_ == 23) {
return (com.google.ads.googleads.v17.common.PageFeedAsset) assetData_;
}
return com.google.ads.googleads.v17.common.PageFeedAsset.getDefaultInstance();
}
/**
*
* A page feed asset.
*
*
* .google.ads.googleads.v17.common.PageFeedAsset page_feed_asset = 23;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.PageFeedAssetOrBuilder getPageFeedAssetOrBuilder() {
if (assetDataCase_ == 23) {
return (com.google.ads.googleads.v17.common.PageFeedAsset) assetData_;
}
return com.google.ads.googleads.v17.common.PageFeedAsset.getDefaultInstance();
}
public static final int DYNAMIC_EDUCATION_ASSET_FIELD_NUMBER = 24;
/**
*
* A dynamic education asset.
*
*
* .google.ads.googleads.v17.common.DynamicEducationAsset dynamic_education_asset = 24;
* @return Whether the dynamicEducationAsset field is set.
*/
@java.lang.Override
public boolean hasDynamicEducationAsset() {
return assetDataCase_ == 24;
}
/**
*
* A dynamic education asset.
*
*
* .google.ads.googleads.v17.common.DynamicEducationAsset dynamic_education_asset = 24;
* @return The dynamicEducationAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicEducationAsset getDynamicEducationAsset() {
if (assetDataCase_ == 24) {
return (com.google.ads.googleads.v17.common.DynamicEducationAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicEducationAsset.getDefaultInstance();
}
/**
*
* A dynamic education asset.
*
*
* .google.ads.googleads.v17.common.DynamicEducationAsset dynamic_education_asset = 24;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicEducationAssetOrBuilder getDynamicEducationAssetOrBuilder() {
if (assetDataCase_ == 24) {
return (com.google.ads.googleads.v17.common.DynamicEducationAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicEducationAsset.getDefaultInstance();
}
public static final int MOBILE_APP_ASSET_FIELD_NUMBER = 25;
/**
*
* A mobile app asset.
*
*
* .google.ads.googleads.v17.common.MobileAppAsset mobile_app_asset = 25;
* @return Whether the mobileAppAsset field is set.
*/
@java.lang.Override
public boolean hasMobileAppAsset() {
return assetDataCase_ == 25;
}
/**
*
* A mobile app asset.
*
*
* .google.ads.googleads.v17.common.MobileAppAsset mobile_app_asset = 25;
* @return The mobileAppAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MobileAppAsset getMobileAppAsset() {
if (assetDataCase_ == 25) {
return (com.google.ads.googleads.v17.common.MobileAppAsset) assetData_;
}
return com.google.ads.googleads.v17.common.MobileAppAsset.getDefaultInstance();
}
/**
*
* A mobile app asset.
*
*
* .google.ads.googleads.v17.common.MobileAppAsset mobile_app_asset = 25;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MobileAppAssetOrBuilder getMobileAppAssetOrBuilder() {
if (assetDataCase_ == 25) {
return (com.google.ads.googleads.v17.common.MobileAppAsset) assetData_;
}
return com.google.ads.googleads.v17.common.MobileAppAsset.getDefaultInstance();
}
public static final int HOTEL_CALLOUT_ASSET_FIELD_NUMBER = 26;
/**
*
* A hotel callout asset.
*
*
* .google.ads.googleads.v17.common.HotelCalloutAsset hotel_callout_asset = 26;
* @return Whether the hotelCalloutAsset field is set.
*/
@java.lang.Override
public boolean hasHotelCalloutAsset() {
return assetDataCase_ == 26;
}
/**
*
* A hotel callout asset.
*
*
* .google.ads.googleads.v17.common.HotelCalloutAsset hotel_callout_asset = 26;
* @return The hotelCalloutAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.HotelCalloutAsset getHotelCalloutAsset() {
if (assetDataCase_ == 26) {
return (com.google.ads.googleads.v17.common.HotelCalloutAsset) assetData_;
}
return com.google.ads.googleads.v17.common.HotelCalloutAsset.getDefaultInstance();
}
/**
*
* A hotel callout asset.
*
*
* .google.ads.googleads.v17.common.HotelCalloutAsset hotel_callout_asset = 26;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.HotelCalloutAssetOrBuilder getHotelCalloutAssetOrBuilder() {
if (assetDataCase_ == 26) {
return (com.google.ads.googleads.v17.common.HotelCalloutAsset) assetData_;
}
return com.google.ads.googleads.v17.common.HotelCalloutAsset.getDefaultInstance();
}
public static final int CALL_ASSET_FIELD_NUMBER = 27;
/**
*
* A call asset.
*
*
* .google.ads.googleads.v17.common.CallAsset call_asset = 27;
* @return Whether the callAsset field is set.
*/
@java.lang.Override
public boolean hasCallAsset() {
return assetDataCase_ == 27;
}
/**
*
* A call asset.
*
*
* .google.ads.googleads.v17.common.CallAsset call_asset = 27;
* @return The callAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.CallAsset getCallAsset() {
if (assetDataCase_ == 27) {
return (com.google.ads.googleads.v17.common.CallAsset) assetData_;
}
return com.google.ads.googleads.v17.common.CallAsset.getDefaultInstance();
}
/**
*
* A call asset.
*
*
* .google.ads.googleads.v17.common.CallAsset call_asset = 27;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.CallAssetOrBuilder getCallAssetOrBuilder() {
if (assetDataCase_ == 27) {
return (com.google.ads.googleads.v17.common.CallAsset) assetData_;
}
return com.google.ads.googleads.v17.common.CallAsset.getDefaultInstance();
}
public static final int PRICE_ASSET_FIELD_NUMBER = 28;
/**
*
* A price asset.
*
*
* .google.ads.googleads.v17.common.PriceAsset price_asset = 28;
* @return Whether the priceAsset field is set.
*/
@java.lang.Override
public boolean hasPriceAsset() {
return assetDataCase_ == 28;
}
/**
*
* A price asset.
*
*
* .google.ads.googleads.v17.common.PriceAsset price_asset = 28;
* @return The priceAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.PriceAsset getPriceAsset() {
if (assetDataCase_ == 28) {
return (com.google.ads.googleads.v17.common.PriceAsset) assetData_;
}
return com.google.ads.googleads.v17.common.PriceAsset.getDefaultInstance();
}
/**
*
* A price asset.
*
*
* .google.ads.googleads.v17.common.PriceAsset price_asset = 28;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.PriceAssetOrBuilder getPriceAssetOrBuilder() {
if (assetDataCase_ == 28) {
return (com.google.ads.googleads.v17.common.PriceAsset) assetData_;
}
return com.google.ads.googleads.v17.common.PriceAsset.getDefaultInstance();
}
public static final int CALL_TO_ACTION_ASSET_FIELD_NUMBER = 29;
/**
*
* Immutable. A call to action asset.
*
*
* .google.ads.googleads.v17.common.CallToActionAsset call_to_action_asset = 29 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the callToActionAsset field is set.
*/
@java.lang.Override
public boolean hasCallToActionAsset() {
return assetDataCase_ == 29;
}
/**
*
* Immutable. A call to action asset.
*
*
* .google.ads.googleads.v17.common.CallToActionAsset call_to_action_asset = 29 [(.google.api.field_behavior) = IMMUTABLE];
* @return The callToActionAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.CallToActionAsset getCallToActionAsset() {
if (assetDataCase_ == 29) {
return (com.google.ads.googleads.v17.common.CallToActionAsset) assetData_;
}
return com.google.ads.googleads.v17.common.CallToActionAsset.getDefaultInstance();
}
/**
*
* Immutable. A call to action asset.
*
*
* .google.ads.googleads.v17.common.CallToActionAsset call_to_action_asset = 29 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.CallToActionAssetOrBuilder getCallToActionAssetOrBuilder() {
if (assetDataCase_ == 29) {
return (com.google.ads.googleads.v17.common.CallToActionAsset) assetData_;
}
return com.google.ads.googleads.v17.common.CallToActionAsset.getDefaultInstance();
}
public static final int DYNAMIC_REAL_ESTATE_ASSET_FIELD_NUMBER = 30;
/**
*
* A dynamic real estate asset.
*
*
* .google.ads.googleads.v17.common.DynamicRealEstateAsset dynamic_real_estate_asset = 30;
* @return Whether the dynamicRealEstateAsset field is set.
*/
@java.lang.Override
public boolean hasDynamicRealEstateAsset() {
return assetDataCase_ == 30;
}
/**
*
* A dynamic real estate asset.
*
*
* .google.ads.googleads.v17.common.DynamicRealEstateAsset dynamic_real_estate_asset = 30;
* @return The dynamicRealEstateAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicRealEstateAsset getDynamicRealEstateAsset() {
if (assetDataCase_ == 30) {
return (com.google.ads.googleads.v17.common.DynamicRealEstateAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicRealEstateAsset.getDefaultInstance();
}
/**
*
* A dynamic real estate asset.
*
*
* .google.ads.googleads.v17.common.DynamicRealEstateAsset dynamic_real_estate_asset = 30;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicRealEstateAssetOrBuilder getDynamicRealEstateAssetOrBuilder() {
if (assetDataCase_ == 30) {
return (com.google.ads.googleads.v17.common.DynamicRealEstateAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicRealEstateAsset.getDefaultInstance();
}
public static final int DYNAMIC_CUSTOM_ASSET_FIELD_NUMBER = 31;
/**
*
* A dynamic custom asset.
*
*
* .google.ads.googleads.v17.common.DynamicCustomAsset dynamic_custom_asset = 31;
* @return Whether the dynamicCustomAsset field is set.
*/
@java.lang.Override
public boolean hasDynamicCustomAsset() {
return assetDataCase_ == 31;
}
/**
*
* A dynamic custom asset.
*
*
* .google.ads.googleads.v17.common.DynamicCustomAsset dynamic_custom_asset = 31;
* @return The dynamicCustomAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicCustomAsset getDynamicCustomAsset() {
if (assetDataCase_ == 31) {
return (com.google.ads.googleads.v17.common.DynamicCustomAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicCustomAsset.getDefaultInstance();
}
/**
*
* A dynamic custom asset.
*
*
* .google.ads.googleads.v17.common.DynamicCustomAsset dynamic_custom_asset = 31;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicCustomAssetOrBuilder getDynamicCustomAssetOrBuilder() {
if (assetDataCase_ == 31) {
return (com.google.ads.googleads.v17.common.DynamicCustomAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicCustomAsset.getDefaultInstance();
}
public static final int DYNAMIC_HOTELS_AND_RENTALS_ASSET_FIELD_NUMBER = 32;
/**
*
* A dynamic hotels and rentals asset.
*
*
* .google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset dynamic_hotels_and_rentals_asset = 32;
* @return Whether the dynamicHotelsAndRentalsAsset field is set.
*/
@java.lang.Override
public boolean hasDynamicHotelsAndRentalsAsset() {
return assetDataCase_ == 32;
}
/**
*
* A dynamic hotels and rentals asset.
*
*
* .google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset dynamic_hotels_and_rentals_asset = 32;
* @return The dynamicHotelsAndRentalsAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset getDynamicHotelsAndRentalsAsset() {
if (assetDataCase_ == 32) {
return (com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset.getDefaultInstance();
}
/**
*
* A dynamic hotels and rentals asset.
*
*
* .google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset dynamic_hotels_and_rentals_asset = 32;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAssetOrBuilder getDynamicHotelsAndRentalsAssetOrBuilder() {
if (assetDataCase_ == 32) {
return (com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset.getDefaultInstance();
}
public static final int DYNAMIC_FLIGHTS_ASSET_FIELD_NUMBER = 33;
/**
*
* A dynamic flights asset.
*
*
* .google.ads.googleads.v17.common.DynamicFlightsAsset dynamic_flights_asset = 33;
* @return Whether the dynamicFlightsAsset field is set.
*/
@java.lang.Override
public boolean hasDynamicFlightsAsset() {
return assetDataCase_ == 33;
}
/**
*
* A dynamic flights asset.
*
*
* .google.ads.googleads.v17.common.DynamicFlightsAsset dynamic_flights_asset = 33;
* @return The dynamicFlightsAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicFlightsAsset getDynamicFlightsAsset() {
if (assetDataCase_ == 33) {
return (com.google.ads.googleads.v17.common.DynamicFlightsAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicFlightsAsset.getDefaultInstance();
}
/**
*
* A dynamic flights asset.
*
*
* .google.ads.googleads.v17.common.DynamicFlightsAsset dynamic_flights_asset = 33;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicFlightsAssetOrBuilder getDynamicFlightsAssetOrBuilder() {
if (assetDataCase_ == 33) {
return (com.google.ads.googleads.v17.common.DynamicFlightsAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicFlightsAsset.getDefaultInstance();
}
public static final int DEMAND_GEN_CAROUSEL_CARD_ASSET_FIELD_NUMBER = 50;
/**
*
* Immutable. A Demand Gen carousel card asset.
*
*
* .google.ads.googleads.v17.common.DemandGenCarouselCardAsset demand_gen_carousel_card_asset = 50 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the demandGenCarouselCardAsset field is set.
*/
@java.lang.Override
public boolean hasDemandGenCarouselCardAsset() {
return assetDataCase_ == 50;
}
/**
*
* Immutable. A Demand Gen carousel card asset.
*
*
* .google.ads.googleads.v17.common.DemandGenCarouselCardAsset demand_gen_carousel_card_asset = 50 [(.google.api.field_behavior) = IMMUTABLE];
* @return The demandGenCarouselCardAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset getDemandGenCarouselCardAsset() {
if (assetDataCase_ == 50) {
return (com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset.getDefaultInstance();
}
/**
*
* Immutable. A Demand Gen carousel card asset.
*
*
* .google.ads.googleads.v17.common.DemandGenCarouselCardAsset demand_gen_carousel_card_asset = 50 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DemandGenCarouselCardAssetOrBuilder getDemandGenCarouselCardAssetOrBuilder() {
if (assetDataCase_ == 50) {
return (com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset.getDefaultInstance();
}
public static final int DYNAMIC_TRAVEL_ASSET_FIELD_NUMBER = 35;
/**
*
* A dynamic travel asset.
*
*
* .google.ads.googleads.v17.common.DynamicTravelAsset dynamic_travel_asset = 35;
* @return Whether the dynamicTravelAsset field is set.
*/
@java.lang.Override
public boolean hasDynamicTravelAsset() {
return assetDataCase_ == 35;
}
/**
*
* A dynamic travel asset.
*
*
* .google.ads.googleads.v17.common.DynamicTravelAsset dynamic_travel_asset = 35;
* @return The dynamicTravelAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicTravelAsset getDynamicTravelAsset() {
if (assetDataCase_ == 35) {
return (com.google.ads.googleads.v17.common.DynamicTravelAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicTravelAsset.getDefaultInstance();
}
/**
*
* A dynamic travel asset.
*
*
* .google.ads.googleads.v17.common.DynamicTravelAsset dynamic_travel_asset = 35;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicTravelAssetOrBuilder getDynamicTravelAssetOrBuilder() {
if (assetDataCase_ == 35) {
return (com.google.ads.googleads.v17.common.DynamicTravelAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicTravelAsset.getDefaultInstance();
}
public static final int DYNAMIC_LOCAL_ASSET_FIELD_NUMBER = 36;
/**
*
* A dynamic local asset.
*
*
* .google.ads.googleads.v17.common.DynamicLocalAsset dynamic_local_asset = 36;
* @return Whether the dynamicLocalAsset field is set.
*/
@java.lang.Override
public boolean hasDynamicLocalAsset() {
return assetDataCase_ == 36;
}
/**
*
* A dynamic local asset.
*
*
* .google.ads.googleads.v17.common.DynamicLocalAsset dynamic_local_asset = 36;
* @return The dynamicLocalAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicLocalAsset getDynamicLocalAsset() {
if (assetDataCase_ == 36) {
return (com.google.ads.googleads.v17.common.DynamicLocalAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicLocalAsset.getDefaultInstance();
}
/**
*
* A dynamic local asset.
*
*
* .google.ads.googleads.v17.common.DynamicLocalAsset dynamic_local_asset = 36;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicLocalAssetOrBuilder getDynamicLocalAssetOrBuilder() {
if (assetDataCase_ == 36) {
return (com.google.ads.googleads.v17.common.DynamicLocalAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicLocalAsset.getDefaultInstance();
}
public static final int DYNAMIC_JOBS_ASSET_FIELD_NUMBER = 37;
/**
*
* A dynamic jobs asset.
*
*
* .google.ads.googleads.v17.common.DynamicJobsAsset dynamic_jobs_asset = 37;
* @return Whether the dynamicJobsAsset field is set.
*/
@java.lang.Override
public boolean hasDynamicJobsAsset() {
return assetDataCase_ == 37;
}
/**
*
* A dynamic jobs asset.
*
*
* .google.ads.googleads.v17.common.DynamicJobsAsset dynamic_jobs_asset = 37;
* @return The dynamicJobsAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicJobsAsset getDynamicJobsAsset() {
if (assetDataCase_ == 37) {
return (com.google.ads.googleads.v17.common.DynamicJobsAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicJobsAsset.getDefaultInstance();
}
/**
*
* A dynamic jobs asset.
*
*
* .google.ads.googleads.v17.common.DynamicJobsAsset dynamic_jobs_asset = 37;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicJobsAssetOrBuilder getDynamicJobsAssetOrBuilder() {
if (assetDataCase_ == 37) {
return (com.google.ads.googleads.v17.common.DynamicJobsAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicJobsAsset.getDefaultInstance();
}
public static final int LOCATION_ASSET_FIELD_NUMBER = 39;
/**
*
* Output only. A location asset.
*
*
* .google.ads.googleads.v17.common.LocationAsset location_asset = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the locationAsset field is set.
*/
@java.lang.Override
public boolean hasLocationAsset() {
return assetDataCase_ == 39;
}
/**
*
* Output only. A location asset.
*
*
* .google.ads.googleads.v17.common.LocationAsset location_asset = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The locationAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.LocationAsset getLocationAsset() {
if (assetDataCase_ == 39) {
return (com.google.ads.googleads.v17.common.LocationAsset) assetData_;
}
return com.google.ads.googleads.v17.common.LocationAsset.getDefaultInstance();
}
/**
*
* Output only. A location asset.
*
*
* .google.ads.googleads.v17.common.LocationAsset location_asset = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.LocationAssetOrBuilder getLocationAssetOrBuilder() {
if (assetDataCase_ == 39) {
return (com.google.ads.googleads.v17.common.LocationAsset) assetData_;
}
return com.google.ads.googleads.v17.common.LocationAsset.getDefaultInstance();
}
public static final int HOTEL_PROPERTY_ASSET_FIELD_NUMBER = 41;
/**
*
* Immutable. A hotel property asset.
*
*
* .google.ads.googleads.v17.common.HotelPropertyAsset hotel_property_asset = 41 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the hotelPropertyAsset field is set.
*/
@java.lang.Override
public boolean hasHotelPropertyAsset() {
return assetDataCase_ == 41;
}
/**
*
* Immutable. A hotel property asset.
*
*
* .google.ads.googleads.v17.common.HotelPropertyAsset hotel_property_asset = 41 [(.google.api.field_behavior) = IMMUTABLE];
* @return The hotelPropertyAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.HotelPropertyAsset getHotelPropertyAsset() {
if (assetDataCase_ == 41) {
return (com.google.ads.googleads.v17.common.HotelPropertyAsset) assetData_;
}
return com.google.ads.googleads.v17.common.HotelPropertyAsset.getDefaultInstance();
}
/**
*
* Immutable. A hotel property asset.
*
*
* .google.ads.googleads.v17.common.HotelPropertyAsset hotel_property_asset = 41 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.HotelPropertyAssetOrBuilder getHotelPropertyAssetOrBuilder() {
if (assetDataCase_ == 41) {
return (com.google.ads.googleads.v17.common.HotelPropertyAsset) assetData_;
}
return com.google.ads.googleads.v17.common.HotelPropertyAsset.getDefaultInstance();
}
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(resourceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
}
if (type_ != com.google.ads.googleads.v17.enums.AssetTypeEnum.AssetType.UNSPECIFIED.getNumber()) {
output.writeEnum(4, type_);
}
if (assetDataCase_ == 5) {
output.writeMessage(5, (com.google.ads.googleads.v17.common.YoutubeVideoAsset) assetData_);
}
if (assetDataCase_ == 6) {
output.writeMessage(6, (com.google.ads.googleads.v17.common.MediaBundleAsset) assetData_);
}
if (assetDataCase_ == 7) {
output.writeMessage(7, (com.google.ads.googleads.v17.common.ImageAsset) assetData_);
}
if (assetDataCase_ == 8) {
output.writeMessage(8, (com.google.ads.googleads.v17.common.TextAsset) assetData_);
}
if (assetDataCase_ == 9) {
output.writeMessage(9, (com.google.ads.googleads.v17.common.LeadFormAsset) assetData_);
}
if (assetDataCase_ == 10) {
output.writeMessage(10, (com.google.ads.googleads.v17.common.BookOnGoogleAsset) assetData_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(11, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, name_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(13, getPolicySummary());
}
for (int i = 0; i < finalUrls_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, finalUrls_.getRaw(i));
}
if (assetDataCase_ == 15) {
output.writeMessage(15, (com.google.ads.googleads.v17.common.PromotionAsset) assetData_);
}
for (int i = 0; i < finalMobileUrls_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, finalMobileUrls_.getRaw(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, trackingUrlTemplate_);
}
for (int i = 0; i < urlCustomParameters_.size(); i++) {
output.writeMessage(18, urlCustomParameters_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 19, finalUrlSuffix_);
}
if (assetDataCase_ == 20) {
output.writeMessage(20, (com.google.ads.googleads.v17.common.CalloutAsset) assetData_);
}
if (assetDataCase_ == 21) {
output.writeMessage(21, (com.google.ads.googleads.v17.common.StructuredSnippetAsset) assetData_);
}
if (assetDataCase_ == 22) {
output.writeMessage(22, (com.google.ads.googleads.v17.common.SitelinkAsset) assetData_);
}
if (assetDataCase_ == 23) {
output.writeMessage(23, (com.google.ads.googleads.v17.common.PageFeedAsset) assetData_);
}
if (assetDataCase_ == 24) {
output.writeMessage(24, (com.google.ads.googleads.v17.common.DynamicEducationAsset) assetData_);
}
if (assetDataCase_ == 25) {
output.writeMessage(25, (com.google.ads.googleads.v17.common.MobileAppAsset) assetData_);
}
if (assetDataCase_ == 26) {
output.writeMessage(26, (com.google.ads.googleads.v17.common.HotelCalloutAsset) assetData_);
}
if (assetDataCase_ == 27) {
output.writeMessage(27, (com.google.ads.googleads.v17.common.CallAsset) assetData_);
}
if (assetDataCase_ == 28) {
output.writeMessage(28, (com.google.ads.googleads.v17.common.PriceAsset) assetData_);
}
if (assetDataCase_ == 29) {
output.writeMessage(29, (com.google.ads.googleads.v17.common.CallToActionAsset) assetData_);
}
if (assetDataCase_ == 30) {
output.writeMessage(30, (com.google.ads.googleads.v17.common.DynamicRealEstateAsset) assetData_);
}
if (assetDataCase_ == 31) {
output.writeMessage(31, (com.google.ads.googleads.v17.common.DynamicCustomAsset) assetData_);
}
if (assetDataCase_ == 32) {
output.writeMessage(32, (com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset) assetData_);
}
if (assetDataCase_ == 33) {
output.writeMessage(33, (com.google.ads.googleads.v17.common.DynamicFlightsAsset) assetData_);
}
if (assetDataCase_ == 35) {
output.writeMessage(35, (com.google.ads.googleads.v17.common.DynamicTravelAsset) assetData_);
}
if (assetDataCase_ == 36) {
output.writeMessage(36, (com.google.ads.googleads.v17.common.DynamicLocalAsset) assetData_);
}
if (assetDataCase_ == 37) {
output.writeMessage(37, (com.google.ads.googleads.v17.common.DynamicJobsAsset) assetData_);
}
if (source_ != com.google.ads.googleads.v17.enums.AssetSourceEnum.AssetSource.UNSPECIFIED.getNumber()) {
output.writeEnum(38, source_);
}
if (assetDataCase_ == 39) {
output.writeMessage(39, (com.google.ads.googleads.v17.common.LocationAsset) assetData_);
}
for (int i = 0; i < fieldTypePolicySummaries_.size(); i++) {
output.writeMessage(40, fieldTypePolicySummaries_.get(i));
}
if (assetDataCase_ == 41) {
output.writeMessage(41, (com.google.ads.googleads.v17.common.HotelPropertyAsset) assetData_);
}
if (assetDataCase_ == 50) {
output.writeMessage(50, (com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset) assetData_);
}
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(resourceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_);
}
if (type_ != com.google.ads.googleads.v17.enums.AssetTypeEnum.AssetType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, type_);
}
if (assetDataCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.google.ads.googleads.v17.common.YoutubeVideoAsset) assetData_);
}
if (assetDataCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (com.google.ads.googleads.v17.common.MediaBundleAsset) assetData_);
}
if (assetDataCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (com.google.ads.googleads.v17.common.ImageAsset) assetData_);
}
if (assetDataCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (com.google.ads.googleads.v17.common.TextAsset) assetData_);
}
if (assetDataCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (com.google.ads.googleads.v17.common.LeadFormAsset) assetData_);
}
if (assetDataCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (com.google.ads.googleads.v17.common.BookOnGoogleAsset) assetData_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(11, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, name_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getPolicySummary());
}
{
int dataSize = 0;
for (int i = 0; i < finalUrls_.size(); i++) {
dataSize += computeStringSizeNoTag(finalUrls_.getRaw(i));
}
size += dataSize;
size += 1 * getFinalUrlsList().size();
}
if (assetDataCase_ == 15) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, (com.google.ads.googleads.v17.common.PromotionAsset) assetData_);
}
{
int dataSize = 0;
for (int i = 0; i < finalMobileUrls_.size(); i++) {
dataSize += computeStringSizeNoTag(finalMobileUrls_.getRaw(i));
}
size += dataSize;
size += 2 * getFinalMobileUrlsList().size();
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, trackingUrlTemplate_);
}
for (int i = 0; i < urlCustomParameters_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, urlCustomParameters_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, finalUrlSuffix_);
}
if (assetDataCase_ == 20) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, (com.google.ads.googleads.v17.common.CalloutAsset) assetData_);
}
if (assetDataCase_ == 21) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, (com.google.ads.googleads.v17.common.StructuredSnippetAsset) assetData_);
}
if (assetDataCase_ == 22) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, (com.google.ads.googleads.v17.common.SitelinkAsset) assetData_);
}
if (assetDataCase_ == 23) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(23, (com.google.ads.googleads.v17.common.PageFeedAsset) assetData_);
}
if (assetDataCase_ == 24) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(24, (com.google.ads.googleads.v17.common.DynamicEducationAsset) assetData_);
}
if (assetDataCase_ == 25) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(25, (com.google.ads.googleads.v17.common.MobileAppAsset) assetData_);
}
if (assetDataCase_ == 26) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(26, (com.google.ads.googleads.v17.common.HotelCalloutAsset) assetData_);
}
if (assetDataCase_ == 27) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(27, (com.google.ads.googleads.v17.common.CallAsset) assetData_);
}
if (assetDataCase_ == 28) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(28, (com.google.ads.googleads.v17.common.PriceAsset) assetData_);
}
if (assetDataCase_ == 29) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(29, (com.google.ads.googleads.v17.common.CallToActionAsset) assetData_);
}
if (assetDataCase_ == 30) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(30, (com.google.ads.googleads.v17.common.DynamicRealEstateAsset) assetData_);
}
if (assetDataCase_ == 31) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(31, (com.google.ads.googleads.v17.common.DynamicCustomAsset) assetData_);
}
if (assetDataCase_ == 32) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(32, (com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset) assetData_);
}
if (assetDataCase_ == 33) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(33, (com.google.ads.googleads.v17.common.DynamicFlightsAsset) assetData_);
}
if (assetDataCase_ == 35) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(35, (com.google.ads.googleads.v17.common.DynamicTravelAsset) assetData_);
}
if (assetDataCase_ == 36) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(36, (com.google.ads.googleads.v17.common.DynamicLocalAsset) assetData_);
}
if (assetDataCase_ == 37) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(37, (com.google.ads.googleads.v17.common.DynamicJobsAsset) assetData_);
}
if (source_ != com.google.ads.googleads.v17.enums.AssetSourceEnum.AssetSource.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(38, source_);
}
if (assetDataCase_ == 39) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(39, (com.google.ads.googleads.v17.common.LocationAsset) assetData_);
}
for (int i = 0; i < fieldTypePolicySummaries_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(40, fieldTypePolicySummaries_.get(i));
}
if (assetDataCase_ == 41) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(41, (com.google.ads.googleads.v17.common.HotelPropertyAsset) assetData_);
}
if (assetDataCase_ == 50) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(50, (com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset) assetData_);
}
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.resources.Asset)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.resources.Asset other = (com.google.ads.googleads.v17.resources.Asset) obj;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (getId()
!= other.getId()) return false;
}
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (type_ != other.type_) return false;
if (!getFinalUrlsList()
.equals(other.getFinalUrlsList())) return false;
if (!getFinalMobileUrlsList()
.equals(other.getFinalMobileUrlsList())) return false;
if (hasTrackingUrlTemplate() != other.hasTrackingUrlTemplate()) return false;
if (hasTrackingUrlTemplate()) {
if (!getTrackingUrlTemplate()
.equals(other.getTrackingUrlTemplate())) return false;
}
if (!getUrlCustomParametersList()
.equals(other.getUrlCustomParametersList())) return false;
if (hasFinalUrlSuffix() != other.hasFinalUrlSuffix()) return false;
if (hasFinalUrlSuffix()) {
if (!getFinalUrlSuffix()
.equals(other.getFinalUrlSuffix())) return false;
}
if (source_ != other.source_) return false;
if (hasPolicySummary() != other.hasPolicySummary()) return false;
if (hasPolicySummary()) {
if (!getPolicySummary()
.equals(other.getPolicySummary())) return false;
}
if (!getFieldTypePolicySummariesList()
.equals(other.getFieldTypePolicySummariesList())) return false;
if (!getAssetDataCase().equals(other.getAssetDataCase())) return false;
switch (assetDataCase_) {
case 5:
if (!getYoutubeVideoAsset()
.equals(other.getYoutubeVideoAsset())) return false;
break;
case 6:
if (!getMediaBundleAsset()
.equals(other.getMediaBundleAsset())) return false;
break;
case 7:
if (!getImageAsset()
.equals(other.getImageAsset())) return false;
break;
case 8:
if (!getTextAsset()
.equals(other.getTextAsset())) return false;
break;
case 9:
if (!getLeadFormAsset()
.equals(other.getLeadFormAsset())) return false;
break;
case 10:
if (!getBookOnGoogleAsset()
.equals(other.getBookOnGoogleAsset())) return false;
break;
case 15:
if (!getPromotionAsset()
.equals(other.getPromotionAsset())) return false;
break;
case 20:
if (!getCalloutAsset()
.equals(other.getCalloutAsset())) return false;
break;
case 21:
if (!getStructuredSnippetAsset()
.equals(other.getStructuredSnippetAsset())) return false;
break;
case 22:
if (!getSitelinkAsset()
.equals(other.getSitelinkAsset())) return false;
break;
case 23:
if (!getPageFeedAsset()
.equals(other.getPageFeedAsset())) return false;
break;
case 24:
if (!getDynamicEducationAsset()
.equals(other.getDynamicEducationAsset())) return false;
break;
case 25:
if (!getMobileAppAsset()
.equals(other.getMobileAppAsset())) return false;
break;
case 26:
if (!getHotelCalloutAsset()
.equals(other.getHotelCalloutAsset())) return false;
break;
case 27:
if (!getCallAsset()
.equals(other.getCallAsset())) return false;
break;
case 28:
if (!getPriceAsset()
.equals(other.getPriceAsset())) return false;
break;
case 29:
if (!getCallToActionAsset()
.equals(other.getCallToActionAsset())) return false;
break;
case 30:
if (!getDynamicRealEstateAsset()
.equals(other.getDynamicRealEstateAsset())) return false;
break;
case 31:
if (!getDynamicCustomAsset()
.equals(other.getDynamicCustomAsset())) return false;
break;
case 32:
if (!getDynamicHotelsAndRentalsAsset()
.equals(other.getDynamicHotelsAndRentalsAsset())) return false;
break;
case 33:
if (!getDynamicFlightsAsset()
.equals(other.getDynamicFlightsAsset())) return false;
break;
case 50:
if (!getDemandGenCarouselCardAsset()
.equals(other.getDemandGenCarouselCardAsset())) return false;
break;
case 35:
if (!getDynamicTravelAsset()
.equals(other.getDynamicTravelAsset())) return false;
break;
case 36:
if (!getDynamicLocalAsset()
.equals(other.getDynamicLocalAsset())) return false;
break;
case 37:
if (!getDynamicJobsAsset()
.equals(other.getDynamicJobsAsset())) return false;
break;
case 39:
if (!getLocationAsset()
.equals(other.getLocationAsset())) return false;
break;
case 41:
if (!getHotelPropertyAsset()
.equals(other.getHotelPropertyAsset())) return false;
break;
case 0:
default:
}
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) + RESOURCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getResourceName().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
if (getFinalUrlsCount() > 0) {
hash = (37 * hash) + FINAL_URLS_FIELD_NUMBER;
hash = (53 * hash) + getFinalUrlsList().hashCode();
}
if (getFinalMobileUrlsCount() > 0) {
hash = (37 * hash) + FINAL_MOBILE_URLS_FIELD_NUMBER;
hash = (53 * hash) + getFinalMobileUrlsList().hashCode();
}
if (hasTrackingUrlTemplate()) {
hash = (37 * hash) + TRACKING_URL_TEMPLATE_FIELD_NUMBER;
hash = (53 * hash) + getTrackingUrlTemplate().hashCode();
}
if (getUrlCustomParametersCount() > 0) {
hash = (37 * hash) + URL_CUSTOM_PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getUrlCustomParametersList().hashCode();
}
if (hasFinalUrlSuffix()) {
hash = (37 * hash) + FINAL_URL_SUFFIX_FIELD_NUMBER;
hash = (53 * hash) + getFinalUrlSuffix().hashCode();
}
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + source_;
if (hasPolicySummary()) {
hash = (37 * hash) + POLICY_SUMMARY_FIELD_NUMBER;
hash = (53 * hash) + getPolicySummary().hashCode();
}
if (getFieldTypePolicySummariesCount() > 0) {
hash = (37 * hash) + FIELD_TYPE_POLICY_SUMMARIES_FIELD_NUMBER;
hash = (53 * hash) + getFieldTypePolicySummariesList().hashCode();
}
switch (assetDataCase_) {
case 5:
hash = (37 * hash) + YOUTUBE_VIDEO_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getYoutubeVideoAsset().hashCode();
break;
case 6:
hash = (37 * hash) + MEDIA_BUNDLE_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getMediaBundleAsset().hashCode();
break;
case 7:
hash = (37 * hash) + IMAGE_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getImageAsset().hashCode();
break;
case 8:
hash = (37 * hash) + TEXT_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getTextAsset().hashCode();
break;
case 9:
hash = (37 * hash) + LEAD_FORM_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getLeadFormAsset().hashCode();
break;
case 10:
hash = (37 * hash) + BOOK_ON_GOOGLE_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getBookOnGoogleAsset().hashCode();
break;
case 15:
hash = (37 * hash) + PROMOTION_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getPromotionAsset().hashCode();
break;
case 20:
hash = (37 * hash) + CALLOUT_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getCalloutAsset().hashCode();
break;
case 21:
hash = (37 * hash) + STRUCTURED_SNIPPET_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getStructuredSnippetAsset().hashCode();
break;
case 22:
hash = (37 * hash) + SITELINK_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getSitelinkAsset().hashCode();
break;
case 23:
hash = (37 * hash) + PAGE_FEED_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getPageFeedAsset().hashCode();
break;
case 24:
hash = (37 * hash) + DYNAMIC_EDUCATION_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getDynamicEducationAsset().hashCode();
break;
case 25:
hash = (37 * hash) + MOBILE_APP_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getMobileAppAsset().hashCode();
break;
case 26:
hash = (37 * hash) + HOTEL_CALLOUT_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getHotelCalloutAsset().hashCode();
break;
case 27:
hash = (37 * hash) + CALL_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getCallAsset().hashCode();
break;
case 28:
hash = (37 * hash) + PRICE_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getPriceAsset().hashCode();
break;
case 29:
hash = (37 * hash) + CALL_TO_ACTION_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getCallToActionAsset().hashCode();
break;
case 30:
hash = (37 * hash) + DYNAMIC_REAL_ESTATE_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getDynamicRealEstateAsset().hashCode();
break;
case 31:
hash = (37 * hash) + DYNAMIC_CUSTOM_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getDynamicCustomAsset().hashCode();
break;
case 32:
hash = (37 * hash) + DYNAMIC_HOTELS_AND_RENTALS_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getDynamicHotelsAndRentalsAsset().hashCode();
break;
case 33:
hash = (37 * hash) + DYNAMIC_FLIGHTS_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getDynamicFlightsAsset().hashCode();
break;
case 50:
hash = (37 * hash) + DEMAND_GEN_CAROUSEL_CARD_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getDemandGenCarouselCardAsset().hashCode();
break;
case 35:
hash = (37 * hash) + DYNAMIC_TRAVEL_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getDynamicTravelAsset().hashCode();
break;
case 36:
hash = (37 * hash) + DYNAMIC_LOCAL_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getDynamicLocalAsset().hashCode();
break;
case 37:
hash = (37 * hash) + DYNAMIC_JOBS_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getDynamicJobsAsset().hashCode();
break;
case 39:
hash = (37 * hash) + LOCATION_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getLocationAsset().hashCode();
break;
case 41:
hash = (37 * hash) + HOTEL_PROPERTY_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getHotelPropertyAsset().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.resources.Asset parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.Asset 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.resources.Asset parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.Asset 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.resources.Asset parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.Asset 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.resources.Asset parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.Asset 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.resources.Asset parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.Asset 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.resources.Asset 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.resources.Asset 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.resources.Asset 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;
}
/**
*
* Asset is a part of an ad which can be shared across multiple ads.
* It can be an image (ImageAsset), a video (YoutubeVideoAsset), etc.
* Assets are immutable and cannot be removed. To stop an asset from serving,
* remove the asset from the entity that is using it.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.Asset}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.Asset)
com.google.ads.googleads.v17.resources.AssetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.AssetProto.internal_static_google_ads_googleads_v17_resources_Asset_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.AssetProto.internal_static_google_ads_googleads_v17_resources_Asset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.Asset.class, com.google.ads.googleads.v17.resources.Asset.Builder.class);
}
// Construct using com.google.ads.googleads.v17.resources.Asset.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getUrlCustomParametersFieldBuilder();
getPolicySummaryFieldBuilder();
getFieldTypePolicySummariesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
bitField1_ = 0;
resourceName_ = "";
id_ = 0L;
name_ = "";
type_ = 0;
finalUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
finalMobileUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
trackingUrlTemplate_ = "";
if (urlCustomParametersBuilder_ == null) {
urlCustomParameters_ = java.util.Collections.emptyList();
} else {
urlCustomParameters_ = null;
urlCustomParametersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
finalUrlSuffix_ = "";
source_ = 0;
policySummary_ = null;
if (policySummaryBuilder_ != null) {
policySummaryBuilder_.dispose();
policySummaryBuilder_ = null;
}
if (fieldTypePolicySummariesBuilder_ == null) {
fieldTypePolicySummaries_ = java.util.Collections.emptyList();
} else {
fieldTypePolicySummaries_ = null;
fieldTypePolicySummariesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
if (youtubeVideoAssetBuilder_ != null) {
youtubeVideoAssetBuilder_.clear();
}
if (mediaBundleAssetBuilder_ != null) {
mediaBundleAssetBuilder_.clear();
}
if (imageAssetBuilder_ != null) {
imageAssetBuilder_.clear();
}
if (textAssetBuilder_ != null) {
textAssetBuilder_.clear();
}
if (leadFormAssetBuilder_ != null) {
leadFormAssetBuilder_.clear();
}
if (bookOnGoogleAssetBuilder_ != null) {
bookOnGoogleAssetBuilder_.clear();
}
if (promotionAssetBuilder_ != null) {
promotionAssetBuilder_.clear();
}
if (calloutAssetBuilder_ != null) {
calloutAssetBuilder_.clear();
}
if (structuredSnippetAssetBuilder_ != null) {
structuredSnippetAssetBuilder_.clear();
}
if (sitelinkAssetBuilder_ != null) {
sitelinkAssetBuilder_.clear();
}
if (pageFeedAssetBuilder_ != null) {
pageFeedAssetBuilder_.clear();
}
if (dynamicEducationAssetBuilder_ != null) {
dynamicEducationAssetBuilder_.clear();
}
if (mobileAppAssetBuilder_ != null) {
mobileAppAssetBuilder_.clear();
}
if (hotelCalloutAssetBuilder_ != null) {
hotelCalloutAssetBuilder_.clear();
}
if (callAssetBuilder_ != null) {
callAssetBuilder_.clear();
}
if (priceAssetBuilder_ != null) {
priceAssetBuilder_.clear();
}
if (callToActionAssetBuilder_ != null) {
callToActionAssetBuilder_.clear();
}
if (dynamicRealEstateAssetBuilder_ != null) {
dynamicRealEstateAssetBuilder_.clear();
}
if (dynamicCustomAssetBuilder_ != null) {
dynamicCustomAssetBuilder_.clear();
}
if (dynamicHotelsAndRentalsAssetBuilder_ != null) {
dynamicHotelsAndRentalsAssetBuilder_.clear();
}
if (dynamicFlightsAssetBuilder_ != null) {
dynamicFlightsAssetBuilder_.clear();
}
if (demandGenCarouselCardAssetBuilder_ != null) {
demandGenCarouselCardAssetBuilder_.clear();
}
if (dynamicTravelAssetBuilder_ != null) {
dynamicTravelAssetBuilder_.clear();
}
if (dynamicLocalAssetBuilder_ != null) {
dynamicLocalAssetBuilder_.clear();
}
if (dynamicJobsAssetBuilder_ != null) {
dynamicJobsAssetBuilder_.clear();
}
if (locationAssetBuilder_ != null) {
locationAssetBuilder_.clear();
}
if (hotelPropertyAssetBuilder_ != null) {
hotelPropertyAssetBuilder_.clear();
}
assetDataCase_ = 0;
assetData_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.resources.AssetProto.internal_static_google_ads_googleads_v17_resources_Asset_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.Asset getDefaultInstanceForType() {
return com.google.ads.googleads.v17.resources.Asset.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.Asset build() {
com.google.ads.googleads.v17.resources.Asset result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.Asset buildPartial() {
com.google.ads.googleads.v17.resources.Asset result = new com.google.ads.googleads.v17.resources.Asset(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
if (bitField1_ != 0) { buildPartial1(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v17.resources.Asset result) {
if (urlCustomParametersBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)) {
urlCustomParameters_ = java.util.Collections.unmodifiableList(urlCustomParameters_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.urlCustomParameters_ = urlCustomParameters_;
} else {
result.urlCustomParameters_ = urlCustomParametersBuilder_.build();
}
if (fieldTypePolicySummariesBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0)) {
fieldTypePolicySummaries_ = java.util.Collections.unmodifiableList(fieldTypePolicySummaries_);
bitField0_ = (bitField0_ & ~0x00000800);
}
result.fieldTypePolicySummaries_ = fieldTypePolicySummaries_;
} else {
result.fieldTypePolicySummaries_ = fieldTypePolicySummariesBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v17.resources.Asset result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resourceName_ = resourceName_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.id_ = id_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.name_ = name_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.type_ = type_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
finalUrls_.makeImmutable();
result.finalUrls_ = finalUrls_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
finalMobileUrls_.makeImmutable();
result.finalMobileUrls_ = finalMobileUrls_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.trackingUrlTemplate_ = trackingUrlTemplate_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.finalUrlSuffix_ = finalUrlSuffix_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.source_ = source_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.policySummary_ = policySummaryBuilder_ == null
? policySummary_
: policySummaryBuilder_.build();
to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartial1(com.google.ads.googleads.v17.resources.Asset result) {
int from_bitField1_ = bitField1_;
}
private void buildPartialOneofs(com.google.ads.googleads.v17.resources.Asset result) {
result.assetDataCase_ = assetDataCase_;
result.assetData_ = this.assetData_;
if (assetDataCase_ == 5 &&
youtubeVideoAssetBuilder_ != null) {
result.assetData_ = youtubeVideoAssetBuilder_.build();
}
if (assetDataCase_ == 6 &&
mediaBundleAssetBuilder_ != null) {
result.assetData_ = mediaBundleAssetBuilder_.build();
}
if (assetDataCase_ == 7 &&
imageAssetBuilder_ != null) {
result.assetData_ = imageAssetBuilder_.build();
}
if (assetDataCase_ == 8 &&
textAssetBuilder_ != null) {
result.assetData_ = textAssetBuilder_.build();
}
if (assetDataCase_ == 9 &&
leadFormAssetBuilder_ != null) {
result.assetData_ = leadFormAssetBuilder_.build();
}
if (assetDataCase_ == 10 &&
bookOnGoogleAssetBuilder_ != null) {
result.assetData_ = bookOnGoogleAssetBuilder_.build();
}
if (assetDataCase_ == 15 &&
promotionAssetBuilder_ != null) {
result.assetData_ = promotionAssetBuilder_.build();
}
if (assetDataCase_ == 20 &&
calloutAssetBuilder_ != null) {
result.assetData_ = calloutAssetBuilder_.build();
}
if (assetDataCase_ == 21 &&
structuredSnippetAssetBuilder_ != null) {
result.assetData_ = structuredSnippetAssetBuilder_.build();
}
if (assetDataCase_ == 22 &&
sitelinkAssetBuilder_ != null) {
result.assetData_ = sitelinkAssetBuilder_.build();
}
if (assetDataCase_ == 23 &&
pageFeedAssetBuilder_ != null) {
result.assetData_ = pageFeedAssetBuilder_.build();
}
if (assetDataCase_ == 24 &&
dynamicEducationAssetBuilder_ != null) {
result.assetData_ = dynamicEducationAssetBuilder_.build();
}
if (assetDataCase_ == 25 &&
mobileAppAssetBuilder_ != null) {
result.assetData_ = mobileAppAssetBuilder_.build();
}
if (assetDataCase_ == 26 &&
hotelCalloutAssetBuilder_ != null) {
result.assetData_ = hotelCalloutAssetBuilder_.build();
}
if (assetDataCase_ == 27 &&
callAssetBuilder_ != null) {
result.assetData_ = callAssetBuilder_.build();
}
if (assetDataCase_ == 28 &&
priceAssetBuilder_ != null) {
result.assetData_ = priceAssetBuilder_.build();
}
if (assetDataCase_ == 29 &&
callToActionAssetBuilder_ != null) {
result.assetData_ = callToActionAssetBuilder_.build();
}
if (assetDataCase_ == 30 &&
dynamicRealEstateAssetBuilder_ != null) {
result.assetData_ = dynamicRealEstateAssetBuilder_.build();
}
if (assetDataCase_ == 31 &&
dynamicCustomAssetBuilder_ != null) {
result.assetData_ = dynamicCustomAssetBuilder_.build();
}
if (assetDataCase_ == 32 &&
dynamicHotelsAndRentalsAssetBuilder_ != null) {
result.assetData_ = dynamicHotelsAndRentalsAssetBuilder_.build();
}
if (assetDataCase_ == 33 &&
dynamicFlightsAssetBuilder_ != null) {
result.assetData_ = dynamicFlightsAssetBuilder_.build();
}
if (assetDataCase_ == 50 &&
demandGenCarouselCardAssetBuilder_ != null) {
result.assetData_ = demandGenCarouselCardAssetBuilder_.build();
}
if (assetDataCase_ == 35 &&
dynamicTravelAssetBuilder_ != null) {
result.assetData_ = dynamicTravelAssetBuilder_.build();
}
if (assetDataCase_ == 36 &&
dynamicLocalAssetBuilder_ != null) {
result.assetData_ = dynamicLocalAssetBuilder_.build();
}
if (assetDataCase_ == 37 &&
dynamicJobsAssetBuilder_ != null) {
result.assetData_ = dynamicJobsAssetBuilder_.build();
}
if (assetDataCase_ == 39 &&
locationAssetBuilder_ != null) {
result.assetData_ = locationAssetBuilder_.build();
}
if (assetDataCase_ == 41 &&
hotelPropertyAssetBuilder_ != null) {
result.assetData_ = hotelPropertyAssetBuilder_.build();
}
}
@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.resources.Asset) {
return mergeFrom((com.google.ads.googleads.v17.resources.Asset)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.resources.Asset other) {
if (other == com.google.ads.googleads.v17.resources.Asset.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasId()) {
setId(other.getId());
}
if (other.hasName()) {
name_ = other.name_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (!other.finalUrls_.isEmpty()) {
if (finalUrls_.isEmpty()) {
finalUrls_ = other.finalUrls_;
bitField0_ |= 0x00000010;
} else {
ensureFinalUrlsIsMutable();
finalUrls_.addAll(other.finalUrls_);
}
onChanged();
}
if (!other.finalMobileUrls_.isEmpty()) {
if (finalMobileUrls_.isEmpty()) {
finalMobileUrls_ = other.finalMobileUrls_;
bitField0_ |= 0x00000020;
} else {
ensureFinalMobileUrlsIsMutable();
finalMobileUrls_.addAll(other.finalMobileUrls_);
}
onChanged();
}
if (other.hasTrackingUrlTemplate()) {
trackingUrlTemplate_ = other.trackingUrlTemplate_;
bitField0_ |= 0x00000040;
onChanged();
}
if (urlCustomParametersBuilder_ == null) {
if (!other.urlCustomParameters_.isEmpty()) {
if (urlCustomParameters_.isEmpty()) {
urlCustomParameters_ = other.urlCustomParameters_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.addAll(other.urlCustomParameters_);
}
onChanged();
}
} else {
if (!other.urlCustomParameters_.isEmpty()) {
if (urlCustomParametersBuilder_.isEmpty()) {
urlCustomParametersBuilder_.dispose();
urlCustomParametersBuilder_ = null;
urlCustomParameters_ = other.urlCustomParameters_;
bitField0_ = (bitField0_ & ~0x00000080);
urlCustomParametersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUrlCustomParametersFieldBuilder() : null;
} else {
urlCustomParametersBuilder_.addAllMessages(other.urlCustomParameters_);
}
}
}
if (other.hasFinalUrlSuffix()) {
finalUrlSuffix_ = other.finalUrlSuffix_;
bitField0_ |= 0x00000100;
onChanged();
}
if (other.source_ != 0) {
setSourceValue(other.getSourceValue());
}
if (other.hasPolicySummary()) {
mergePolicySummary(other.getPolicySummary());
}
if (fieldTypePolicySummariesBuilder_ == null) {
if (!other.fieldTypePolicySummaries_.isEmpty()) {
if (fieldTypePolicySummaries_.isEmpty()) {
fieldTypePolicySummaries_ = other.fieldTypePolicySummaries_;
bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureFieldTypePolicySummariesIsMutable();
fieldTypePolicySummaries_.addAll(other.fieldTypePolicySummaries_);
}
onChanged();
}
} else {
if (!other.fieldTypePolicySummaries_.isEmpty()) {
if (fieldTypePolicySummariesBuilder_.isEmpty()) {
fieldTypePolicySummariesBuilder_.dispose();
fieldTypePolicySummariesBuilder_ = null;
fieldTypePolicySummaries_ = other.fieldTypePolicySummaries_;
bitField0_ = (bitField0_ & ~0x00000800);
fieldTypePolicySummariesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFieldTypePolicySummariesFieldBuilder() : null;
} else {
fieldTypePolicySummariesBuilder_.addAllMessages(other.fieldTypePolicySummaries_);
}
}
}
switch (other.getAssetDataCase()) {
case YOUTUBE_VIDEO_ASSET: {
mergeYoutubeVideoAsset(other.getYoutubeVideoAsset());
break;
}
case MEDIA_BUNDLE_ASSET: {
mergeMediaBundleAsset(other.getMediaBundleAsset());
break;
}
case IMAGE_ASSET: {
mergeImageAsset(other.getImageAsset());
break;
}
case TEXT_ASSET: {
mergeTextAsset(other.getTextAsset());
break;
}
case LEAD_FORM_ASSET: {
mergeLeadFormAsset(other.getLeadFormAsset());
break;
}
case BOOK_ON_GOOGLE_ASSET: {
mergeBookOnGoogleAsset(other.getBookOnGoogleAsset());
break;
}
case PROMOTION_ASSET: {
mergePromotionAsset(other.getPromotionAsset());
break;
}
case CALLOUT_ASSET: {
mergeCalloutAsset(other.getCalloutAsset());
break;
}
case STRUCTURED_SNIPPET_ASSET: {
mergeStructuredSnippetAsset(other.getStructuredSnippetAsset());
break;
}
case SITELINK_ASSET: {
mergeSitelinkAsset(other.getSitelinkAsset());
break;
}
case PAGE_FEED_ASSET: {
mergePageFeedAsset(other.getPageFeedAsset());
break;
}
case DYNAMIC_EDUCATION_ASSET: {
mergeDynamicEducationAsset(other.getDynamicEducationAsset());
break;
}
case MOBILE_APP_ASSET: {
mergeMobileAppAsset(other.getMobileAppAsset());
break;
}
case HOTEL_CALLOUT_ASSET: {
mergeHotelCalloutAsset(other.getHotelCalloutAsset());
break;
}
case CALL_ASSET: {
mergeCallAsset(other.getCallAsset());
break;
}
case PRICE_ASSET: {
mergePriceAsset(other.getPriceAsset());
break;
}
case CALL_TO_ACTION_ASSET: {
mergeCallToActionAsset(other.getCallToActionAsset());
break;
}
case DYNAMIC_REAL_ESTATE_ASSET: {
mergeDynamicRealEstateAsset(other.getDynamicRealEstateAsset());
break;
}
case DYNAMIC_CUSTOM_ASSET: {
mergeDynamicCustomAsset(other.getDynamicCustomAsset());
break;
}
case DYNAMIC_HOTELS_AND_RENTALS_ASSET: {
mergeDynamicHotelsAndRentalsAsset(other.getDynamicHotelsAndRentalsAsset());
break;
}
case DYNAMIC_FLIGHTS_ASSET: {
mergeDynamicFlightsAsset(other.getDynamicFlightsAsset());
break;
}
case DEMAND_GEN_CAROUSEL_CARD_ASSET: {
mergeDemandGenCarouselCardAsset(other.getDemandGenCarouselCardAsset());
break;
}
case DYNAMIC_TRAVEL_ASSET: {
mergeDynamicTravelAsset(other.getDynamicTravelAsset());
break;
}
case DYNAMIC_LOCAL_ASSET: {
mergeDynamicLocalAsset(other.getDynamicLocalAsset());
break;
}
case DYNAMIC_JOBS_ASSET: {
mergeDynamicJobsAsset(other.getDynamicJobsAsset());
break;
}
case LOCATION_ASSET: {
mergeLocationAsset(other.getLocationAsset());
break;
}
case HOTEL_PROPERTY_ASSET: {
mergeHotelPropertyAsset(other.getHotelPropertyAsset());
break;
}
case ASSETDATA_NOT_SET: {
break;
}
}
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: {
resourceName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 32: {
type_ = input.readEnum();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
input.readMessage(
getYoutubeVideoAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getMediaBundleAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 6;
break;
} // case 50
case 58: {
input.readMessage(
getImageAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 7;
break;
} // case 58
case 66: {
input.readMessage(
getTextAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 8;
break;
} // case 66
case 74: {
input.readMessage(
getLeadFormAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 9;
break;
} // case 74
case 82: {
input.readMessage(
getBookOnGoogleAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 10;
break;
} // case 82
case 88: {
id_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 88
case 98: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 98
case 106: {
input.readMessage(
getPolicySummaryFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000400;
break;
} // case 106
case 114: {
java.lang.String s = input.readStringRequireUtf8();
ensureFinalUrlsIsMutable();
finalUrls_.add(s);
break;
} // case 114
case 122: {
input.readMessage(
getPromotionAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 15;
break;
} // case 122
case 130: {
java.lang.String s = input.readStringRequireUtf8();
ensureFinalMobileUrlsIsMutable();
finalMobileUrls_.add(s);
break;
} // case 130
case 138: {
trackingUrlTemplate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 138
case 146: {
com.google.ads.googleads.v17.common.CustomParameter m =
input.readMessage(
com.google.ads.googleads.v17.common.CustomParameter.parser(),
extensionRegistry);
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.add(m);
} else {
urlCustomParametersBuilder_.addMessage(m);
}
break;
} // case 146
case 154: {
finalUrlSuffix_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 154
case 162: {
input.readMessage(
getCalloutAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 20;
break;
} // case 162
case 170: {
input.readMessage(
getStructuredSnippetAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 21;
break;
} // case 170
case 178: {
input.readMessage(
getSitelinkAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 22;
break;
} // case 178
case 186: {
input.readMessage(
getPageFeedAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 23;
break;
} // case 186
case 194: {
input.readMessage(
getDynamicEducationAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 24;
break;
} // case 194
case 202: {
input.readMessage(
getMobileAppAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 25;
break;
} // case 202
case 210: {
input.readMessage(
getHotelCalloutAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 26;
break;
} // case 210
case 218: {
input.readMessage(
getCallAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 27;
break;
} // case 218
case 226: {
input.readMessage(
getPriceAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 28;
break;
} // case 226
case 234: {
input.readMessage(
getCallToActionAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 29;
break;
} // case 234
case 242: {
input.readMessage(
getDynamicRealEstateAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 30;
break;
} // case 242
case 250: {
input.readMessage(
getDynamicCustomAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 31;
break;
} // case 250
case 258: {
input.readMessage(
getDynamicHotelsAndRentalsAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 32;
break;
} // case 258
case 266: {
input.readMessage(
getDynamicFlightsAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 33;
break;
} // case 266
case 282: {
input.readMessage(
getDynamicTravelAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 35;
break;
} // case 282
case 290: {
input.readMessage(
getDynamicLocalAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 36;
break;
} // case 290
case 298: {
input.readMessage(
getDynamicJobsAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 37;
break;
} // case 298
case 304: {
source_ = input.readEnum();
bitField0_ |= 0x00000200;
break;
} // case 304
case 314: {
input.readMessage(
getLocationAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 39;
break;
} // case 314
case 322: {
com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary m =
input.readMessage(
com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary.parser(),
extensionRegistry);
if (fieldTypePolicySummariesBuilder_ == null) {
ensureFieldTypePolicySummariesIsMutable();
fieldTypePolicySummaries_.add(m);
} else {
fieldTypePolicySummariesBuilder_.addMessage(m);
}
break;
} // case 322
case 330: {
input.readMessage(
getHotelPropertyAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 41;
break;
} // case 330
case 402: {
input.readMessage(
getDemandGenCarouselCardAssetFieldBuilder().getBuilder(),
extensionRegistry);
assetDataCase_ = 50;
break;
} // case 402
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 assetDataCase_ = 0;
private java.lang.Object assetData_;
public AssetDataCase
getAssetDataCase() {
return AssetDataCase.forNumber(
assetDataCase_);
}
public Builder clearAssetData() {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
return this;
}
private int bitField0_;
private int bitField1_;
private java.lang.Object resourceName_ = "";
/**
*
* Immutable. The resource name of the asset.
* Asset resource names have the form:
*
* `customers/{customer_id}/assets/{asset_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The resourceName.
*/
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Immutable. The resource name of the asset.
* Asset resource names have the form:
*
* `customers/{customer_id}/assets/{asset_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for resourceName.
*/
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Immutable. The resource name of the asset.
* Asset resource names have the form:
*
* `customers/{customer_id}/assets/{asset_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Immutable. The resource name of the asset.
* Asset resource names have the form:
*
* `customers/{customer_id}/assets/{asset_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearResourceName() {
resourceName_ = getDefaultInstance().getResourceName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Immutable. The resource name of the asset.
* Asset resource names have the form:
*
* `customers/{customer_id}/assets/{asset_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The bytes for resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long id_ ;
/**
*
* Output only. The ID of the asset.
*
*
* optional int64 id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. The ID of the asset.
*
*
* optional int64 id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
*
* Output only. The ID of the asset.
*
*
* optional int64 id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
id_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. The ID of the asset.
*
*
* optional int64 id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000002);
id_ = 0L;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Optional name of the asset.
*
*
* optional string name = 12;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Optional name of the asset.
*
*
* optional string name = 12;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional name of the asset.
*
*
* optional string name = 12;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional name of the asset.
*
*
* optional string name = 12;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Optional name of the asset.
*
*
* optional string name = 12;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Optional name of the asset.
*
*
* optional string name = 12;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private int type_ = 0;
/**
*
* Output only. Type of the asset.
*
*
* .google.ads.googleads.v17.enums.AssetTypeEnum.AssetType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Output only. Type of the asset.
*
*
* .google.ads.googleads.v17.enums.AssetTypeEnum.AssetType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Output only. Type of the asset.
*
*
* .google.ads.googleads.v17.enums.AssetTypeEnum.AssetType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The type.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.AssetTypeEnum.AssetType getType() {
com.google.ads.googleads.v17.enums.AssetTypeEnum.AssetType result = com.google.ads.googleads.v17.enums.AssetTypeEnum.AssetType.forNumber(type_);
return result == null ? com.google.ads.googleads.v17.enums.AssetTypeEnum.AssetType.UNRECOGNIZED : result;
}
/**
*
* Output only. Type of the asset.
*
*
* .google.ads.googleads.v17.enums.AssetTypeEnum.AssetType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(com.google.ads.googleads.v17.enums.AssetTypeEnum.AssetType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. Type of the asset.
*
*
* .google.ads.googleads.v17.enums.AssetTypeEnum.AssetType type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000008);
type_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList finalUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureFinalUrlsIsMutable() {
if (!finalUrls_.isModifiable()) {
finalUrls_ = new com.google.protobuf.LazyStringArrayList(finalUrls_);
}
bitField0_ |= 0x00000010;
}
/**
*
* A list of possible final URLs after all cross domain redirects.
*
*
* repeated string final_urls = 14;
* @return A list containing the finalUrls.
*/
public com.google.protobuf.ProtocolStringList
getFinalUrlsList() {
finalUrls_.makeImmutable();
return finalUrls_;
}
/**
*
* A list of possible final URLs after all cross domain redirects.
*
*
* repeated string final_urls = 14;
* @return The count of finalUrls.
*/
public int getFinalUrlsCount() {
return finalUrls_.size();
}
/**
*
* A list of possible final URLs after all cross domain redirects.
*
*
* repeated string final_urls = 14;
* @param index The index of the element to return.
* @return The finalUrls at the given index.
*/
public java.lang.String getFinalUrls(int index) {
return finalUrls_.get(index);
}
/**
*
* A list of possible final URLs after all cross domain redirects.
*
*
* repeated string final_urls = 14;
* @param index The index of the value to return.
* @return The bytes of the finalUrls at the given index.
*/
public com.google.protobuf.ByteString
getFinalUrlsBytes(int index) {
return finalUrls_.getByteString(index);
}
/**
*
* A list of possible final URLs after all cross domain redirects.
*
*
* repeated string final_urls = 14;
* @param index The index to set the value at.
* @param value The finalUrls to set.
* @return This builder for chaining.
*/
public Builder setFinalUrls(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureFinalUrlsIsMutable();
finalUrls_.set(index, value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* A list of possible final URLs after all cross domain redirects.
*
*
* repeated string final_urls = 14;
* @param value The finalUrls to add.
* @return This builder for chaining.
*/
public Builder addFinalUrls(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureFinalUrlsIsMutable();
finalUrls_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* A list of possible final URLs after all cross domain redirects.
*
*
* repeated string final_urls = 14;
* @param values The finalUrls to add.
* @return This builder for chaining.
*/
public Builder addAllFinalUrls(
java.lang.Iterable values) {
ensureFinalUrlsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, finalUrls_);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* A list of possible final URLs after all cross domain redirects.
*
*
* repeated string final_urls = 14;
* @return This builder for chaining.
*/
public Builder clearFinalUrls() {
finalUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);;
onChanged();
return this;
}
/**
*
* A list of possible final URLs after all cross domain redirects.
*
*
* repeated string final_urls = 14;
* @param value The bytes of the finalUrls to add.
* @return This builder for chaining.
*/
public Builder addFinalUrlsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureFinalUrlsIsMutable();
finalUrls_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList finalMobileUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureFinalMobileUrlsIsMutable() {
if (!finalMobileUrls_.isModifiable()) {
finalMobileUrls_ = new com.google.protobuf.LazyStringArrayList(finalMobileUrls_);
}
bitField0_ |= 0x00000020;
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 16;
* @return A list containing the finalMobileUrls.
*/
public com.google.protobuf.ProtocolStringList
getFinalMobileUrlsList() {
finalMobileUrls_.makeImmutable();
return finalMobileUrls_;
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 16;
* @return The count of finalMobileUrls.
*/
public int getFinalMobileUrlsCount() {
return finalMobileUrls_.size();
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 16;
* @param index The index of the element to return.
* @return The finalMobileUrls at the given index.
*/
public java.lang.String getFinalMobileUrls(int index) {
return finalMobileUrls_.get(index);
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 16;
* @param index The index of the value to return.
* @return The bytes of the finalMobileUrls at the given index.
*/
public com.google.protobuf.ByteString
getFinalMobileUrlsBytes(int index) {
return finalMobileUrls_.getByteString(index);
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 16;
* @param index The index to set the value at.
* @param value The finalMobileUrls to set.
* @return This builder for chaining.
*/
public Builder setFinalMobileUrls(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureFinalMobileUrlsIsMutable();
finalMobileUrls_.set(index, value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 16;
* @param value The finalMobileUrls to add.
* @return This builder for chaining.
*/
public Builder addFinalMobileUrls(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureFinalMobileUrlsIsMutable();
finalMobileUrls_.add(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 16;
* @param values The finalMobileUrls to add.
* @return This builder for chaining.
*/
public Builder addAllFinalMobileUrls(
java.lang.Iterable values) {
ensureFinalMobileUrlsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, finalMobileUrls_);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 16;
* @return This builder for chaining.
*/
public Builder clearFinalMobileUrls() {
finalMobileUrls_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);;
onChanged();
return this;
}
/**
*
* A list of possible final mobile URLs after all cross domain redirects.
*
*
* repeated string final_mobile_urls = 16;
* @param value The bytes of the finalMobileUrls to add.
* @return This builder for chaining.
*/
public Builder addFinalMobileUrlsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureFinalMobileUrlsIsMutable();
finalMobileUrls_.add(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object trackingUrlTemplate_ = "";
/**
*
* URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 17;
* @return Whether the trackingUrlTemplate field is set.
*/
public boolean hasTrackingUrlTemplate() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 17;
* @return The trackingUrlTemplate.
*/
public java.lang.String getTrackingUrlTemplate() {
java.lang.Object ref = trackingUrlTemplate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
trackingUrlTemplate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 17;
* @return The bytes for trackingUrlTemplate.
*/
public com.google.protobuf.ByteString
getTrackingUrlTemplateBytes() {
java.lang.Object ref = trackingUrlTemplate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingUrlTemplate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 17;
* @param value The trackingUrlTemplate to set.
* @return This builder for chaining.
*/
public Builder setTrackingUrlTemplate(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
trackingUrlTemplate_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 17;
* @return This builder for chaining.
*/
public Builder clearTrackingUrlTemplate() {
trackingUrlTemplate_ = getDefaultInstance().getTrackingUrlTemplate();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
* URL template for constructing a tracking URL.
*
*
* optional string tracking_url_template = 17;
* @param value The bytes for trackingUrlTemplate to set.
* @return This builder for chaining.
*/
public Builder setTrackingUrlTemplateBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
trackingUrlTemplate_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private java.util.List urlCustomParameters_ =
java.util.Collections.emptyList();
private void ensureUrlCustomParametersIsMutable() {
if (!((bitField0_ & 0x00000080) != 0)) {
urlCustomParameters_ = new java.util.ArrayList(urlCustomParameters_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.CustomParameter, com.google.ads.googleads.v17.common.CustomParameter.Builder, com.google.ads.googleads.v17.common.CustomParameterOrBuilder> urlCustomParametersBuilder_;
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
public java.util.List getUrlCustomParametersList() {
if (urlCustomParametersBuilder_ == null) {
return java.util.Collections.unmodifiableList(urlCustomParameters_);
} else {
return urlCustomParametersBuilder_.getMessageList();
}
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
public int getUrlCustomParametersCount() {
if (urlCustomParametersBuilder_ == null) {
return urlCustomParameters_.size();
} else {
return urlCustomParametersBuilder_.getCount();
}
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
public com.google.ads.googleads.v17.common.CustomParameter getUrlCustomParameters(int index) {
if (urlCustomParametersBuilder_ == null) {
return urlCustomParameters_.get(index);
} else {
return urlCustomParametersBuilder_.getMessage(index);
}
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
public Builder setUrlCustomParameters(
int index, com.google.ads.googleads.v17.common.CustomParameter value) {
if (urlCustomParametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.set(index, value);
onChanged();
} else {
urlCustomParametersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
public Builder setUrlCustomParameters(
int index, com.google.ads.googleads.v17.common.CustomParameter.Builder builderForValue) {
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.set(index, builderForValue.build());
onChanged();
} else {
urlCustomParametersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
public Builder addUrlCustomParameters(com.google.ads.googleads.v17.common.CustomParameter value) {
if (urlCustomParametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.add(value);
onChanged();
} else {
urlCustomParametersBuilder_.addMessage(value);
}
return this;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
public Builder addUrlCustomParameters(
int index, com.google.ads.googleads.v17.common.CustomParameter value) {
if (urlCustomParametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.add(index, value);
onChanged();
} else {
urlCustomParametersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
public Builder addUrlCustomParameters(
com.google.ads.googleads.v17.common.CustomParameter.Builder builderForValue) {
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.add(builderForValue.build());
onChanged();
} else {
urlCustomParametersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
public Builder addUrlCustomParameters(
int index, com.google.ads.googleads.v17.common.CustomParameter.Builder builderForValue) {
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.add(index, builderForValue.build());
onChanged();
} else {
urlCustomParametersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
public Builder addAllUrlCustomParameters(
java.lang.Iterable extends com.google.ads.googleads.v17.common.CustomParameter> values) {
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, urlCustomParameters_);
onChanged();
} else {
urlCustomParametersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
public Builder clearUrlCustomParameters() {
if (urlCustomParametersBuilder_ == null) {
urlCustomParameters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
urlCustomParametersBuilder_.clear();
}
return this;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
public Builder removeUrlCustomParameters(int index) {
if (urlCustomParametersBuilder_ == null) {
ensureUrlCustomParametersIsMutable();
urlCustomParameters_.remove(index);
onChanged();
} else {
urlCustomParametersBuilder_.remove(index);
}
return this;
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
public com.google.ads.googleads.v17.common.CustomParameter.Builder getUrlCustomParametersBuilder(
int index) {
return getUrlCustomParametersFieldBuilder().getBuilder(index);
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
public com.google.ads.googleads.v17.common.CustomParameterOrBuilder getUrlCustomParametersOrBuilder(
int index) {
if (urlCustomParametersBuilder_ == null) {
return urlCustomParameters_.get(index); } else {
return urlCustomParametersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
public java.util.List extends com.google.ads.googleads.v17.common.CustomParameterOrBuilder>
getUrlCustomParametersOrBuilderList() {
if (urlCustomParametersBuilder_ != null) {
return urlCustomParametersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(urlCustomParameters_);
}
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
public com.google.ads.googleads.v17.common.CustomParameter.Builder addUrlCustomParametersBuilder() {
return getUrlCustomParametersFieldBuilder().addBuilder(
com.google.ads.googleads.v17.common.CustomParameter.getDefaultInstance());
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
public com.google.ads.googleads.v17.common.CustomParameter.Builder addUrlCustomParametersBuilder(
int index) {
return getUrlCustomParametersFieldBuilder().addBuilder(
index, com.google.ads.googleads.v17.common.CustomParameter.getDefaultInstance());
}
/**
*
* A list of mappings to be used for substituting URL custom parameter tags in
* the tracking_url_template, final_urls, and/or final_mobile_urls.
*
*
* repeated .google.ads.googleads.v17.common.CustomParameter url_custom_parameters = 18;
*/
public java.util.List
getUrlCustomParametersBuilderList() {
return getUrlCustomParametersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.CustomParameter, com.google.ads.googleads.v17.common.CustomParameter.Builder, com.google.ads.googleads.v17.common.CustomParameterOrBuilder>
getUrlCustomParametersFieldBuilder() {
if (urlCustomParametersBuilder_ == null) {
urlCustomParametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.CustomParameter, com.google.ads.googleads.v17.common.CustomParameter.Builder, com.google.ads.googleads.v17.common.CustomParameterOrBuilder>(
urlCustomParameters_,
((bitField0_ & 0x00000080) != 0),
getParentForChildren(),
isClean());
urlCustomParameters_ = null;
}
return urlCustomParametersBuilder_;
}
private java.lang.Object finalUrlSuffix_ = "";
/**
*
* URL template for appending params to landing page URLs served with parallel
* tracking.
*
*
* optional string final_url_suffix = 19;
* @return Whether the finalUrlSuffix field is set.
*/
public boolean hasFinalUrlSuffix() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* URL template for appending params to landing page URLs served with parallel
* tracking.
*
*
* optional string final_url_suffix = 19;
* @return The finalUrlSuffix.
*/
public java.lang.String getFinalUrlSuffix() {
java.lang.Object ref = finalUrlSuffix_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
finalUrlSuffix_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* URL template for appending params to landing page URLs served with parallel
* tracking.
*
*
* optional string final_url_suffix = 19;
* @return The bytes for finalUrlSuffix.
*/
public com.google.protobuf.ByteString
getFinalUrlSuffixBytes() {
java.lang.Object ref = finalUrlSuffix_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
finalUrlSuffix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* URL template for appending params to landing page URLs served with parallel
* tracking.
*
*
* optional string final_url_suffix = 19;
* @param value The finalUrlSuffix to set.
* @return This builder for chaining.
*/
public Builder setFinalUrlSuffix(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
finalUrlSuffix_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* URL template for appending params to landing page URLs served with parallel
* tracking.
*
*
* optional string final_url_suffix = 19;
* @return This builder for chaining.
*/
public Builder clearFinalUrlSuffix() {
finalUrlSuffix_ = getDefaultInstance().getFinalUrlSuffix();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
*
* URL template for appending params to landing page URLs served with parallel
* tracking.
*
*
* optional string final_url_suffix = 19;
* @param value The bytes for finalUrlSuffix to set.
* @return This builder for chaining.
*/
public Builder setFinalUrlSuffixBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
finalUrlSuffix_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
private int source_ = 0;
/**
*
* Output only. Source of the asset.
*
*
* .google.ads.googleads.v17.enums.AssetSourceEnum.AssetSource source = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for source.
*/
@java.lang.Override public int getSourceValue() {
return source_;
}
/**
*
* Output only. Source of the asset.
*
*
* .google.ads.googleads.v17.enums.AssetSourceEnum.AssetSource source = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for source to set.
* @return This builder for chaining.
*/
public Builder setSourceValue(int value) {
source_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* Output only. Source of the asset.
*
*
* .google.ads.googleads.v17.enums.AssetSourceEnum.AssetSource source = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The source.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.AssetSourceEnum.AssetSource getSource() {
com.google.ads.googleads.v17.enums.AssetSourceEnum.AssetSource result = com.google.ads.googleads.v17.enums.AssetSourceEnum.AssetSource.forNumber(source_);
return result == null ? com.google.ads.googleads.v17.enums.AssetSourceEnum.AssetSource.UNRECOGNIZED : result;
}
/**
*
* Output only. Source of the asset.
*
*
* .google.ads.googleads.v17.enums.AssetSourceEnum.AssetSource source = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The source to set.
* @return This builder for chaining.
*/
public Builder setSource(com.google.ads.googleads.v17.enums.AssetSourceEnum.AssetSource value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
source_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. Source of the asset.
*
*
* .google.ads.googleads.v17.enums.AssetSourceEnum.AssetSource source = 38 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearSource() {
bitField0_ = (bitField0_ & ~0x00000200);
source_ = 0;
onChanged();
return this;
}
private com.google.ads.googleads.v17.resources.AssetPolicySummary policySummary_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.AssetPolicySummary, com.google.ads.googleads.v17.resources.AssetPolicySummary.Builder, com.google.ads.googleads.v17.resources.AssetPolicySummaryOrBuilder> policySummaryBuilder_;
/**
*
* Output only. Policy information for the asset.
*
*
* .google.ads.googleads.v17.resources.AssetPolicySummary policy_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the policySummary field is set.
*/
public boolean hasPolicySummary() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Output only. Policy information for the asset.
*
*
* .google.ads.googleads.v17.resources.AssetPolicySummary policy_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The policySummary.
*/
public com.google.ads.googleads.v17.resources.AssetPolicySummary getPolicySummary() {
if (policySummaryBuilder_ == null) {
return policySummary_ == null ? com.google.ads.googleads.v17.resources.AssetPolicySummary.getDefaultInstance() : policySummary_;
} else {
return policySummaryBuilder_.getMessage();
}
}
/**
*
* Output only. Policy information for the asset.
*
*
* .google.ads.googleads.v17.resources.AssetPolicySummary policy_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setPolicySummary(com.google.ads.googleads.v17.resources.AssetPolicySummary value) {
if (policySummaryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
policySummary_ = value;
} else {
policySummaryBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* Output only. Policy information for the asset.
*
*
* .google.ads.googleads.v17.resources.AssetPolicySummary policy_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setPolicySummary(
com.google.ads.googleads.v17.resources.AssetPolicySummary.Builder builderForValue) {
if (policySummaryBuilder_ == null) {
policySummary_ = builderForValue.build();
} else {
policySummaryBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* Output only. Policy information for the asset.
*
*
* .google.ads.googleads.v17.resources.AssetPolicySummary policy_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergePolicySummary(com.google.ads.googleads.v17.resources.AssetPolicySummary value) {
if (policySummaryBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0) &&
policySummary_ != null &&
policySummary_ != com.google.ads.googleads.v17.resources.AssetPolicySummary.getDefaultInstance()) {
getPolicySummaryBuilder().mergeFrom(value);
} else {
policySummary_ = value;
}
} else {
policySummaryBuilder_.mergeFrom(value);
}
if (policySummary_ != null) {
bitField0_ |= 0x00000400;
onChanged();
}
return this;
}
/**
*
* Output only. Policy information for the asset.
*
*
* .google.ads.googleads.v17.resources.AssetPolicySummary policy_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearPolicySummary() {
bitField0_ = (bitField0_ & ~0x00000400);
policySummary_ = null;
if (policySummaryBuilder_ != null) {
policySummaryBuilder_.dispose();
policySummaryBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. Policy information for the asset.
*
*
* .google.ads.googleads.v17.resources.AssetPolicySummary policy_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.AssetPolicySummary.Builder getPolicySummaryBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getPolicySummaryFieldBuilder().getBuilder();
}
/**
*
* Output only. Policy information for the asset.
*
*
* .google.ads.googleads.v17.resources.AssetPolicySummary policy_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.AssetPolicySummaryOrBuilder getPolicySummaryOrBuilder() {
if (policySummaryBuilder_ != null) {
return policySummaryBuilder_.getMessageOrBuilder();
} else {
return policySummary_ == null ?
com.google.ads.googleads.v17.resources.AssetPolicySummary.getDefaultInstance() : policySummary_;
}
}
/**
*
* Output only. Policy information for the asset.
*
*
* .google.ads.googleads.v17.resources.AssetPolicySummary policy_summary = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.AssetPolicySummary, com.google.ads.googleads.v17.resources.AssetPolicySummary.Builder, com.google.ads.googleads.v17.resources.AssetPolicySummaryOrBuilder>
getPolicySummaryFieldBuilder() {
if (policySummaryBuilder_ == null) {
policySummaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.resources.AssetPolicySummary, com.google.ads.googleads.v17.resources.AssetPolicySummary.Builder, com.google.ads.googleads.v17.resources.AssetPolicySummaryOrBuilder>(
getPolicySummary(),
getParentForChildren(),
isClean());
policySummary_ = null;
}
return policySummaryBuilder_;
}
private java.util.List fieldTypePolicySummaries_ =
java.util.Collections.emptyList();
private void ensureFieldTypePolicySummariesIsMutable() {
if (!((bitField0_ & 0x00000800) != 0)) {
fieldTypePolicySummaries_ = new java.util.ArrayList(fieldTypePolicySummaries_);
bitField0_ |= 0x00000800;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary, com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary.Builder, com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummaryOrBuilder> fieldTypePolicySummariesBuilder_;
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List getFieldTypePolicySummariesList() {
if (fieldTypePolicySummariesBuilder_ == null) {
return java.util.Collections.unmodifiableList(fieldTypePolicySummaries_);
} else {
return fieldTypePolicySummariesBuilder_.getMessageList();
}
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public int getFieldTypePolicySummariesCount() {
if (fieldTypePolicySummariesBuilder_ == null) {
return fieldTypePolicySummaries_.size();
} else {
return fieldTypePolicySummariesBuilder_.getCount();
}
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary getFieldTypePolicySummaries(int index) {
if (fieldTypePolicySummariesBuilder_ == null) {
return fieldTypePolicySummaries_.get(index);
} else {
return fieldTypePolicySummariesBuilder_.getMessage(index);
}
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setFieldTypePolicySummaries(
int index, com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary value) {
if (fieldTypePolicySummariesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldTypePolicySummariesIsMutable();
fieldTypePolicySummaries_.set(index, value);
onChanged();
} else {
fieldTypePolicySummariesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setFieldTypePolicySummaries(
int index, com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary.Builder builderForValue) {
if (fieldTypePolicySummariesBuilder_ == null) {
ensureFieldTypePolicySummariesIsMutable();
fieldTypePolicySummaries_.set(index, builderForValue.build());
onChanged();
} else {
fieldTypePolicySummariesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addFieldTypePolicySummaries(com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary value) {
if (fieldTypePolicySummariesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldTypePolicySummariesIsMutable();
fieldTypePolicySummaries_.add(value);
onChanged();
} else {
fieldTypePolicySummariesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addFieldTypePolicySummaries(
int index, com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary value) {
if (fieldTypePolicySummariesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldTypePolicySummariesIsMutable();
fieldTypePolicySummaries_.add(index, value);
onChanged();
} else {
fieldTypePolicySummariesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addFieldTypePolicySummaries(
com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary.Builder builderForValue) {
if (fieldTypePolicySummariesBuilder_ == null) {
ensureFieldTypePolicySummariesIsMutable();
fieldTypePolicySummaries_.add(builderForValue.build());
onChanged();
} else {
fieldTypePolicySummariesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addFieldTypePolicySummaries(
int index, com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary.Builder builderForValue) {
if (fieldTypePolicySummariesBuilder_ == null) {
ensureFieldTypePolicySummariesIsMutable();
fieldTypePolicySummaries_.add(index, builderForValue.build());
onChanged();
} else {
fieldTypePolicySummariesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addAllFieldTypePolicySummaries(
java.lang.Iterable extends com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary> values) {
if (fieldTypePolicySummariesBuilder_ == null) {
ensureFieldTypePolicySummariesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fieldTypePolicySummaries_);
onChanged();
} else {
fieldTypePolicySummariesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearFieldTypePolicySummaries() {
if (fieldTypePolicySummariesBuilder_ == null) {
fieldTypePolicySummaries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
} else {
fieldTypePolicySummariesBuilder_.clear();
}
return this;
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder removeFieldTypePolicySummaries(int index) {
if (fieldTypePolicySummariesBuilder_ == null) {
ensureFieldTypePolicySummariesIsMutable();
fieldTypePolicySummaries_.remove(index);
onChanged();
} else {
fieldTypePolicySummariesBuilder_.remove(index);
}
return this;
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary.Builder getFieldTypePolicySummariesBuilder(
int index) {
return getFieldTypePolicySummariesFieldBuilder().getBuilder(index);
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummaryOrBuilder getFieldTypePolicySummariesOrBuilder(
int index) {
if (fieldTypePolicySummariesBuilder_ == null) {
return fieldTypePolicySummaries_.get(index); } else {
return fieldTypePolicySummariesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List extends com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummaryOrBuilder>
getFieldTypePolicySummariesOrBuilderList() {
if (fieldTypePolicySummariesBuilder_ != null) {
return fieldTypePolicySummariesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fieldTypePolicySummaries_);
}
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary.Builder addFieldTypePolicySummariesBuilder() {
return getFieldTypePolicySummariesFieldBuilder().addBuilder(
com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary.getDefaultInstance());
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary.Builder addFieldTypePolicySummariesBuilder(
int index) {
return getFieldTypePolicySummariesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary.getDefaultInstance());
}
/**
*
* Output only. Policy information for the asset for each FieldType.
*
*
* repeated .google.ads.googleads.v17.resources.AssetFieldTypePolicySummary field_type_policy_summaries = 40 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List
getFieldTypePolicySummariesBuilderList() {
return getFieldTypePolicySummariesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary, com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary.Builder, com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummaryOrBuilder>
getFieldTypePolicySummariesFieldBuilder() {
if (fieldTypePolicySummariesBuilder_ == null) {
fieldTypePolicySummariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary, com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummary.Builder, com.google.ads.googleads.v17.resources.AssetFieldTypePolicySummaryOrBuilder>(
fieldTypePolicySummaries_,
((bitField0_ & 0x00000800) != 0),
getParentForChildren(),
isClean());
fieldTypePolicySummaries_ = null;
}
return fieldTypePolicySummariesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.YoutubeVideoAsset, com.google.ads.googleads.v17.common.YoutubeVideoAsset.Builder, com.google.ads.googleads.v17.common.YoutubeVideoAssetOrBuilder> youtubeVideoAssetBuilder_;
/**
*
* Immutable. A YouTube video asset.
*
*
* .google.ads.googleads.v17.common.YoutubeVideoAsset youtube_video_asset = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the youtubeVideoAsset field is set.
*/
@java.lang.Override
public boolean hasYoutubeVideoAsset() {
return assetDataCase_ == 5;
}
/**
*
* Immutable. A YouTube video asset.
*
*
* .google.ads.googleads.v17.common.YoutubeVideoAsset youtube_video_asset = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @return The youtubeVideoAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.YoutubeVideoAsset getYoutubeVideoAsset() {
if (youtubeVideoAssetBuilder_ == null) {
if (assetDataCase_ == 5) {
return (com.google.ads.googleads.v17.common.YoutubeVideoAsset) assetData_;
}
return com.google.ads.googleads.v17.common.YoutubeVideoAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 5) {
return youtubeVideoAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.YoutubeVideoAsset.getDefaultInstance();
}
}
/**
*
* Immutable. A YouTube video asset.
*
*
* .google.ads.googleads.v17.common.YoutubeVideoAsset youtube_video_asset = 5 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setYoutubeVideoAsset(com.google.ads.googleads.v17.common.YoutubeVideoAsset value) {
if (youtubeVideoAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
youtubeVideoAssetBuilder_.setMessage(value);
}
assetDataCase_ = 5;
return this;
}
/**
*
* Immutable. A YouTube video asset.
*
*
* .google.ads.googleads.v17.common.YoutubeVideoAsset youtube_video_asset = 5 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setYoutubeVideoAsset(
com.google.ads.googleads.v17.common.YoutubeVideoAsset.Builder builderForValue) {
if (youtubeVideoAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
youtubeVideoAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 5;
return this;
}
/**
*
* Immutable. A YouTube video asset.
*
*
* .google.ads.googleads.v17.common.YoutubeVideoAsset youtube_video_asset = 5 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeYoutubeVideoAsset(com.google.ads.googleads.v17.common.YoutubeVideoAsset value) {
if (youtubeVideoAssetBuilder_ == null) {
if (assetDataCase_ == 5 &&
assetData_ != com.google.ads.googleads.v17.common.YoutubeVideoAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.YoutubeVideoAsset.newBuilder((com.google.ads.googleads.v17.common.YoutubeVideoAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 5) {
youtubeVideoAssetBuilder_.mergeFrom(value);
} else {
youtubeVideoAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 5;
return this;
}
/**
*
* Immutable. A YouTube video asset.
*
*
* .google.ads.googleads.v17.common.YoutubeVideoAsset youtube_video_asset = 5 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearYoutubeVideoAsset() {
if (youtubeVideoAssetBuilder_ == null) {
if (assetDataCase_ == 5) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 5) {
assetDataCase_ = 0;
assetData_ = null;
}
youtubeVideoAssetBuilder_.clear();
}
return this;
}
/**
*
* Immutable. A YouTube video asset.
*
*
* .google.ads.googleads.v17.common.YoutubeVideoAsset youtube_video_asset = 5 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v17.common.YoutubeVideoAsset.Builder getYoutubeVideoAssetBuilder() {
return getYoutubeVideoAssetFieldBuilder().getBuilder();
}
/**
*
* Immutable. A YouTube video asset.
*
*
* .google.ads.googleads.v17.common.YoutubeVideoAsset youtube_video_asset = 5 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.YoutubeVideoAssetOrBuilder getYoutubeVideoAssetOrBuilder() {
if ((assetDataCase_ == 5) && (youtubeVideoAssetBuilder_ != null)) {
return youtubeVideoAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 5) {
return (com.google.ads.googleads.v17.common.YoutubeVideoAsset) assetData_;
}
return com.google.ads.googleads.v17.common.YoutubeVideoAsset.getDefaultInstance();
}
}
/**
*
* Immutable. A YouTube video asset.
*
*
* .google.ads.googleads.v17.common.YoutubeVideoAsset youtube_video_asset = 5 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.YoutubeVideoAsset, com.google.ads.googleads.v17.common.YoutubeVideoAsset.Builder, com.google.ads.googleads.v17.common.YoutubeVideoAssetOrBuilder>
getYoutubeVideoAssetFieldBuilder() {
if (youtubeVideoAssetBuilder_ == null) {
if (!(assetDataCase_ == 5)) {
assetData_ = com.google.ads.googleads.v17.common.YoutubeVideoAsset.getDefaultInstance();
}
youtubeVideoAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.YoutubeVideoAsset, com.google.ads.googleads.v17.common.YoutubeVideoAsset.Builder, com.google.ads.googleads.v17.common.YoutubeVideoAssetOrBuilder>(
(com.google.ads.googleads.v17.common.YoutubeVideoAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 5;
onChanged();
return youtubeVideoAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.MediaBundleAsset, com.google.ads.googleads.v17.common.MediaBundleAsset.Builder, com.google.ads.googleads.v17.common.MediaBundleAssetOrBuilder> mediaBundleAssetBuilder_;
/**
*
* Immutable. A media bundle asset.
*
*
* .google.ads.googleads.v17.common.MediaBundleAsset media_bundle_asset = 6 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the mediaBundleAsset field is set.
*/
@java.lang.Override
public boolean hasMediaBundleAsset() {
return assetDataCase_ == 6;
}
/**
*
* Immutable. A media bundle asset.
*
*
* .google.ads.googleads.v17.common.MediaBundleAsset media_bundle_asset = 6 [(.google.api.field_behavior) = IMMUTABLE];
* @return The mediaBundleAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MediaBundleAsset getMediaBundleAsset() {
if (mediaBundleAssetBuilder_ == null) {
if (assetDataCase_ == 6) {
return (com.google.ads.googleads.v17.common.MediaBundleAsset) assetData_;
}
return com.google.ads.googleads.v17.common.MediaBundleAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 6) {
return mediaBundleAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.MediaBundleAsset.getDefaultInstance();
}
}
/**
*
* Immutable. A media bundle asset.
*
*
* .google.ads.googleads.v17.common.MediaBundleAsset media_bundle_asset = 6 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setMediaBundleAsset(com.google.ads.googleads.v17.common.MediaBundleAsset value) {
if (mediaBundleAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
mediaBundleAssetBuilder_.setMessage(value);
}
assetDataCase_ = 6;
return this;
}
/**
*
* Immutable. A media bundle asset.
*
*
* .google.ads.googleads.v17.common.MediaBundleAsset media_bundle_asset = 6 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setMediaBundleAsset(
com.google.ads.googleads.v17.common.MediaBundleAsset.Builder builderForValue) {
if (mediaBundleAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
mediaBundleAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 6;
return this;
}
/**
*
* Immutable. A media bundle asset.
*
*
* .google.ads.googleads.v17.common.MediaBundleAsset media_bundle_asset = 6 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeMediaBundleAsset(com.google.ads.googleads.v17.common.MediaBundleAsset value) {
if (mediaBundleAssetBuilder_ == null) {
if (assetDataCase_ == 6 &&
assetData_ != com.google.ads.googleads.v17.common.MediaBundleAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.MediaBundleAsset.newBuilder((com.google.ads.googleads.v17.common.MediaBundleAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 6) {
mediaBundleAssetBuilder_.mergeFrom(value);
} else {
mediaBundleAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 6;
return this;
}
/**
*
* Immutable. A media bundle asset.
*
*
* .google.ads.googleads.v17.common.MediaBundleAsset media_bundle_asset = 6 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearMediaBundleAsset() {
if (mediaBundleAssetBuilder_ == null) {
if (assetDataCase_ == 6) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 6) {
assetDataCase_ = 0;
assetData_ = null;
}
mediaBundleAssetBuilder_.clear();
}
return this;
}
/**
*
* Immutable. A media bundle asset.
*
*
* .google.ads.googleads.v17.common.MediaBundleAsset media_bundle_asset = 6 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v17.common.MediaBundleAsset.Builder getMediaBundleAssetBuilder() {
return getMediaBundleAssetFieldBuilder().getBuilder();
}
/**
*
* Immutable. A media bundle asset.
*
*
* .google.ads.googleads.v17.common.MediaBundleAsset media_bundle_asset = 6 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MediaBundleAssetOrBuilder getMediaBundleAssetOrBuilder() {
if ((assetDataCase_ == 6) && (mediaBundleAssetBuilder_ != null)) {
return mediaBundleAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 6) {
return (com.google.ads.googleads.v17.common.MediaBundleAsset) assetData_;
}
return com.google.ads.googleads.v17.common.MediaBundleAsset.getDefaultInstance();
}
}
/**
*
* Immutable. A media bundle asset.
*
*
* .google.ads.googleads.v17.common.MediaBundleAsset media_bundle_asset = 6 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.MediaBundleAsset, com.google.ads.googleads.v17.common.MediaBundleAsset.Builder, com.google.ads.googleads.v17.common.MediaBundleAssetOrBuilder>
getMediaBundleAssetFieldBuilder() {
if (mediaBundleAssetBuilder_ == null) {
if (!(assetDataCase_ == 6)) {
assetData_ = com.google.ads.googleads.v17.common.MediaBundleAsset.getDefaultInstance();
}
mediaBundleAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.MediaBundleAsset, com.google.ads.googleads.v17.common.MediaBundleAsset.Builder, com.google.ads.googleads.v17.common.MediaBundleAssetOrBuilder>(
(com.google.ads.googleads.v17.common.MediaBundleAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 6;
onChanged();
return mediaBundleAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.ImageAsset, com.google.ads.googleads.v17.common.ImageAsset.Builder, com.google.ads.googleads.v17.common.ImageAssetOrBuilder> imageAssetBuilder_;
/**
*
* Output only. An image asset.
*
*
* .google.ads.googleads.v17.common.ImageAsset image_asset = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the imageAsset field is set.
*/
@java.lang.Override
public boolean hasImageAsset() {
return assetDataCase_ == 7;
}
/**
*
* Output only. An image asset.
*
*
* .google.ads.googleads.v17.common.ImageAsset image_asset = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The imageAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.ImageAsset getImageAsset() {
if (imageAssetBuilder_ == null) {
if (assetDataCase_ == 7) {
return (com.google.ads.googleads.v17.common.ImageAsset) assetData_;
}
return com.google.ads.googleads.v17.common.ImageAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 7) {
return imageAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.ImageAsset.getDefaultInstance();
}
}
/**
*
* Output only. An image asset.
*
*
* .google.ads.googleads.v17.common.ImageAsset image_asset = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setImageAsset(com.google.ads.googleads.v17.common.ImageAsset value) {
if (imageAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
imageAssetBuilder_.setMessage(value);
}
assetDataCase_ = 7;
return this;
}
/**
*
* Output only. An image asset.
*
*
* .google.ads.googleads.v17.common.ImageAsset image_asset = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setImageAsset(
com.google.ads.googleads.v17.common.ImageAsset.Builder builderForValue) {
if (imageAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
imageAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 7;
return this;
}
/**
*
* Output only. An image asset.
*
*
* .google.ads.googleads.v17.common.ImageAsset image_asset = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeImageAsset(com.google.ads.googleads.v17.common.ImageAsset value) {
if (imageAssetBuilder_ == null) {
if (assetDataCase_ == 7 &&
assetData_ != com.google.ads.googleads.v17.common.ImageAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.ImageAsset.newBuilder((com.google.ads.googleads.v17.common.ImageAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 7) {
imageAssetBuilder_.mergeFrom(value);
} else {
imageAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 7;
return this;
}
/**
*
* Output only. An image asset.
*
*
* .google.ads.googleads.v17.common.ImageAsset image_asset = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearImageAsset() {
if (imageAssetBuilder_ == null) {
if (assetDataCase_ == 7) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 7) {
assetDataCase_ = 0;
assetData_ = null;
}
imageAssetBuilder_.clear();
}
return this;
}
/**
*
* Output only. An image asset.
*
*
* .google.ads.googleads.v17.common.ImageAsset image_asset = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.common.ImageAsset.Builder getImageAssetBuilder() {
return getImageAssetFieldBuilder().getBuilder();
}
/**
*
* Output only. An image asset.
*
*
* .google.ads.googleads.v17.common.ImageAsset image_asset = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.ImageAssetOrBuilder getImageAssetOrBuilder() {
if ((assetDataCase_ == 7) && (imageAssetBuilder_ != null)) {
return imageAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 7) {
return (com.google.ads.googleads.v17.common.ImageAsset) assetData_;
}
return com.google.ads.googleads.v17.common.ImageAsset.getDefaultInstance();
}
}
/**
*
* Output only. An image asset.
*
*
* .google.ads.googleads.v17.common.ImageAsset image_asset = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.ImageAsset, com.google.ads.googleads.v17.common.ImageAsset.Builder, com.google.ads.googleads.v17.common.ImageAssetOrBuilder>
getImageAssetFieldBuilder() {
if (imageAssetBuilder_ == null) {
if (!(assetDataCase_ == 7)) {
assetData_ = com.google.ads.googleads.v17.common.ImageAsset.getDefaultInstance();
}
imageAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.ImageAsset, com.google.ads.googleads.v17.common.ImageAsset.Builder, com.google.ads.googleads.v17.common.ImageAssetOrBuilder>(
(com.google.ads.googleads.v17.common.ImageAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 7;
onChanged();
return imageAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.TextAsset, com.google.ads.googleads.v17.common.TextAsset.Builder, com.google.ads.googleads.v17.common.TextAssetOrBuilder> textAssetBuilder_;
/**
*
* Immutable. A text asset.
*
*
* .google.ads.googleads.v17.common.TextAsset text_asset = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the textAsset field is set.
*/
@java.lang.Override
public boolean hasTextAsset() {
return assetDataCase_ == 8;
}
/**
*
* Immutable. A text asset.
*
*
* .google.ads.googleads.v17.common.TextAsset text_asset = 8 [(.google.api.field_behavior) = IMMUTABLE];
* @return The textAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.TextAsset getTextAsset() {
if (textAssetBuilder_ == null) {
if (assetDataCase_ == 8) {
return (com.google.ads.googleads.v17.common.TextAsset) assetData_;
}
return com.google.ads.googleads.v17.common.TextAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 8) {
return textAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.TextAsset.getDefaultInstance();
}
}
/**
*
* Immutable. A text asset.
*
*
* .google.ads.googleads.v17.common.TextAsset text_asset = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setTextAsset(com.google.ads.googleads.v17.common.TextAsset value) {
if (textAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
textAssetBuilder_.setMessage(value);
}
assetDataCase_ = 8;
return this;
}
/**
*
* Immutable. A text asset.
*
*
* .google.ads.googleads.v17.common.TextAsset text_asset = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setTextAsset(
com.google.ads.googleads.v17.common.TextAsset.Builder builderForValue) {
if (textAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
textAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 8;
return this;
}
/**
*
* Immutable. A text asset.
*
*
* .google.ads.googleads.v17.common.TextAsset text_asset = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeTextAsset(com.google.ads.googleads.v17.common.TextAsset value) {
if (textAssetBuilder_ == null) {
if (assetDataCase_ == 8 &&
assetData_ != com.google.ads.googleads.v17.common.TextAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.TextAsset.newBuilder((com.google.ads.googleads.v17.common.TextAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 8) {
textAssetBuilder_.mergeFrom(value);
} else {
textAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 8;
return this;
}
/**
*
* Immutable. A text asset.
*
*
* .google.ads.googleads.v17.common.TextAsset text_asset = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearTextAsset() {
if (textAssetBuilder_ == null) {
if (assetDataCase_ == 8) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 8) {
assetDataCase_ = 0;
assetData_ = null;
}
textAssetBuilder_.clear();
}
return this;
}
/**
*
* Immutable. A text asset.
*
*
* .google.ads.googleads.v17.common.TextAsset text_asset = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v17.common.TextAsset.Builder getTextAssetBuilder() {
return getTextAssetFieldBuilder().getBuilder();
}
/**
*
* Immutable. A text asset.
*
*
* .google.ads.googleads.v17.common.TextAsset text_asset = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.TextAssetOrBuilder getTextAssetOrBuilder() {
if ((assetDataCase_ == 8) && (textAssetBuilder_ != null)) {
return textAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 8) {
return (com.google.ads.googleads.v17.common.TextAsset) assetData_;
}
return com.google.ads.googleads.v17.common.TextAsset.getDefaultInstance();
}
}
/**
*
* Immutable. A text asset.
*
*
* .google.ads.googleads.v17.common.TextAsset text_asset = 8 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.TextAsset, com.google.ads.googleads.v17.common.TextAsset.Builder, com.google.ads.googleads.v17.common.TextAssetOrBuilder>
getTextAssetFieldBuilder() {
if (textAssetBuilder_ == null) {
if (!(assetDataCase_ == 8)) {
assetData_ = com.google.ads.googleads.v17.common.TextAsset.getDefaultInstance();
}
textAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.TextAsset, com.google.ads.googleads.v17.common.TextAsset.Builder, com.google.ads.googleads.v17.common.TextAssetOrBuilder>(
(com.google.ads.googleads.v17.common.TextAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 8;
onChanged();
return textAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.LeadFormAsset, com.google.ads.googleads.v17.common.LeadFormAsset.Builder, com.google.ads.googleads.v17.common.LeadFormAssetOrBuilder> leadFormAssetBuilder_;
/**
*
* A lead form asset.
*
*
* .google.ads.googleads.v17.common.LeadFormAsset lead_form_asset = 9;
* @return Whether the leadFormAsset field is set.
*/
@java.lang.Override
public boolean hasLeadFormAsset() {
return assetDataCase_ == 9;
}
/**
*
* A lead form asset.
*
*
* .google.ads.googleads.v17.common.LeadFormAsset lead_form_asset = 9;
* @return The leadFormAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.LeadFormAsset getLeadFormAsset() {
if (leadFormAssetBuilder_ == null) {
if (assetDataCase_ == 9) {
return (com.google.ads.googleads.v17.common.LeadFormAsset) assetData_;
}
return com.google.ads.googleads.v17.common.LeadFormAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 9) {
return leadFormAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.LeadFormAsset.getDefaultInstance();
}
}
/**
*
* A lead form asset.
*
*
* .google.ads.googleads.v17.common.LeadFormAsset lead_form_asset = 9;
*/
public Builder setLeadFormAsset(com.google.ads.googleads.v17.common.LeadFormAsset value) {
if (leadFormAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
leadFormAssetBuilder_.setMessage(value);
}
assetDataCase_ = 9;
return this;
}
/**
*
* A lead form asset.
*
*
* .google.ads.googleads.v17.common.LeadFormAsset lead_form_asset = 9;
*/
public Builder setLeadFormAsset(
com.google.ads.googleads.v17.common.LeadFormAsset.Builder builderForValue) {
if (leadFormAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
leadFormAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 9;
return this;
}
/**
*
* A lead form asset.
*
*
* .google.ads.googleads.v17.common.LeadFormAsset lead_form_asset = 9;
*/
public Builder mergeLeadFormAsset(com.google.ads.googleads.v17.common.LeadFormAsset value) {
if (leadFormAssetBuilder_ == null) {
if (assetDataCase_ == 9 &&
assetData_ != com.google.ads.googleads.v17.common.LeadFormAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.LeadFormAsset.newBuilder((com.google.ads.googleads.v17.common.LeadFormAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 9) {
leadFormAssetBuilder_.mergeFrom(value);
} else {
leadFormAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 9;
return this;
}
/**
*
* A lead form asset.
*
*
* .google.ads.googleads.v17.common.LeadFormAsset lead_form_asset = 9;
*/
public Builder clearLeadFormAsset() {
if (leadFormAssetBuilder_ == null) {
if (assetDataCase_ == 9) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 9) {
assetDataCase_ = 0;
assetData_ = null;
}
leadFormAssetBuilder_.clear();
}
return this;
}
/**
*
* A lead form asset.
*
*
* .google.ads.googleads.v17.common.LeadFormAsset lead_form_asset = 9;
*/
public com.google.ads.googleads.v17.common.LeadFormAsset.Builder getLeadFormAssetBuilder() {
return getLeadFormAssetFieldBuilder().getBuilder();
}
/**
*
* A lead form asset.
*
*
* .google.ads.googleads.v17.common.LeadFormAsset lead_form_asset = 9;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.LeadFormAssetOrBuilder getLeadFormAssetOrBuilder() {
if ((assetDataCase_ == 9) && (leadFormAssetBuilder_ != null)) {
return leadFormAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 9) {
return (com.google.ads.googleads.v17.common.LeadFormAsset) assetData_;
}
return com.google.ads.googleads.v17.common.LeadFormAsset.getDefaultInstance();
}
}
/**
*
* A lead form asset.
*
*
* .google.ads.googleads.v17.common.LeadFormAsset lead_form_asset = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.LeadFormAsset, com.google.ads.googleads.v17.common.LeadFormAsset.Builder, com.google.ads.googleads.v17.common.LeadFormAssetOrBuilder>
getLeadFormAssetFieldBuilder() {
if (leadFormAssetBuilder_ == null) {
if (!(assetDataCase_ == 9)) {
assetData_ = com.google.ads.googleads.v17.common.LeadFormAsset.getDefaultInstance();
}
leadFormAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.LeadFormAsset, com.google.ads.googleads.v17.common.LeadFormAsset.Builder, com.google.ads.googleads.v17.common.LeadFormAssetOrBuilder>(
(com.google.ads.googleads.v17.common.LeadFormAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 9;
onChanged();
return leadFormAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.BookOnGoogleAsset, com.google.ads.googleads.v17.common.BookOnGoogleAsset.Builder, com.google.ads.googleads.v17.common.BookOnGoogleAssetOrBuilder> bookOnGoogleAssetBuilder_;
/**
*
* A book on google asset.
*
*
* .google.ads.googleads.v17.common.BookOnGoogleAsset book_on_google_asset = 10;
* @return Whether the bookOnGoogleAsset field is set.
*/
@java.lang.Override
public boolean hasBookOnGoogleAsset() {
return assetDataCase_ == 10;
}
/**
*
* A book on google asset.
*
*
* .google.ads.googleads.v17.common.BookOnGoogleAsset book_on_google_asset = 10;
* @return The bookOnGoogleAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.BookOnGoogleAsset getBookOnGoogleAsset() {
if (bookOnGoogleAssetBuilder_ == null) {
if (assetDataCase_ == 10) {
return (com.google.ads.googleads.v17.common.BookOnGoogleAsset) assetData_;
}
return com.google.ads.googleads.v17.common.BookOnGoogleAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 10) {
return bookOnGoogleAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.BookOnGoogleAsset.getDefaultInstance();
}
}
/**
*
* A book on google asset.
*
*
* .google.ads.googleads.v17.common.BookOnGoogleAsset book_on_google_asset = 10;
*/
public Builder setBookOnGoogleAsset(com.google.ads.googleads.v17.common.BookOnGoogleAsset value) {
if (bookOnGoogleAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
bookOnGoogleAssetBuilder_.setMessage(value);
}
assetDataCase_ = 10;
return this;
}
/**
*
* A book on google asset.
*
*
* .google.ads.googleads.v17.common.BookOnGoogleAsset book_on_google_asset = 10;
*/
public Builder setBookOnGoogleAsset(
com.google.ads.googleads.v17.common.BookOnGoogleAsset.Builder builderForValue) {
if (bookOnGoogleAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
bookOnGoogleAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 10;
return this;
}
/**
*
* A book on google asset.
*
*
* .google.ads.googleads.v17.common.BookOnGoogleAsset book_on_google_asset = 10;
*/
public Builder mergeBookOnGoogleAsset(com.google.ads.googleads.v17.common.BookOnGoogleAsset value) {
if (bookOnGoogleAssetBuilder_ == null) {
if (assetDataCase_ == 10 &&
assetData_ != com.google.ads.googleads.v17.common.BookOnGoogleAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.BookOnGoogleAsset.newBuilder((com.google.ads.googleads.v17.common.BookOnGoogleAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 10) {
bookOnGoogleAssetBuilder_.mergeFrom(value);
} else {
bookOnGoogleAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 10;
return this;
}
/**
*
* A book on google asset.
*
*
* .google.ads.googleads.v17.common.BookOnGoogleAsset book_on_google_asset = 10;
*/
public Builder clearBookOnGoogleAsset() {
if (bookOnGoogleAssetBuilder_ == null) {
if (assetDataCase_ == 10) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 10) {
assetDataCase_ = 0;
assetData_ = null;
}
bookOnGoogleAssetBuilder_.clear();
}
return this;
}
/**
*
* A book on google asset.
*
*
* .google.ads.googleads.v17.common.BookOnGoogleAsset book_on_google_asset = 10;
*/
public com.google.ads.googleads.v17.common.BookOnGoogleAsset.Builder getBookOnGoogleAssetBuilder() {
return getBookOnGoogleAssetFieldBuilder().getBuilder();
}
/**
*
* A book on google asset.
*
*
* .google.ads.googleads.v17.common.BookOnGoogleAsset book_on_google_asset = 10;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.BookOnGoogleAssetOrBuilder getBookOnGoogleAssetOrBuilder() {
if ((assetDataCase_ == 10) && (bookOnGoogleAssetBuilder_ != null)) {
return bookOnGoogleAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 10) {
return (com.google.ads.googleads.v17.common.BookOnGoogleAsset) assetData_;
}
return com.google.ads.googleads.v17.common.BookOnGoogleAsset.getDefaultInstance();
}
}
/**
*
* A book on google asset.
*
*
* .google.ads.googleads.v17.common.BookOnGoogleAsset book_on_google_asset = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.BookOnGoogleAsset, com.google.ads.googleads.v17.common.BookOnGoogleAsset.Builder, com.google.ads.googleads.v17.common.BookOnGoogleAssetOrBuilder>
getBookOnGoogleAssetFieldBuilder() {
if (bookOnGoogleAssetBuilder_ == null) {
if (!(assetDataCase_ == 10)) {
assetData_ = com.google.ads.googleads.v17.common.BookOnGoogleAsset.getDefaultInstance();
}
bookOnGoogleAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.BookOnGoogleAsset, com.google.ads.googleads.v17.common.BookOnGoogleAsset.Builder, com.google.ads.googleads.v17.common.BookOnGoogleAssetOrBuilder>(
(com.google.ads.googleads.v17.common.BookOnGoogleAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 10;
onChanged();
return bookOnGoogleAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.PromotionAsset, com.google.ads.googleads.v17.common.PromotionAsset.Builder, com.google.ads.googleads.v17.common.PromotionAssetOrBuilder> promotionAssetBuilder_;
/**
*
* A promotion asset.
*
*
* .google.ads.googleads.v17.common.PromotionAsset promotion_asset = 15;
* @return Whether the promotionAsset field is set.
*/
@java.lang.Override
public boolean hasPromotionAsset() {
return assetDataCase_ == 15;
}
/**
*
* A promotion asset.
*
*
* .google.ads.googleads.v17.common.PromotionAsset promotion_asset = 15;
* @return The promotionAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.PromotionAsset getPromotionAsset() {
if (promotionAssetBuilder_ == null) {
if (assetDataCase_ == 15) {
return (com.google.ads.googleads.v17.common.PromotionAsset) assetData_;
}
return com.google.ads.googleads.v17.common.PromotionAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 15) {
return promotionAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.PromotionAsset.getDefaultInstance();
}
}
/**
*
* A promotion asset.
*
*
* .google.ads.googleads.v17.common.PromotionAsset promotion_asset = 15;
*/
public Builder setPromotionAsset(com.google.ads.googleads.v17.common.PromotionAsset value) {
if (promotionAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
promotionAssetBuilder_.setMessage(value);
}
assetDataCase_ = 15;
return this;
}
/**
*
* A promotion asset.
*
*
* .google.ads.googleads.v17.common.PromotionAsset promotion_asset = 15;
*/
public Builder setPromotionAsset(
com.google.ads.googleads.v17.common.PromotionAsset.Builder builderForValue) {
if (promotionAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
promotionAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 15;
return this;
}
/**
*
* A promotion asset.
*
*
* .google.ads.googleads.v17.common.PromotionAsset promotion_asset = 15;
*/
public Builder mergePromotionAsset(com.google.ads.googleads.v17.common.PromotionAsset value) {
if (promotionAssetBuilder_ == null) {
if (assetDataCase_ == 15 &&
assetData_ != com.google.ads.googleads.v17.common.PromotionAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.PromotionAsset.newBuilder((com.google.ads.googleads.v17.common.PromotionAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 15) {
promotionAssetBuilder_.mergeFrom(value);
} else {
promotionAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 15;
return this;
}
/**
*
* A promotion asset.
*
*
* .google.ads.googleads.v17.common.PromotionAsset promotion_asset = 15;
*/
public Builder clearPromotionAsset() {
if (promotionAssetBuilder_ == null) {
if (assetDataCase_ == 15) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 15) {
assetDataCase_ = 0;
assetData_ = null;
}
promotionAssetBuilder_.clear();
}
return this;
}
/**
*
* A promotion asset.
*
*
* .google.ads.googleads.v17.common.PromotionAsset promotion_asset = 15;
*/
public com.google.ads.googleads.v17.common.PromotionAsset.Builder getPromotionAssetBuilder() {
return getPromotionAssetFieldBuilder().getBuilder();
}
/**
*
* A promotion asset.
*
*
* .google.ads.googleads.v17.common.PromotionAsset promotion_asset = 15;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.PromotionAssetOrBuilder getPromotionAssetOrBuilder() {
if ((assetDataCase_ == 15) && (promotionAssetBuilder_ != null)) {
return promotionAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 15) {
return (com.google.ads.googleads.v17.common.PromotionAsset) assetData_;
}
return com.google.ads.googleads.v17.common.PromotionAsset.getDefaultInstance();
}
}
/**
*
* A promotion asset.
*
*
* .google.ads.googleads.v17.common.PromotionAsset promotion_asset = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.PromotionAsset, com.google.ads.googleads.v17.common.PromotionAsset.Builder, com.google.ads.googleads.v17.common.PromotionAssetOrBuilder>
getPromotionAssetFieldBuilder() {
if (promotionAssetBuilder_ == null) {
if (!(assetDataCase_ == 15)) {
assetData_ = com.google.ads.googleads.v17.common.PromotionAsset.getDefaultInstance();
}
promotionAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.PromotionAsset, com.google.ads.googleads.v17.common.PromotionAsset.Builder, com.google.ads.googleads.v17.common.PromotionAssetOrBuilder>(
(com.google.ads.googleads.v17.common.PromotionAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 15;
onChanged();
return promotionAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.CalloutAsset, com.google.ads.googleads.v17.common.CalloutAsset.Builder, com.google.ads.googleads.v17.common.CalloutAssetOrBuilder> calloutAssetBuilder_;
/**
*
* A callout asset.
*
*
* .google.ads.googleads.v17.common.CalloutAsset callout_asset = 20;
* @return Whether the calloutAsset field is set.
*/
@java.lang.Override
public boolean hasCalloutAsset() {
return assetDataCase_ == 20;
}
/**
*
* A callout asset.
*
*
* .google.ads.googleads.v17.common.CalloutAsset callout_asset = 20;
* @return The calloutAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.CalloutAsset getCalloutAsset() {
if (calloutAssetBuilder_ == null) {
if (assetDataCase_ == 20) {
return (com.google.ads.googleads.v17.common.CalloutAsset) assetData_;
}
return com.google.ads.googleads.v17.common.CalloutAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 20) {
return calloutAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.CalloutAsset.getDefaultInstance();
}
}
/**
*
* A callout asset.
*
*
* .google.ads.googleads.v17.common.CalloutAsset callout_asset = 20;
*/
public Builder setCalloutAsset(com.google.ads.googleads.v17.common.CalloutAsset value) {
if (calloutAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
calloutAssetBuilder_.setMessage(value);
}
assetDataCase_ = 20;
return this;
}
/**
*
* A callout asset.
*
*
* .google.ads.googleads.v17.common.CalloutAsset callout_asset = 20;
*/
public Builder setCalloutAsset(
com.google.ads.googleads.v17.common.CalloutAsset.Builder builderForValue) {
if (calloutAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
calloutAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 20;
return this;
}
/**
*
* A callout asset.
*
*
* .google.ads.googleads.v17.common.CalloutAsset callout_asset = 20;
*/
public Builder mergeCalloutAsset(com.google.ads.googleads.v17.common.CalloutAsset value) {
if (calloutAssetBuilder_ == null) {
if (assetDataCase_ == 20 &&
assetData_ != com.google.ads.googleads.v17.common.CalloutAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.CalloutAsset.newBuilder((com.google.ads.googleads.v17.common.CalloutAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 20) {
calloutAssetBuilder_.mergeFrom(value);
} else {
calloutAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 20;
return this;
}
/**
*
* A callout asset.
*
*
* .google.ads.googleads.v17.common.CalloutAsset callout_asset = 20;
*/
public Builder clearCalloutAsset() {
if (calloutAssetBuilder_ == null) {
if (assetDataCase_ == 20) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 20) {
assetDataCase_ = 0;
assetData_ = null;
}
calloutAssetBuilder_.clear();
}
return this;
}
/**
*
* A callout asset.
*
*
* .google.ads.googleads.v17.common.CalloutAsset callout_asset = 20;
*/
public com.google.ads.googleads.v17.common.CalloutAsset.Builder getCalloutAssetBuilder() {
return getCalloutAssetFieldBuilder().getBuilder();
}
/**
*
* A callout asset.
*
*
* .google.ads.googleads.v17.common.CalloutAsset callout_asset = 20;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.CalloutAssetOrBuilder getCalloutAssetOrBuilder() {
if ((assetDataCase_ == 20) && (calloutAssetBuilder_ != null)) {
return calloutAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 20) {
return (com.google.ads.googleads.v17.common.CalloutAsset) assetData_;
}
return com.google.ads.googleads.v17.common.CalloutAsset.getDefaultInstance();
}
}
/**
*
* A callout asset.
*
*
* .google.ads.googleads.v17.common.CalloutAsset callout_asset = 20;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.CalloutAsset, com.google.ads.googleads.v17.common.CalloutAsset.Builder, com.google.ads.googleads.v17.common.CalloutAssetOrBuilder>
getCalloutAssetFieldBuilder() {
if (calloutAssetBuilder_ == null) {
if (!(assetDataCase_ == 20)) {
assetData_ = com.google.ads.googleads.v17.common.CalloutAsset.getDefaultInstance();
}
calloutAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.CalloutAsset, com.google.ads.googleads.v17.common.CalloutAsset.Builder, com.google.ads.googleads.v17.common.CalloutAssetOrBuilder>(
(com.google.ads.googleads.v17.common.CalloutAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 20;
onChanged();
return calloutAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.StructuredSnippetAsset, com.google.ads.googleads.v17.common.StructuredSnippetAsset.Builder, com.google.ads.googleads.v17.common.StructuredSnippetAssetOrBuilder> structuredSnippetAssetBuilder_;
/**
*
* A structured snippet asset.
*
*
* .google.ads.googleads.v17.common.StructuredSnippetAsset structured_snippet_asset = 21;
* @return Whether the structuredSnippetAsset field is set.
*/
@java.lang.Override
public boolean hasStructuredSnippetAsset() {
return assetDataCase_ == 21;
}
/**
*
* A structured snippet asset.
*
*
* .google.ads.googleads.v17.common.StructuredSnippetAsset structured_snippet_asset = 21;
* @return The structuredSnippetAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.StructuredSnippetAsset getStructuredSnippetAsset() {
if (structuredSnippetAssetBuilder_ == null) {
if (assetDataCase_ == 21) {
return (com.google.ads.googleads.v17.common.StructuredSnippetAsset) assetData_;
}
return com.google.ads.googleads.v17.common.StructuredSnippetAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 21) {
return structuredSnippetAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.StructuredSnippetAsset.getDefaultInstance();
}
}
/**
*
* A structured snippet asset.
*
*
* .google.ads.googleads.v17.common.StructuredSnippetAsset structured_snippet_asset = 21;
*/
public Builder setStructuredSnippetAsset(com.google.ads.googleads.v17.common.StructuredSnippetAsset value) {
if (structuredSnippetAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
structuredSnippetAssetBuilder_.setMessage(value);
}
assetDataCase_ = 21;
return this;
}
/**
*
* A structured snippet asset.
*
*
* .google.ads.googleads.v17.common.StructuredSnippetAsset structured_snippet_asset = 21;
*/
public Builder setStructuredSnippetAsset(
com.google.ads.googleads.v17.common.StructuredSnippetAsset.Builder builderForValue) {
if (structuredSnippetAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
structuredSnippetAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 21;
return this;
}
/**
*
* A structured snippet asset.
*
*
* .google.ads.googleads.v17.common.StructuredSnippetAsset structured_snippet_asset = 21;
*/
public Builder mergeStructuredSnippetAsset(com.google.ads.googleads.v17.common.StructuredSnippetAsset value) {
if (structuredSnippetAssetBuilder_ == null) {
if (assetDataCase_ == 21 &&
assetData_ != com.google.ads.googleads.v17.common.StructuredSnippetAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.StructuredSnippetAsset.newBuilder((com.google.ads.googleads.v17.common.StructuredSnippetAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 21) {
structuredSnippetAssetBuilder_.mergeFrom(value);
} else {
structuredSnippetAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 21;
return this;
}
/**
*
* A structured snippet asset.
*
*
* .google.ads.googleads.v17.common.StructuredSnippetAsset structured_snippet_asset = 21;
*/
public Builder clearStructuredSnippetAsset() {
if (structuredSnippetAssetBuilder_ == null) {
if (assetDataCase_ == 21) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 21) {
assetDataCase_ = 0;
assetData_ = null;
}
structuredSnippetAssetBuilder_.clear();
}
return this;
}
/**
*
* A structured snippet asset.
*
*
* .google.ads.googleads.v17.common.StructuredSnippetAsset structured_snippet_asset = 21;
*/
public com.google.ads.googleads.v17.common.StructuredSnippetAsset.Builder getStructuredSnippetAssetBuilder() {
return getStructuredSnippetAssetFieldBuilder().getBuilder();
}
/**
*
* A structured snippet asset.
*
*
* .google.ads.googleads.v17.common.StructuredSnippetAsset structured_snippet_asset = 21;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.StructuredSnippetAssetOrBuilder getStructuredSnippetAssetOrBuilder() {
if ((assetDataCase_ == 21) && (structuredSnippetAssetBuilder_ != null)) {
return structuredSnippetAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 21) {
return (com.google.ads.googleads.v17.common.StructuredSnippetAsset) assetData_;
}
return com.google.ads.googleads.v17.common.StructuredSnippetAsset.getDefaultInstance();
}
}
/**
*
* A structured snippet asset.
*
*
* .google.ads.googleads.v17.common.StructuredSnippetAsset structured_snippet_asset = 21;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.StructuredSnippetAsset, com.google.ads.googleads.v17.common.StructuredSnippetAsset.Builder, com.google.ads.googleads.v17.common.StructuredSnippetAssetOrBuilder>
getStructuredSnippetAssetFieldBuilder() {
if (structuredSnippetAssetBuilder_ == null) {
if (!(assetDataCase_ == 21)) {
assetData_ = com.google.ads.googleads.v17.common.StructuredSnippetAsset.getDefaultInstance();
}
structuredSnippetAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.StructuredSnippetAsset, com.google.ads.googleads.v17.common.StructuredSnippetAsset.Builder, com.google.ads.googleads.v17.common.StructuredSnippetAssetOrBuilder>(
(com.google.ads.googleads.v17.common.StructuredSnippetAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 21;
onChanged();
return structuredSnippetAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.SitelinkAsset, com.google.ads.googleads.v17.common.SitelinkAsset.Builder, com.google.ads.googleads.v17.common.SitelinkAssetOrBuilder> sitelinkAssetBuilder_;
/**
*
* A sitelink asset.
*
*
* .google.ads.googleads.v17.common.SitelinkAsset sitelink_asset = 22;
* @return Whether the sitelinkAsset field is set.
*/
@java.lang.Override
public boolean hasSitelinkAsset() {
return assetDataCase_ == 22;
}
/**
*
* A sitelink asset.
*
*
* .google.ads.googleads.v17.common.SitelinkAsset sitelink_asset = 22;
* @return The sitelinkAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.SitelinkAsset getSitelinkAsset() {
if (sitelinkAssetBuilder_ == null) {
if (assetDataCase_ == 22) {
return (com.google.ads.googleads.v17.common.SitelinkAsset) assetData_;
}
return com.google.ads.googleads.v17.common.SitelinkAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 22) {
return sitelinkAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.SitelinkAsset.getDefaultInstance();
}
}
/**
*
* A sitelink asset.
*
*
* .google.ads.googleads.v17.common.SitelinkAsset sitelink_asset = 22;
*/
public Builder setSitelinkAsset(com.google.ads.googleads.v17.common.SitelinkAsset value) {
if (sitelinkAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
sitelinkAssetBuilder_.setMessage(value);
}
assetDataCase_ = 22;
return this;
}
/**
*
* A sitelink asset.
*
*
* .google.ads.googleads.v17.common.SitelinkAsset sitelink_asset = 22;
*/
public Builder setSitelinkAsset(
com.google.ads.googleads.v17.common.SitelinkAsset.Builder builderForValue) {
if (sitelinkAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
sitelinkAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 22;
return this;
}
/**
*
* A sitelink asset.
*
*
* .google.ads.googleads.v17.common.SitelinkAsset sitelink_asset = 22;
*/
public Builder mergeSitelinkAsset(com.google.ads.googleads.v17.common.SitelinkAsset value) {
if (sitelinkAssetBuilder_ == null) {
if (assetDataCase_ == 22 &&
assetData_ != com.google.ads.googleads.v17.common.SitelinkAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.SitelinkAsset.newBuilder((com.google.ads.googleads.v17.common.SitelinkAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 22) {
sitelinkAssetBuilder_.mergeFrom(value);
} else {
sitelinkAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 22;
return this;
}
/**
*
* A sitelink asset.
*
*
* .google.ads.googleads.v17.common.SitelinkAsset sitelink_asset = 22;
*/
public Builder clearSitelinkAsset() {
if (sitelinkAssetBuilder_ == null) {
if (assetDataCase_ == 22) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 22) {
assetDataCase_ = 0;
assetData_ = null;
}
sitelinkAssetBuilder_.clear();
}
return this;
}
/**
*
* A sitelink asset.
*
*
* .google.ads.googleads.v17.common.SitelinkAsset sitelink_asset = 22;
*/
public com.google.ads.googleads.v17.common.SitelinkAsset.Builder getSitelinkAssetBuilder() {
return getSitelinkAssetFieldBuilder().getBuilder();
}
/**
*
* A sitelink asset.
*
*
* .google.ads.googleads.v17.common.SitelinkAsset sitelink_asset = 22;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.SitelinkAssetOrBuilder getSitelinkAssetOrBuilder() {
if ((assetDataCase_ == 22) && (sitelinkAssetBuilder_ != null)) {
return sitelinkAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 22) {
return (com.google.ads.googleads.v17.common.SitelinkAsset) assetData_;
}
return com.google.ads.googleads.v17.common.SitelinkAsset.getDefaultInstance();
}
}
/**
*
* A sitelink asset.
*
*
* .google.ads.googleads.v17.common.SitelinkAsset sitelink_asset = 22;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.SitelinkAsset, com.google.ads.googleads.v17.common.SitelinkAsset.Builder, com.google.ads.googleads.v17.common.SitelinkAssetOrBuilder>
getSitelinkAssetFieldBuilder() {
if (sitelinkAssetBuilder_ == null) {
if (!(assetDataCase_ == 22)) {
assetData_ = com.google.ads.googleads.v17.common.SitelinkAsset.getDefaultInstance();
}
sitelinkAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.SitelinkAsset, com.google.ads.googleads.v17.common.SitelinkAsset.Builder, com.google.ads.googleads.v17.common.SitelinkAssetOrBuilder>(
(com.google.ads.googleads.v17.common.SitelinkAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 22;
onChanged();
return sitelinkAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.PageFeedAsset, com.google.ads.googleads.v17.common.PageFeedAsset.Builder, com.google.ads.googleads.v17.common.PageFeedAssetOrBuilder> pageFeedAssetBuilder_;
/**
*
* A page feed asset.
*
*
* .google.ads.googleads.v17.common.PageFeedAsset page_feed_asset = 23;
* @return Whether the pageFeedAsset field is set.
*/
@java.lang.Override
public boolean hasPageFeedAsset() {
return assetDataCase_ == 23;
}
/**
*
* A page feed asset.
*
*
* .google.ads.googleads.v17.common.PageFeedAsset page_feed_asset = 23;
* @return The pageFeedAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.PageFeedAsset getPageFeedAsset() {
if (pageFeedAssetBuilder_ == null) {
if (assetDataCase_ == 23) {
return (com.google.ads.googleads.v17.common.PageFeedAsset) assetData_;
}
return com.google.ads.googleads.v17.common.PageFeedAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 23) {
return pageFeedAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.PageFeedAsset.getDefaultInstance();
}
}
/**
*
* A page feed asset.
*
*
* .google.ads.googleads.v17.common.PageFeedAsset page_feed_asset = 23;
*/
public Builder setPageFeedAsset(com.google.ads.googleads.v17.common.PageFeedAsset value) {
if (pageFeedAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
pageFeedAssetBuilder_.setMessage(value);
}
assetDataCase_ = 23;
return this;
}
/**
*
* A page feed asset.
*
*
* .google.ads.googleads.v17.common.PageFeedAsset page_feed_asset = 23;
*/
public Builder setPageFeedAsset(
com.google.ads.googleads.v17.common.PageFeedAsset.Builder builderForValue) {
if (pageFeedAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
pageFeedAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 23;
return this;
}
/**
*
* A page feed asset.
*
*
* .google.ads.googleads.v17.common.PageFeedAsset page_feed_asset = 23;
*/
public Builder mergePageFeedAsset(com.google.ads.googleads.v17.common.PageFeedAsset value) {
if (pageFeedAssetBuilder_ == null) {
if (assetDataCase_ == 23 &&
assetData_ != com.google.ads.googleads.v17.common.PageFeedAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.PageFeedAsset.newBuilder((com.google.ads.googleads.v17.common.PageFeedAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 23) {
pageFeedAssetBuilder_.mergeFrom(value);
} else {
pageFeedAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 23;
return this;
}
/**
*
* A page feed asset.
*
*
* .google.ads.googleads.v17.common.PageFeedAsset page_feed_asset = 23;
*/
public Builder clearPageFeedAsset() {
if (pageFeedAssetBuilder_ == null) {
if (assetDataCase_ == 23) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 23) {
assetDataCase_ = 0;
assetData_ = null;
}
pageFeedAssetBuilder_.clear();
}
return this;
}
/**
*
* A page feed asset.
*
*
* .google.ads.googleads.v17.common.PageFeedAsset page_feed_asset = 23;
*/
public com.google.ads.googleads.v17.common.PageFeedAsset.Builder getPageFeedAssetBuilder() {
return getPageFeedAssetFieldBuilder().getBuilder();
}
/**
*
* A page feed asset.
*
*
* .google.ads.googleads.v17.common.PageFeedAsset page_feed_asset = 23;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.PageFeedAssetOrBuilder getPageFeedAssetOrBuilder() {
if ((assetDataCase_ == 23) && (pageFeedAssetBuilder_ != null)) {
return pageFeedAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 23) {
return (com.google.ads.googleads.v17.common.PageFeedAsset) assetData_;
}
return com.google.ads.googleads.v17.common.PageFeedAsset.getDefaultInstance();
}
}
/**
*
* A page feed asset.
*
*
* .google.ads.googleads.v17.common.PageFeedAsset page_feed_asset = 23;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.PageFeedAsset, com.google.ads.googleads.v17.common.PageFeedAsset.Builder, com.google.ads.googleads.v17.common.PageFeedAssetOrBuilder>
getPageFeedAssetFieldBuilder() {
if (pageFeedAssetBuilder_ == null) {
if (!(assetDataCase_ == 23)) {
assetData_ = com.google.ads.googleads.v17.common.PageFeedAsset.getDefaultInstance();
}
pageFeedAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.PageFeedAsset, com.google.ads.googleads.v17.common.PageFeedAsset.Builder, com.google.ads.googleads.v17.common.PageFeedAssetOrBuilder>(
(com.google.ads.googleads.v17.common.PageFeedAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 23;
onChanged();
return pageFeedAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicEducationAsset, com.google.ads.googleads.v17.common.DynamicEducationAsset.Builder, com.google.ads.googleads.v17.common.DynamicEducationAssetOrBuilder> dynamicEducationAssetBuilder_;
/**
*
* A dynamic education asset.
*
*
* .google.ads.googleads.v17.common.DynamicEducationAsset dynamic_education_asset = 24;
* @return Whether the dynamicEducationAsset field is set.
*/
@java.lang.Override
public boolean hasDynamicEducationAsset() {
return assetDataCase_ == 24;
}
/**
*
* A dynamic education asset.
*
*
* .google.ads.googleads.v17.common.DynamicEducationAsset dynamic_education_asset = 24;
* @return The dynamicEducationAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicEducationAsset getDynamicEducationAsset() {
if (dynamicEducationAssetBuilder_ == null) {
if (assetDataCase_ == 24) {
return (com.google.ads.googleads.v17.common.DynamicEducationAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicEducationAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 24) {
return dynamicEducationAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.DynamicEducationAsset.getDefaultInstance();
}
}
/**
*
* A dynamic education asset.
*
*
* .google.ads.googleads.v17.common.DynamicEducationAsset dynamic_education_asset = 24;
*/
public Builder setDynamicEducationAsset(com.google.ads.googleads.v17.common.DynamicEducationAsset value) {
if (dynamicEducationAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
dynamicEducationAssetBuilder_.setMessage(value);
}
assetDataCase_ = 24;
return this;
}
/**
*
* A dynamic education asset.
*
*
* .google.ads.googleads.v17.common.DynamicEducationAsset dynamic_education_asset = 24;
*/
public Builder setDynamicEducationAsset(
com.google.ads.googleads.v17.common.DynamicEducationAsset.Builder builderForValue) {
if (dynamicEducationAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
dynamicEducationAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 24;
return this;
}
/**
*
* A dynamic education asset.
*
*
* .google.ads.googleads.v17.common.DynamicEducationAsset dynamic_education_asset = 24;
*/
public Builder mergeDynamicEducationAsset(com.google.ads.googleads.v17.common.DynamicEducationAsset value) {
if (dynamicEducationAssetBuilder_ == null) {
if (assetDataCase_ == 24 &&
assetData_ != com.google.ads.googleads.v17.common.DynamicEducationAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.DynamicEducationAsset.newBuilder((com.google.ads.googleads.v17.common.DynamicEducationAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 24) {
dynamicEducationAssetBuilder_.mergeFrom(value);
} else {
dynamicEducationAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 24;
return this;
}
/**
*
* A dynamic education asset.
*
*
* .google.ads.googleads.v17.common.DynamicEducationAsset dynamic_education_asset = 24;
*/
public Builder clearDynamicEducationAsset() {
if (dynamicEducationAssetBuilder_ == null) {
if (assetDataCase_ == 24) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 24) {
assetDataCase_ = 0;
assetData_ = null;
}
dynamicEducationAssetBuilder_.clear();
}
return this;
}
/**
*
* A dynamic education asset.
*
*
* .google.ads.googleads.v17.common.DynamicEducationAsset dynamic_education_asset = 24;
*/
public com.google.ads.googleads.v17.common.DynamicEducationAsset.Builder getDynamicEducationAssetBuilder() {
return getDynamicEducationAssetFieldBuilder().getBuilder();
}
/**
*
* A dynamic education asset.
*
*
* .google.ads.googleads.v17.common.DynamicEducationAsset dynamic_education_asset = 24;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicEducationAssetOrBuilder getDynamicEducationAssetOrBuilder() {
if ((assetDataCase_ == 24) && (dynamicEducationAssetBuilder_ != null)) {
return dynamicEducationAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 24) {
return (com.google.ads.googleads.v17.common.DynamicEducationAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicEducationAsset.getDefaultInstance();
}
}
/**
*
* A dynamic education asset.
*
*
* .google.ads.googleads.v17.common.DynamicEducationAsset dynamic_education_asset = 24;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicEducationAsset, com.google.ads.googleads.v17.common.DynamicEducationAsset.Builder, com.google.ads.googleads.v17.common.DynamicEducationAssetOrBuilder>
getDynamicEducationAssetFieldBuilder() {
if (dynamicEducationAssetBuilder_ == null) {
if (!(assetDataCase_ == 24)) {
assetData_ = com.google.ads.googleads.v17.common.DynamicEducationAsset.getDefaultInstance();
}
dynamicEducationAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicEducationAsset, com.google.ads.googleads.v17.common.DynamicEducationAsset.Builder, com.google.ads.googleads.v17.common.DynamicEducationAssetOrBuilder>(
(com.google.ads.googleads.v17.common.DynamicEducationAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 24;
onChanged();
return dynamicEducationAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.MobileAppAsset, com.google.ads.googleads.v17.common.MobileAppAsset.Builder, com.google.ads.googleads.v17.common.MobileAppAssetOrBuilder> mobileAppAssetBuilder_;
/**
*
* A mobile app asset.
*
*
* .google.ads.googleads.v17.common.MobileAppAsset mobile_app_asset = 25;
* @return Whether the mobileAppAsset field is set.
*/
@java.lang.Override
public boolean hasMobileAppAsset() {
return assetDataCase_ == 25;
}
/**
*
* A mobile app asset.
*
*
* .google.ads.googleads.v17.common.MobileAppAsset mobile_app_asset = 25;
* @return The mobileAppAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MobileAppAsset getMobileAppAsset() {
if (mobileAppAssetBuilder_ == null) {
if (assetDataCase_ == 25) {
return (com.google.ads.googleads.v17.common.MobileAppAsset) assetData_;
}
return com.google.ads.googleads.v17.common.MobileAppAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 25) {
return mobileAppAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.MobileAppAsset.getDefaultInstance();
}
}
/**
*
* A mobile app asset.
*
*
* .google.ads.googleads.v17.common.MobileAppAsset mobile_app_asset = 25;
*/
public Builder setMobileAppAsset(com.google.ads.googleads.v17.common.MobileAppAsset value) {
if (mobileAppAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
mobileAppAssetBuilder_.setMessage(value);
}
assetDataCase_ = 25;
return this;
}
/**
*
* A mobile app asset.
*
*
* .google.ads.googleads.v17.common.MobileAppAsset mobile_app_asset = 25;
*/
public Builder setMobileAppAsset(
com.google.ads.googleads.v17.common.MobileAppAsset.Builder builderForValue) {
if (mobileAppAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
mobileAppAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 25;
return this;
}
/**
*
* A mobile app asset.
*
*
* .google.ads.googleads.v17.common.MobileAppAsset mobile_app_asset = 25;
*/
public Builder mergeMobileAppAsset(com.google.ads.googleads.v17.common.MobileAppAsset value) {
if (mobileAppAssetBuilder_ == null) {
if (assetDataCase_ == 25 &&
assetData_ != com.google.ads.googleads.v17.common.MobileAppAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.MobileAppAsset.newBuilder((com.google.ads.googleads.v17.common.MobileAppAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 25) {
mobileAppAssetBuilder_.mergeFrom(value);
} else {
mobileAppAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 25;
return this;
}
/**
*
* A mobile app asset.
*
*
* .google.ads.googleads.v17.common.MobileAppAsset mobile_app_asset = 25;
*/
public Builder clearMobileAppAsset() {
if (mobileAppAssetBuilder_ == null) {
if (assetDataCase_ == 25) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 25) {
assetDataCase_ = 0;
assetData_ = null;
}
mobileAppAssetBuilder_.clear();
}
return this;
}
/**
*
* A mobile app asset.
*
*
* .google.ads.googleads.v17.common.MobileAppAsset mobile_app_asset = 25;
*/
public com.google.ads.googleads.v17.common.MobileAppAsset.Builder getMobileAppAssetBuilder() {
return getMobileAppAssetFieldBuilder().getBuilder();
}
/**
*
* A mobile app asset.
*
*
* .google.ads.googleads.v17.common.MobileAppAsset mobile_app_asset = 25;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MobileAppAssetOrBuilder getMobileAppAssetOrBuilder() {
if ((assetDataCase_ == 25) && (mobileAppAssetBuilder_ != null)) {
return mobileAppAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 25) {
return (com.google.ads.googleads.v17.common.MobileAppAsset) assetData_;
}
return com.google.ads.googleads.v17.common.MobileAppAsset.getDefaultInstance();
}
}
/**
*
* A mobile app asset.
*
*
* .google.ads.googleads.v17.common.MobileAppAsset mobile_app_asset = 25;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.MobileAppAsset, com.google.ads.googleads.v17.common.MobileAppAsset.Builder, com.google.ads.googleads.v17.common.MobileAppAssetOrBuilder>
getMobileAppAssetFieldBuilder() {
if (mobileAppAssetBuilder_ == null) {
if (!(assetDataCase_ == 25)) {
assetData_ = com.google.ads.googleads.v17.common.MobileAppAsset.getDefaultInstance();
}
mobileAppAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.MobileAppAsset, com.google.ads.googleads.v17.common.MobileAppAsset.Builder, com.google.ads.googleads.v17.common.MobileAppAssetOrBuilder>(
(com.google.ads.googleads.v17.common.MobileAppAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 25;
onChanged();
return mobileAppAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.HotelCalloutAsset, com.google.ads.googleads.v17.common.HotelCalloutAsset.Builder, com.google.ads.googleads.v17.common.HotelCalloutAssetOrBuilder> hotelCalloutAssetBuilder_;
/**
*
* A hotel callout asset.
*
*
* .google.ads.googleads.v17.common.HotelCalloutAsset hotel_callout_asset = 26;
* @return Whether the hotelCalloutAsset field is set.
*/
@java.lang.Override
public boolean hasHotelCalloutAsset() {
return assetDataCase_ == 26;
}
/**
*
* A hotel callout asset.
*
*
* .google.ads.googleads.v17.common.HotelCalloutAsset hotel_callout_asset = 26;
* @return The hotelCalloutAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.HotelCalloutAsset getHotelCalloutAsset() {
if (hotelCalloutAssetBuilder_ == null) {
if (assetDataCase_ == 26) {
return (com.google.ads.googleads.v17.common.HotelCalloutAsset) assetData_;
}
return com.google.ads.googleads.v17.common.HotelCalloutAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 26) {
return hotelCalloutAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.HotelCalloutAsset.getDefaultInstance();
}
}
/**
*
* A hotel callout asset.
*
*
* .google.ads.googleads.v17.common.HotelCalloutAsset hotel_callout_asset = 26;
*/
public Builder setHotelCalloutAsset(com.google.ads.googleads.v17.common.HotelCalloutAsset value) {
if (hotelCalloutAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
hotelCalloutAssetBuilder_.setMessage(value);
}
assetDataCase_ = 26;
return this;
}
/**
*
* A hotel callout asset.
*
*
* .google.ads.googleads.v17.common.HotelCalloutAsset hotel_callout_asset = 26;
*/
public Builder setHotelCalloutAsset(
com.google.ads.googleads.v17.common.HotelCalloutAsset.Builder builderForValue) {
if (hotelCalloutAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
hotelCalloutAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 26;
return this;
}
/**
*
* A hotel callout asset.
*
*
* .google.ads.googleads.v17.common.HotelCalloutAsset hotel_callout_asset = 26;
*/
public Builder mergeHotelCalloutAsset(com.google.ads.googleads.v17.common.HotelCalloutAsset value) {
if (hotelCalloutAssetBuilder_ == null) {
if (assetDataCase_ == 26 &&
assetData_ != com.google.ads.googleads.v17.common.HotelCalloutAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.HotelCalloutAsset.newBuilder((com.google.ads.googleads.v17.common.HotelCalloutAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 26) {
hotelCalloutAssetBuilder_.mergeFrom(value);
} else {
hotelCalloutAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 26;
return this;
}
/**
*
* A hotel callout asset.
*
*
* .google.ads.googleads.v17.common.HotelCalloutAsset hotel_callout_asset = 26;
*/
public Builder clearHotelCalloutAsset() {
if (hotelCalloutAssetBuilder_ == null) {
if (assetDataCase_ == 26) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 26) {
assetDataCase_ = 0;
assetData_ = null;
}
hotelCalloutAssetBuilder_.clear();
}
return this;
}
/**
*
* A hotel callout asset.
*
*
* .google.ads.googleads.v17.common.HotelCalloutAsset hotel_callout_asset = 26;
*/
public com.google.ads.googleads.v17.common.HotelCalloutAsset.Builder getHotelCalloutAssetBuilder() {
return getHotelCalloutAssetFieldBuilder().getBuilder();
}
/**
*
* A hotel callout asset.
*
*
* .google.ads.googleads.v17.common.HotelCalloutAsset hotel_callout_asset = 26;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.HotelCalloutAssetOrBuilder getHotelCalloutAssetOrBuilder() {
if ((assetDataCase_ == 26) && (hotelCalloutAssetBuilder_ != null)) {
return hotelCalloutAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 26) {
return (com.google.ads.googleads.v17.common.HotelCalloutAsset) assetData_;
}
return com.google.ads.googleads.v17.common.HotelCalloutAsset.getDefaultInstance();
}
}
/**
*
* A hotel callout asset.
*
*
* .google.ads.googleads.v17.common.HotelCalloutAsset hotel_callout_asset = 26;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.HotelCalloutAsset, com.google.ads.googleads.v17.common.HotelCalloutAsset.Builder, com.google.ads.googleads.v17.common.HotelCalloutAssetOrBuilder>
getHotelCalloutAssetFieldBuilder() {
if (hotelCalloutAssetBuilder_ == null) {
if (!(assetDataCase_ == 26)) {
assetData_ = com.google.ads.googleads.v17.common.HotelCalloutAsset.getDefaultInstance();
}
hotelCalloutAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.HotelCalloutAsset, com.google.ads.googleads.v17.common.HotelCalloutAsset.Builder, com.google.ads.googleads.v17.common.HotelCalloutAssetOrBuilder>(
(com.google.ads.googleads.v17.common.HotelCalloutAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 26;
onChanged();
return hotelCalloutAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.CallAsset, com.google.ads.googleads.v17.common.CallAsset.Builder, com.google.ads.googleads.v17.common.CallAssetOrBuilder> callAssetBuilder_;
/**
*
* A call asset.
*
*
* .google.ads.googleads.v17.common.CallAsset call_asset = 27;
* @return Whether the callAsset field is set.
*/
@java.lang.Override
public boolean hasCallAsset() {
return assetDataCase_ == 27;
}
/**
*
* A call asset.
*
*
* .google.ads.googleads.v17.common.CallAsset call_asset = 27;
* @return The callAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.CallAsset getCallAsset() {
if (callAssetBuilder_ == null) {
if (assetDataCase_ == 27) {
return (com.google.ads.googleads.v17.common.CallAsset) assetData_;
}
return com.google.ads.googleads.v17.common.CallAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 27) {
return callAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.CallAsset.getDefaultInstance();
}
}
/**
*
* A call asset.
*
*
* .google.ads.googleads.v17.common.CallAsset call_asset = 27;
*/
public Builder setCallAsset(com.google.ads.googleads.v17.common.CallAsset value) {
if (callAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
callAssetBuilder_.setMessage(value);
}
assetDataCase_ = 27;
return this;
}
/**
*
* A call asset.
*
*
* .google.ads.googleads.v17.common.CallAsset call_asset = 27;
*/
public Builder setCallAsset(
com.google.ads.googleads.v17.common.CallAsset.Builder builderForValue) {
if (callAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
callAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 27;
return this;
}
/**
*
* A call asset.
*
*
* .google.ads.googleads.v17.common.CallAsset call_asset = 27;
*/
public Builder mergeCallAsset(com.google.ads.googleads.v17.common.CallAsset value) {
if (callAssetBuilder_ == null) {
if (assetDataCase_ == 27 &&
assetData_ != com.google.ads.googleads.v17.common.CallAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.CallAsset.newBuilder((com.google.ads.googleads.v17.common.CallAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 27) {
callAssetBuilder_.mergeFrom(value);
} else {
callAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 27;
return this;
}
/**
*
* A call asset.
*
*
* .google.ads.googleads.v17.common.CallAsset call_asset = 27;
*/
public Builder clearCallAsset() {
if (callAssetBuilder_ == null) {
if (assetDataCase_ == 27) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 27) {
assetDataCase_ = 0;
assetData_ = null;
}
callAssetBuilder_.clear();
}
return this;
}
/**
*
* A call asset.
*
*
* .google.ads.googleads.v17.common.CallAsset call_asset = 27;
*/
public com.google.ads.googleads.v17.common.CallAsset.Builder getCallAssetBuilder() {
return getCallAssetFieldBuilder().getBuilder();
}
/**
*
* A call asset.
*
*
* .google.ads.googleads.v17.common.CallAsset call_asset = 27;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.CallAssetOrBuilder getCallAssetOrBuilder() {
if ((assetDataCase_ == 27) && (callAssetBuilder_ != null)) {
return callAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 27) {
return (com.google.ads.googleads.v17.common.CallAsset) assetData_;
}
return com.google.ads.googleads.v17.common.CallAsset.getDefaultInstance();
}
}
/**
*
* A call asset.
*
*
* .google.ads.googleads.v17.common.CallAsset call_asset = 27;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.CallAsset, com.google.ads.googleads.v17.common.CallAsset.Builder, com.google.ads.googleads.v17.common.CallAssetOrBuilder>
getCallAssetFieldBuilder() {
if (callAssetBuilder_ == null) {
if (!(assetDataCase_ == 27)) {
assetData_ = com.google.ads.googleads.v17.common.CallAsset.getDefaultInstance();
}
callAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.CallAsset, com.google.ads.googleads.v17.common.CallAsset.Builder, com.google.ads.googleads.v17.common.CallAssetOrBuilder>(
(com.google.ads.googleads.v17.common.CallAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 27;
onChanged();
return callAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.PriceAsset, com.google.ads.googleads.v17.common.PriceAsset.Builder, com.google.ads.googleads.v17.common.PriceAssetOrBuilder> priceAssetBuilder_;
/**
*
* A price asset.
*
*
* .google.ads.googleads.v17.common.PriceAsset price_asset = 28;
* @return Whether the priceAsset field is set.
*/
@java.lang.Override
public boolean hasPriceAsset() {
return assetDataCase_ == 28;
}
/**
*
* A price asset.
*
*
* .google.ads.googleads.v17.common.PriceAsset price_asset = 28;
* @return The priceAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.PriceAsset getPriceAsset() {
if (priceAssetBuilder_ == null) {
if (assetDataCase_ == 28) {
return (com.google.ads.googleads.v17.common.PriceAsset) assetData_;
}
return com.google.ads.googleads.v17.common.PriceAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 28) {
return priceAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.PriceAsset.getDefaultInstance();
}
}
/**
*
* A price asset.
*
*
* .google.ads.googleads.v17.common.PriceAsset price_asset = 28;
*/
public Builder setPriceAsset(com.google.ads.googleads.v17.common.PriceAsset value) {
if (priceAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
priceAssetBuilder_.setMessage(value);
}
assetDataCase_ = 28;
return this;
}
/**
*
* A price asset.
*
*
* .google.ads.googleads.v17.common.PriceAsset price_asset = 28;
*/
public Builder setPriceAsset(
com.google.ads.googleads.v17.common.PriceAsset.Builder builderForValue) {
if (priceAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
priceAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 28;
return this;
}
/**
*
* A price asset.
*
*
* .google.ads.googleads.v17.common.PriceAsset price_asset = 28;
*/
public Builder mergePriceAsset(com.google.ads.googleads.v17.common.PriceAsset value) {
if (priceAssetBuilder_ == null) {
if (assetDataCase_ == 28 &&
assetData_ != com.google.ads.googleads.v17.common.PriceAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.PriceAsset.newBuilder((com.google.ads.googleads.v17.common.PriceAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 28) {
priceAssetBuilder_.mergeFrom(value);
} else {
priceAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 28;
return this;
}
/**
*
* A price asset.
*
*
* .google.ads.googleads.v17.common.PriceAsset price_asset = 28;
*/
public Builder clearPriceAsset() {
if (priceAssetBuilder_ == null) {
if (assetDataCase_ == 28) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 28) {
assetDataCase_ = 0;
assetData_ = null;
}
priceAssetBuilder_.clear();
}
return this;
}
/**
*
* A price asset.
*
*
* .google.ads.googleads.v17.common.PriceAsset price_asset = 28;
*/
public com.google.ads.googleads.v17.common.PriceAsset.Builder getPriceAssetBuilder() {
return getPriceAssetFieldBuilder().getBuilder();
}
/**
*
* A price asset.
*
*
* .google.ads.googleads.v17.common.PriceAsset price_asset = 28;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.PriceAssetOrBuilder getPriceAssetOrBuilder() {
if ((assetDataCase_ == 28) && (priceAssetBuilder_ != null)) {
return priceAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 28) {
return (com.google.ads.googleads.v17.common.PriceAsset) assetData_;
}
return com.google.ads.googleads.v17.common.PriceAsset.getDefaultInstance();
}
}
/**
*
* A price asset.
*
*
* .google.ads.googleads.v17.common.PriceAsset price_asset = 28;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.PriceAsset, com.google.ads.googleads.v17.common.PriceAsset.Builder, com.google.ads.googleads.v17.common.PriceAssetOrBuilder>
getPriceAssetFieldBuilder() {
if (priceAssetBuilder_ == null) {
if (!(assetDataCase_ == 28)) {
assetData_ = com.google.ads.googleads.v17.common.PriceAsset.getDefaultInstance();
}
priceAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.PriceAsset, com.google.ads.googleads.v17.common.PriceAsset.Builder, com.google.ads.googleads.v17.common.PriceAssetOrBuilder>(
(com.google.ads.googleads.v17.common.PriceAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 28;
onChanged();
return priceAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.CallToActionAsset, com.google.ads.googleads.v17.common.CallToActionAsset.Builder, com.google.ads.googleads.v17.common.CallToActionAssetOrBuilder> callToActionAssetBuilder_;
/**
*
* Immutable. A call to action asset.
*
*
* .google.ads.googleads.v17.common.CallToActionAsset call_to_action_asset = 29 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the callToActionAsset field is set.
*/
@java.lang.Override
public boolean hasCallToActionAsset() {
return assetDataCase_ == 29;
}
/**
*
* Immutable. A call to action asset.
*
*
* .google.ads.googleads.v17.common.CallToActionAsset call_to_action_asset = 29 [(.google.api.field_behavior) = IMMUTABLE];
* @return The callToActionAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.CallToActionAsset getCallToActionAsset() {
if (callToActionAssetBuilder_ == null) {
if (assetDataCase_ == 29) {
return (com.google.ads.googleads.v17.common.CallToActionAsset) assetData_;
}
return com.google.ads.googleads.v17.common.CallToActionAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 29) {
return callToActionAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.CallToActionAsset.getDefaultInstance();
}
}
/**
*
* Immutable. A call to action asset.
*
*
* .google.ads.googleads.v17.common.CallToActionAsset call_to_action_asset = 29 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setCallToActionAsset(com.google.ads.googleads.v17.common.CallToActionAsset value) {
if (callToActionAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
callToActionAssetBuilder_.setMessage(value);
}
assetDataCase_ = 29;
return this;
}
/**
*
* Immutable. A call to action asset.
*
*
* .google.ads.googleads.v17.common.CallToActionAsset call_to_action_asset = 29 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setCallToActionAsset(
com.google.ads.googleads.v17.common.CallToActionAsset.Builder builderForValue) {
if (callToActionAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
callToActionAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 29;
return this;
}
/**
*
* Immutable. A call to action asset.
*
*
* .google.ads.googleads.v17.common.CallToActionAsset call_to_action_asset = 29 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeCallToActionAsset(com.google.ads.googleads.v17.common.CallToActionAsset value) {
if (callToActionAssetBuilder_ == null) {
if (assetDataCase_ == 29 &&
assetData_ != com.google.ads.googleads.v17.common.CallToActionAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.CallToActionAsset.newBuilder((com.google.ads.googleads.v17.common.CallToActionAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 29) {
callToActionAssetBuilder_.mergeFrom(value);
} else {
callToActionAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 29;
return this;
}
/**
*
* Immutable. A call to action asset.
*
*
* .google.ads.googleads.v17.common.CallToActionAsset call_to_action_asset = 29 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearCallToActionAsset() {
if (callToActionAssetBuilder_ == null) {
if (assetDataCase_ == 29) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 29) {
assetDataCase_ = 0;
assetData_ = null;
}
callToActionAssetBuilder_.clear();
}
return this;
}
/**
*
* Immutable. A call to action asset.
*
*
* .google.ads.googleads.v17.common.CallToActionAsset call_to_action_asset = 29 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v17.common.CallToActionAsset.Builder getCallToActionAssetBuilder() {
return getCallToActionAssetFieldBuilder().getBuilder();
}
/**
*
* Immutable. A call to action asset.
*
*
* .google.ads.googleads.v17.common.CallToActionAsset call_to_action_asset = 29 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.CallToActionAssetOrBuilder getCallToActionAssetOrBuilder() {
if ((assetDataCase_ == 29) && (callToActionAssetBuilder_ != null)) {
return callToActionAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 29) {
return (com.google.ads.googleads.v17.common.CallToActionAsset) assetData_;
}
return com.google.ads.googleads.v17.common.CallToActionAsset.getDefaultInstance();
}
}
/**
*
* Immutable. A call to action asset.
*
*
* .google.ads.googleads.v17.common.CallToActionAsset call_to_action_asset = 29 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.CallToActionAsset, com.google.ads.googleads.v17.common.CallToActionAsset.Builder, com.google.ads.googleads.v17.common.CallToActionAssetOrBuilder>
getCallToActionAssetFieldBuilder() {
if (callToActionAssetBuilder_ == null) {
if (!(assetDataCase_ == 29)) {
assetData_ = com.google.ads.googleads.v17.common.CallToActionAsset.getDefaultInstance();
}
callToActionAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.CallToActionAsset, com.google.ads.googleads.v17.common.CallToActionAsset.Builder, com.google.ads.googleads.v17.common.CallToActionAssetOrBuilder>(
(com.google.ads.googleads.v17.common.CallToActionAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 29;
onChanged();
return callToActionAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicRealEstateAsset, com.google.ads.googleads.v17.common.DynamicRealEstateAsset.Builder, com.google.ads.googleads.v17.common.DynamicRealEstateAssetOrBuilder> dynamicRealEstateAssetBuilder_;
/**
*
* A dynamic real estate asset.
*
*
* .google.ads.googleads.v17.common.DynamicRealEstateAsset dynamic_real_estate_asset = 30;
* @return Whether the dynamicRealEstateAsset field is set.
*/
@java.lang.Override
public boolean hasDynamicRealEstateAsset() {
return assetDataCase_ == 30;
}
/**
*
* A dynamic real estate asset.
*
*
* .google.ads.googleads.v17.common.DynamicRealEstateAsset dynamic_real_estate_asset = 30;
* @return The dynamicRealEstateAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicRealEstateAsset getDynamicRealEstateAsset() {
if (dynamicRealEstateAssetBuilder_ == null) {
if (assetDataCase_ == 30) {
return (com.google.ads.googleads.v17.common.DynamicRealEstateAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicRealEstateAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 30) {
return dynamicRealEstateAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.DynamicRealEstateAsset.getDefaultInstance();
}
}
/**
*
* A dynamic real estate asset.
*
*
* .google.ads.googleads.v17.common.DynamicRealEstateAsset dynamic_real_estate_asset = 30;
*/
public Builder setDynamicRealEstateAsset(com.google.ads.googleads.v17.common.DynamicRealEstateAsset value) {
if (dynamicRealEstateAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
dynamicRealEstateAssetBuilder_.setMessage(value);
}
assetDataCase_ = 30;
return this;
}
/**
*
* A dynamic real estate asset.
*
*
* .google.ads.googleads.v17.common.DynamicRealEstateAsset dynamic_real_estate_asset = 30;
*/
public Builder setDynamicRealEstateAsset(
com.google.ads.googleads.v17.common.DynamicRealEstateAsset.Builder builderForValue) {
if (dynamicRealEstateAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
dynamicRealEstateAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 30;
return this;
}
/**
*
* A dynamic real estate asset.
*
*
* .google.ads.googleads.v17.common.DynamicRealEstateAsset dynamic_real_estate_asset = 30;
*/
public Builder mergeDynamicRealEstateAsset(com.google.ads.googleads.v17.common.DynamicRealEstateAsset value) {
if (dynamicRealEstateAssetBuilder_ == null) {
if (assetDataCase_ == 30 &&
assetData_ != com.google.ads.googleads.v17.common.DynamicRealEstateAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.DynamicRealEstateAsset.newBuilder((com.google.ads.googleads.v17.common.DynamicRealEstateAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 30) {
dynamicRealEstateAssetBuilder_.mergeFrom(value);
} else {
dynamicRealEstateAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 30;
return this;
}
/**
*
* A dynamic real estate asset.
*
*
* .google.ads.googleads.v17.common.DynamicRealEstateAsset dynamic_real_estate_asset = 30;
*/
public Builder clearDynamicRealEstateAsset() {
if (dynamicRealEstateAssetBuilder_ == null) {
if (assetDataCase_ == 30) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 30) {
assetDataCase_ = 0;
assetData_ = null;
}
dynamicRealEstateAssetBuilder_.clear();
}
return this;
}
/**
*
* A dynamic real estate asset.
*
*
* .google.ads.googleads.v17.common.DynamicRealEstateAsset dynamic_real_estate_asset = 30;
*/
public com.google.ads.googleads.v17.common.DynamicRealEstateAsset.Builder getDynamicRealEstateAssetBuilder() {
return getDynamicRealEstateAssetFieldBuilder().getBuilder();
}
/**
*
* A dynamic real estate asset.
*
*
* .google.ads.googleads.v17.common.DynamicRealEstateAsset dynamic_real_estate_asset = 30;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicRealEstateAssetOrBuilder getDynamicRealEstateAssetOrBuilder() {
if ((assetDataCase_ == 30) && (dynamicRealEstateAssetBuilder_ != null)) {
return dynamicRealEstateAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 30) {
return (com.google.ads.googleads.v17.common.DynamicRealEstateAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicRealEstateAsset.getDefaultInstance();
}
}
/**
*
* A dynamic real estate asset.
*
*
* .google.ads.googleads.v17.common.DynamicRealEstateAsset dynamic_real_estate_asset = 30;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicRealEstateAsset, com.google.ads.googleads.v17.common.DynamicRealEstateAsset.Builder, com.google.ads.googleads.v17.common.DynamicRealEstateAssetOrBuilder>
getDynamicRealEstateAssetFieldBuilder() {
if (dynamicRealEstateAssetBuilder_ == null) {
if (!(assetDataCase_ == 30)) {
assetData_ = com.google.ads.googleads.v17.common.DynamicRealEstateAsset.getDefaultInstance();
}
dynamicRealEstateAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicRealEstateAsset, com.google.ads.googleads.v17.common.DynamicRealEstateAsset.Builder, com.google.ads.googleads.v17.common.DynamicRealEstateAssetOrBuilder>(
(com.google.ads.googleads.v17.common.DynamicRealEstateAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 30;
onChanged();
return dynamicRealEstateAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicCustomAsset, com.google.ads.googleads.v17.common.DynamicCustomAsset.Builder, com.google.ads.googleads.v17.common.DynamicCustomAssetOrBuilder> dynamicCustomAssetBuilder_;
/**
*
* A dynamic custom asset.
*
*
* .google.ads.googleads.v17.common.DynamicCustomAsset dynamic_custom_asset = 31;
* @return Whether the dynamicCustomAsset field is set.
*/
@java.lang.Override
public boolean hasDynamicCustomAsset() {
return assetDataCase_ == 31;
}
/**
*
* A dynamic custom asset.
*
*
* .google.ads.googleads.v17.common.DynamicCustomAsset dynamic_custom_asset = 31;
* @return The dynamicCustomAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicCustomAsset getDynamicCustomAsset() {
if (dynamicCustomAssetBuilder_ == null) {
if (assetDataCase_ == 31) {
return (com.google.ads.googleads.v17.common.DynamicCustomAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicCustomAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 31) {
return dynamicCustomAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.DynamicCustomAsset.getDefaultInstance();
}
}
/**
*
* A dynamic custom asset.
*
*
* .google.ads.googleads.v17.common.DynamicCustomAsset dynamic_custom_asset = 31;
*/
public Builder setDynamicCustomAsset(com.google.ads.googleads.v17.common.DynamicCustomAsset value) {
if (dynamicCustomAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
dynamicCustomAssetBuilder_.setMessage(value);
}
assetDataCase_ = 31;
return this;
}
/**
*
* A dynamic custom asset.
*
*
* .google.ads.googleads.v17.common.DynamicCustomAsset dynamic_custom_asset = 31;
*/
public Builder setDynamicCustomAsset(
com.google.ads.googleads.v17.common.DynamicCustomAsset.Builder builderForValue) {
if (dynamicCustomAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
dynamicCustomAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 31;
return this;
}
/**
*
* A dynamic custom asset.
*
*
* .google.ads.googleads.v17.common.DynamicCustomAsset dynamic_custom_asset = 31;
*/
public Builder mergeDynamicCustomAsset(com.google.ads.googleads.v17.common.DynamicCustomAsset value) {
if (dynamicCustomAssetBuilder_ == null) {
if (assetDataCase_ == 31 &&
assetData_ != com.google.ads.googleads.v17.common.DynamicCustomAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.DynamicCustomAsset.newBuilder((com.google.ads.googleads.v17.common.DynamicCustomAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 31) {
dynamicCustomAssetBuilder_.mergeFrom(value);
} else {
dynamicCustomAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 31;
return this;
}
/**
*
* A dynamic custom asset.
*
*
* .google.ads.googleads.v17.common.DynamicCustomAsset dynamic_custom_asset = 31;
*/
public Builder clearDynamicCustomAsset() {
if (dynamicCustomAssetBuilder_ == null) {
if (assetDataCase_ == 31) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 31) {
assetDataCase_ = 0;
assetData_ = null;
}
dynamicCustomAssetBuilder_.clear();
}
return this;
}
/**
*
* A dynamic custom asset.
*
*
* .google.ads.googleads.v17.common.DynamicCustomAsset dynamic_custom_asset = 31;
*/
public com.google.ads.googleads.v17.common.DynamicCustomAsset.Builder getDynamicCustomAssetBuilder() {
return getDynamicCustomAssetFieldBuilder().getBuilder();
}
/**
*
* A dynamic custom asset.
*
*
* .google.ads.googleads.v17.common.DynamicCustomAsset dynamic_custom_asset = 31;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicCustomAssetOrBuilder getDynamicCustomAssetOrBuilder() {
if ((assetDataCase_ == 31) && (dynamicCustomAssetBuilder_ != null)) {
return dynamicCustomAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 31) {
return (com.google.ads.googleads.v17.common.DynamicCustomAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicCustomAsset.getDefaultInstance();
}
}
/**
*
* A dynamic custom asset.
*
*
* .google.ads.googleads.v17.common.DynamicCustomAsset dynamic_custom_asset = 31;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicCustomAsset, com.google.ads.googleads.v17.common.DynamicCustomAsset.Builder, com.google.ads.googleads.v17.common.DynamicCustomAssetOrBuilder>
getDynamicCustomAssetFieldBuilder() {
if (dynamicCustomAssetBuilder_ == null) {
if (!(assetDataCase_ == 31)) {
assetData_ = com.google.ads.googleads.v17.common.DynamicCustomAsset.getDefaultInstance();
}
dynamicCustomAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicCustomAsset, com.google.ads.googleads.v17.common.DynamicCustomAsset.Builder, com.google.ads.googleads.v17.common.DynamicCustomAssetOrBuilder>(
(com.google.ads.googleads.v17.common.DynamicCustomAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 31;
onChanged();
return dynamicCustomAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset, com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset.Builder, com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAssetOrBuilder> dynamicHotelsAndRentalsAssetBuilder_;
/**
*
* A dynamic hotels and rentals asset.
*
*
* .google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset dynamic_hotels_and_rentals_asset = 32;
* @return Whether the dynamicHotelsAndRentalsAsset field is set.
*/
@java.lang.Override
public boolean hasDynamicHotelsAndRentalsAsset() {
return assetDataCase_ == 32;
}
/**
*
* A dynamic hotels and rentals asset.
*
*
* .google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset dynamic_hotels_and_rentals_asset = 32;
* @return The dynamicHotelsAndRentalsAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset getDynamicHotelsAndRentalsAsset() {
if (dynamicHotelsAndRentalsAssetBuilder_ == null) {
if (assetDataCase_ == 32) {
return (com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 32) {
return dynamicHotelsAndRentalsAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset.getDefaultInstance();
}
}
/**
*
* A dynamic hotels and rentals asset.
*
*
* .google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset dynamic_hotels_and_rentals_asset = 32;
*/
public Builder setDynamicHotelsAndRentalsAsset(com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset value) {
if (dynamicHotelsAndRentalsAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
dynamicHotelsAndRentalsAssetBuilder_.setMessage(value);
}
assetDataCase_ = 32;
return this;
}
/**
*
* A dynamic hotels and rentals asset.
*
*
* .google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset dynamic_hotels_and_rentals_asset = 32;
*/
public Builder setDynamicHotelsAndRentalsAsset(
com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset.Builder builderForValue) {
if (dynamicHotelsAndRentalsAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
dynamicHotelsAndRentalsAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 32;
return this;
}
/**
*
* A dynamic hotels and rentals asset.
*
*
* .google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset dynamic_hotels_and_rentals_asset = 32;
*/
public Builder mergeDynamicHotelsAndRentalsAsset(com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset value) {
if (dynamicHotelsAndRentalsAssetBuilder_ == null) {
if (assetDataCase_ == 32 &&
assetData_ != com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset.newBuilder((com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 32) {
dynamicHotelsAndRentalsAssetBuilder_.mergeFrom(value);
} else {
dynamicHotelsAndRentalsAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 32;
return this;
}
/**
*
* A dynamic hotels and rentals asset.
*
*
* .google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset dynamic_hotels_and_rentals_asset = 32;
*/
public Builder clearDynamicHotelsAndRentalsAsset() {
if (dynamicHotelsAndRentalsAssetBuilder_ == null) {
if (assetDataCase_ == 32) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 32) {
assetDataCase_ = 0;
assetData_ = null;
}
dynamicHotelsAndRentalsAssetBuilder_.clear();
}
return this;
}
/**
*
* A dynamic hotels and rentals asset.
*
*
* .google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset dynamic_hotels_and_rentals_asset = 32;
*/
public com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset.Builder getDynamicHotelsAndRentalsAssetBuilder() {
return getDynamicHotelsAndRentalsAssetFieldBuilder().getBuilder();
}
/**
*
* A dynamic hotels and rentals asset.
*
*
* .google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset dynamic_hotels_and_rentals_asset = 32;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAssetOrBuilder getDynamicHotelsAndRentalsAssetOrBuilder() {
if ((assetDataCase_ == 32) && (dynamicHotelsAndRentalsAssetBuilder_ != null)) {
return dynamicHotelsAndRentalsAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 32) {
return (com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset.getDefaultInstance();
}
}
/**
*
* A dynamic hotels and rentals asset.
*
*
* .google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset dynamic_hotels_and_rentals_asset = 32;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset, com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset.Builder, com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAssetOrBuilder>
getDynamicHotelsAndRentalsAssetFieldBuilder() {
if (dynamicHotelsAndRentalsAssetBuilder_ == null) {
if (!(assetDataCase_ == 32)) {
assetData_ = com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset.getDefaultInstance();
}
dynamicHotelsAndRentalsAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset, com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset.Builder, com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAssetOrBuilder>(
(com.google.ads.googleads.v17.common.DynamicHotelsAndRentalsAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 32;
onChanged();
return dynamicHotelsAndRentalsAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicFlightsAsset, com.google.ads.googleads.v17.common.DynamicFlightsAsset.Builder, com.google.ads.googleads.v17.common.DynamicFlightsAssetOrBuilder> dynamicFlightsAssetBuilder_;
/**
*
* A dynamic flights asset.
*
*
* .google.ads.googleads.v17.common.DynamicFlightsAsset dynamic_flights_asset = 33;
* @return Whether the dynamicFlightsAsset field is set.
*/
@java.lang.Override
public boolean hasDynamicFlightsAsset() {
return assetDataCase_ == 33;
}
/**
*
* A dynamic flights asset.
*
*
* .google.ads.googleads.v17.common.DynamicFlightsAsset dynamic_flights_asset = 33;
* @return The dynamicFlightsAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicFlightsAsset getDynamicFlightsAsset() {
if (dynamicFlightsAssetBuilder_ == null) {
if (assetDataCase_ == 33) {
return (com.google.ads.googleads.v17.common.DynamicFlightsAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicFlightsAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 33) {
return dynamicFlightsAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.DynamicFlightsAsset.getDefaultInstance();
}
}
/**
*
* A dynamic flights asset.
*
*
* .google.ads.googleads.v17.common.DynamicFlightsAsset dynamic_flights_asset = 33;
*/
public Builder setDynamicFlightsAsset(com.google.ads.googleads.v17.common.DynamicFlightsAsset value) {
if (dynamicFlightsAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
dynamicFlightsAssetBuilder_.setMessage(value);
}
assetDataCase_ = 33;
return this;
}
/**
*
* A dynamic flights asset.
*
*
* .google.ads.googleads.v17.common.DynamicFlightsAsset dynamic_flights_asset = 33;
*/
public Builder setDynamicFlightsAsset(
com.google.ads.googleads.v17.common.DynamicFlightsAsset.Builder builderForValue) {
if (dynamicFlightsAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
dynamicFlightsAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 33;
return this;
}
/**
*
* A dynamic flights asset.
*
*
* .google.ads.googleads.v17.common.DynamicFlightsAsset dynamic_flights_asset = 33;
*/
public Builder mergeDynamicFlightsAsset(com.google.ads.googleads.v17.common.DynamicFlightsAsset value) {
if (dynamicFlightsAssetBuilder_ == null) {
if (assetDataCase_ == 33 &&
assetData_ != com.google.ads.googleads.v17.common.DynamicFlightsAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.DynamicFlightsAsset.newBuilder((com.google.ads.googleads.v17.common.DynamicFlightsAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 33) {
dynamicFlightsAssetBuilder_.mergeFrom(value);
} else {
dynamicFlightsAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 33;
return this;
}
/**
*
* A dynamic flights asset.
*
*
* .google.ads.googleads.v17.common.DynamicFlightsAsset dynamic_flights_asset = 33;
*/
public Builder clearDynamicFlightsAsset() {
if (dynamicFlightsAssetBuilder_ == null) {
if (assetDataCase_ == 33) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 33) {
assetDataCase_ = 0;
assetData_ = null;
}
dynamicFlightsAssetBuilder_.clear();
}
return this;
}
/**
*
* A dynamic flights asset.
*
*
* .google.ads.googleads.v17.common.DynamicFlightsAsset dynamic_flights_asset = 33;
*/
public com.google.ads.googleads.v17.common.DynamicFlightsAsset.Builder getDynamicFlightsAssetBuilder() {
return getDynamicFlightsAssetFieldBuilder().getBuilder();
}
/**
*
* A dynamic flights asset.
*
*
* .google.ads.googleads.v17.common.DynamicFlightsAsset dynamic_flights_asset = 33;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicFlightsAssetOrBuilder getDynamicFlightsAssetOrBuilder() {
if ((assetDataCase_ == 33) && (dynamicFlightsAssetBuilder_ != null)) {
return dynamicFlightsAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 33) {
return (com.google.ads.googleads.v17.common.DynamicFlightsAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicFlightsAsset.getDefaultInstance();
}
}
/**
*
* A dynamic flights asset.
*
*
* .google.ads.googleads.v17.common.DynamicFlightsAsset dynamic_flights_asset = 33;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicFlightsAsset, com.google.ads.googleads.v17.common.DynamicFlightsAsset.Builder, com.google.ads.googleads.v17.common.DynamicFlightsAssetOrBuilder>
getDynamicFlightsAssetFieldBuilder() {
if (dynamicFlightsAssetBuilder_ == null) {
if (!(assetDataCase_ == 33)) {
assetData_ = com.google.ads.googleads.v17.common.DynamicFlightsAsset.getDefaultInstance();
}
dynamicFlightsAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicFlightsAsset, com.google.ads.googleads.v17.common.DynamicFlightsAsset.Builder, com.google.ads.googleads.v17.common.DynamicFlightsAssetOrBuilder>(
(com.google.ads.googleads.v17.common.DynamicFlightsAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 33;
onChanged();
return dynamicFlightsAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset, com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset.Builder, com.google.ads.googleads.v17.common.DemandGenCarouselCardAssetOrBuilder> demandGenCarouselCardAssetBuilder_;
/**
*
* Immutable. A Demand Gen carousel card asset.
*
*
* .google.ads.googleads.v17.common.DemandGenCarouselCardAsset demand_gen_carousel_card_asset = 50 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the demandGenCarouselCardAsset field is set.
*/
@java.lang.Override
public boolean hasDemandGenCarouselCardAsset() {
return assetDataCase_ == 50;
}
/**
*
* Immutable. A Demand Gen carousel card asset.
*
*
* .google.ads.googleads.v17.common.DemandGenCarouselCardAsset demand_gen_carousel_card_asset = 50 [(.google.api.field_behavior) = IMMUTABLE];
* @return The demandGenCarouselCardAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset getDemandGenCarouselCardAsset() {
if (demandGenCarouselCardAssetBuilder_ == null) {
if (assetDataCase_ == 50) {
return (com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 50) {
return demandGenCarouselCardAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset.getDefaultInstance();
}
}
/**
*
* Immutable. A Demand Gen carousel card asset.
*
*
* .google.ads.googleads.v17.common.DemandGenCarouselCardAsset demand_gen_carousel_card_asset = 50 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setDemandGenCarouselCardAsset(com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset value) {
if (demandGenCarouselCardAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
demandGenCarouselCardAssetBuilder_.setMessage(value);
}
assetDataCase_ = 50;
return this;
}
/**
*
* Immutable. A Demand Gen carousel card asset.
*
*
* .google.ads.googleads.v17.common.DemandGenCarouselCardAsset demand_gen_carousel_card_asset = 50 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setDemandGenCarouselCardAsset(
com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset.Builder builderForValue) {
if (demandGenCarouselCardAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
demandGenCarouselCardAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 50;
return this;
}
/**
*
* Immutable. A Demand Gen carousel card asset.
*
*
* .google.ads.googleads.v17.common.DemandGenCarouselCardAsset demand_gen_carousel_card_asset = 50 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeDemandGenCarouselCardAsset(com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset value) {
if (demandGenCarouselCardAssetBuilder_ == null) {
if (assetDataCase_ == 50 &&
assetData_ != com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset.newBuilder((com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 50) {
demandGenCarouselCardAssetBuilder_.mergeFrom(value);
} else {
demandGenCarouselCardAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 50;
return this;
}
/**
*
* Immutable. A Demand Gen carousel card asset.
*
*
* .google.ads.googleads.v17.common.DemandGenCarouselCardAsset demand_gen_carousel_card_asset = 50 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearDemandGenCarouselCardAsset() {
if (demandGenCarouselCardAssetBuilder_ == null) {
if (assetDataCase_ == 50) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 50) {
assetDataCase_ = 0;
assetData_ = null;
}
demandGenCarouselCardAssetBuilder_.clear();
}
return this;
}
/**
*
* Immutable. A Demand Gen carousel card asset.
*
*
* .google.ads.googleads.v17.common.DemandGenCarouselCardAsset demand_gen_carousel_card_asset = 50 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset.Builder getDemandGenCarouselCardAssetBuilder() {
return getDemandGenCarouselCardAssetFieldBuilder().getBuilder();
}
/**
*
* Immutable. A Demand Gen carousel card asset.
*
*
* .google.ads.googleads.v17.common.DemandGenCarouselCardAsset demand_gen_carousel_card_asset = 50 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DemandGenCarouselCardAssetOrBuilder getDemandGenCarouselCardAssetOrBuilder() {
if ((assetDataCase_ == 50) && (demandGenCarouselCardAssetBuilder_ != null)) {
return demandGenCarouselCardAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 50) {
return (com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset.getDefaultInstance();
}
}
/**
*
* Immutable. A Demand Gen carousel card asset.
*
*
* .google.ads.googleads.v17.common.DemandGenCarouselCardAsset demand_gen_carousel_card_asset = 50 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset, com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset.Builder, com.google.ads.googleads.v17.common.DemandGenCarouselCardAssetOrBuilder>
getDemandGenCarouselCardAssetFieldBuilder() {
if (demandGenCarouselCardAssetBuilder_ == null) {
if (!(assetDataCase_ == 50)) {
assetData_ = com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset.getDefaultInstance();
}
demandGenCarouselCardAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset, com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset.Builder, com.google.ads.googleads.v17.common.DemandGenCarouselCardAssetOrBuilder>(
(com.google.ads.googleads.v17.common.DemandGenCarouselCardAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 50;
onChanged();
return demandGenCarouselCardAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicTravelAsset, com.google.ads.googleads.v17.common.DynamicTravelAsset.Builder, com.google.ads.googleads.v17.common.DynamicTravelAssetOrBuilder> dynamicTravelAssetBuilder_;
/**
*
* A dynamic travel asset.
*
*
* .google.ads.googleads.v17.common.DynamicTravelAsset dynamic_travel_asset = 35;
* @return Whether the dynamicTravelAsset field is set.
*/
@java.lang.Override
public boolean hasDynamicTravelAsset() {
return assetDataCase_ == 35;
}
/**
*
* A dynamic travel asset.
*
*
* .google.ads.googleads.v17.common.DynamicTravelAsset dynamic_travel_asset = 35;
* @return The dynamicTravelAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicTravelAsset getDynamicTravelAsset() {
if (dynamicTravelAssetBuilder_ == null) {
if (assetDataCase_ == 35) {
return (com.google.ads.googleads.v17.common.DynamicTravelAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicTravelAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 35) {
return dynamicTravelAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.DynamicTravelAsset.getDefaultInstance();
}
}
/**
*
* A dynamic travel asset.
*
*
* .google.ads.googleads.v17.common.DynamicTravelAsset dynamic_travel_asset = 35;
*/
public Builder setDynamicTravelAsset(com.google.ads.googleads.v17.common.DynamicTravelAsset value) {
if (dynamicTravelAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
dynamicTravelAssetBuilder_.setMessage(value);
}
assetDataCase_ = 35;
return this;
}
/**
*
* A dynamic travel asset.
*
*
* .google.ads.googleads.v17.common.DynamicTravelAsset dynamic_travel_asset = 35;
*/
public Builder setDynamicTravelAsset(
com.google.ads.googleads.v17.common.DynamicTravelAsset.Builder builderForValue) {
if (dynamicTravelAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
dynamicTravelAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 35;
return this;
}
/**
*
* A dynamic travel asset.
*
*
* .google.ads.googleads.v17.common.DynamicTravelAsset dynamic_travel_asset = 35;
*/
public Builder mergeDynamicTravelAsset(com.google.ads.googleads.v17.common.DynamicTravelAsset value) {
if (dynamicTravelAssetBuilder_ == null) {
if (assetDataCase_ == 35 &&
assetData_ != com.google.ads.googleads.v17.common.DynamicTravelAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.DynamicTravelAsset.newBuilder((com.google.ads.googleads.v17.common.DynamicTravelAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 35) {
dynamicTravelAssetBuilder_.mergeFrom(value);
} else {
dynamicTravelAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 35;
return this;
}
/**
*
* A dynamic travel asset.
*
*
* .google.ads.googleads.v17.common.DynamicTravelAsset dynamic_travel_asset = 35;
*/
public Builder clearDynamicTravelAsset() {
if (dynamicTravelAssetBuilder_ == null) {
if (assetDataCase_ == 35) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 35) {
assetDataCase_ = 0;
assetData_ = null;
}
dynamicTravelAssetBuilder_.clear();
}
return this;
}
/**
*
* A dynamic travel asset.
*
*
* .google.ads.googleads.v17.common.DynamicTravelAsset dynamic_travel_asset = 35;
*/
public com.google.ads.googleads.v17.common.DynamicTravelAsset.Builder getDynamicTravelAssetBuilder() {
return getDynamicTravelAssetFieldBuilder().getBuilder();
}
/**
*
* A dynamic travel asset.
*
*
* .google.ads.googleads.v17.common.DynamicTravelAsset dynamic_travel_asset = 35;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicTravelAssetOrBuilder getDynamicTravelAssetOrBuilder() {
if ((assetDataCase_ == 35) && (dynamicTravelAssetBuilder_ != null)) {
return dynamicTravelAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 35) {
return (com.google.ads.googleads.v17.common.DynamicTravelAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicTravelAsset.getDefaultInstance();
}
}
/**
*
* A dynamic travel asset.
*
*
* .google.ads.googleads.v17.common.DynamicTravelAsset dynamic_travel_asset = 35;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicTravelAsset, com.google.ads.googleads.v17.common.DynamicTravelAsset.Builder, com.google.ads.googleads.v17.common.DynamicTravelAssetOrBuilder>
getDynamicTravelAssetFieldBuilder() {
if (dynamicTravelAssetBuilder_ == null) {
if (!(assetDataCase_ == 35)) {
assetData_ = com.google.ads.googleads.v17.common.DynamicTravelAsset.getDefaultInstance();
}
dynamicTravelAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicTravelAsset, com.google.ads.googleads.v17.common.DynamicTravelAsset.Builder, com.google.ads.googleads.v17.common.DynamicTravelAssetOrBuilder>(
(com.google.ads.googleads.v17.common.DynamicTravelAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 35;
onChanged();
return dynamicTravelAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicLocalAsset, com.google.ads.googleads.v17.common.DynamicLocalAsset.Builder, com.google.ads.googleads.v17.common.DynamicLocalAssetOrBuilder> dynamicLocalAssetBuilder_;
/**
*
* A dynamic local asset.
*
*
* .google.ads.googleads.v17.common.DynamicLocalAsset dynamic_local_asset = 36;
* @return Whether the dynamicLocalAsset field is set.
*/
@java.lang.Override
public boolean hasDynamicLocalAsset() {
return assetDataCase_ == 36;
}
/**
*
* A dynamic local asset.
*
*
* .google.ads.googleads.v17.common.DynamicLocalAsset dynamic_local_asset = 36;
* @return The dynamicLocalAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicLocalAsset getDynamicLocalAsset() {
if (dynamicLocalAssetBuilder_ == null) {
if (assetDataCase_ == 36) {
return (com.google.ads.googleads.v17.common.DynamicLocalAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicLocalAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 36) {
return dynamicLocalAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.DynamicLocalAsset.getDefaultInstance();
}
}
/**
*
* A dynamic local asset.
*
*
* .google.ads.googleads.v17.common.DynamicLocalAsset dynamic_local_asset = 36;
*/
public Builder setDynamicLocalAsset(com.google.ads.googleads.v17.common.DynamicLocalAsset value) {
if (dynamicLocalAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
dynamicLocalAssetBuilder_.setMessage(value);
}
assetDataCase_ = 36;
return this;
}
/**
*
* A dynamic local asset.
*
*
* .google.ads.googleads.v17.common.DynamicLocalAsset dynamic_local_asset = 36;
*/
public Builder setDynamicLocalAsset(
com.google.ads.googleads.v17.common.DynamicLocalAsset.Builder builderForValue) {
if (dynamicLocalAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
dynamicLocalAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 36;
return this;
}
/**
*
* A dynamic local asset.
*
*
* .google.ads.googleads.v17.common.DynamicLocalAsset dynamic_local_asset = 36;
*/
public Builder mergeDynamicLocalAsset(com.google.ads.googleads.v17.common.DynamicLocalAsset value) {
if (dynamicLocalAssetBuilder_ == null) {
if (assetDataCase_ == 36 &&
assetData_ != com.google.ads.googleads.v17.common.DynamicLocalAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.DynamicLocalAsset.newBuilder((com.google.ads.googleads.v17.common.DynamicLocalAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 36) {
dynamicLocalAssetBuilder_.mergeFrom(value);
} else {
dynamicLocalAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 36;
return this;
}
/**
*
* A dynamic local asset.
*
*
* .google.ads.googleads.v17.common.DynamicLocalAsset dynamic_local_asset = 36;
*/
public Builder clearDynamicLocalAsset() {
if (dynamicLocalAssetBuilder_ == null) {
if (assetDataCase_ == 36) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 36) {
assetDataCase_ = 0;
assetData_ = null;
}
dynamicLocalAssetBuilder_.clear();
}
return this;
}
/**
*
* A dynamic local asset.
*
*
* .google.ads.googleads.v17.common.DynamicLocalAsset dynamic_local_asset = 36;
*/
public com.google.ads.googleads.v17.common.DynamicLocalAsset.Builder getDynamicLocalAssetBuilder() {
return getDynamicLocalAssetFieldBuilder().getBuilder();
}
/**
*
* A dynamic local asset.
*
*
* .google.ads.googleads.v17.common.DynamicLocalAsset dynamic_local_asset = 36;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicLocalAssetOrBuilder getDynamicLocalAssetOrBuilder() {
if ((assetDataCase_ == 36) && (dynamicLocalAssetBuilder_ != null)) {
return dynamicLocalAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 36) {
return (com.google.ads.googleads.v17.common.DynamicLocalAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicLocalAsset.getDefaultInstance();
}
}
/**
*
* A dynamic local asset.
*
*
* .google.ads.googleads.v17.common.DynamicLocalAsset dynamic_local_asset = 36;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicLocalAsset, com.google.ads.googleads.v17.common.DynamicLocalAsset.Builder, com.google.ads.googleads.v17.common.DynamicLocalAssetOrBuilder>
getDynamicLocalAssetFieldBuilder() {
if (dynamicLocalAssetBuilder_ == null) {
if (!(assetDataCase_ == 36)) {
assetData_ = com.google.ads.googleads.v17.common.DynamicLocalAsset.getDefaultInstance();
}
dynamicLocalAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicLocalAsset, com.google.ads.googleads.v17.common.DynamicLocalAsset.Builder, com.google.ads.googleads.v17.common.DynamicLocalAssetOrBuilder>(
(com.google.ads.googleads.v17.common.DynamicLocalAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 36;
onChanged();
return dynamicLocalAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicJobsAsset, com.google.ads.googleads.v17.common.DynamicJobsAsset.Builder, com.google.ads.googleads.v17.common.DynamicJobsAssetOrBuilder> dynamicJobsAssetBuilder_;
/**
*
* A dynamic jobs asset.
*
*
* .google.ads.googleads.v17.common.DynamicJobsAsset dynamic_jobs_asset = 37;
* @return Whether the dynamicJobsAsset field is set.
*/
@java.lang.Override
public boolean hasDynamicJobsAsset() {
return assetDataCase_ == 37;
}
/**
*
* A dynamic jobs asset.
*
*
* .google.ads.googleads.v17.common.DynamicJobsAsset dynamic_jobs_asset = 37;
* @return The dynamicJobsAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicJobsAsset getDynamicJobsAsset() {
if (dynamicJobsAssetBuilder_ == null) {
if (assetDataCase_ == 37) {
return (com.google.ads.googleads.v17.common.DynamicJobsAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicJobsAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 37) {
return dynamicJobsAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.DynamicJobsAsset.getDefaultInstance();
}
}
/**
*
* A dynamic jobs asset.
*
*
* .google.ads.googleads.v17.common.DynamicJobsAsset dynamic_jobs_asset = 37;
*/
public Builder setDynamicJobsAsset(com.google.ads.googleads.v17.common.DynamicJobsAsset value) {
if (dynamicJobsAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
dynamicJobsAssetBuilder_.setMessage(value);
}
assetDataCase_ = 37;
return this;
}
/**
*
* A dynamic jobs asset.
*
*
* .google.ads.googleads.v17.common.DynamicJobsAsset dynamic_jobs_asset = 37;
*/
public Builder setDynamicJobsAsset(
com.google.ads.googleads.v17.common.DynamicJobsAsset.Builder builderForValue) {
if (dynamicJobsAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
dynamicJobsAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 37;
return this;
}
/**
*
* A dynamic jobs asset.
*
*
* .google.ads.googleads.v17.common.DynamicJobsAsset dynamic_jobs_asset = 37;
*/
public Builder mergeDynamicJobsAsset(com.google.ads.googleads.v17.common.DynamicJobsAsset value) {
if (dynamicJobsAssetBuilder_ == null) {
if (assetDataCase_ == 37 &&
assetData_ != com.google.ads.googleads.v17.common.DynamicJobsAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.DynamicJobsAsset.newBuilder((com.google.ads.googleads.v17.common.DynamicJobsAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 37) {
dynamicJobsAssetBuilder_.mergeFrom(value);
} else {
dynamicJobsAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 37;
return this;
}
/**
*
* A dynamic jobs asset.
*
*
* .google.ads.googleads.v17.common.DynamicJobsAsset dynamic_jobs_asset = 37;
*/
public Builder clearDynamicJobsAsset() {
if (dynamicJobsAssetBuilder_ == null) {
if (assetDataCase_ == 37) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 37) {
assetDataCase_ = 0;
assetData_ = null;
}
dynamicJobsAssetBuilder_.clear();
}
return this;
}
/**
*
* A dynamic jobs asset.
*
*
* .google.ads.googleads.v17.common.DynamicJobsAsset dynamic_jobs_asset = 37;
*/
public com.google.ads.googleads.v17.common.DynamicJobsAsset.Builder getDynamicJobsAssetBuilder() {
return getDynamicJobsAssetFieldBuilder().getBuilder();
}
/**
*
* A dynamic jobs asset.
*
*
* .google.ads.googleads.v17.common.DynamicJobsAsset dynamic_jobs_asset = 37;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DynamicJobsAssetOrBuilder getDynamicJobsAssetOrBuilder() {
if ((assetDataCase_ == 37) && (dynamicJobsAssetBuilder_ != null)) {
return dynamicJobsAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 37) {
return (com.google.ads.googleads.v17.common.DynamicJobsAsset) assetData_;
}
return com.google.ads.googleads.v17.common.DynamicJobsAsset.getDefaultInstance();
}
}
/**
*
* A dynamic jobs asset.
*
*
* .google.ads.googleads.v17.common.DynamicJobsAsset dynamic_jobs_asset = 37;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicJobsAsset, com.google.ads.googleads.v17.common.DynamicJobsAsset.Builder, com.google.ads.googleads.v17.common.DynamicJobsAssetOrBuilder>
getDynamicJobsAssetFieldBuilder() {
if (dynamicJobsAssetBuilder_ == null) {
if (!(assetDataCase_ == 37)) {
assetData_ = com.google.ads.googleads.v17.common.DynamicJobsAsset.getDefaultInstance();
}
dynamicJobsAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DynamicJobsAsset, com.google.ads.googleads.v17.common.DynamicJobsAsset.Builder, com.google.ads.googleads.v17.common.DynamicJobsAssetOrBuilder>(
(com.google.ads.googleads.v17.common.DynamicJobsAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 37;
onChanged();
return dynamicJobsAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.LocationAsset, com.google.ads.googleads.v17.common.LocationAsset.Builder, com.google.ads.googleads.v17.common.LocationAssetOrBuilder> locationAssetBuilder_;
/**
*
* Output only. A location asset.
*
*
* .google.ads.googleads.v17.common.LocationAsset location_asset = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the locationAsset field is set.
*/
@java.lang.Override
public boolean hasLocationAsset() {
return assetDataCase_ == 39;
}
/**
*
* Output only. A location asset.
*
*
* .google.ads.googleads.v17.common.LocationAsset location_asset = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The locationAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.LocationAsset getLocationAsset() {
if (locationAssetBuilder_ == null) {
if (assetDataCase_ == 39) {
return (com.google.ads.googleads.v17.common.LocationAsset) assetData_;
}
return com.google.ads.googleads.v17.common.LocationAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 39) {
return locationAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.LocationAsset.getDefaultInstance();
}
}
/**
*
* Output only. A location asset.
*
*
* .google.ads.googleads.v17.common.LocationAsset location_asset = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setLocationAsset(com.google.ads.googleads.v17.common.LocationAsset value) {
if (locationAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
locationAssetBuilder_.setMessage(value);
}
assetDataCase_ = 39;
return this;
}
/**
*
* Output only. A location asset.
*
*
* .google.ads.googleads.v17.common.LocationAsset location_asset = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setLocationAsset(
com.google.ads.googleads.v17.common.LocationAsset.Builder builderForValue) {
if (locationAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
locationAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 39;
return this;
}
/**
*
* Output only. A location asset.
*
*
* .google.ads.googleads.v17.common.LocationAsset location_asset = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeLocationAsset(com.google.ads.googleads.v17.common.LocationAsset value) {
if (locationAssetBuilder_ == null) {
if (assetDataCase_ == 39 &&
assetData_ != com.google.ads.googleads.v17.common.LocationAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.LocationAsset.newBuilder((com.google.ads.googleads.v17.common.LocationAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 39) {
locationAssetBuilder_.mergeFrom(value);
} else {
locationAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 39;
return this;
}
/**
*
* Output only. A location asset.
*
*
* .google.ads.googleads.v17.common.LocationAsset location_asset = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearLocationAsset() {
if (locationAssetBuilder_ == null) {
if (assetDataCase_ == 39) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 39) {
assetDataCase_ = 0;
assetData_ = null;
}
locationAssetBuilder_.clear();
}
return this;
}
/**
*
* Output only. A location asset.
*
*
* .google.ads.googleads.v17.common.LocationAsset location_asset = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.common.LocationAsset.Builder getLocationAssetBuilder() {
return getLocationAssetFieldBuilder().getBuilder();
}
/**
*
* Output only. A location asset.
*
*
* .google.ads.googleads.v17.common.LocationAsset location_asset = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.LocationAssetOrBuilder getLocationAssetOrBuilder() {
if ((assetDataCase_ == 39) && (locationAssetBuilder_ != null)) {
return locationAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 39) {
return (com.google.ads.googleads.v17.common.LocationAsset) assetData_;
}
return com.google.ads.googleads.v17.common.LocationAsset.getDefaultInstance();
}
}
/**
*
* Output only. A location asset.
*
*
* .google.ads.googleads.v17.common.LocationAsset location_asset = 39 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.LocationAsset, com.google.ads.googleads.v17.common.LocationAsset.Builder, com.google.ads.googleads.v17.common.LocationAssetOrBuilder>
getLocationAssetFieldBuilder() {
if (locationAssetBuilder_ == null) {
if (!(assetDataCase_ == 39)) {
assetData_ = com.google.ads.googleads.v17.common.LocationAsset.getDefaultInstance();
}
locationAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.LocationAsset, com.google.ads.googleads.v17.common.LocationAsset.Builder, com.google.ads.googleads.v17.common.LocationAssetOrBuilder>(
(com.google.ads.googleads.v17.common.LocationAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 39;
onChanged();
return locationAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.HotelPropertyAsset, com.google.ads.googleads.v17.common.HotelPropertyAsset.Builder, com.google.ads.googleads.v17.common.HotelPropertyAssetOrBuilder> hotelPropertyAssetBuilder_;
/**
*
* Immutable. A hotel property asset.
*
*
* .google.ads.googleads.v17.common.HotelPropertyAsset hotel_property_asset = 41 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the hotelPropertyAsset field is set.
*/
@java.lang.Override
public boolean hasHotelPropertyAsset() {
return assetDataCase_ == 41;
}
/**
*
* Immutable. A hotel property asset.
*
*
* .google.ads.googleads.v17.common.HotelPropertyAsset hotel_property_asset = 41 [(.google.api.field_behavior) = IMMUTABLE];
* @return The hotelPropertyAsset.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.HotelPropertyAsset getHotelPropertyAsset() {
if (hotelPropertyAssetBuilder_ == null) {
if (assetDataCase_ == 41) {
return (com.google.ads.googleads.v17.common.HotelPropertyAsset) assetData_;
}
return com.google.ads.googleads.v17.common.HotelPropertyAsset.getDefaultInstance();
} else {
if (assetDataCase_ == 41) {
return hotelPropertyAssetBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.HotelPropertyAsset.getDefaultInstance();
}
}
/**
*
* Immutable. A hotel property asset.
*
*
* .google.ads.googleads.v17.common.HotelPropertyAsset hotel_property_asset = 41 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setHotelPropertyAsset(com.google.ads.googleads.v17.common.HotelPropertyAsset value) {
if (hotelPropertyAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
assetData_ = value;
onChanged();
} else {
hotelPropertyAssetBuilder_.setMessage(value);
}
assetDataCase_ = 41;
return this;
}
/**
*
* Immutable. A hotel property asset.
*
*
* .google.ads.googleads.v17.common.HotelPropertyAsset hotel_property_asset = 41 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setHotelPropertyAsset(
com.google.ads.googleads.v17.common.HotelPropertyAsset.Builder builderForValue) {
if (hotelPropertyAssetBuilder_ == null) {
assetData_ = builderForValue.build();
onChanged();
} else {
hotelPropertyAssetBuilder_.setMessage(builderForValue.build());
}
assetDataCase_ = 41;
return this;
}
/**
*
* Immutable. A hotel property asset.
*
*
* .google.ads.googleads.v17.common.HotelPropertyAsset hotel_property_asset = 41 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeHotelPropertyAsset(com.google.ads.googleads.v17.common.HotelPropertyAsset value) {
if (hotelPropertyAssetBuilder_ == null) {
if (assetDataCase_ == 41 &&
assetData_ != com.google.ads.googleads.v17.common.HotelPropertyAsset.getDefaultInstance()) {
assetData_ = com.google.ads.googleads.v17.common.HotelPropertyAsset.newBuilder((com.google.ads.googleads.v17.common.HotelPropertyAsset) assetData_)
.mergeFrom(value).buildPartial();
} else {
assetData_ = value;
}
onChanged();
} else {
if (assetDataCase_ == 41) {
hotelPropertyAssetBuilder_.mergeFrom(value);
} else {
hotelPropertyAssetBuilder_.setMessage(value);
}
}
assetDataCase_ = 41;
return this;
}
/**
*
* Immutable. A hotel property asset.
*
*
* .google.ads.googleads.v17.common.HotelPropertyAsset hotel_property_asset = 41 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearHotelPropertyAsset() {
if (hotelPropertyAssetBuilder_ == null) {
if (assetDataCase_ == 41) {
assetDataCase_ = 0;
assetData_ = null;
onChanged();
}
} else {
if (assetDataCase_ == 41) {
assetDataCase_ = 0;
assetData_ = null;
}
hotelPropertyAssetBuilder_.clear();
}
return this;
}
/**
*
* Immutable. A hotel property asset.
*
*
* .google.ads.googleads.v17.common.HotelPropertyAsset hotel_property_asset = 41 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v17.common.HotelPropertyAsset.Builder getHotelPropertyAssetBuilder() {
return getHotelPropertyAssetFieldBuilder().getBuilder();
}
/**
*
* Immutable. A hotel property asset.
*
*
* .google.ads.googleads.v17.common.HotelPropertyAsset hotel_property_asset = 41 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.HotelPropertyAssetOrBuilder getHotelPropertyAssetOrBuilder() {
if ((assetDataCase_ == 41) && (hotelPropertyAssetBuilder_ != null)) {
return hotelPropertyAssetBuilder_.getMessageOrBuilder();
} else {
if (assetDataCase_ == 41) {
return (com.google.ads.googleads.v17.common.HotelPropertyAsset) assetData_;
}
return com.google.ads.googleads.v17.common.HotelPropertyAsset.getDefaultInstance();
}
}
/**
*
* Immutable. A hotel property asset.
*
*
* .google.ads.googleads.v17.common.HotelPropertyAsset hotel_property_asset = 41 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.HotelPropertyAsset, com.google.ads.googleads.v17.common.HotelPropertyAsset.Builder, com.google.ads.googleads.v17.common.HotelPropertyAssetOrBuilder>
getHotelPropertyAssetFieldBuilder() {
if (hotelPropertyAssetBuilder_ == null) {
if (!(assetDataCase_ == 41)) {
assetData_ = com.google.ads.googleads.v17.common.HotelPropertyAsset.getDefaultInstance();
}
hotelPropertyAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.HotelPropertyAsset, com.google.ads.googleads.v17.common.HotelPropertyAsset.Builder, com.google.ads.googleads.v17.common.HotelPropertyAssetOrBuilder>(
(com.google.ads.googleads.v17.common.HotelPropertyAsset) assetData_,
getParentForChildren(),
isClean());
assetData_ = null;
}
assetDataCase_ = 41;
onChanged();
return hotelPropertyAssetBuilder_;
}
@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.resources.Asset)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.Asset)
private static final com.google.ads.googleads.v17.resources.Asset DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.Asset();
}
public static com.google.ads.googleads.v17.resources.Asset getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Asset 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.resources.Asset getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}