// 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;

/**
 * <pre>
 * App pre-registration ads link to your app or game listing on Google Play, and
 * can run on Google Play, on YouTube (in-stream only), and within other apps
 * and mobile websites on the Display Network. It will help capture people's
 * interest in your app or game and generate an early install base for your app
 * or game before a launch.
 * </pre>
 *
 * Protobuf type {@code google.ads.googleads.v10.common.AppPreRegistrationAdInfo}
 */
public final class AppPreRegistrationAdInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.common.AppPreRegistrationAdInfo)
    AppPreRegistrationAdInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use AppPreRegistrationAdInfo.newBuilder() to construct.
  private AppPreRegistrationAdInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private AppPreRegistrationAdInfo() {
    headlines_ = java.util.Collections.emptyList();
    descriptions_ = java.util.Collections.emptyList();
    images_ = java.util.Collections.emptyList();
    youtubeVideos_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new AppPreRegistrationAdInfo();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private AppPreRegistrationAdInfo(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              headlines_ = new java.util.ArrayList<com.google.ads.googleads.v10.common.AdTextAsset>();
              mutable_bitField0_ |= 0x00000001;
            }
            headlines_.add(
                input.readMessage(com.google.ads.googleads.v10.common.AdTextAsset.parser(), extensionRegistry));
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              descriptions_ = new java.util.ArrayList<com.google.ads.googleads.v10.common.AdTextAsset>();
              mutable_bitField0_ |= 0x00000002;
            }
            descriptions_.add(
                input.readMessage(com.google.ads.googleads.v10.common.AdTextAsset.parser(), extensionRegistry));
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
              images_ = new java.util.ArrayList<com.google.ads.googleads.v10.common.AdImageAsset>();
              mutable_bitField0_ |= 0x00000004;
            }
            images_.add(
                input.readMessage(com.google.ads.googleads.v10.common.AdImageAsset.parser(), extensionRegistry));
            break;
          }
          case 34: {
            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
              youtubeVideos_ = new java.util.ArrayList<com.google.ads.googleads.v10.common.AdVideoAsset>();
              mutable_bitField0_ |= 0x00000008;
            }
            youtubeVideos_.add(
                input.readMessage(com.google.ads.googleads.v10.common.AdVideoAsset.parser(), extensionRegistry));
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        headlines_ = java.util.Collections.unmodifiableList(headlines_);
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        descriptions_ = java.util.Collections.unmodifiableList(descriptions_);
      }
      if (((mutable_bitField0_ & 0x00000004) != 0)) {
        images_ = java.util.Collections.unmodifiableList(images_);
      }
      if (((mutable_bitField0_ & 0x00000008) != 0)) {
        youtubeVideos_ = java.util.Collections.unmodifiableList(youtubeVideos_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_AppPreRegistrationAdInfo_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_AppPreRegistrationAdInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo.class, com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo.Builder.class);
  }

  public static final int HEADLINES_FIELD_NUMBER = 1;
  private java.util.List<com.google.ads.googleads.v10.common.AdTextAsset> headlines_;
  /**
   * <pre>
   * List of text assets for headlines. When the ad serves the headlines will
   * be selected from this list.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.ads.googleads.v10.common.AdTextAsset> getHeadlinesList() {
    return headlines_;
  }
  /**
   * <pre>
   * List of text assets for headlines. When the ad serves the headlines will
   * be selected from this list.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.ads.googleads.v10.common.AdTextAssetOrBuilder> 
      getHeadlinesOrBuilderList() {
    return headlines_;
  }
  /**
   * <pre>
   * List of text assets for headlines. When the ad serves the headlines will
   * be selected from this list.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
   */
  @java.lang.Override
  public int getHeadlinesCount() {
    return headlines_.size();
  }
  /**
   * <pre>
   * List of text assets for headlines. When the ad serves the headlines will
   * be selected from this list.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
   */
  @java.lang.Override
  public com.google.ads.googleads.v10.common.AdTextAsset getHeadlines(int index) {
    return headlines_.get(index);
  }
  /**
   * <pre>
   * List of text assets for headlines. When the ad serves the headlines will
   * be selected from this list.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
   */
  @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 = 2;
  private java.util.List<com.google.ads.googleads.v10.common.AdTextAsset> descriptions_;
  /**
   * <pre>
   * List of text assets for descriptions. When the ad serves the descriptions
   * will be selected from this list.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.ads.googleads.v10.common.AdTextAsset> getDescriptionsList() {
    return descriptions_;
  }
  /**
   * <pre>
   * List of text assets for descriptions. When the ad serves the descriptions
   * will be selected from this list.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.ads.googleads.v10.common.AdTextAssetOrBuilder> 
      getDescriptionsOrBuilderList() {
    return descriptions_;
  }
  /**
   * <pre>
   * List of text assets for descriptions. When the ad serves the descriptions
   * will be selected from this list.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
   */
  @java.lang.Override
  public int getDescriptionsCount() {
    return descriptions_.size();
  }
  /**
   * <pre>
   * List of text assets for descriptions. When the ad serves the descriptions
   * will be selected from this list.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
   */
  @java.lang.Override
  public com.google.ads.googleads.v10.common.AdTextAsset getDescriptions(int index) {
    return descriptions_.get(index);
  }
  /**
   * <pre>
   * List of text assets for descriptions. When the ad serves the descriptions
   * will be selected from this list.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
   */
  @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 = 3;
  private java.util.List<com.google.ads.googleads.v10.common.AdImageAsset> images_;
  /**
   * <pre>
   * List of image asset IDs whose images may be displayed with the ad.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.ads.googleads.v10.common.AdImageAsset> getImagesList() {
    return images_;
  }
  /**
   * <pre>
   * List of image asset IDs whose images may be displayed with the ad.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.ads.googleads.v10.common.AdImageAssetOrBuilder> 
      getImagesOrBuilderList() {
    return images_;
  }
  /**
   * <pre>
   * List of image asset IDs whose images may be displayed with the ad.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
   */
  @java.lang.Override
  public int getImagesCount() {
    return images_.size();
  }
  /**
   * <pre>
   * List of image asset IDs whose images may be displayed with the ad.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
   */
  @java.lang.Override
  public com.google.ads.googleads.v10.common.AdImageAsset getImages(int index) {
    return images_.get(index);
  }
  /**
   * <pre>
   * List of image asset IDs whose images may be displayed with the ad.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
   */
  @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 = 4;
  private java.util.List<com.google.ads.googleads.v10.common.AdVideoAsset> youtubeVideos_;
  /**
   * <pre>
   * List of YouTube video asset IDs whose videos may be displayed with the ad.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.ads.googleads.v10.common.AdVideoAsset> getYoutubeVideosList() {
    return youtubeVideos_;
  }
  /**
   * <pre>
   * List of YouTube video asset IDs whose videos may be displayed with the ad.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.ads.googleads.v10.common.AdVideoAssetOrBuilder> 
      getYoutubeVideosOrBuilderList() {
    return youtubeVideos_;
  }
  /**
   * <pre>
   * List of YouTube video asset IDs whose videos may be displayed with the ad.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
   */
  @java.lang.Override
  public int getYoutubeVideosCount() {
    return youtubeVideos_.size();
  }
  /**
   * <pre>
   * List of YouTube video asset IDs whose videos may be displayed with the ad.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
   */
  @java.lang.Override
  public com.google.ads.googleads.v10.common.AdVideoAsset getYoutubeVideos(int index) {
    return youtubeVideos_.get(index);
  }
  /**
   * <pre>
   * List of YouTube video asset IDs whose videos may be displayed with the ad.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
   */
  @java.lang.Override
  public com.google.ads.googleads.v10.common.AdVideoAssetOrBuilder getYoutubeVideosOrBuilder(
      int index) {
    return youtubeVideos_.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 {
    for (int i = 0; i < headlines_.size(); i++) {
      output.writeMessage(1, headlines_.get(i));
    }
    for (int i = 0; i < descriptions_.size(); i++) {
      output.writeMessage(2, descriptions_.get(i));
    }
    for (int i = 0; i < images_.size(); i++) {
      output.writeMessage(3, images_.get(i));
    }
    for (int i = 0; i < youtubeVideos_.size(); i++) {
      output.writeMessage(4, youtubeVideos_.get(i));
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    for (int i = 0; i < headlines_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, headlines_.get(i));
    }
    for (int i = 0; i < descriptions_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, descriptions_.get(i));
    }
    for (int i = 0; i < images_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, images_.get(i));
    }
    for (int i = 0; i < youtubeVideos_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, youtubeVideos_.get(i));
    }
    size += unknownFields.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.AppPreRegistrationAdInfo)) {
      return super.equals(obj);
    }
    com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo other = (com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo) obj;

    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 (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().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();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo 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.AppPreRegistrationAdInfo parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo 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.AppPreRegistrationAdInfo parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo 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.AppPreRegistrationAdInfo 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.AppPreRegistrationAdInfo 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.AppPreRegistrationAdInfo 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.AppPreRegistrationAdInfo 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.AppPreRegistrationAdInfo 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.AppPreRegistrationAdInfo 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.AppPreRegistrationAdInfo 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;
  }
  /**
   * <pre>
   * App pre-registration ads link to your app or game listing on Google Play, and
   * can run on Google Play, on YouTube (in-stream only), and within other apps
   * and mobile websites on the Display Network. It will help capture people's
   * interest in your app or game and generate an early install base for your app
   * or game before a launch.
   * </pre>
   *
   * Protobuf type {@code google.ads.googleads.v10.common.AppPreRegistrationAdInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.common.AppPreRegistrationAdInfo)
      com.google.ads.googleads.v10.common.AppPreRegistrationAdInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.ads.googleads.v10.common.AdTypeInfosProto.internal_static_google_ads_googleads_v10_common_AppPreRegistrationAdInfo_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_AppPreRegistrationAdInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo.class, com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo.Builder.class);
    }

    // Construct using com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getHeadlinesFieldBuilder();
        getDescriptionsFieldBuilder();
        getImagesFieldBuilder();
        getYoutubeVideosFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (headlinesBuilder_ == null) {
        headlines_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        headlinesBuilder_.clear();
      }
      if (descriptionsBuilder_ == null) {
        descriptions_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
      } else {
        descriptionsBuilder_.clear();
      }
      if (imagesBuilder_ == null) {
        images_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
      } else {
        imagesBuilder_.clear();
      }
      if (youtubeVideosBuilder_ == null) {
        youtubeVideos_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
      } else {
        youtubeVideosBuilder_.clear();
      }
      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_AppPreRegistrationAdInfo_descriptor;
    }

    @java.lang.Override
    public com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo getDefaultInstanceForType() {
      return com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo build() {
      com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo buildPartial() {
      com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo result = new com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo(this);
      int from_bitField0_ = bitField0_;
      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();
      }
      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.AppPreRegistrationAdInfo) {
        return mergeFrom((com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo other) {
      if (other == com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo.getDefaultInstance()) return this;
      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_);
          }
        }
      }
      this.mergeUnknownFields(other.unknownFields);
      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 {
      com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.util.List<com.google.ads.googleads.v10.common.AdTextAsset> headlines_ =
      java.util.Collections.emptyList();
    private void ensureHeadlinesIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        headlines_ = new java.util.ArrayList<com.google.ads.googleads.v10.common.AdTextAsset>(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_;

    /**
     * <pre>
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
     */
    public java.util.List<com.google.ads.googleads.v10.common.AdTextAsset> getHeadlinesList() {
      if (headlinesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(headlines_);
      } else {
        return headlinesBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
     */
    public int getHeadlinesCount() {
      if (headlinesBuilder_ == null) {
        return headlines_.size();
      } else {
        return headlinesBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
     */
    public com.google.ads.googleads.v10.common.AdTextAsset getHeadlines(int index) {
      if (headlinesBuilder_ == null) {
        return headlines_.get(index);
      } else {
        return headlinesBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
     */
    public Builder addAllHeadlines(
        java.lang.Iterable<? extends com.google.ads.googleads.v10.common.AdTextAsset> values) {
      if (headlinesBuilder_ == null) {
        ensureHeadlinesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, headlines_);
        onChanged();
      } else {
        headlinesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
     */
    public Builder clearHeadlines() {
      if (headlinesBuilder_ == null) {
        headlines_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        headlinesBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
     */
    public Builder removeHeadlines(int index) {
      if (headlinesBuilder_ == null) {
        ensureHeadlinesIsMutable();
        headlines_.remove(index);
        onChanged();
      } else {
        headlinesBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
     */
    public com.google.ads.googleads.v10.common.AdTextAsset.Builder getHeadlinesBuilder(
        int index) {
      return getHeadlinesFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
     */
    public com.google.ads.googleads.v10.common.AdTextAssetOrBuilder getHeadlinesOrBuilder(
        int index) {
      if (headlinesBuilder_ == null) {
        return headlines_.get(index);  } else {
        return headlinesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
     */
    public java.util.List<? extends com.google.ads.googleads.v10.common.AdTextAssetOrBuilder> 
         getHeadlinesOrBuilderList() {
      if (headlinesBuilder_ != null) {
        return headlinesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(headlines_);
      }
    }
    /**
     * <pre>
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
     */
    public com.google.ads.googleads.v10.common.AdTextAsset.Builder addHeadlinesBuilder() {
      return getHeadlinesFieldBuilder().addBuilder(
          com.google.ads.googleads.v10.common.AdTextAsset.getDefaultInstance());
    }
    /**
     * <pre>
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
     */
    public com.google.ads.googleads.v10.common.AdTextAsset.Builder addHeadlinesBuilder(
        int index) {
      return getHeadlinesFieldBuilder().addBuilder(
          index, com.google.ads.googleads.v10.common.AdTextAsset.getDefaultInstance());
    }
    /**
     * <pre>
     * List of text assets for headlines. When the ad serves the headlines will
     * be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset headlines = 1;</code>
     */
    public java.util.List<com.google.ads.googleads.v10.common.AdTextAsset.Builder> 
         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<com.google.ads.googleads.v10.common.AdTextAsset> descriptions_ =
      java.util.Collections.emptyList();
    private void ensureDescriptionsIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        descriptions_ = new java.util.ArrayList<com.google.ads.googleads.v10.common.AdTextAsset>(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_;

    /**
     * <pre>
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
     */
    public java.util.List<com.google.ads.googleads.v10.common.AdTextAsset> getDescriptionsList() {
      if (descriptionsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(descriptions_);
      } else {
        return descriptionsBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
     */
    public int getDescriptionsCount() {
      if (descriptionsBuilder_ == null) {
        return descriptions_.size();
      } else {
        return descriptionsBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
     */
    public com.google.ads.googleads.v10.common.AdTextAsset getDescriptions(int index) {
      if (descriptionsBuilder_ == null) {
        return descriptions_.get(index);
      } else {
        return descriptionsBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
     */
    public Builder addAllDescriptions(
        java.lang.Iterable<? extends com.google.ads.googleads.v10.common.AdTextAsset> values) {
      if (descriptionsBuilder_ == null) {
        ensureDescriptionsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, descriptions_);
        onChanged();
      } else {
        descriptionsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
     */
    public Builder clearDescriptions() {
      if (descriptionsBuilder_ == null) {
        descriptions_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        descriptionsBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
     */
    public Builder removeDescriptions(int index) {
      if (descriptionsBuilder_ == null) {
        ensureDescriptionsIsMutable();
        descriptions_.remove(index);
        onChanged();
      } else {
        descriptionsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
     */
    public com.google.ads.googleads.v10.common.AdTextAsset.Builder getDescriptionsBuilder(
        int index) {
      return getDescriptionsFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
     */
    public com.google.ads.googleads.v10.common.AdTextAssetOrBuilder getDescriptionsOrBuilder(
        int index) {
      if (descriptionsBuilder_ == null) {
        return descriptions_.get(index);  } else {
        return descriptionsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
     */
    public java.util.List<? extends com.google.ads.googleads.v10.common.AdTextAssetOrBuilder> 
         getDescriptionsOrBuilderList() {
      if (descriptionsBuilder_ != null) {
        return descriptionsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(descriptions_);
      }
    }
    /**
     * <pre>
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
     */
    public com.google.ads.googleads.v10.common.AdTextAsset.Builder addDescriptionsBuilder() {
      return getDescriptionsFieldBuilder().addBuilder(
          com.google.ads.googleads.v10.common.AdTextAsset.getDefaultInstance());
    }
    /**
     * <pre>
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
     */
    public com.google.ads.googleads.v10.common.AdTextAsset.Builder addDescriptionsBuilder(
        int index) {
      return getDescriptionsFieldBuilder().addBuilder(
          index, com.google.ads.googleads.v10.common.AdTextAsset.getDefaultInstance());
    }
    /**
     * <pre>
     * List of text assets for descriptions. When the ad serves the descriptions
     * will be selected from this list.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdTextAsset descriptions = 2;</code>
     */
    public java.util.List<com.google.ads.googleads.v10.common.AdTextAsset.Builder> 
         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<com.google.ads.googleads.v10.common.AdImageAsset> images_ =
      java.util.Collections.emptyList();
    private void ensureImagesIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        images_ = new java.util.ArrayList<com.google.ads.googleads.v10.common.AdImageAsset>(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_;

    /**
     * <pre>
     * List of image asset IDs whose images may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
     */
    public java.util.List<com.google.ads.googleads.v10.common.AdImageAsset> getImagesList() {
      if (imagesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(images_);
      } else {
        return imagesBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * List of image asset IDs whose images may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
     */
    public int getImagesCount() {
      if (imagesBuilder_ == null) {
        return images_.size();
      } else {
        return imagesBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * List of image asset IDs whose images may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
     */
    public com.google.ads.googleads.v10.common.AdImageAsset getImages(int index) {
      if (imagesBuilder_ == null) {
        return images_.get(index);
      } else {
        return imagesBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * List of image asset IDs whose images may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of image asset IDs whose images may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of image asset IDs whose images may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of image asset IDs whose images may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of image asset IDs whose images may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of image asset IDs whose images may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of image asset IDs whose images may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
     */
    public Builder addAllImages(
        java.lang.Iterable<? extends com.google.ads.googleads.v10.common.AdImageAsset> values) {
      if (imagesBuilder_ == null) {
        ensureImagesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, images_);
        onChanged();
      } else {
        imagesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * List of image asset IDs whose images may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
     */
    public Builder clearImages() {
      if (imagesBuilder_ == null) {
        images_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        imagesBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * List of image asset IDs whose images may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
     */
    public Builder removeImages(int index) {
      if (imagesBuilder_ == null) {
        ensureImagesIsMutable();
        images_.remove(index);
        onChanged();
      } else {
        imagesBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * List of image asset IDs whose images may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
     */
    public com.google.ads.googleads.v10.common.AdImageAsset.Builder getImagesBuilder(
        int index) {
      return getImagesFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * List of image asset IDs whose images may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
     */
    public com.google.ads.googleads.v10.common.AdImageAssetOrBuilder getImagesOrBuilder(
        int index) {
      if (imagesBuilder_ == null) {
        return images_.get(index);  } else {
        return imagesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * List of image asset IDs whose images may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
     */
    public java.util.List<? extends com.google.ads.googleads.v10.common.AdImageAssetOrBuilder> 
         getImagesOrBuilderList() {
      if (imagesBuilder_ != null) {
        return imagesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(images_);
      }
    }
    /**
     * <pre>
     * List of image asset IDs whose images may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
     */
    public com.google.ads.googleads.v10.common.AdImageAsset.Builder addImagesBuilder() {
      return getImagesFieldBuilder().addBuilder(
          com.google.ads.googleads.v10.common.AdImageAsset.getDefaultInstance());
    }
    /**
     * <pre>
     * List of image asset IDs whose images may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
     */
    public com.google.ads.googleads.v10.common.AdImageAsset.Builder addImagesBuilder(
        int index) {
      return getImagesFieldBuilder().addBuilder(
          index, com.google.ads.googleads.v10.common.AdImageAsset.getDefaultInstance());
    }
    /**
     * <pre>
     * List of image asset IDs whose images may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdImageAsset images = 3;</code>
     */
    public java.util.List<com.google.ads.googleads.v10.common.AdImageAsset.Builder> 
         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<com.google.ads.googleads.v10.common.AdVideoAsset> youtubeVideos_ =
      java.util.Collections.emptyList();
    private void ensureYoutubeVideosIsMutable() {
      if (!((bitField0_ & 0x00000008) != 0)) {
        youtubeVideos_ = new java.util.ArrayList<com.google.ads.googleads.v10.common.AdVideoAsset>(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_;

    /**
     * <pre>
     * List of YouTube video asset IDs whose videos may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
     */
    public java.util.List<com.google.ads.googleads.v10.common.AdVideoAsset> getYoutubeVideosList() {
      if (youtubeVideosBuilder_ == null) {
        return java.util.Collections.unmodifiableList(youtubeVideos_);
      } else {
        return youtubeVideosBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * List of YouTube video asset IDs whose videos may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
     */
    public int getYoutubeVideosCount() {
      if (youtubeVideosBuilder_ == null) {
        return youtubeVideos_.size();
      } else {
        return youtubeVideosBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * List of YouTube video asset IDs whose videos may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
     */
    public com.google.ads.googleads.v10.common.AdVideoAsset getYoutubeVideos(int index) {
      if (youtubeVideosBuilder_ == null) {
        return youtubeVideos_.get(index);
      } else {
        return youtubeVideosBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * List of YouTube video asset IDs whose videos may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of YouTube video asset IDs whose videos may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of YouTube video asset IDs whose videos may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of YouTube video asset IDs whose videos may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of YouTube video asset IDs whose videos may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of YouTube video asset IDs whose videos may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
     */
    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;
    }
    /**
     * <pre>
     * List of YouTube video asset IDs whose videos may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
     */
    public Builder addAllYoutubeVideos(
        java.lang.Iterable<? extends com.google.ads.googleads.v10.common.AdVideoAsset> values) {
      if (youtubeVideosBuilder_ == null) {
        ensureYoutubeVideosIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, youtubeVideos_);
        onChanged();
      } else {
        youtubeVideosBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * List of YouTube video asset IDs whose videos may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
     */
    public Builder clearYoutubeVideos() {
      if (youtubeVideosBuilder_ == null) {
        youtubeVideos_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
      } else {
        youtubeVideosBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * List of YouTube video asset IDs whose videos may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
     */
    public Builder removeYoutubeVideos(int index) {
      if (youtubeVideosBuilder_ == null) {
        ensureYoutubeVideosIsMutable();
        youtubeVideos_.remove(index);
        onChanged();
      } else {
        youtubeVideosBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * List of YouTube video asset IDs whose videos may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
     */
    public com.google.ads.googleads.v10.common.AdVideoAsset.Builder getYoutubeVideosBuilder(
        int index) {
      return getYoutubeVideosFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * List of YouTube video asset IDs whose videos may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
     */
    public com.google.ads.googleads.v10.common.AdVideoAssetOrBuilder getYoutubeVideosOrBuilder(
        int index) {
      if (youtubeVideosBuilder_ == null) {
        return youtubeVideos_.get(index);  } else {
        return youtubeVideosBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * List of YouTube video asset IDs whose videos may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
     */
    public java.util.List<? extends com.google.ads.googleads.v10.common.AdVideoAssetOrBuilder> 
         getYoutubeVideosOrBuilderList() {
      if (youtubeVideosBuilder_ != null) {
        return youtubeVideosBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(youtubeVideos_);
      }
    }
    /**
     * <pre>
     * List of YouTube video asset IDs whose videos may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
     */
    public com.google.ads.googleads.v10.common.AdVideoAsset.Builder addYoutubeVideosBuilder() {
      return getYoutubeVideosFieldBuilder().addBuilder(
          com.google.ads.googleads.v10.common.AdVideoAsset.getDefaultInstance());
    }
    /**
     * <pre>
     * List of YouTube video asset IDs whose videos may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
     */
    public com.google.ads.googleads.v10.common.AdVideoAsset.Builder addYoutubeVideosBuilder(
        int index) {
      return getYoutubeVideosFieldBuilder().addBuilder(
          index, com.google.ads.googleads.v10.common.AdVideoAsset.getDefaultInstance());
    }
    /**
     * <pre>
     * List of YouTube video asset IDs whose videos may be displayed with the ad.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v10.common.AdVideoAsset youtube_videos = 4;</code>
     */
    public java.util.List<com.google.ads.googleads.v10.common.AdVideoAsset.Builder> 
         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_;
    }
    @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.AppPreRegistrationAdInfo)
  }

  // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.common.AppPreRegistrationAdInfo)
  private static final com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo();
  }

  public static com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<AppPreRegistrationAdInfo>
      PARSER = new com.google.protobuf.AbstractParser<AppPreRegistrationAdInfo>() {
    @java.lang.Override
    public AppPreRegistrationAdInfo parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new AppPreRegistrationAdInfo(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser<AppPreRegistrationAdInfo> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<AppPreRegistrationAdInfo> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.ads.googleads.v10.common.AppPreRegistrationAdInfo getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

