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

com.google.ads.googleads.v10.common.AppAdInfo 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;

/**
 * 
 * An app ad.
 * 
* * Protobuf type {@code google.ads.googleads.v10.common.AppAdInfo} */ public final class AppAdInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.common.AppAdInfo) AppAdInfoOrBuilder { private static final long serialVersionUID = 0L; // Use AppAdInfo.newBuilder() to construct. private AppAdInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AppAdInfo() { headlines_ = java.util.Collections.emptyList(); descriptions_ = java.util.Collections.emptyList(); images_ = java.util.Collections.emptyList(); youtubeVideos_ = java.util.Collections.emptyList(); html5MediaBundles_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AppAdInfo(); } @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_AppAdInfo_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_AppAdInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.common.AppAdInfo.class, com.google.ads.googleads.v10.common.AppAdInfo.Builder.class); } public static final int MANDATORY_AD_TEXT_FIELD_NUMBER = 1; private com.google.ads.googleads.v10.common.AdTextAsset mandatoryAdText_; /** *
   * Mandatory ad text.
   * 
* * .google.ads.googleads.v10.common.AdTextAsset mandatory_ad_text = 1; * @return Whether the mandatoryAdText field is set. */ @java.lang.Override public boolean hasMandatoryAdText() { return mandatoryAdText_ != null; } /** *
   * Mandatory ad text.
   * 
* * .google.ads.googleads.v10.common.AdTextAsset mandatory_ad_text = 1; * @return The mandatoryAdText. */ @java.lang.Override public com.google.ads.googleads.v10.common.AdTextAsset getMandatoryAdText() { return mandatoryAdText_ == null ? com.google.ads.googleads.v10.common.AdTextAsset.getDefaultInstance() : mandatoryAdText_; } /** *
   * Mandatory ad text.
   * 
* * .google.ads.googleads.v10.common.AdTextAsset mandatory_ad_text = 1; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdTextAssetOrBuilder getMandatoryAdTextOrBuilder() { return getMandatoryAdText(); } public static final int HEADLINES_FIELD_NUMBER = 2; private java.util.List headlines_; /** *
   * List of text assets for headlines. When the ad serves the headlines will
   * be selected from this list.
   * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ @java.lang.Override public java.util.List getHeadlinesList() { return headlines_; } /** *
   * List of text assets for headlines. When the ad serves the headlines will
   * be selected from this list.
   * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ @java.lang.Override public java.util.List getHeadlinesOrBuilderList() { return headlines_; } /** *
   * List of text assets for headlines. When the ad serves the headlines will
   * be selected from this list.
   * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ @java.lang.Override public int getHeadlinesCount() { return headlines_.size(); } /** *
   * List of text assets for headlines. When the ad serves the headlines will
   * be selected from this list.
   * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdTextAsset getHeadlines(int index) { return headlines_.get(index); } /** *
   * List of text assets for headlines. When the ad serves the headlines will
   * be selected from this list.
   * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ @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 = 3; private java.util.List descriptions_; /** *
   * List of text assets for descriptions. When the ad serves the descriptions
   * will be selected from this list.
   * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ @java.lang.Override public java.util.List getDescriptionsList() { return descriptions_; } /** *
   * List of text assets for descriptions. When the ad serves the descriptions
   * will be selected from this list.
   * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ @java.lang.Override public java.util.List getDescriptionsOrBuilderList() { return descriptions_; } /** *
   * List of text assets for descriptions. When the ad serves the descriptions
   * will be selected from this list.
   * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ @java.lang.Override public int getDescriptionsCount() { return descriptions_.size(); } /** *
   * List of text assets for descriptions. When the ad serves the descriptions
   * will be selected from this list.
   * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdTextAsset getDescriptions(int index) { return descriptions_.get(index); } /** *
   * List of text assets for descriptions. When the ad serves the descriptions
   * will be selected from this list.
   * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdTextAssetOrBuilder getDescriptionsOrBuilder( int index) { return descriptions_.get(index); } public static final int IMAGES_FIELD_NUMBER = 4; private java.util.List images_; /** *
   * List of image assets that may be displayed with the ad.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ @java.lang.Override public java.util.List getImagesList() { return images_; } /** *
   * List of image assets that may be displayed with the ad.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ @java.lang.Override public java.util.List getImagesOrBuilderList() { return images_; } /** *
   * List of image assets that may be displayed with the ad.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ @java.lang.Override public int getImagesCount() { return images_.size(); } /** *
   * List of image assets that may be displayed with the ad.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdImageAsset getImages(int index) { return images_.get(index); } /** *
   * List of image assets that may be displayed with the ad.
   * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdImageAssetOrBuilder getImagesOrBuilder( int index) { return images_.get(index); } public static final int YOUTUBE_VIDEOS_FIELD_NUMBER = 5; private java.util.List youtubeVideos_; /** *
   * List of YouTube video assets that may be displayed with the ad.
   * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ @java.lang.Override public java.util.List getYoutubeVideosList() { return youtubeVideos_; } /** *
   * List of YouTube video assets that may be displayed with the ad.
   * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ @java.lang.Override public java.util.List getYoutubeVideosOrBuilderList() { return youtubeVideos_; } /** *
   * List of YouTube video assets that may be displayed with the ad.
   * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ @java.lang.Override public int getYoutubeVideosCount() { return youtubeVideos_.size(); } /** *
   * List of YouTube video assets that may be displayed with the ad.
   * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdVideoAsset getYoutubeVideos(int index) { return youtubeVideos_.get(index); } /** *
   * List of YouTube video assets that may be displayed with the ad.
   * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdVideoAssetOrBuilder getYoutubeVideosOrBuilder( int index) { return youtubeVideos_.get(index); } public static final int HTML5_MEDIA_BUNDLES_FIELD_NUMBER = 6; private java.util.List html5MediaBundles_; /** *
   * List of media bundle assets that may be used with the ad.
   * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ @java.lang.Override public java.util.List getHtml5MediaBundlesList() { return html5MediaBundles_; } /** *
   * List of media bundle assets that may be used with the ad.
   * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ @java.lang.Override public java.util.List getHtml5MediaBundlesOrBuilderList() { return html5MediaBundles_; } /** *
   * List of media bundle assets that may be used with the ad.
   * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ @java.lang.Override public int getHtml5MediaBundlesCount() { return html5MediaBundles_.size(); } /** *
   * List of media bundle assets that may be used with the ad.
   * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdMediaBundleAsset getHtml5MediaBundles(int index) { return html5MediaBundles_.get(index); } /** *
   * List of media bundle assets that may be used with the ad.
   * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ @java.lang.Override public com.google.ads.googleads.v10.common.AdMediaBundleAssetOrBuilder getHtml5MediaBundlesOrBuilder( int index) { return html5MediaBundles_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (mandatoryAdText_ != null) { output.writeMessage(1, getMandatoryAdText()); } for (int i = 0; i < headlines_.size(); i++) { output.writeMessage(2, headlines_.get(i)); } for (int i = 0; i < descriptions_.size(); i++) { output.writeMessage(3, descriptions_.get(i)); } for (int i = 0; i < images_.size(); i++) { output.writeMessage(4, images_.get(i)); } for (int i = 0; i < youtubeVideos_.size(); i++) { output.writeMessage(5, youtubeVideos_.get(i)); } for (int i = 0; i < html5MediaBundles_.size(); i++) { output.writeMessage(6, html5MediaBundles_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (mandatoryAdText_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMandatoryAdText()); } for (int i = 0; i < headlines_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, headlines_.get(i)); } for (int i = 0; i < descriptions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, descriptions_.get(i)); } for (int i = 0; i < images_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, images_.get(i)); } for (int i = 0; i < youtubeVideos_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, youtubeVideos_.get(i)); } for (int i = 0; i < html5MediaBundles_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, html5MediaBundles_.get(i)); } 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.AppAdInfo)) { return super.equals(obj); } com.google.ads.googleads.v10.common.AppAdInfo other = (com.google.ads.googleads.v10.common.AppAdInfo) obj; if (hasMandatoryAdText() != other.hasMandatoryAdText()) return false; if (hasMandatoryAdText()) { if (!getMandatoryAdText() .equals(other.getMandatoryAdText())) return false; } if (!getHeadlinesList() .equals(other.getHeadlinesList())) return false; if (!getDescriptionsList() .equals(other.getDescriptionsList())) return false; if (!getImagesList() .equals(other.getImagesList())) return false; if (!getYoutubeVideosList() .equals(other.getYoutubeVideosList())) return false; if (!getHtml5MediaBundlesList() .equals(other.getHtml5MediaBundlesList())) 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 (hasMandatoryAdText()) { hash = (37 * hash) + MANDATORY_AD_TEXT_FIELD_NUMBER; hash = (53 * hash) + getMandatoryAdText().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 (getImagesCount() > 0) { hash = (37 * hash) + IMAGES_FIELD_NUMBER; hash = (53 * hash) + getImagesList().hashCode(); } if (getYoutubeVideosCount() > 0) { hash = (37 * hash) + YOUTUBE_VIDEOS_FIELD_NUMBER; hash = (53 * hash) + getYoutubeVideosList().hashCode(); } if (getHtml5MediaBundlesCount() > 0) { hash = (37 * hash) + HTML5_MEDIA_BUNDLES_FIELD_NUMBER; hash = (53 * hash) + getHtml5MediaBundlesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.common.AppAdInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.common.AppAdInfo 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.AppAdInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.common.AppAdInfo 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.AppAdInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.common.AppAdInfo 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.AppAdInfo 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.AppAdInfo 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.AppAdInfo 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.AppAdInfo 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.AppAdInfo 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.AppAdInfo 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.AppAdInfo 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; } /** *
   * An app ad.
   * 
* * Protobuf type {@code google.ads.googleads.v10.common.AppAdInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.common.AppAdInfo) com.google.ads.googleads.v10.common.AppAdInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_AppAdInfo_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_AppAdInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.common.AppAdInfo.class, com.google.ads.googleads.v10.common.AppAdInfo.Builder.class); } // Construct using com.google.ads.googleads.v10.common.AppAdInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (mandatoryAdTextBuilder_ == null) { mandatoryAdText_ = null; } else { mandatoryAdText_ = null; mandatoryAdTextBuilder_ = null; } if (headlinesBuilder_ == null) { headlines_ = java.util.Collections.emptyList(); } else { headlines_ = null; headlinesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (descriptionsBuilder_ == null) { descriptions_ = java.util.Collections.emptyList(); } else { descriptions_ = null; descriptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (imagesBuilder_ == null) { images_ = java.util.Collections.emptyList(); } else { images_ = null; imagesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (youtubeVideosBuilder_ == null) { youtubeVideos_ = java.util.Collections.emptyList(); } else { youtubeVideos_ = null; youtubeVideosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (html5MediaBundlesBuilder_ == null) { html5MediaBundles_ = java.util.Collections.emptyList(); } else { html5MediaBundles_ = null; html5MediaBundlesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); 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_AppAdInfo_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.common.AppAdInfo getDefaultInstanceForType() { return com.google.ads.googleads.v10.common.AppAdInfo.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.common.AppAdInfo build() { com.google.ads.googleads.v10.common.AppAdInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.common.AppAdInfo buildPartial() { com.google.ads.googleads.v10.common.AppAdInfo result = new com.google.ads.googleads.v10.common.AppAdInfo(this); int from_bitField0_ = bitField0_; if (mandatoryAdTextBuilder_ == null) { result.mandatoryAdText_ = mandatoryAdText_; } else { result.mandatoryAdText_ = mandatoryAdTextBuilder_.build(); } if (headlinesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { headlines_ = java.util.Collections.unmodifiableList(headlines_); bitField0_ = (bitField0_ & ~0x00000001); } result.headlines_ = headlines_; } else { result.headlines_ = headlinesBuilder_.build(); } if (descriptionsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { descriptions_ = java.util.Collections.unmodifiableList(descriptions_); bitField0_ = (bitField0_ & ~0x00000002); } result.descriptions_ = descriptions_; } else { result.descriptions_ = descriptionsBuilder_.build(); } if (imagesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { images_ = java.util.Collections.unmodifiableList(images_); bitField0_ = (bitField0_ & ~0x00000004); } result.images_ = images_; } else { result.images_ = imagesBuilder_.build(); } if (youtubeVideosBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { youtubeVideos_ = java.util.Collections.unmodifiableList(youtubeVideos_); bitField0_ = (bitField0_ & ~0x00000008); } result.youtubeVideos_ = youtubeVideos_; } else { result.youtubeVideos_ = youtubeVideosBuilder_.build(); } if (html5MediaBundlesBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { html5MediaBundles_ = java.util.Collections.unmodifiableList(html5MediaBundles_); bitField0_ = (bitField0_ & ~0x00000010); } result.html5MediaBundles_ = html5MediaBundles_; } else { result.html5MediaBundles_ = html5MediaBundlesBuilder_.build(); } 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.AppAdInfo) { return mergeFrom((com.google.ads.googleads.v10.common.AppAdInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.common.AppAdInfo other) { if (other == com.google.ads.googleads.v10.common.AppAdInfo.getDefaultInstance()) return this; if (other.hasMandatoryAdText()) { mergeMandatoryAdText(other.getMandatoryAdText()); } if (headlinesBuilder_ == null) { if (!other.headlines_.isEmpty()) { if (headlines_.isEmpty()) { headlines_ = other.headlines_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureHeadlinesIsMutable(); headlines_.addAll(other.headlines_); } onChanged(); } } else { if (!other.headlines_.isEmpty()) { if (headlinesBuilder_.isEmpty()) { headlinesBuilder_.dispose(); headlinesBuilder_ = null; headlines_ = other.headlines_; bitField0_ = (bitField0_ & ~0x00000001); 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_ & ~0x00000002); } else { ensureDescriptionsIsMutable(); descriptions_.addAll(other.descriptions_); } onChanged(); } } else { if (!other.descriptions_.isEmpty()) { if (descriptionsBuilder_.isEmpty()) { descriptionsBuilder_.dispose(); descriptionsBuilder_ = null; descriptions_ = other.descriptions_; bitField0_ = (bitField0_ & ~0x00000002); descriptionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDescriptionsFieldBuilder() : null; } else { descriptionsBuilder_.addAllMessages(other.descriptions_); } } } if (imagesBuilder_ == null) { if (!other.images_.isEmpty()) { if (images_.isEmpty()) { images_ = other.images_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureImagesIsMutable(); images_.addAll(other.images_); } onChanged(); } } else { if (!other.images_.isEmpty()) { if (imagesBuilder_.isEmpty()) { imagesBuilder_.dispose(); imagesBuilder_ = null; images_ = other.images_; bitField0_ = (bitField0_ & ~0x00000004); imagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getImagesFieldBuilder() : null; } else { imagesBuilder_.addAllMessages(other.images_); } } } if (youtubeVideosBuilder_ == null) { if (!other.youtubeVideos_.isEmpty()) { if (youtubeVideos_.isEmpty()) { youtubeVideos_ = other.youtubeVideos_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureYoutubeVideosIsMutable(); youtubeVideos_.addAll(other.youtubeVideos_); } onChanged(); } } else { if (!other.youtubeVideos_.isEmpty()) { if (youtubeVideosBuilder_.isEmpty()) { youtubeVideosBuilder_.dispose(); youtubeVideosBuilder_ = null; youtubeVideos_ = other.youtubeVideos_; bitField0_ = (bitField0_ & ~0x00000008); youtubeVideosBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getYoutubeVideosFieldBuilder() : null; } else { youtubeVideosBuilder_.addAllMessages(other.youtubeVideos_); } } } if (html5MediaBundlesBuilder_ == null) { if (!other.html5MediaBundles_.isEmpty()) { if (html5MediaBundles_.isEmpty()) { html5MediaBundles_ = other.html5MediaBundles_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureHtml5MediaBundlesIsMutable(); html5MediaBundles_.addAll(other.html5MediaBundles_); } onChanged(); } } else { if (!other.html5MediaBundles_.isEmpty()) { if (html5MediaBundlesBuilder_.isEmpty()) { html5MediaBundlesBuilder_.dispose(); html5MediaBundlesBuilder_ = null; html5MediaBundles_ = other.html5MediaBundles_; bitField0_ = (bitField0_ & ~0x00000010); html5MediaBundlesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHtml5MediaBundlesFieldBuilder() : null; } else { html5MediaBundlesBuilder_.addAllMessages(other.html5MediaBundles_); } } } 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: { input.readMessage( getMandatoryAdTextFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { 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 18 case 26: { 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 26 case 34: { com.google.ads.googleads.v10.common.AdImageAsset m = input.readMessage( com.google.ads.googleads.v10.common.AdImageAsset.parser(), extensionRegistry); if (imagesBuilder_ == null) { ensureImagesIsMutable(); images_.add(m); } else { imagesBuilder_.addMessage(m); } break; } // case 34 case 42: { com.google.ads.googleads.v10.common.AdVideoAsset m = input.readMessage( com.google.ads.googleads.v10.common.AdVideoAsset.parser(), extensionRegistry); if (youtubeVideosBuilder_ == null) { ensureYoutubeVideosIsMutable(); youtubeVideos_.add(m); } else { youtubeVideosBuilder_.addMessage(m); } break; } // case 42 case 50: { com.google.ads.googleads.v10.common.AdMediaBundleAsset m = input.readMessage( com.google.ads.googleads.v10.common.AdMediaBundleAsset.parser(), extensionRegistry); if (html5MediaBundlesBuilder_ == null) { ensureHtml5MediaBundlesIsMutable(); html5MediaBundles_.add(m); } else { html5MediaBundlesBuilder_.addMessage(m); } break; } // case 50 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 com.google.ads.googleads.v10.common.AdTextAsset mandatoryAdText_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.common.AdTextAssetOrBuilder> mandatoryAdTextBuilder_; /** *
     * Mandatory ad text.
     * 
* * .google.ads.googleads.v10.common.AdTextAsset mandatory_ad_text = 1; * @return Whether the mandatoryAdText field is set. */ public boolean hasMandatoryAdText() { return mandatoryAdTextBuilder_ != null || mandatoryAdText_ != null; } /** *
     * Mandatory ad text.
     * 
* * .google.ads.googleads.v10.common.AdTextAsset mandatory_ad_text = 1; * @return The mandatoryAdText. */ public com.google.ads.googleads.v10.common.AdTextAsset getMandatoryAdText() { if (mandatoryAdTextBuilder_ == null) { return mandatoryAdText_ == null ? com.google.ads.googleads.v10.common.AdTextAsset.getDefaultInstance() : mandatoryAdText_; } else { return mandatoryAdTextBuilder_.getMessage(); } } /** *
     * Mandatory ad text.
     * 
* * .google.ads.googleads.v10.common.AdTextAsset mandatory_ad_text = 1; */ public Builder setMandatoryAdText(com.google.ads.googleads.v10.common.AdTextAsset value) { if (mandatoryAdTextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mandatoryAdText_ = value; onChanged(); } else { mandatoryAdTextBuilder_.setMessage(value); } return this; } /** *
     * Mandatory ad text.
     * 
* * .google.ads.googleads.v10.common.AdTextAsset mandatory_ad_text = 1; */ public Builder setMandatoryAdText( com.google.ads.googleads.v10.common.AdTextAsset.Builder builderForValue) { if (mandatoryAdTextBuilder_ == null) { mandatoryAdText_ = builderForValue.build(); onChanged(); } else { mandatoryAdTextBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Mandatory ad text.
     * 
* * .google.ads.googleads.v10.common.AdTextAsset mandatory_ad_text = 1; */ public Builder mergeMandatoryAdText(com.google.ads.googleads.v10.common.AdTextAsset value) { if (mandatoryAdTextBuilder_ == null) { if (mandatoryAdText_ != null) { mandatoryAdText_ = com.google.ads.googleads.v10.common.AdTextAsset.newBuilder(mandatoryAdText_).mergeFrom(value).buildPartial(); } else { mandatoryAdText_ = value; } onChanged(); } else { mandatoryAdTextBuilder_.mergeFrom(value); } return this; } /** *
     * Mandatory ad text.
     * 
* * .google.ads.googleads.v10.common.AdTextAsset mandatory_ad_text = 1; */ public Builder clearMandatoryAdText() { if (mandatoryAdTextBuilder_ == null) { mandatoryAdText_ = null; onChanged(); } else { mandatoryAdText_ = null; mandatoryAdTextBuilder_ = null; } return this; } /** *
     * Mandatory ad text.
     * 
* * .google.ads.googleads.v10.common.AdTextAsset mandatory_ad_text = 1; */ public com.google.ads.googleads.v10.common.AdTextAsset.Builder getMandatoryAdTextBuilder() { onChanged(); return getMandatoryAdTextFieldBuilder().getBuilder(); } /** *
     * Mandatory ad text.
     * 
* * .google.ads.googleads.v10.common.AdTextAsset mandatory_ad_text = 1; */ public com.google.ads.googleads.v10.common.AdTextAssetOrBuilder getMandatoryAdTextOrBuilder() { if (mandatoryAdTextBuilder_ != null) { return mandatoryAdTextBuilder_.getMessageOrBuilder(); } else { return mandatoryAdText_ == null ? com.google.ads.googleads.v10.common.AdTextAsset.getDefaultInstance() : mandatoryAdText_; } } /** *
     * Mandatory ad text.
     * 
* * .google.ads.googleads.v10.common.AdTextAsset mandatory_ad_text = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.common.AdTextAssetOrBuilder> getMandatoryAdTextFieldBuilder() { if (mandatoryAdTextBuilder_ == null) { mandatoryAdTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.common.AdTextAsset, com.google.ads.googleads.v10.common.AdTextAsset.Builder, com.google.ads.googleads.v10.common.AdTextAssetOrBuilder>( getMandatoryAdText(), getParentForChildren(), isClean()); mandatoryAdText_ = null; } return mandatoryAdTextBuilder_; } private java.util.List headlines_ = java.util.Collections.emptyList(); private void ensureHeadlinesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { headlines_ = new java.util.ArrayList(headlines_); bitField0_ |= 0x00000001; } } 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_; /** *
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ public java.util.List getHeadlinesList() { if (headlinesBuilder_ == null) { return java.util.Collections.unmodifiableList(headlines_); } else { return headlinesBuilder_.getMessageList(); } } /** *
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ public int getHeadlinesCount() { if (headlinesBuilder_ == null) { return headlines_.size(); } else { return headlinesBuilder_.getCount(); } } /** *
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ public com.google.ads.googleads.v10.common.AdTextAsset getHeadlines(int index) { if (headlinesBuilder_ == null) { return headlines_.get(index); } else { return headlinesBuilder_.getMessage(index); } } /** *
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ 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; } /** *
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ 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; } /** *
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ 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; } /** *
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ 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; } /** *
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ 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; } /** *
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ 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; } /** *
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ 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; } /** *
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ public Builder clearHeadlines() { if (headlinesBuilder_ == null) { headlines_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { headlinesBuilder_.clear(); } return this; } /** *
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ public Builder removeHeadlines(int index) { if (headlinesBuilder_ == null) { ensureHeadlinesIsMutable(); headlines_.remove(index); onChanged(); } else { headlinesBuilder_.remove(index); } return this; } /** *
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ public com.google.ads.googleads.v10.common.AdTextAsset.Builder getHeadlinesBuilder( int index) { return getHeadlinesFieldBuilder().getBuilder(index); } /** *
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ public com.google.ads.googleads.v10.common.AdTextAssetOrBuilder getHeadlinesOrBuilder( int index) { if (headlinesBuilder_ == null) { return headlines_.get(index); } else { return headlinesBuilder_.getMessageOrBuilder(index); } } /** *
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ public java.util.List getHeadlinesOrBuilderList() { if (headlinesBuilder_ != null) { return headlinesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(headlines_); } } /** *
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ public com.google.ads.googleads.v10.common.AdTextAsset.Builder addHeadlinesBuilder() { return getHeadlinesFieldBuilder().addBuilder( com.google.ads.googleads.v10.common.AdTextAsset.getDefaultInstance()); } /** *
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ public com.google.ads.googleads.v10.common.AdTextAsset.Builder addHeadlinesBuilder( int index) { return getHeadlinesFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.common.AdTextAsset.getDefaultInstance()); } /** *
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 2; */ 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_ & 0x00000001) != 0), getParentForChildren(), isClean()); headlines_ = null; } return headlinesBuilder_; } private java.util.List descriptions_ = java.util.Collections.emptyList(); private void ensureDescriptionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { descriptions_ = new java.util.ArrayList(descriptions_); bitField0_ |= 0x00000002; } } 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_; /** *
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ public java.util.List getDescriptionsList() { if (descriptionsBuilder_ == null) { return java.util.Collections.unmodifiableList(descriptions_); } else { return descriptionsBuilder_.getMessageList(); } } /** *
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ public int getDescriptionsCount() { if (descriptionsBuilder_ == null) { return descriptions_.size(); } else { return descriptionsBuilder_.getCount(); } } /** *
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ public com.google.ads.googleads.v10.common.AdTextAsset getDescriptions(int index) { if (descriptionsBuilder_ == null) { return descriptions_.get(index); } else { return descriptionsBuilder_.getMessage(index); } } /** *
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ 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; } /** *
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ 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; } /** *
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ 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; } /** *
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ 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; } /** *
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ 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; } /** *
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ 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; } /** *
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ 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; } /** *
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ public Builder clearDescriptions() { if (descriptionsBuilder_ == null) { descriptions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { descriptionsBuilder_.clear(); } return this; } /** *
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ public Builder removeDescriptions(int index) { if (descriptionsBuilder_ == null) { ensureDescriptionsIsMutable(); descriptions_.remove(index); onChanged(); } else { descriptionsBuilder_.remove(index); } return this; } /** *
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ public com.google.ads.googleads.v10.common.AdTextAsset.Builder getDescriptionsBuilder( int index) { return getDescriptionsFieldBuilder().getBuilder(index); } /** *
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ public com.google.ads.googleads.v10.common.AdTextAssetOrBuilder getDescriptionsOrBuilder( int index) { if (descriptionsBuilder_ == null) { return descriptions_.get(index); } else { return descriptionsBuilder_.getMessageOrBuilder(index); } } /** *
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ public java.util.List getDescriptionsOrBuilderList() { if (descriptionsBuilder_ != null) { return descriptionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(descriptions_); } } /** *
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ public com.google.ads.googleads.v10.common.AdTextAsset.Builder addDescriptionsBuilder() { return getDescriptionsFieldBuilder().addBuilder( com.google.ads.googleads.v10.common.AdTextAsset.getDefaultInstance()); } /** *
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ public com.google.ads.googleads.v10.common.AdTextAsset.Builder addDescriptionsBuilder( int index) { return getDescriptionsFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.common.AdTextAsset.getDefaultInstance()); } /** *
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * 
* * repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 3; */ 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_ & 0x00000002) != 0), getParentForChildren(), isClean()); descriptions_ = null; } return descriptionsBuilder_; } private java.util.List images_ = java.util.Collections.emptyList(); private void ensureImagesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { images_ = new java.util.ArrayList(images_); 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> imagesBuilder_; /** *
     * List of image assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ public java.util.List getImagesList() { if (imagesBuilder_ == null) { return java.util.Collections.unmodifiableList(images_); } else { return imagesBuilder_.getMessageList(); } } /** *
     * List of image assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ public int getImagesCount() { if (imagesBuilder_ == null) { return images_.size(); } else { return imagesBuilder_.getCount(); } } /** *
     * List of image assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ public com.google.ads.googleads.v10.common.AdImageAsset getImages(int index) { if (imagesBuilder_ == null) { return images_.get(index); } else { return imagesBuilder_.getMessage(index); } } /** *
     * List of image assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ public Builder setImages( int index, com.google.ads.googleads.v10.common.AdImageAsset value) { if (imagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureImagesIsMutable(); images_.set(index, value); onChanged(); } else { imagesBuilder_.setMessage(index, value); } return this; } /** *
     * List of image assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ public Builder setImages( int index, com.google.ads.googleads.v10.common.AdImageAsset.Builder builderForValue) { if (imagesBuilder_ == null) { ensureImagesIsMutable(); images_.set(index, builderForValue.build()); onChanged(); } else { imagesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * List of image assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ public Builder addImages(com.google.ads.googleads.v10.common.AdImageAsset value) { if (imagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureImagesIsMutable(); images_.add(value); onChanged(); } else { imagesBuilder_.addMessage(value); } return this; } /** *
     * List of image assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ public Builder addImages( int index, com.google.ads.googleads.v10.common.AdImageAsset value) { if (imagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureImagesIsMutable(); images_.add(index, value); onChanged(); } else { imagesBuilder_.addMessage(index, value); } return this; } /** *
     * List of image assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ public Builder addImages( com.google.ads.googleads.v10.common.AdImageAsset.Builder builderForValue) { if (imagesBuilder_ == null) { ensureImagesIsMutable(); images_.add(builderForValue.build()); onChanged(); } else { imagesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * List of image assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ public Builder addImages( int index, com.google.ads.googleads.v10.common.AdImageAsset.Builder builderForValue) { if (imagesBuilder_ == null) { ensureImagesIsMutable(); images_.add(index, builderForValue.build()); onChanged(); } else { imagesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * List of image assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ public Builder addAllImages( java.lang.Iterable values) { if (imagesBuilder_ == null) { ensureImagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, images_); onChanged(); } else { imagesBuilder_.addAllMessages(values); } return this; } /** *
     * List of image assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ public Builder clearImages() { if (imagesBuilder_ == null) { images_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { imagesBuilder_.clear(); } return this; } /** *
     * List of image assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ public Builder removeImages(int index) { if (imagesBuilder_ == null) { ensureImagesIsMutable(); images_.remove(index); onChanged(); } else { imagesBuilder_.remove(index); } return this; } /** *
     * List of image assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ public com.google.ads.googleads.v10.common.AdImageAsset.Builder getImagesBuilder( int index) { return getImagesFieldBuilder().getBuilder(index); } /** *
     * List of image assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ public com.google.ads.googleads.v10.common.AdImageAssetOrBuilder getImagesOrBuilder( int index) { if (imagesBuilder_ == null) { return images_.get(index); } else { return imagesBuilder_.getMessageOrBuilder(index); } } /** *
     * List of image assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ public java.util.List getImagesOrBuilderList() { if (imagesBuilder_ != null) { return imagesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(images_); } } /** *
     * List of image assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ public com.google.ads.googleads.v10.common.AdImageAsset.Builder addImagesBuilder() { return getImagesFieldBuilder().addBuilder( com.google.ads.googleads.v10.common.AdImageAsset.getDefaultInstance()); } /** *
     * List of image assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ public com.google.ads.googleads.v10.common.AdImageAsset.Builder addImagesBuilder( int index) { return getImagesFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.common.AdImageAsset.getDefaultInstance()); } /** *
     * List of image assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdImageAsset images = 4; */ public java.util.List getImagesBuilderList() { return getImagesFieldBuilder().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> getImagesFieldBuilder() { if (imagesBuilder_ == null) { imagesBuilder_ = 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>( images_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); images_ = null; } return imagesBuilder_; } private java.util.List youtubeVideos_ = java.util.Collections.emptyList(); private void ensureYoutubeVideosIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { youtubeVideos_ = new java.util.ArrayList(youtubeVideos_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdVideoAsset, com.google.ads.googleads.v10.common.AdVideoAsset.Builder, com.google.ads.googleads.v10.common.AdVideoAssetOrBuilder> youtubeVideosBuilder_; /** *
     * List of YouTube video assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ public java.util.List getYoutubeVideosList() { if (youtubeVideosBuilder_ == null) { return java.util.Collections.unmodifiableList(youtubeVideos_); } else { return youtubeVideosBuilder_.getMessageList(); } } /** *
     * List of YouTube video assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ public int getYoutubeVideosCount() { if (youtubeVideosBuilder_ == null) { return youtubeVideos_.size(); } else { return youtubeVideosBuilder_.getCount(); } } /** *
     * List of YouTube video assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ public com.google.ads.googleads.v10.common.AdVideoAsset getYoutubeVideos(int index) { if (youtubeVideosBuilder_ == null) { return youtubeVideos_.get(index); } else { return youtubeVideosBuilder_.getMessage(index); } } /** *
     * List of YouTube video assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ public Builder setYoutubeVideos( int index, com.google.ads.googleads.v10.common.AdVideoAsset value) { if (youtubeVideosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureYoutubeVideosIsMutable(); youtubeVideos_.set(index, value); onChanged(); } else { youtubeVideosBuilder_.setMessage(index, value); } return this; } /** *
     * List of YouTube video assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ public Builder setYoutubeVideos( int index, com.google.ads.googleads.v10.common.AdVideoAsset.Builder builderForValue) { if (youtubeVideosBuilder_ == null) { ensureYoutubeVideosIsMutable(); youtubeVideos_.set(index, builderForValue.build()); onChanged(); } else { youtubeVideosBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * List of YouTube video assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ public Builder addYoutubeVideos(com.google.ads.googleads.v10.common.AdVideoAsset value) { if (youtubeVideosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureYoutubeVideosIsMutable(); youtubeVideos_.add(value); onChanged(); } else { youtubeVideosBuilder_.addMessage(value); } return this; } /** *
     * List of YouTube video assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ public Builder addYoutubeVideos( int index, com.google.ads.googleads.v10.common.AdVideoAsset value) { if (youtubeVideosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureYoutubeVideosIsMutable(); youtubeVideos_.add(index, value); onChanged(); } else { youtubeVideosBuilder_.addMessage(index, value); } return this; } /** *
     * List of YouTube video assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ public Builder addYoutubeVideos( com.google.ads.googleads.v10.common.AdVideoAsset.Builder builderForValue) { if (youtubeVideosBuilder_ == null) { ensureYoutubeVideosIsMutable(); youtubeVideos_.add(builderForValue.build()); onChanged(); } else { youtubeVideosBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * List of YouTube video assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ public Builder addYoutubeVideos( int index, com.google.ads.googleads.v10.common.AdVideoAsset.Builder builderForValue) { if (youtubeVideosBuilder_ == null) { ensureYoutubeVideosIsMutable(); youtubeVideos_.add(index, builderForValue.build()); onChanged(); } else { youtubeVideosBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * List of YouTube video assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ public Builder addAllYoutubeVideos( java.lang.Iterable values) { if (youtubeVideosBuilder_ == null) { ensureYoutubeVideosIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, youtubeVideos_); onChanged(); } else { youtubeVideosBuilder_.addAllMessages(values); } return this; } /** *
     * List of YouTube video assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ public Builder clearYoutubeVideos() { if (youtubeVideosBuilder_ == null) { youtubeVideos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { youtubeVideosBuilder_.clear(); } return this; } /** *
     * List of YouTube video assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ public Builder removeYoutubeVideos(int index) { if (youtubeVideosBuilder_ == null) { ensureYoutubeVideosIsMutable(); youtubeVideos_.remove(index); onChanged(); } else { youtubeVideosBuilder_.remove(index); } return this; } /** *
     * List of YouTube video assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ public com.google.ads.googleads.v10.common.AdVideoAsset.Builder getYoutubeVideosBuilder( int index) { return getYoutubeVideosFieldBuilder().getBuilder(index); } /** *
     * List of YouTube video assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ public com.google.ads.googleads.v10.common.AdVideoAssetOrBuilder getYoutubeVideosOrBuilder( int index) { if (youtubeVideosBuilder_ == null) { return youtubeVideos_.get(index); } else { return youtubeVideosBuilder_.getMessageOrBuilder(index); } } /** *
     * List of YouTube video assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ public java.util.List getYoutubeVideosOrBuilderList() { if (youtubeVideosBuilder_ != null) { return youtubeVideosBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(youtubeVideos_); } } /** *
     * List of YouTube video assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ public com.google.ads.googleads.v10.common.AdVideoAsset.Builder addYoutubeVideosBuilder() { return getYoutubeVideosFieldBuilder().addBuilder( com.google.ads.googleads.v10.common.AdVideoAsset.getDefaultInstance()); } /** *
     * List of YouTube video assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ public com.google.ads.googleads.v10.common.AdVideoAsset.Builder addYoutubeVideosBuilder( int index) { return getYoutubeVideosFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.common.AdVideoAsset.getDefaultInstance()); } /** *
     * List of YouTube video assets that may be displayed with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 5; */ public java.util.List getYoutubeVideosBuilderList() { return getYoutubeVideosFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdVideoAsset, com.google.ads.googleads.v10.common.AdVideoAsset.Builder, com.google.ads.googleads.v10.common.AdVideoAssetOrBuilder> getYoutubeVideosFieldBuilder() { if (youtubeVideosBuilder_ == null) { youtubeVideosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdVideoAsset, com.google.ads.googleads.v10.common.AdVideoAsset.Builder, com.google.ads.googleads.v10.common.AdVideoAssetOrBuilder>( youtubeVideos_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); youtubeVideos_ = null; } return youtubeVideosBuilder_; } private java.util.List html5MediaBundles_ = java.util.Collections.emptyList(); private void ensureHtml5MediaBundlesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { html5MediaBundles_ = new java.util.ArrayList(html5MediaBundles_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdMediaBundleAsset, com.google.ads.googleads.v10.common.AdMediaBundleAsset.Builder, com.google.ads.googleads.v10.common.AdMediaBundleAssetOrBuilder> html5MediaBundlesBuilder_; /** *
     * List of media bundle assets that may be used with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ public java.util.List getHtml5MediaBundlesList() { if (html5MediaBundlesBuilder_ == null) { return java.util.Collections.unmodifiableList(html5MediaBundles_); } else { return html5MediaBundlesBuilder_.getMessageList(); } } /** *
     * List of media bundle assets that may be used with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ public int getHtml5MediaBundlesCount() { if (html5MediaBundlesBuilder_ == null) { return html5MediaBundles_.size(); } else { return html5MediaBundlesBuilder_.getCount(); } } /** *
     * List of media bundle assets that may be used with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ public com.google.ads.googleads.v10.common.AdMediaBundleAsset getHtml5MediaBundles(int index) { if (html5MediaBundlesBuilder_ == null) { return html5MediaBundles_.get(index); } else { return html5MediaBundlesBuilder_.getMessage(index); } } /** *
     * List of media bundle assets that may be used with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ public Builder setHtml5MediaBundles( int index, com.google.ads.googleads.v10.common.AdMediaBundleAsset value) { if (html5MediaBundlesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHtml5MediaBundlesIsMutable(); html5MediaBundles_.set(index, value); onChanged(); } else { html5MediaBundlesBuilder_.setMessage(index, value); } return this; } /** *
     * List of media bundle assets that may be used with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ public Builder setHtml5MediaBundles( int index, com.google.ads.googleads.v10.common.AdMediaBundleAsset.Builder builderForValue) { if (html5MediaBundlesBuilder_ == null) { ensureHtml5MediaBundlesIsMutable(); html5MediaBundles_.set(index, builderForValue.build()); onChanged(); } else { html5MediaBundlesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * List of media bundle assets that may be used with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ public Builder addHtml5MediaBundles(com.google.ads.googleads.v10.common.AdMediaBundleAsset value) { if (html5MediaBundlesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHtml5MediaBundlesIsMutable(); html5MediaBundles_.add(value); onChanged(); } else { html5MediaBundlesBuilder_.addMessage(value); } return this; } /** *
     * List of media bundle assets that may be used with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ public Builder addHtml5MediaBundles( int index, com.google.ads.googleads.v10.common.AdMediaBundleAsset value) { if (html5MediaBundlesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHtml5MediaBundlesIsMutable(); html5MediaBundles_.add(index, value); onChanged(); } else { html5MediaBundlesBuilder_.addMessage(index, value); } return this; } /** *
     * List of media bundle assets that may be used with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ public Builder addHtml5MediaBundles( com.google.ads.googleads.v10.common.AdMediaBundleAsset.Builder builderForValue) { if (html5MediaBundlesBuilder_ == null) { ensureHtml5MediaBundlesIsMutable(); html5MediaBundles_.add(builderForValue.build()); onChanged(); } else { html5MediaBundlesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * List of media bundle assets that may be used with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ public Builder addHtml5MediaBundles( int index, com.google.ads.googleads.v10.common.AdMediaBundleAsset.Builder builderForValue) { if (html5MediaBundlesBuilder_ == null) { ensureHtml5MediaBundlesIsMutable(); html5MediaBundles_.add(index, builderForValue.build()); onChanged(); } else { html5MediaBundlesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * List of media bundle assets that may be used with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ public Builder addAllHtml5MediaBundles( java.lang.Iterable values) { if (html5MediaBundlesBuilder_ == null) { ensureHtml5MediaBundlesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, html5MediaBundles_); onChanged(); } else { html5MediaBundlesBuilder_.addAllMessages(values); } return this; } /** *
     * List of media bundle assets that may be used with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ public Builder clearHtml5MediaBundles() { if (html5MediaBundlesBuilder_ == null) { html5MediaBundles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { html5MediaBundlesBuilder_.clear(); } return this; } /** *
     * List of media bundle assets that may be used with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ public Builder removeHtml5MediaBundles(int index) { if (html5MediaBundlesBuilder_ == null) { ensureHtml5MediaBundlesIsMutable(); html5MediaBundles_.remove(index); onChanged(); } else { html5MediaBundlesBuilder_.remove(index); } return this; } /** *
     * List of media bundle assets that may be used with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ public com.google.ads.googleads.v10.common.AdMediaBundleAsset.Builder getHtml5MediaBundlesBuilder( int index) { return getHtml5MediaBundlesFieldBuilder().getBuilder(index); } /** *
     * List of media bundle assets that may be used with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ public com.google.ads.googleads.v10.common.AdMediaBundleAssetOrBuilder getHtml5MediaBundlesOrBuilder( int index) { if (html5MediaBundlesBuilder_ == null) { return html5MediaBundles_.get(index); } else { return html5MediaBundlesBuilder_.getMessageOrBuilder(index); } } /** *
     * List of media bundle assets that may be used with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ public java.util.List getHtml5MediaBundlesOrBuilderList() { if (html5MediaBundlesBuilder_ != null) { return html5MediaBundlesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(html5MediaBundles_); } } /** *
     * List of media bundle assets that may be used with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ public com.google.ads.googleads.v10.common.AdMediaBundleAsset.Builder addHtml5MediaBundlesBuilder() { return getHtml5MediaBundlesFieldBuilder().addBuilder( com.google.ads.googleads.v10.common.AdMediaBundleAsset.getDefaultInstance()); } /** *
     * List of media bundle assets that may be used with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ public com.google.ads.googleads.v10.common.AdMediaBundleAsset.Builder addHtml5MediaBundlesBuilder( int index) { return getHtml5MediaBundlesFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.common.AdMediaBundleAsset.getDefaultInstance()); } /** *
     * List of media bundle assets that may be used with the ad.
     * 
* * repeated .google.ads.googleads.v10.common.AdMediaBundleAsset html5_media_bundles = 6; */ public java.util.List getHtml5MediaBundlesBuilderList() { return getHtml5MediaBundlesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdMediaBundleAsset, com.google.ads.googleads.v10.common.AdMediaBundleAsset.Builder, com.google.ads.googleads.v10.common.AdMediaBundleAssetOrBuilder> getHtml5MediaBundlesFieldBuilder() { if (html5MediaBundlesBuilder_ == null) { html5MediaBundlesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.common.AdMediaBundleAsset, com.google.ads.googleads.v10.common.AdMediaBundleAsset.Builder, com.google.ads.googleads.v10.common.AdMediaBundleAssetOrBuilder>( html5MediaBundles_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); html5MediaBundles_ = null; } return html5MediaBundlesBuilder_; } @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.AppAdInfo) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.common.AppAdInfo) private static final com.google.ads.googleads.v10.common.AppAdInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.common.AppAdInfo(); } public static com.google.ads.googleads.v10.common.AppAdInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AppAdInfo 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.AppAdInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy