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

com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v10/common/ad_type_infos.proto

package com.google.ads.googleads.v10.common;

/**
 * 
 * A discovery multi asset ad.
 * 
* * Protobuf type {@code google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo} */ public final class DiscoveryMultiAssetAdInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo) DiscoveryMultiAssetAdInfoOrBuilder { private static final long serialVersionUID = 0L; // Use DiscoveryMultiAssetAdInfo.newBuilder() to construct. private DiscoveryMultiAssetAdInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DiscoveryMultiAssetAdInfo() { marketingImages_ = java.util.Collections.emptyList(); squareMarketingImages_ = java.util.Collections.emptyList(); portraitMarketingImages_ = java.util.Collections.emptyList(); logoImages_ = java.util.Collections.emptyList(); headlines_ = java.util.Collections.emptyList(); descriptions_ = java.util.Collections.emptyList(); businessName_ = ""; callToActionText_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DiscoveryMultiAssetAdInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_DiscoveryMultiAssetAdInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_DiscoveryMultiAssetAdInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo.class, com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo.Builder.class); } private int bitField0_; public static final int MARKETING_IMAGES_FIELD_NUMBER = 1; private java.util.List marketingImages_; /** *
   * Marketing image assets to be used in the ad. Valid image types are GIF,
   * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
   * be 1.91:1 (+-1%). Required if square_marketing_images is
   * not present. Combined with `square_marketing_images` and
   * `portrait_marketing_images` the maximum is 20.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ @java.lang.Override public java.util.List getMarketingImagesList() { return marketingImages_; } /** *
   * Marketing image assets to be used in the ad. Valid image types are GIF,
   * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
   * be 1.91:1 (+-1%). Required if square_marketing_images is
   * not present. Combined with `square_marketing_images` and
   * `portrait_marketing_images` the maximum is 20.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ @java.lang.Override public java.util.List getMarketingImagesOrBuilderList() { return marketingImages_; } /** *
   * Marketing image assets to be used in the ad. Valid image types are GIF,
   * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
   * be 1.91:1 (+-1%). Required if square_marketing_images is
   * not present. Combined with `square_marketing_images` and
   * `portrait_marketing_images` the maximum is 20.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ @java.lang.Override public int getMarketingImagesCount() { return marketingImages_.size(); } /** *
   * Marketing image assets to be used in the ad. Valid image types are GIF,
   * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
   * be 1.91:1 (+-1%). Required if square_marketing_images is
   * not present. Combined with `square_marketing_images` and
   * `portrait_marketing_images` the maximum is 20.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdImageAsset getMarketingImages(int index) { return marketingImages_.get(index); } /** *
   * Marketing image assets to be used in the ad. Valid image types are GIF,
   * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
   * be 1.91:1 (+-1%). Required if square_marketing_images is
   * not present. Combined with `square_marketing_images` and
   * `portrait_marketing_images` the maximum is 20.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdImageAssetOrBuilder getMarketingImagesOrBuilder( int index) { return marketingImages_.get(index); } public static final int SQUARE_MARKETING_IMAGES_FIELD_NUMBER = 2; private java.util.List squareMarketingImages_; /** *
   * Square marketing image assets to be used in the ad. Valid image types are
   * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
   * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
   * `marketing_images` and `portrait_marketing_images` the maximum is 20.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ @java.lang.Override public java.util.List getSquareMarketingImagesList() { return squareMarketingImages_; } /** *
   * Square marketing image assets to be used in the ad. Valid image types are
   * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
   * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
   * `marketing_images` and `portrait_marketing_images` the maximum is 20.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ @java.lang.Override public java.util.List getSquareMarketingImagesOrBuilderList() { return squareMarketingImages_; } /** *
   * Square marketing image assets to be used in the ad. Valid image types are
   * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
   * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
   * `marketing_images` and `portrait_marketing_images` the maximum is 20.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ @java.lang.Override public int getSquareMarketingImagesCount() { return squareMarketingImages_.size(); } /** *
   * Square marketing image assets to be used in the ad. Valid image types are
   * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
   * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
   * `marketing_images` and `portrait_marketing_images` the maximum is 20.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdImageAsset getSquareMarketingImages(int index) { return squareMarketingImages_.get(index); } /** *
   * Square marketing image assets to be used in the ad. Valid image types are
   * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
   * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
   * `marketing_images` and `portrait_marketing_images` the maximum is 20.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdImageAssetOrBuilder getSquareMarketingImagesOrBuilder( int index) { return squareMarketingImages_.get(index); } public static final int PORTRAIT_MARKETING_IMAGES_FIELD_NUMBER = 3; private java.util.List portraitMarketingImages_; /** *
   * Portrait marketing image assets to be used in the ad. Valid image types are
   * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
   * be 4:5 (+-1%).  Combined with `marketing_images` and
   * `square_marketing_images` the maximum is 20.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ @java.lang.Override public java.util.List getPortraitMarketingImagesList() { return portraitMarketingImages_; } /** *
   * Portrait marketing image assets to be used in the ad. Valid image types are
   * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
   * be 4:5 (+-1%).  Combined with `marketing_images` and
   * `square_marketing_images` the maximum is 20.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ @java.lang.Override public java.util.List getPortraitMarketingImagesOrBuilderList() { return portraitMarketingImages_; } /** *
   * Portrait marketing image assets to be used in the ad. Valid image types are
   * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
   * be 4:5 (+-1%).  Combined with `marketing_images` and
   * `square_marketing_images` the maximum is 20.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ @java.lang.Override public int getPortraitMarketingImagesCount() { return portraitMarketingImages_.size(); } /** *
   * Portrait marketing image assets to be used in the ad. Valid image types are
   * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
   * be 4:5 (+-1%).  Combined with `marketing_images` and
   * `square_marketing_images` the maximum is 20.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdImageAsset getPortraitMarketingImages(int index) { return portraitMarketingImages_.get(index); } /** *
   * Portrait marketing image assets to be used in the ad. Valid image types are
   * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
   * be 4:5 (+-1%).  Combined with `marketing_images` and
   * `square_marketing_images` the maximum is 20.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdImageAssetOrBuilder getPortraitMarketingImagesOrBuilder( int index) { return portraitMarketingImages_.get(index); } public static final int LOGO_IMAGES_FIELD_NUMBER = 4; private java.util.List logoImages_; /** *
   * Logo image assets to be used in the ad. Valid image types are GIF,
   * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
   * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ @java.lang.Override public java.util.List getLogoImagesList() { return logoImages_; } /** *
   * Logo image assets to be used in the ad. Valid image types are GIF,
   * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
   * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ @java.lang.Override public java.util.List getLogoImagesOrBuilderList() { return logoImages_; } /** *
   * Logo image assets to be used in the ad. Valid image types are GIF,
   * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
   * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ @java.lang.Override public int getLogoImagesCount() { return logoImages_.size(); } /** *
   * Logo image assets to be used in the ad. Valid image types are GIF,
   * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
   * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdImageAsset getLogoImages(int index) { return logoImages_.get(index); } /** *
   * Logo image assets to be used in the ad. Valid image types are GIF,
   * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
   * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdImageAssetOrBuilder getLogoImagesOrBuilder( int index) { return logoImages_.get(index); } public static final int HEADLINES_FIELD_NUMBER = 5; private java.util.List headlines_; /** *
   * Headline text asset of the ad. Maximum display width is 30. At least 1 and
   * max 5 headlines can be specified.
   * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ @java.lang.Override public java.util.List getHeadlinesList() { return headlines_; } /** *
   * Headline text asset of the ad. Maximum display width is 30. At least 1 and
   * max 5 headlines can be specified.
   * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ @java.lang.Override public java.util.List getHeadlinesOrBuilderList() { return headlines_; } /** *
   * Headline text asset of the ad. Maximum display width is 30. At least 1 and
   * max 5 headlines can be specified.
   * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ @java.lang.Override public int getHeadlinesCount() { return headlines_.size(); } /** *
   * Headline text asset of the ad. Maximum display width is 30. At least 1 and
   * max 5 headlines can be specified.
   * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdTextAsset getHeadlines(int index) { return headlines_.get(index); } /** *
   * Headline text asset of the ad. Maximum display width is 30. At least 1 and
   * max 5 headlines can be specified.
   * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdTextAssetOrBuilder getHeadlinesOrBuilder( int index) { return headlines_.get(index); } public static final int DESCRIPTIONS_FIELD_NUMBER = 6; private java.util.List descriptions_; /** *
   * The descriptive text of the ad. Maximum display width is 90. At least 1 and
   * max 5 descriptions can be specified.
   * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ @java.lang.Override public java.util.List getDescriptionsList() { return descriptions_; } /** *
   * The descriptive text of the ad. Maximum display width is 90. At least 1 and
   * max 5 descriptions can be specified.
   * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ @java.lang.Override public java.util.List getDescriptionsOrBuilderList() { return descriptions_; } /** *
   * The descriptive text of the ad. Maximum display width is 90. At least 1 and
   * max 5 descriptions can be specified.
   * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ @java.lang.Override public int getDescriptionsCount() { return descriptions_.size(); } /** *
   * The descriptive text of the ad. Maximum display width is 90. At least 1 and
   * max 5 descriptions can be specified.
   * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdTextAsset getDescriptions(int index) { return descriptions_.get(index); } /** *
   * The descriptive text of the ad. Maximum display width is 90. At least 1 and
   * max 5 descriptions can be specified.
   * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdTextAssetOrBuilder getDescriptionsOrBuilder( int index) { return descriptions_.get(index); } public static final int BUSINESS_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object businessName_; /** *
   * The Advertiser/brand name. Maximum display width is 25. Required.
   * 
* * optional string business_name = 7; * @return Whether the businessName field is set. */ @java.lang.Override public boolean hasBusinessName() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The Advertiser/brand name. Maximum display width is 25. Required.
   * 
* * optional string business_name = 7; * @return The businessName. */ @java.lang.Override public java.lang.String getBusinessName() { java.lang.Object ref = businessName_; 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(); businessName_ = s; return s; } } /** *
   * The Advertiser/brand name. Maximum display width is 25. Required.
   * 
* * optional string business_name = 7; * @return The bytes for businessName. */ @java.lang.Override public com.google.protobuf.ByteString getBusinessNameBytes() { java.lang.Object ref = businessName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); businessName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CALL_TO_ACTION_TEXT_FIELD_NUMBER = 8; private volatile java.lang.Object callToActionText_; /** *
   * Call to action text.
   * 
* * optional string call_to_action_text = 8; * @return Whether the callToActionText field is set. */ @java.lang.Override public boolean hasCallToActionText() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Call to action text.
   * 
* * optional string call_to_action_text = 8; * @return The callToActionText. */ @java.lang.Override public java.lang.String getCallToActionText() { java.lang.Object ref = callToActionText_; 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(); callToActionText_ = s; return s; } } /** *
   * Call to action text.
   * 
* * optional string call_to_action_text = 8; * @return The bytes for callToActionText. */ @java.lang.Override public com.google.protobuf.ByteString getCallToActionTextBytes() { java.lang.Object ref = callToActionText_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callToActionText_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LEAD_FORM_ONLY_FIELD_NUMBER = 9; private boolean leadFormOnly_; /** *
   * Boolean option that indicates if this ad must be served with lead form.
   * 
* * optional bool lead_form_only = 9; * @return Whether the leadFormOnly field is set. */ @java.lang.Override public boolean hasLeadFormOnly() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Boolean option that indicates if this ad must be served with lead form.
   * 
* * optional bool lead_form_only = 9; * @return The leadFormOnly. */ @java.lang.Override public boolean getLeadFormOnly() { return leadFormOnly_; } 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 { for (int i = 0; i < marketingImages_.size(); i++) { output.writeMessage(1, marketingImages_.get(i)); } for (int i = 0; i < squareMarketingImages_.size(); i++) { output.writeMessage(2, squareMarketingImages_.get(i)); } for (int i = 0; i < portraitMarketingImages_.size(); i++) { output.writeMessage(3, portraitMarketingImages_.get(i)); } for (int i = 0; i < logoImages_.size(); i++) { output.writeMessage(4, logoImages_.get(i)); } for (int i = 0; i < headlines_.size(); i++) { output.writeMessage(5, headlines_.get(i)); } for (int i = 0; i < descriptions_.size(); i++) { output.writeMessage(6, descriptions_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, businessName_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, callToActionText_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(9, leadFormOnly_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < marketingImages_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, marketingImages_.get(i)); } for (int i = 0; i < squareMarketingImages_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, squareMarketingImages_.get(i)); } for (int i = 0; i < portraitMarketingImages_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, portraitMarketingImages_.get(i)); } for (int i = 0; i < logoImages_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, logoImages_.get(i)); } for (int i = 0; i < headlines_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, headlines_.get(i)); } for (int i = 0; i < descriptions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, descriptions_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, businessName_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, callToActionText_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, leadFormOnly_); } 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.v10.common.DiscoveryMultiAssetAdInfo)) { return super.equals(obj); } com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo other = (com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo) obj; if (!getMarketingImagesList() .equals(other.getMarketingImagesList())) return false; if (!getSquareMarketingImagesList() .equals(other.getSquareMarketingImagesList())) return false; if (!getPortraitMarketingImagesList() .equals(other.getPortraitMarketingImagesList())) return false; if (!getLogoImagesList() .equals(other.getLogoImagesList())) return false; if (!getHeadlinesList() .equals(other.getHeadlinesList())) return false; if (!getDescriptionsList() .equals(other.getDescriptionsList())) return false; if (hasBusinessName() != other.hasBusinessName()) return false; if (hasBusinessName()) { if (!getBusinessName() .equals(other.getBusinessName())) return false; } if (hasCallToActionText() != other.hasCallToActionText()) return false; if (hasCallToActionText()) { if (!getCallToActionText() .equals(other.getCallToActionText())) return false; } if (hasLeadFormOnly() != other.hasLeadFormOnly()) return false; if (hasLeadFormOnly()) { if (getLeadFormOnly() != other.getLeadFormOnly()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getMarketingImagesCount() > 0) { hash = (37 * hash) + MARKETING_IMAGES_FIELD_NUMBER; hash = (53 * hash) + getMarketingImagesList().hashCode(); } if (getSquareMarketingImagesCount() > 0) { hash = (37 * hash) + SQUARE_MARKETING_IMAGES_FIELD_NUMBER; hash = (53 * hash) + getSquareMarketingImagesList().hashCode(); } if (getPortraitMarketingImagesCount() > 0) { hash = (37 * hash) + PORTRAIT_MARKETING_IMAGES_FIELD_NUMBER; hash = (53 * hash) + getPortraitMarketingImagesList().hashCode(); } if (getLogoImagesCount() > 0) { hash = (37 * hash) + LOGO_IMAGES_FIELD_NUMBER; hash = (53 * hash) + getLogoImagesList().hashCode(); } if (getHeadlinesCount() > 0) { hash = (37 * hash) + HEADLINES_FIELD_NUMBER; hash = (53 * hash) + getHeadlinesList().hashCode(); } if (getDescriptionsCount() > 0) { hash = (37 * hash) + DESCRIPTIONS_FIELD_NUMBER; hash = (53 * hash) + getDescriptionsList().hashCode(); } if (hasBusinessName()) { hash = (37 * hash) + BUSINESS_NAME_FIELD_NUMBER; hash = (53 * hash) + getBusinessName().hashCode(); } if (hasCallToActionText()) { hash = (37 * hash) + CALL_TO_ACTION_TEXT_FIELD_NUMBER; hash = (53 * hash) + getCallToActionText().hashCode(); } if (hasLeadFormOnly()) { hash = (37 * hash) + LEAD_FORM_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getLeadFormOnly()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo 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.v10.common.DiscoveryMultiAssetAdInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo 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.v10.common.DiscoveryMultiAssetAdInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo 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.v10.common.DiscoveryMultiAssetAdInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo 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.v10.common.DiscoveryMultiAssetAdInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo 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.v10.common.DiscoveryMultiAssetAdInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * A discovery multi asset ad.
   * 
* * Protobuf type {@code google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo) com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_DiscoveryMultiAssetAdInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_DiscoveryMultiAssetAdInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo.class, com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo.Builder.class); } // Construct using com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (marketingImagesBuilder_ == null) { marketingImages_ = java.util.Collections.emptyList(); } else { marketingImages_ = null; marketingImagesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (squareMarketingImagesBuilder_ == null) { squareMarketingImages_ = java.util.Collections.emptyList(); } else { squareMarketingImages_ = null; squareMarketingImagesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (portraitMarketingImagesBuilder_ == null) { portraitMarketingImages_ = java.util.Collections.emptyList(); } else { portraitMarketingImages_ = null; portraitMarketingImagesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (logoImagesBuilder_ == null) { logoImages_ = java.util.Collections.emptyList(); } else { logoImages_ = null; logoImagesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (headlinesBuilder_ == null) { headlines_ = java.util.Collections.emptyList(); } else { headlines_ = null; headlinesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (descriptionsBuilder_ == null) { descriptions_ = java.util.Collections.emptyList(); } else { descriptions_ = null; descriptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); businessName_ = ""; bitField0_ = (bitField0_ & ~0x00000040); callToActionText_ = ""; bitField0_ = (bitField0_ & ~0x00000080); leadFormOnly_ = false; bitField0_ = (bitField0_ & ~0x00000100); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_DiscoveryMultiAssetAdInfo_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo getDefaultInstanceForType() { return com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo build() { com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo buildPartial() { com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo result = new com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (marketingImagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { marketingImages_ = java.util.Collections.unmodifiableList(marketingImages_); bitField0_ = (bitField0_ & ~0x00000001); } result.marketingImages_ = marketingImages_; } else { result.marketingImages_ = marketingImagesBuilder_.build(); } if (squareMarketingImagesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { squareMarketingImages_ = java.util.Collections.unmodifiableList(squareMarketingImages_); bitField0_ = (bitField0_ & ~0x00000002); } result.squareMarketingImages_ = squareMarketingImages_; } else { result.squareMarketingImages_ = squareMarketingImagesBuilder_.build(); } if (portraitMarketingImagesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { portraitMarketingImages_ = java.util.Collections.unmodifiableList(portraitMarketingImages_); bitField0_ = (bitField0_ & ~0x00000004); } result.portraitMarketingImages_ = portraitMarketingImages_; } else { result.portraitMarketingImages_ = portraitMarketingImagesBuilder_.build(); } if (logoImagesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { logoImages_ = java.util.Collections.unmodifiableList(logoImages_); bitField0_ = (bitField0_ & ~0x00000008); } result.logoImages_ = logoImages_; } else { result.logoImages_ = logoImagesBuilder_.build(); } if (headlinesBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { headlines_ = java.util.Collections.unmodifiableList(headlines_); bitField0_ = (bitField0_ & ~0x00000010); } result.headlines_ = headlines_; } else { result.headlines_ = headlinesBuilder_.build(); } if (descriptionsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { descriptions_ = java.util.Collections.unmodifiableList(descriptions_); bitField0_ = (bitField0_ & ~0x00000020); } result.descriptions_ = descriptions_; } else { result.descriptions_ = descriptionsBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { to_bitField0_ |= 0x00000001; } result.businessName_ = businessName_; if (((from_bitField0_ & 0x00000080) != 0)) { to_bitField0_ |= 0x00000002; } result.callToActionText_ = callToActionText_; if (((from_bitField0_ & 0x00000100) != 0)) { result.leadFormOnly_ = leadFormOnly_; to_bitField0_ |= 0x00000004; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @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.v10.common.DiscoveryMultiAssetAdInfo) { return mergeFrom((com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo other) { if (other == com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo.getDefaultInstance()) return this; if (marketingImagesBuilder_ == null) { if (!other.marketingImages_.isEmpty()) { if (marketingImages_.isEmpty()) { marketingImages_ = other.marketingImages_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMarketingImagesIsMutable(); marketingImages_.addAll(other.marketingImages_); } onChanged(); } } else { if (!other.marketingImages_.isEmpty()) { if (marketingImagesBuilder_.isEmpty()) { marketingImagesBuilder_.dispose(); marketingImagesBuilder_ = null; marketingImages_ = other.marketingImages_; bitField0_ = (bitField0_ & ~0x00000001); marketingImagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMarketingImagesFieldBuilder() : null; } else { marketingImagesBuilder_.addAllMessages(other.marketingImages_); } } } if (squareMarketingImagesBuilder_ == null) { if (!other.squareMarketingImages_.isEmpty()) { if (squareMarketingImages_.isEmpty()) { squareMarketingImages_ = other.squareMarketingImages_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSquareMarketingImagesIsMutable(); squareMarketingImages_.addAll(other.squareMarketingImages_); } onChanged(); } } else { if (!other.squareMarketingImages_.isEmpty()) { if (squareMarketingImagesBuilder_.isEmpty()) { squareMarketingImagesBuilder_.dispose(); squareMarketingImagesBuilder_ = null; squareMarketingImages_ = other.squareMarketingImages_; bitField0_ = (bitField0_ & ~0x00000002); squareMarketingImagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSquareMarketingImagesFieldBuilder() : null; } else { squareMarketingImagesBuilder_.addAllMessages(other.squareMarketingImages_); } } } if (portraitMarketingImagesBuilder_ == null) { if (!other.portraitMarketingImages_.isEmpty()) { if (portraitMarketingImages_.isEmpty()) { portraitMarketingImages_ = other.portraitMarketingImages_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePortraitMarketingImagesIsMutable(); portraitMarketingImages_.addAll(other.portraitMarketingImages_); } onChanged(); } } else { if (!other.portraitMarketingImages_.isEmpty()) { if (portraitMarketingImagesBuilder_.isEmpty()) { portraitMarketingImagesBuilder_.dispose(); portraitMarketingImagesBuilder_ = null; portraitMarketingImages_ = other.portraitMarketingImages_; bitField0_ = (bitField0_ & ~0x00000004); portraitMarketingImagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPortraitMarketingImagesFieldBuilder() : null; } else { portraitMarketingImagesBuilder_.addAllMessages(other.portraitMarketingImages_); } } } if (logoImagesBuilder_ == null) { if (!other.logoImages_.isEmpty()) { if (logoImages_.isEmpty()) { logoImages_ = other.logoImages_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureLogoImagesIsMutable(); logoImages_.addAll(other.logoImages_); } onChanged(); } } else { if (!other.logoImages_.isEmpty()) { if (logoImagesBuilder_.isEmpty()) { logoImagesBuilder_.dispose(); logoImagesBuilder_ = null; logoImages_ = other.logoImages_; bitField0_ = (bitField0_ & ~0x00000008); logoImagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLogoImagesFieldBuilder() : null; } else { logoImagesBuilder_.addAllMessages(other.logoImages_); } } } if (headlinesBuilder_ == null) { if (!other.headlines_.isEmpty()) { if (headlines_.isEmpty()) { headlines_ = other.headlines_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureHeadlinesIsMutable(); headlines_.addAll(other.headlines_); } onChanged(); } } else { if (!other.headlines_.isEmpty()) { if (headlinesBuilder_.isEmpty()) { headlinesBuilder_.dispose(); headlinesBuilder_ = null; headlines_ = other.headlines_; bitField0_ = (bitField0_ & ~0x00000010); headlinesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHeadlinesFieldBuilder() : null; } else { headlinesBuilder_.addAllMessages(other.headlines_); } } } if (descriptionsBuilder_ == null) { if (!other.descriptions_.isEmpty()) { if (descriptions_.isEmpty()) { descriptions_ = other.descriptions_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureDescriptionsIsMutable(); descriptions_.addAll(other.descriptions_); } onChanged(); } } else { if (!other.descriptions_.isEmpty()) { if (descriptionsBuilder_.isEmpty()) { descriptionsBuilder_.dispose(); descriptionsBuilder_ = null; descriptions_ = other.descriptions_; bitField0_ = (bitField0_ & ~0x00000020); descriptionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDescriptionsFieldBuilder() : null; } else { descriptionsBuilder_.addAllMessages(other.descriptions_); } } } if (other.hasBusinessName()) { bitField0_ |= 0x00000040; businessName_ = other.businessName_; onChanged(); } if (other.hasCallToActionText()) { bitField0_ |= 0x00000080; callToActionText_ = other.callToActionText_; onChanged(); } if (other.hasLeadFormOnly()) { setLeadFormOnly(other.getLeadFormOnly()); } 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: { com.google.ads.googleads.v10.common.AdImageAsset m = input.readMessage( com.google.ads.googleads.v10.common.AdImageAsset.parser(), extensionRegistry); if (marketingImagesBuilder_ == null) { ensureMarketingImagesIsMutable(); marketingImages_.add(m); } else { marketingImagesBuilder_.addMessage(m); } break; } // case 10 case 18: { com.google.ads.googleads.v10.common.AdImageAsset m = input.readMessage( com.google.ads.googleads.v10.common.AdImageAsset.parser(), extensionRegistry); if (squareMarketingImagesBuilder_ == null) { ensureSquareMarketingImagesIsMutable(); squareMarketingImages_.add(m); } else { squareMarketingImagesBuilder_.addMessage(m); } break; } // case 18 case 26: { com.google.ads.googleads.v10.common.AdImageAsset m = input.readMessage( com.google.ads.googleads.v10.common.AdImageAsset.parser(), extensionRegistry); if (portraitMarketingImagesBuilder_ == null) { ensurePortraitMarketingImagesIsMutable(); portraitMarketingImages_.add(m); } else { portraitMarketingImagesBuilder_.addMessage(m); } break; } // case 26 case 34: { com.google.ads.googleads.v10.common.AdImageAsset m = input.readMessage( com.google.ads.googleads.v10.common.AdImageAsset.parser(), extensionRegistry); if (logoImagesBuilder_ == null) { ensureLogoImagesIsMutable(); logoImages_.add(m); } else { logoImagesBuilder_.addMessage(m); } break; } // case 34 case 42: { com.google.ads.googleads.v10.common.AdTextAsset m = input.readMessage( com.google.ads.googleads.v10.common.AdTextAsset.parser(), extensionRegistry); if (headlinesBuilder_ == null) { ensureHeadlinesIsMutable(); headlines_.add(m); } else { headlinesBuilder_.addMessage(m); } break; } // case 42 case 50: { com.google.ads.googleads.v10.common.AdTextAsset m = input.readMessage( com.google.ads.googleads.v10.common.AdTextAsset.parser(), extensionRegistry); if (descriptionsBuilder_ == null) { ensureDescriptionsIsMutable(); descriptions_.add(m); } else { descriptionsBuilder_.addMessage(m); } break; } // case 50 case 58: { businessName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { callToActionText_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 72: { leadFormOnly_ = input.readBool(); bitField0_ |= 0x00000100; break; } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List marketingImages_ = java.util.Collections.emptyList(); private void ensureMarketingImagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { marketingImages_ = new java.util.ArrayList(marketingImages_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdImageAsset, com.google.ads.googleads.v10.common.AdImageAsset.Builder, com.google.ads.googleads.v10.common.AdImageAssetOrBuilder> marketingImagesBuilder_; /** *
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with `square_marketing_images` and
     * `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ public java.util.List getMarketingImagesList() { if (marketingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(marketingImages_); } else { return marketingImagesBuilder_.getMessageList(); } } /** *
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with `square_marketing_images` and
     * `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ public int getMarketingImagesCount() { if (marketingImagesBuilder_ == null) { return marketingImages_.size(); } else { return marketingImagesBuilder_.getCount(); } } /** *
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with `square_marketing_images` and
     * `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ public com.google.ads.googleads.v10.common.AdImageAsset getMarketingImages(int index) { if (marketingImagesBuilder_ == null) { return marketingImages_.get(index); } else { return marketingImagesBuilder_.getMessage(index); } } /** *
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with `square_marketing_images` and
     * `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ public Builder setMarketingImages( int index, com.google.ads.googleads.v10.common.AdImageAsset value) { if (marketingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMarketingImagesIsMutable(); marketingImages_.set(index, value); onChanged(); } else { marketingImagesBuilder_.setMessage(index, value); } return this; } /** *
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with `square_marketing_images` and
     * `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ public Builder setMarketingImages( int index, com.google.ads.googleads.v10.common.AdImageAsset.Builder builderForValue) { if (marketingImagesBuilder_ == null) { ensureMarketingImagesIsMutable(); marketingImages_.set(index, builderForValue.build()); onChanged(); } else { marketingImagesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with `square_marketing_images` and
     * `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ public Builder addMarketingImages(com.google.ads.googleads.v10.common.AdImageAsset value) { if (marketingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMarketingImagesIsMutable(); marketingImages_.add(value); onChanged(); } else { marketingImagesBuilder_.addMessage(value); } return this; } /** *
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with `square_marketing_images` and
     * `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ public Builder addMarketingImages( int index, com.google.ads.googleads.v10.common.AdImageAsset value) { if (marketingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMarketingImagesIsMutable(); marketingImages_.add(index, value); onChanged(); } else { marketingImagesBuilder_.addMessage(index, value); } return this; } /** *
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with `square_marketing_images` and
     * `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ public Builder addMarketingImages( com.google.ads.googleads.v10.common.AdImageAsset.Builder builderForValue) { if (marketingImagesBuilder_ == null) { ensureMarketingImagesIsMutable(); marketingImages_.add(builderForValue.build()); onChanged(); } else { marketingImagesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with `square_marketing_images` and
     * `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ public Builder addMarketingImages( int index, com.google.ads.googleads.v10.common.AdImageAsset.Builder builderForValue) { if (marketingImagesBuilder_ == null) { ensureMarketingImagesIsMutable(); marketingImages_.add(index, builderForValue.build()); onChanged(); } else { marketingImagesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with `square_marketing_images` and
     * `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ public Builder addAllMarketingImages( java.lang.Iterable values) { if (marketingImagesBuilder_ == null) { ensureMarketingImagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, marketingImages_); onChanged(); } else { marketingImagesBuilder_.addAllMessages(values); } return this; } /** *
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with `square_marketing_images` and
     * `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ public Builder clearMarketingImages() { if (marketingImagesBuilder_ == null) { marketingImages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { marketingImagesBuilder_.clear(); } return this; } /** *
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with `square_marketing_images` and
     * `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ public Builder removeMarketingImages(int index) { if (marketingImagesBuilder_ == null) { ensureMarketingImagesIsMutable(); marketingImages_.remove(index); onChanged(); } else { marketingImagesBuilder_.remove(index); } return this; } /** *
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with `square_marketing_images` and
     * `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ public com.google.ads.googleads.v10.common.AdImageAsset.Builder getMarketingImagesBuilder( int index) { return getMarketingImagesFieldBuilder().getBuilder(index); } /** *
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with `square_marketing_images` and
     * `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ public com.google.ads.googleads.v10.common.AdImageAssetOrBuilder getMarketingImagesOrBuilder( int index) { if (marketingImagesBuilder_ == null) { return marketingImages_.get(index); } else { return marketingImagesBuilder_.getMessageOrBuilder(index); } } /** *
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with `square_marketing_images` and
     * `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ public java.util.List getMarketingImagesOrBuilderList() { if (marketingImagesBuilder_ != null) { return marketingImagesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(marketingImages_); } } /** *
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with `square_marketing_images` and
     * `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ public com.google.ads.googleads.v10.common.AdImageAsset.Builder addMarketingImagesBuilder() { return getMarketingImagesFieldBuilder().addBuilder( com.google.ads.googleads.v10.common.AdImageAsset.getDefaultInstance()); } /** *
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with `square_marketing_images` and
     * `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ public com.google.ads.googleads.v10.common.AdImageAsset.Builder addMarketingImagesBuilder( int index) { return getMarketingImagesFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.common.AdImageAsset.getDefaultInstance()); } /** *
     * Marketing image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must
     * be 1.91:1 (+-1%). Required if square_marketing_images is
     * not present. Combined with `square_marketing_images` and
     * `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset marketing_images = 1; */ public java.util.List getMarketingImagesBuilderList() { return getMarketingImagesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdImageAsset, com.google.ads.googleads.v10.common.AdImageAsset.Builder, com.google.ads.googleads.v10.common.AdImageAssetOrBuilder> getMarketingImagesFieldBuilder() { if (marketingImagesBuilder_ == null) { marketingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdImageAsset, com.google.ads.googleads.v10.common.AdImageAsset.Builder, com.google.ads.googleads.v10.common.AdImageAssetOrBuilder>( marketingImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); marketingImages_ = null; } return marketingImagesBuilder_; } private java.util.List squareMarketingImages_ = java.util.Collections.emptyList(); private void ensureSquareMarketingImagesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { squareMarketingImages_ = new java.util.ArrayList(squareMarketingImages_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdImageAsset, com.google.ads.googleads.v10.common.AdImageAsset.Builder, com.google.ads.googleads.v10.common.AdImageAssetOrBuilder> squareMarketingImagesBuilder_; /** *
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
     * `marketing_images` and `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ public java.util.List getSquareMarketingImagesList() { if (squareMarketingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(squareMarketingImages_); } else { return squareMarketingImagesBuilder_.getMessageList(); } } /** *
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
     * `marketing_images` and `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ public int getSquareMarketingImagesCount() { if (squareMarketingImagesBuilder_ == null) { return squareMarketingImages_.size(); } else { return squareMarketingImagesBuilder_.getCount(); } } /** *
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
     * `marketing_images` and `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ public com.google.ads.googleads.v10.common.AdImageAsset getSquareMarketingImages(int index) { if (squareMarketingImagesBuilder_ == null) { return squareMarketingImages_.get(index); } else { return squareMarketingImagesBuilder_.getMessage(index); } } /** *
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
     * `marketing_images` and `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ public Builder setSquareMarketingImages( int index, com.google.ads.googleads.v10.common.AdImageAsset value) { if (squareMarketingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSquareMarketingImagesIsMutable(); squareMarketingImages_.set(index, value); onChanged(); } else { squareMarketingImagesBuilder_.setMessage(index, value); } return this; } /** *
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
     * `marketing_images` and `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ public Builder setSquareMarketingImages( int index, com.google.ads.googleads.v10.common.AdImageAsset.Builder builderForValue) { if (squareMarketingImagesBuilder_ == null) { ensureSquareMarketingImagesIsMutable(); squareMarketingImages_.set(index, builderForValue.build()); onChanged(); } else { squareMarketingImagesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
     * `marketing_images` and `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ public Builder addSquareMarketingImages(com.google.ads.googleads.v10.common.AdImageAsset value) { if (squareMarketingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSquareMarketingImagesIsMutable(); squareMarketingImages_.add(value); onChanged(); } else { squareMarketingImagesBuilder_.addMessage(value); } return this; } /** *
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
     * `marketing_images` and `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ public Builder addSquareMarketingImages( int index, com.google.ads.googleads.v10.common.AdImageAsset value) { if (squareMarketingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSquareMarketingImagesIsMutable(); squareMarketingImages_.add(index, value); onChanged(); } else { squareMarketingImagesBuilder_.addMessage(index, value); } return this; } /** *
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
     * `marketing_images` and `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ public Builder addSquareMarketingImages( com.google.ads.googleads.v10.common.AdImageAsset.Builder builderForValue) { if (squareMarketingImagesBuilder_ == null) { ensureSquareMarketingImagesIsMutable(); squareMarketingImages_.add(builderForValue.build()); onChanged(); } else { squareMarketingImagesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
     * `marketing_images` and `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ public Builder addSquareMarketingImages( int index, com.google.ads.googleads.v10.common.AdImageAsset.Builder builderForValue) { if (squareMarketingImagesBuilder_ == null) { ensureSquareMarketingImagesIsMutable(); squareMarketingImages_.add(index, builderForValue.build()); onChanged(); } else { squareMarketingImagesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
     * `marketing_images` and `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ public Builder addAllSquareMarketingImages( java.lang.Iterable values) { if (squareMarketingImagesBuilder_ == null) { ensureSquareMarketingImagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, squareMarketingImages_); onChanged(); } else { squareMarketingImagesBuilder_.addAllMessages(values); } return this; } /** *
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
     * `marketing_images` and `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ public Builder clearSquareMarketingImages() { if (squareMarketingImagesBuilder_ == null) { squareMarketingImages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { squareMarketingImagesBuilder_.clear(); } return this; } /** *
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
     * `marketing_images` and `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ public Builder removeSquareMarketingImages(int index) { if (squareMarketingImagesBuilder_ == null) { ensureSquareMarketingImagesIsMutable(); squareMarketingImages_.remove(index); onChanged(); } else { squareMarketingImagesBuilder_.remove(index); } return this; } /** *
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
     * `marketing_images` and `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ public com.google.ads.googleads.v10.common.AdImageAsset.Builder getSquareMarketingImagesBuilder( int index) { return getSquareMarketingImagesFieldBuilder().getBuilder(index); } /** *
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
     * `marketing_images` and `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ public com.google.ads.googleads.v10.common.AdImageAssetOrBuilder getSquareMarketingImagesOrBuilder( int index) { if (squareMarketingImagesBuilder_ == null) { return squareMarketingImages_.get(index); } else { return squareMarketingImagesBuilder_.getMessageOrBuilder(index); } } /** *
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
     * `marketing_images` and `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ public java.util.List getSquareMarketingImagesOrBuilderList() { if (squareMarketingImagesBuilder_ != null) { return squareMarketingImagesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(squareMarketingImages_); } } /** *
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
     * `marketing_images` and `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ public com.google.ads.googleads.v10.common.AdImageAsset.Builder addSquareMarketingImagesBuilder() { return getSquareMarketingImagesFieldBuilder().addBuilder( com.google.ads.googleads.v10.common.AdImageAsset.getDefaultInstance()); } /** *
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
     * `marketing_images` and `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ public com.google.ads.googleads.v10.common.AdImageAsset.Builder addSquareMarketingImagesBuilder( int index) { return getSquareMarketingImagesFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.common.AdImageAsset.getDefaultInstance()); } /** *
     * Square marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must
     * be 1:1 (+-1%). Required if marketing_images is not present.  Combined with
     * `marketing_images` and `portrait_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset square_marketing_images = 2; */ public java.util.List getSquareMarketingImagesBuilderList() { return getSquareMarketingImagesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdImageAsset, com.google.ads.googleads.v10.common.AdImageAsset.Builder, com.google.ads.googleads.v10.common.AdImageAssetOrBuilder> getSquareMarketingImagesFieldBuilder() { if (squareMarketingImagesBuilder_ == null) { squareMarketingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdImageAsset, com.google.ads.googleads.v10.common.AdImageAsset.Builder, com.google.ads.googleads.v10.common.AdImageAssetOrBuilder>( squareMarketingImages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); squareMarketingImages_ = null; } return squareMarketingImagesBuilder_; } private java.util.List portraitMarketingImages_ = java.util.Collections.emptyList(); private void ensurePortraitMarketingImagesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { portraitMarketingImages_ = new java.util.ArrayList(portraitMarketingImages_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdImageAsset, com.google.ads.googleads.v10.common.AdImageAsset.Builder, com.google.ads.googleads.v10.common.AdImageAssetOrBuilder> portraitMarketingImagesBuilder_; /** *
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%).  Combined with `marketing_images` and
     * `square_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ public java.util.List getPortraitMarketingImagesList() { if (portraitMarketingImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(portraitMarketingImages_); } else { return portraitMarketingImagesBuilder_.getMessageList(); } } /** *
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%).  Combined with `marketing_images` and
     * `square_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ public int getPortraitMarketingImagesCount() { if (portraitMarketingImagesBuilder_ == null) { return portraitMarketingImages_.size(); } else { return portraitMarketingImagesBuilder_.getCount(); } } /** *
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%).  Combined with `marketing_images` and
     * `square_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ public com.google.ads.googleads.v10.common.AdImageAsset getPortraitMarketingImages(int index) { if (portraitMarketingImagesBuilder_ == null) { return portraitMarketingImages_.get(index); } else { return portraitMarketingImagesBuilder_.getMessage(index); } } /** *
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%).  Combined with `marketing_images` and
     * `square_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ public Builder setPortraitMarketingImages( int index, com.google.ads.googleads.v10.common.AdImageAsset value) { if (portraitMarketingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortraitMarketingImagesIsMutable(); portraitMarketingImages_.set(index, value); onChanged(); } else { portraitMarketingImagesBuilder_.setMessage(index, value); } return this; } /** *
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%).  Combined with `marketing_images` and
     * `square_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ public Builder setPortraitMarketingImages( int index, com.google.ads.googleads.v10.common.AdImageAsset.Builder builderForValue) { if (portraitMarketingImagesBuilder_ == null) { ensurePortraitMarketingImagesIsMutable(); portraitMarketingImages_.set(index, builderForValue.build()); onChanged(); } else { portraitMarketingImagesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%).  Combined with `marketing_images` and
     * `square_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ public Builder addPortraitMarketingImages(com.google.ads.googleads.v10.common.AdImageAsset value) { if (portraitMarketingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortraitMarketingImagesIsMutable(); portraitMarketingImages_.add(value); onChanged(); } else { portraitMarketingImagesBuilder_.addMessage(value); } return this; } /** *
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%).  Combined with `marketing_images` and
     * `square_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ public Builder addPortraitMarketingImages( int index, com.google.ads.googleads.v10.common.AdImageAsset value) { if (portraitMarketingImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePortraitMarketingImagesIsMutable(); portraitMarketingImages_.add(index, value); onChanged(); } else { portraitMarketingImagesBuilder_.addMessage(index, value); } return this; } /** *
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%).  Combined with `marketing_images` and
     * `square_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ public Builder addPortraitMarketingImages( com.google.ads.googleads.v10.common.AdImageAsset.Builder builderForValue) { if (portraitMarketingImagesBuilder_ == null) { ensurePortraitMarketingImagesIsMutable(); portraitMarketingImages_.add(builderForValue.build()); onChanged(); } else { portraitMarketingImagesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%).  Combined with `marketing_images` and
     * `square_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ public Builder addPortraitMarketingImages( int index, com.google.ads.googleads.v10.common.AdImageAsset.Builder builderForValue) { if (portraitMarketingImagesBuilder_ == null) { ensurePortraitMarketingImagesIsMutable(); portraitMarketingImages_.add(index, builderForValue.build()); onChanged(); } else { portraitMarketingImagesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%).  Combined with `marketing_images` and
     * `square_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ public Builder addAllPortraitMarketingImages( java.lang.Iterable values) { if (portraitMarketingImagesBuilder_ == null) { ensurePortraitMarketingImagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, portraitMarketingImages_); onChanged(); } else { portraitMarketingImagesBuilder_.addAllMessages(values); } return this; } /** *
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%).  Combined with `marketing_images` and
     * `square_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ public Builder clearPortraitMarketingImages() { if (portraitMarketingImagesBuilder_ == null) { portraitMarketingImages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { portraitMarketingImagesBuilder_.clear(); } return this; } /** *
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%).  Combined with `marketing_images` and
     * `square_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ public Builder removePortraitMarketingImages(int index) { if (portraitMarketingImagesBuilder_ == null) { ensurePortraitMarketingImagesIsMutable(); portraitMarketingImages_.remove(index); onChanged(); } else { portraitMarketingImagesBuilder_.remove(index); } return this; } /** *
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%).  Combined with `marketing_images` and
     * `square_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ public com.google.ads.googleads.v10.common.AdImageAsset.Builder getPortraitMarketingImagesBuilder( int index) { return getPortraitMarketingImagesFieldBuilder().getBuilder(index); } /** *
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%).  Combined with `marketing_images` and
     * `square_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ public com.google.ads.googleads.v10.common.AdImageAssetOrBuilder getPortraitMarketingImagesOrBuilder( int index) { if (portraitMarketingImagesBuilder_ == null) { return portraitMarketingImages_.get(index); } else { return portraitMarketingImagesBuilder_.getMessageOrBuilder(index); } } /** *
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%).  Combined with `marketing_images` and
     * `square_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ public java.util.List getPortraitMarketingImagesOrBuilderList() { if (portraitMarketingImagesBuilder_ != null) { return portraitMarketingImagesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(portraitMarketingImages_); } } /** *
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%).  Combined with `marketing_images` and
     * `square_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ public com.google.ads.googleads.v10.common.AdImageAsset.Builder addPortraitMarketingImagesBuilder() { return getPortraitMarketingImagesFieldBuilder().addBuilder( com.google.ads.googleads.v10.common.AdImageAsset.getDefaultInstance()); } /** *
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%).  Combined with `marketing_images` and
     * `square_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ public com.google.ads.googleads.v10.common.AdImageAsset.Builder addPortraitMarketingImagesBuilder( int index) { return getPortraitMarketingImagesFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.common.AdImageAsset.getDefaultInstance()); } /** *
     * Portrait marketing image assets to be used in the ad. Valid image types are
     * GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must
     * be 4:5 (+-1%).  Combined with `marketing_images` and
     * `square_marketing_images` the maximum is 20.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset portrait_marketing_images = 3; */ public java.util.List getPortraitMarketingImagesBuilderList() { return getPortraitMarketingImagesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdImageAsset, com.google.ads.googleads.v10.common.AdImageAsset.Builder, com.google.ads.googleads.v10.common.AdImageAssetOrBuilder> getPortraitMarketingImagesFieldBuilder() { if (portraitMarketingImagesBuilder_ == null) { portraitMarketingImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdImageAsset, com.google.ads.googleads.v10.common.AdImageAsset.Builder, com.google.ads.googleads.v10.common.AdImageAssetOrBuilder>( portraitMarketingImages_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); portraitMarketingImages_ = null; } return portraitMarketingImagesBuilder_; } private java.util.List logoImages_ = java.util.Collections.emptyList(); private void ensureLogoImagesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { logoImages_ = new java.util.ArrayList(logoImages_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdImageAsset, com.google.ads.googleads.v10.common.AdImageAsset.Builder, com.google.ads.googleads.v10.common.AdImageAssetOrBuilder> logoImagesBuilder_; /** *
     * Logo image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
     * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ public java.util.List getLogoImagesList() { if (logoImagesBuilder_ == null) { return java.util.Collections.unmodifiableList(logoImages_); } else { return logoImagesBuilder_.getMessageList(); } } /** *
     * Logo image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
     * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ public int getLogoImagesCount() { if (logoImagesBuilder_ == null) { return logoImages_.size(); } else { return logoImagesBuilder_.getCount(); } } /** *
     * Logo image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
     * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ public com.google.ads.googleads.v10.common.AdImageAsset getLogoImages(int index) { if (logoImagesBuilder_ == null) { return logoImages_.get(index); } else { return logoImagesBuilder_.getMessage(index); } } /** *
     * Logo image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
     * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ public Builder setLogoImages( int index, com.google.ads.googleads.v10.common.AdImageAsset value) { if (logoImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogoImagesIsMutable(); logoImages_.set(index, value); onChanged(); } else { logoImagesBuilder_.setMessage(index, value); } return this; } /** *
     * Logo image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
     * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ public Builder setLogoImages( int index, com.google.ads.googleads.v10.common.AdImageAsset.Builder builderForValue) { if (logoImagesBuilder_ == null) { ensureLogoImagesIsMutable(); logoImages_.set(index, builderForValue.build()); onChanged(); } else { logoImagesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Logo image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
     * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ public Builder addLogoImages(com.google.ads.googleads.v10.common.AdImageAsset value) { if (logoImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogoImagesIsMutable(); logoImages_.add(value); onChanged(); } else { logoImagesBuilder_.addMessage(value); } return this; } /** *
     * Logo image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
     * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ public Builder addLogoImages( int index, com.google.ads.googleads.v10.common.AdImageAsset value) { if (logoImagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogoImagesIsMutable(); logoImages_.add(index, value); onChanged(); } else { logoImagesBuilder_.addMessage(index, value); } return this; } /** *
     * Logo image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
     * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ public Builder addLogoImages( com.google.ads.googleads.v10.common.AdImageAsset.Builder builderForValue) { if (logoImagesBuilder_ == null) { ensureLogoImagesIsMutable(); logoImages_.add(builderForValue.build()); onChanged(); } else { logoImagesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Logo image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
     * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ public Builder addLogoImages( int index, com.google.ads.googleads.v10.common.AdImageAsset.Builder builderForValue) { if (logoImagesBuilder_ == null) { ensureLogoImagesIsMutable(); logoImages_.add(index, builderForValue.build()); onChanged(); } else { logoImagesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Logo image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
     * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ public Builder addAllLogoImages( java.lang.Iterable values) { if (logoImagesBuilder_ == null) { ensureLogoImagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, logoImages_); onChanged(); } else { logoImagesBuilder_.addAllMessages(values); } return this; } /** *
     * Logo image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
     * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ public Builder clearLogoImages() { if (logoImagesBuilder_ == null) { logoImages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { logoImagesBuilder_.clear(); } return this; } /** *
     * Logo image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
     * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ public Builder removeLogoImages(int index) { if (logoImagesBuilder_ == null) { ensureLogoImagesIsMutable(); logoImages_.remove(index); onChanged(); } else { logoImagesBuilder_.remove(index); } return this; } /** *
     * Logo image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
     * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ public com.google.ads.googleads.v10.common.AdImageAsset.Builder getLogoImagesBuilder( int index) { return getLogoImagesFieldBuilder().getBuilder(index); } /** *
     * Logo image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
     * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ public com.google.ads.googleads.v10.common.AdImageAssetOrBuilder getLogoImagesOrBuilder( int index) { if (logoImagesBuilder_ == null) { return logoImages_.get(index); } else { return logoImagesBuilder_.getMessageOrBuilder(index); } } /** *
     * Logo image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
     * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ public java.util.List getLogoImagesOrBuilderList() { if (logoImagesBuilder_ != null) { return logoImagesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(logoImages_); } } /** *
     * Logo image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
     * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ public com.google.ads.googleads.v10.common.AdImageAsset.Builder addLogoImagesBuilder() { return getLogoImagesFieldBuilder().addBuilder( com.google.ads.googleads.v10.common.AdImageAsset.getDefaultInstance()); } /** *
     * Logo image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
     * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ public com.google.ads.googleads.v10.common.AdImageAsset.Builder addLogoImagesBuilder( int index) { return getLogoImagesFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.common.AdImageAsset.getDefaultInstance()); } /** *
     * Logo image assets to be used in the ad. Valid image types are GIF,
     * JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be
     * 1:1(+-1%). At least 1 and max 5 logo images can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset logo_images = 4; */ public java.util.List getLogoImagesBuilderList() { return getLogoImagesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdImageAsset, com.google.ads.googleads.v10.common.AdImageAsset.Builder, com.google.ads.googleads.v10.common.AdImageAssetOrBuilder> getLogoImagesFieldBuilder() { if (logoImagesBuilder_ == null) { logoImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdImageAsset, com.google.ads.googleads.v10.common.AdImageAsset.Builder, com.google.ads.googleads.v10.common.AdImageAssetOrBuilder>( logoImages_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); logoImages_ = null; } return logoImagesBuilder_; } private java.util.List headlines_ = java.util.Collections.emptyList(); private void ensureHeadlinesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { headlines_ = new java.util.ArrayList(headlines_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.common.AdTextAssetOrBuilder> headlinesBuilder_; /** *
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ public java.util.List getHeadlinesList() { if (headlinesBuilder_ == null) { return java.util.Collections.unmodifiableList(headlines_); } else { return headlinesBuilder_.getMessageList(); } } /** *
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ public int getHeadlinesCount() { if (headlinesBuilder_ == null) { return headlines_.size(); } else { return headlinesBuilder_.getCount(); } } /** *
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ public com.google.ads.googleads.v10.common.AdTextAsset getHeadlines(int index) { if (headlinesBuilder_ == null) { return headlines_.get(index); } else { return headlinesBuilder_.getMessage(index); } } /** *
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ public Builder setHeadlines( int index, com.google.ads.googleads.v10.common.AdTextAsset value) { if (headlinesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeadlinesIsMutable(); headlines_.set(index, value); onChanged(); } else { headlinesBuilder_.setMessage(index, value); } return this; } /** *
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ public Builder setHeadlines( int index, com.google.ads.googleads.v10.common.AdTextAsset.Builder builderForValue) { if (headlinesBuilder_ == null) { ensureHeadlinesIsMutable(); headlines_.set(index, builderForValue.build()); onChanged(); } else { headlinesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ public Builder addHeadlines(com.google.ads.googleads.v10.common.AdTextAsset value) { if (headlinesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeadlinesIsMutable(); headlines_.add(value); onChanged(); } else { headlinesBuilder_.addMessage(value); } return this; } /** *
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ public Builder addHeadlines( int index, com.google.ads.googleads.v10.common.AdTextAsset value) { if (headlinesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeadlinesIsMutable(); headlines_.add(index, value); onChanged(); } else { headlinesBuilder_.addMessage(index, value); } return this; } /** *
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ public Builder addHeadlines( com.google.ads.googleads.v10.common.AdTextAsset.Builder builderForValue) { if (headlinesBuilder_ == null) { ensureHeadlinesIsMutable(); headlines_.add(builderForValue.build()); onChanged(); } else { headlinesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ public Builder addHeadlines( int index, com.google.ads.googleads.v10.common.AdTextAsset.Builder builderForValue) { if (headlinesBuilder_ == null) { ensureHeadlinesIsMutable(); headlines_.add(index, builderForValue.build()); onChanged(); } else { headlinesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ public Builder addAllHeadlines( java.lang.Iterable values) { if (headlinesBuilder_ == null) { ensureHeadlinesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, headlines_); onChanged(); } else { headlinesBuilder_.addAllMessages(values); } return this; } /** *
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ public Builder clearHeadlines() { if (headlinesBuilder_ == null) { headlines_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { headlinesBuilder_.clear(); } return this; } /** *
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ public Builder removeHeadlines(int index) { if (headlinesBuilder_ == null) { ensureHeadlinesIsMutable(); headlines_.remove(index); onChanged(); } else { headlinesBuilder_.remove(index); } return this; } /** *
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ public com.google.ads.googleads.v10.common.AdTextAsset.Builder getHeadlinesBuilder( int index) { return getHeadlinesFieldBuilder().getBuilder(index); } /** *
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ public com.google.ads.googleads.v10.common.AdTextAssetOrBuilder getHeadlinesOrBuilder( int index) { if (headlinesBuilder_ == null) { return headlines_.get(index); } else { return headlinesBuilder_.getMessageOrBuilder(index); } } /** *
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ public java.util.List getHeadlinesOrBuilderList() { if (headlinesBuilder_ != null) { return headlinesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(headlines_); } } /** *
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ public com.google.ads.googleads.v10.common.AdTextAsset.Builder addHeadlinesBuilder() { return getHeadlinesFieldBuilder().addBuilder( com.google.ads.googleads.v10.common.AdTextAsset.getDefaultInstance()); } /** *
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ public com.google.ads.googleads.v10.common.AdTextAsset.Builder addHeadlinesBuilder( int index) { return getHeadlinesFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.common.AdTextAsset.getDefaultInstance()); } /** *
     * Headline text asset of the ad. Maximum display width is 30. At least 1 and
     * max 5 headlines can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 5; */ public java.util.List getHeadlinesBuilderList() { return getHeadlinesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.common.AdTextAssetOrBuilder> getHeadlinesFieldBuilder() { if (headlinesBuilder_ == null) { headlinesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.common.AdTextAssetOrBuilder>( headlines_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); headlines_ = null; } return headlinesBuilder_; } private java.util.List descriptions_ = java.util.Collections.emptyList(); private void ensureDescriptionsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { descriptions_ = new java.util.ArrayList(descriptions_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.common.AdTextAssetOrBuilder> descriptionsBuilder_; /** *
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ public java.util.List getDescriptionsList() { if (descriptionsBuilder_ == null) { return java.util.Collections.unmodifiableList(descriptions_); } else { return descriptionsBuilder_.getMessageList(); } } /** *
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ public int getDescriptionsCount() { if (descriptionsBuilder_ == null) { return descriptions_.size(); } else { return descriptionsBuilder_.getCount(); } } /** *
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ public com.google.ads.googleads.v10.common.AdTextAsset getDescriptions(int index) { if (descriptionsBuilder_ == null) { return descriptions_.get(index); } else { return descriptionsBuilder_.getMessage(index); } } /** *
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ public Builder setDescriptions( int index, com.google.ads.googleads.v10.common.AdTextAsset value) { if (descriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDescriptionsIsMutable(); descriptions_.set(index, value); onChanged(); } else { descriptionsBuilder_.setMessage(index, value); } return this; } /** *
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ public Builder setDescriptions( int index, com.google.ads.googleads.v10.common.AdTextAsset.Builder builderForValue) { if (descriptionsBuilder_ == null) { ensureDescriptionsIsMutable(); descriptions_.set(index, builderForValue.build()); onChanged(); } else { descriptionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ public Builder addDescriptions(com.google.ads.googleads.v10.common.AdTextAsset value) { if (descriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDescriptionsIsMutable(); descriptions_.add(value); onChanged(); } else { descriptionsBuilder_.addMessage(value); } return this; } /** *
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ public Builder addDescriptions( int index, com.google.ads.googleads.v10.common.AdTextAsset value) { if (descriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDescriptionsIsMutable(); descriptions_.add(index, value); onChanged(); } else { descriptionsBuilder_.addMessage(index, value); } return this; } /** *
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ public Builder addDescriptions( com.google.ads.googleads.v10.common.AdTextAsset.Builder builderForValue) { if (descriptionsBuilder_ == null) { ensureDescriptionsIsMutable(); descriptions_.add(builderForValue.build()); onChanged(); } else { descriptionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ public Builder addDescriptions( int index, com.google.ads.googleads.v10.common.AdTextAsset.Builder builderForValue) { if (descriptionsBuilder_ == null) { ensureDescriptionsIsMutable(); descriptions_.add(index, builderForValue.build()); onChanged(); } else { descriptionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ public Builder addAllDescriptions( java.lang.Iterable values) { if (descriptionsBuilder_ == null) { ensureDescriptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, descriptions_); onChanged(); } else { descriptionsBuilder_.addAllMessages(values); } return this; } /** *
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ public Builder clearDescriptions() { if (descriptionsBuilder_ == null) { descriptions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { descriptionsBuilder_.clear(); } return this; } /** *
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ public Builder removeDescriptions(int index) { if (descriptionsBuilder_ == null) { ensureDescriptionsIsMutable(); descriptions_.remove(index); onChanged(); } else { descriptionsBuilder_.remove(index); } return this; } /** *
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ public com.google.ads.googleads.v10.common.AdTextAsset.Builder getDescriptionsBuilder( int index) { return getDescriptionsFieldBuilder().getBuilder(index); } /** *
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ public com.google.ads.googleads.v10.common.AdTextAssetOrBuilder getDescriptionsOrBuilder( int index) { if (descriptionsBuilder_ == null) { return descriptions_.get(index); } else { return descriptionsBuilder_.getMessageOrBuilder(index); } } /** *
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ public java.util.List getDescriptionsOrBuilderList() { if (descriptionsBuilder_ != null) { return descriptionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(descriptions_); } } /** *
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ public com.google.ads.googleads.v10.common.AdTextAsset.Builder addDescriptionsBuilder() { return getDescriptionsFieldBuilder().addBuilder( com.google.ads.googleads.v10.common.AdTextAsset.getDefaultInstance()); } /** *
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ public com.google.ads.googleads.v10.common.AdTextAsset.Builder addDescriptionsBuilder( int index) { return getDescriptionsFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.common.AdTextAsset.getDefaultInstance()); } /** *
     * The descriptive text of the ad. Maximum display width is 90. At least 1 and
     * max 5 descriptions can be specified.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 6; */ public java.util.List getDescriptionsBuilderList() { return getDescriptionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.common.AdTextAssetOrBuilder> getDescriptionsFieldBuilder() { if (descriptionsBuilder_ == null) { descriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.common.AdTextAssetOrBuilder>( descriptions_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); descriptions_ = null; } return descriptionsBuilder_; } private java.lang.Object businessName_ = ""; /** *
     * The Advertiser/brand name. Maximum display width is 25. Required.
     * 
* * optional string business_name = 7; * @return Whether the businessName field is set. */ public boolean hasBusinessName() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * The Advertiser/brand name. Maximum display width is 25. Required.
     * 
* * optional string business_name = 7; * @return The businessName. */ public java.lang.String getBusinessName() { java.lang.Object ref = businessName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); businessName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The Advertiser/brand name. Maximum display width is 25. Required.
     * 
* * optional string business_name = 7; * @return The bytes for businessName. */ public com.google.protobuf.ByteString getBusinessNameBytes() { java.lang.Object ref = businessName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); businessName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The Advertiser/brand name. Maximum display width is 25. Required.
     * 
* * optional string business_name = 7; * @param value The businessName to set. * @return This builder for chaining. */ public Builder setBusinessName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; businessName_ = value; onChanged(); return this; } /** *
     * The Advertiser/brand name. Maximum display width is 25. Required.
     * 
* * optional string business_name = 7; * @return This builder for chaining. */ public Builder clearBusinessName() { bitField0_ = (bitField0_ & ~0x00000040); businessName_ = getDefaultInstance().getBusinessName(); onChanged(); return this; } /** *
     * The Advertiser/brand name. Maximum display width is 25. Required.
     * 
* * optional string business_name = 7; * @param value The bytes for businessName to set. * @return This builder for chaining. */ public Builder setBusinessNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000040; businessName_ = value; onChanged(); return this; } private java.lang.Object callToActionText_ = ""; /** *
     * Call to action text.
     * 
* * optional string call_to_action_text = 8; * @return Whether the callToActionText field is set. */ public boolean hasCallToActionText() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * Call to action text.
     * 
* * optional string call_to_action_text = 8; * @return The callToActionText. */ public java.lang.String getCallToActionText() { java.lang.Object ref = callToActionText_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); callToActionText_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Call to action text.
     * 
* * optional string call_to_action_text = 8; * @return The bytes for callToActionText. */ public com.google.protobuf.ByteString getCallToActionTextBytes() { java.lang.Object ref = callToActionText_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callToActionText_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Call to action text.
     * 
* * optional string call_to_action_text = 8; * @param value The callToActionText to set. * @return This builder for chaining. */ public Builder setCallToActionText( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; callToActionText_ = value; onChanged(); return this; } /** *
     * Call to action text.
     * 
* * optional string call_to_action_text = 8; * @return This builder for chaining. */ public Builder clearCallToActionText() { bitField0_ = (bitField0_ & ~0x00000080); callToActionText_ = getDefaultInstance().getCallToActionText(); onChanged(); return this; } /** *
     * Call to action text.
     * 
* * optional string call_to_action_text = 8; * @param value The bytes for callToActionText to set. * @return This builder for chaining. */ public Builder setCallToActionTextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bitField0_ |= 0x00000080; callToActionText_ = value; onChanged(); return this; } private boolean leadFormOnly_ ; /** *
     * Boolean option that indicates if this ad must be served with lead form.
     * 
* * optional bool lead_form_only = 9; * @return Whether the leadFormOnly field is set. */ @java.lang.Override public boolean hasLeadFormOnly() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * Boolean option that indicates if this ad must be served with lead form.
     * 
* * optional bool lead_form_only = 9; * @return The leadFormOnly. */ @java.lang.Override public boolean getLeadFormOnly() { return leadFormOnly_; } /** *
     * Boolean option that indicates if this ad must be served with lead form.
     * 
* * optional bool lead_form_only = 9; * @param value The leadFormOnly to set. * @return This builder for chaining. */ public Builder setLeadFormOnly(boolean value) { bitField0_ |= 0x00000100; leadFormOnly_ = value; onChanged(); return this; } /** *
     * Boolean option that indicates if this ad must be served with lead form.
     * 
* * optional bool lead_form_only = 9; * @return This builder for chaining. */ public Builder clearLeadFormOnly() { bitField0_ = (bitField0_ & ~0x00000100); leadFormOnly_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo) private static final com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo(); } public static com.google.ads.googleads.v10.common.DiscoveryMultiAssetAdInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DiscoveryMultiAssetAdInfo 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.v10.common.DiscoveryMultiAssetAdInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy