text:
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v11/services/keyword_plan_idea_service.proto

package com.google.ads.googleads.v11.services;

/**
 *

 * Request message for [KeywordPlanIdeaService.GenerateKeywordIdeas][google.ads.googleads.v11.services.KeywordPlanIdeaService.GenerateKeywordIdeas].
 *

 *
 * Protobuf type {@code google.ads.googleads.v11.services.GenerateKeywordIdeasRequest}
 */
public final class GenerateKeywordIdeasRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:google.ads.googleads.v11.services.GenerateKeywordIdeasRequest)
    GenerateKeywordIdeasRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use GenerateKeywordIdeasRequest.newBuilder() to construct.
  private GenerateKeywordIdeasRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private GenerateKeywordIdeasRequest() {
    customerId_ = "";
    language_ = "";
    geoTargetConstants_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    pageToken_ = "";
    keywordPlanNetwork_ = 0;
    keywordAnnotation_ = java.util.Collections.emptyList();
  }

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

  @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.v11.services.KeywordPlanIdeaServiceProto.internal_static_google_ads_googleads_v11_services_GenerateKeywordIdeasRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.ads.googleads.v11.services.KeywordPlanIdeaServiceProto.internal_static_google_ads_googleads_v11_services_GenerateKeywordIdeasRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest.class, com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest.Builder.class);
  }

  private int bitField0_;
  private int seedCase_ = 0;
  private java.lang.Object seed_;
  public enum SeedCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    KEYWORD_AND_URL_SEED(2),
    KEYWORD_SEED(3),
    URL_SEED(5),
    SITE_SEED(11),
    SEED_NOT_SET(0);
    private final int value;
    private SeedCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static SeedCase valueOf(int value) {
      return forNumber(value);
    }

    public static SeedCase forNumber(int value) {
      switch (value) {
        case 2: return KEYWORD_AND_URL_SEED;
        case 3: return KEYWORD_SEED;
        case 5: return URL_SEED;
        case 11: return SITE_SEED;
        case 0: return SEED_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public SeedCase
  getSeedCase() {
    return SeedCase.forNumber(
        seedCase_);
  }

  public static final int CUSTOMER_ID_FIELD_NUMBER = 1;
  private volatile java.lang.Object customerId_;
  /**
   *

   * The ID of the customer with the recommendation.
   *

   *
   * string customer_id = 1;
   * @return The customerId.
   */
  @java.lang.Override
  public java.lang.String getCustomerId() {
    java.lang.Object ref = customerId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      customerId_ = s;
      return s;
    }
  }
  /**
   *

   * The ID of the customer with the recommendation.
   *

   *
   * string customer_id = 1;
   * @return The bytes for customerId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCustomerIdBytes() {
    java.lang.Object ref = customerId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      customerId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int LANGUAGE_FIELD_NUMBER = 14;
  private volatile java.lang.Object language_;
  /**
   *

   * The resource name of the language to target.
   * Each keyword belongs to some set of languages; a keyword is included if
   * language is one of its languages.
   * If not set, all keywords will be included.
   *

   *
   * optional string language = 14;
   * @return Whether the language field is set.
   */
  @java.lang.Override
  public boolean hasLanguage() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   *

   * The resource name of the language to target.
   * Each keyword belongs to some set of languages; a keyword is included if
   * language is one of its languages.
   * If not set, all keywords will be included.
   *

   *
   * optional string language = 14;
   * @return The language.
   */
  @java.lang.Override
  public java.lang.String getLanguage() {
    java.lang.Object ref = language_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      language_ = s;
      return s;
    }
  }
  /**
   *

   * The resource name of the language to target.
   * Each keyword belongs to some set of languages; a keyword is included if
   * language is one of its languages.
   * If not set, all keywords will be included.
   *

   *
   * optional string language = 14;
   * @return The bytes for language.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getLanguageBytes() {
    java.lang.Object ref = language_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      language_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int GEO_TARGET_CONSTANTS_FIELD_NUMBER = 15;
  private com.google.protobuf.LazyStringList geoTargetConstants_;
  /**
   *

   * The resource names of the location to target. Maximum is 10.
   * An empty list MAY be used to specify all targeting geos.
   *

   *
   * repeated string geo_target_constants = 15;
   * @return A list containing the geoTargetConstants.
   */
  public com.google.protobuf.ProtocolStringList
      getGeoTargetConstantsList() {
    return geoTargetConstants_;
  }
  /**
   *

   * The resource names of the location to target. Maximum is 10.
   * An empty list MAY be used to specify all targeting geos.
   *

   *
   * repeated string geo_target_constants = 15;
   * @return The count of geoTargetConstants.
   */
  public int getGeoTargetConstantsCount() {
    return geoTargetConstants_.size();
  }
  /**
   *

   * The resource names of the location to target. Maximum is 10.
   * An empty list MAY be used to specify all targeting geos.
   *

   *
   * repeated string geo_target_constants = 15;
   * @param index The index of the element to return.
   * @return The geoTargetConstants at the given index.
   */
  public java.lang.String getGeoTargetConstants(int index) {
    return geoTargetConstants_.get(index);
  }
  /**
   *

   * The resource names of the location to target. Maximum is 10.
   * An empty list MAY be used to specify all targeting geos.
   *

   *
   * repeated string geo_target_constants = 15;
   * @param index The index of the value to return.
   * @return The bytes of the geoTargetConstants at the given index.
   */
  public com.google.protobuf.ByteString
      getGeoTargetConstantsBytes(int index) {
    return geoTargetConstants_.getByteString(index);
  }

  public static final int INCLUDE_ADULT_KEYWORDS_FIELD_NUMBER = 10;
  private boolean includeAdultKeywords_;
  /**
   *

   * If true, adult keywords will be included in response.
   * The default value is false.
   *

   *
   * bool include_adult_keywords = 10;
   * @return The includeAdultKeywords.
   */
  @java.lang.Override
  public boolean getIncludeAdultKeywords() {
    return includeAdultKeywords_;
  }

  public static final int PAGE_TOKEN_FIELD_NUMBER = 12;
  private volatile java.lang.Object pageToken_;
  /**
   *

   * Token of the page to retrieve. If not specified, the first
   * page of results will be returned. To request next page of results use the
   * value obtained from `next_page_token` in the previous response.
   * The request fields must match across pages.
   *

   *
   * string page_token = 12;
   * @return The pageToken.
   */
  @java.lang.Override
  public java.lang.String getPageToken() {
    java.lang.Object ref = pageToken_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      pageToken_ = s;
      return s;
    }
  }
  /**
   *

   * Token of the page to retrieve. If not specified, the first
   * page of results will be returned. To request next page of results use the
   * value obtained from `next_page_token` in the previous response.
   * The request fields must match across pages.
   *

   *
   * string page_token = 12;
   * @return The bytes for pageToken.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPageTokenBytes() {
    java.lang.Object ref = pageToken_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      pageToken_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PAGE_SIZE_FIELD_NUMBER = 13;
  private int pageSize_;
  /**
   *

   * Number of results to retrieve in a single page.
   * A maximum of 10,000 results may be returned, if the page_size
   * exceeds this, it is ignored.
   * If unspecified, at most 10,000 results will be returned.
   * The server may decide to further limit the number of returned resources.
   * If the response contains fewer than 10,000 results it may not be assumed
   * as last page of results.
   *

   *
   * int32 page_size = 13;
   * @return The pageSize.
   */
  @java.lang.Override
  public int getPageSize() {
    return pageSize_;
  }

  public static final int KEYWORD_PLAN_NETWORK_FIELD_NUMBER = 9;
  private int keywordPlanNetwork_;
  /**
   *

   * Targeting network.
   * If not set, Google Search And Partners Network will be used.
   *

   *
   * .google.ads.googleads.v11.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork keyword_plan_network = 9;
   * @return The enum numeric value on the wire for keywordPlanNetwork.
   */
  @java.lang.Override public int getKeywordPlanNetworkValue() {
    return keywordPlanNetwork_;
  }
  /**
   *

   * Targeting network.
   * If not set, Google Search And Partners Network will be used.
   *

   *
   * .google.ads.googleads.v11.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork keyword_plan_network = 9;
   * @return The keywordPlanNetwork.
   */
  @java.lang.Override public com.google.ads.googleads.v11.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork getKeywordPlanNetwork() {
    @SuppressWarnings("deprecation")
    com.google.ads.googleads.v11.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork result = com.google.ads.googleads.v11.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork.valueOf(keywordPlanNetwork_);
    return result == null ? com.google.ads.googleads.v11.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork.UNRECOGNIZED : result;
  }

  public static final int KEYWORD_ANNOTATION_FIELD_NUMBER = 17;
  private java.util.List<java.lang.Integer> keywordAnnotation_;
  private static final com.google.protobuf.Internal.ListAdapter.Converter<
      java.lang.Integer, com.google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation> keywordAnnotation_converter_ =
          new com.google.protobuf.Internal.ListAdapter.Converter<
              java.lang.Integer, com.google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation>() {
            public com.google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation convert(java.lang.Integer from) {
              @SuppressWarnings("deprecation")
              com.google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation result = com.google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation.valueOf(from);
              return result == null ? com.google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation.UNRECOGNIZED : result;
            }
          };
  /**
   *

   * The keyword annotations to include in response.
   *

   *
   * repeated .google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation keyword_annotation = 17;
   * @return A list containing the keywordAnnotation.
   */
  @java.lang.Override
  public java.util.List<com.google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation> getKeywordAnnotationList() {
    return new com.google.protobuf.Internal.ListAdapter<
        java.lang.Integer, com.google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation>(keywordAnnotation_, keywordAnnotation_converter_);
  }
  /**
   *

   * The keyword annotations to include in response.
   *

   *
   * repeated .google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation keyword_annotation = 17;
   * @return The count of keywordAnnotation.
   */
  @java.lang.Override
  public int getKeywordAnnotationCount() {
    return keywordAnnotation_.size();
  }
  /**
   *

   * The keyword annotations to include in response.
   *

   *
   * repeated .google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation keyword_annotation = 17;
   * @param index The index of the element to return.
   * @return The keywordAnnotation at the given index.
   */
  @java.lang.Override
  public com.google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation getKeywordAnnotation(int index) {
    return keywordAnnotation_converter_.convert(keywordAnnotation_.get(index));
  }
  /**
   *

   * The keyword annotations to include in response.
   *

   *
   * repeated .google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation keyword_annotation = 17;
   * @return A list containing the enum numeric values on the wire for keywordAnnotation.
   */
  @java.lang.Override
  public java.util.List<java.lang.Integer>
  getKeywordAnnotationValueList() {
    return keywordAnnotation_;
  }
  /**
   *

   * The keyword annotations to include in response.
   *

   *
   * repeated .google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation keyword_annotation = 17;
   * @param index The index of the value to return.
   * @return The enum numeric value on the wire of keywordAnnotation at the given index.
   */
  @java.lang.Override
  public int getKeywordAnnotationValue(int index) {
    return keywordAnnotation_.get(index);
  }
  private int keywordAnnotationMemoizedSerializedSize;

  public static final int AGGREGATE_METRICS_FIELD_NUMBER = 16;
  private com.google.ads.googleads.v11.common.KeywordPlanAggregateMetrics aggregateMetrics_;
  /**
   *

   * The aggregate fields to include in response.
   *

   *
   * .google.ads.googleads.v11.common.KeywordPlanAggregateMetrics aggregate_metrics = 16;
   * @return Whether the aggregateMetrics field is set.
   */
  @java.lang.Override
  public boolean hasAggregateMetrics() {
    return aggregateMetrics_ != null;
  }
  /**
   *

   * The aggregate fields to include in response.
   *

   *
   * .google.ads.googleads.v11.common.KeywordPlanAggregateMetrics aggregate_metrics = 16;
   * @return The aggregateMetrics.
   */
  @java.lang.Override
  public com.google.ads.googleads.v11.common.KeywordPlanAggregateMetrics getAggregateMetrics() {
    return aggregateMetrics_ == null ? com.google.ads.googleads.v11.common.KeywordPlanAggregateMetrics.getDefaultInstance() : aggregateMetrics_;
  }
  /**
   *

   * The aggregate fields to include in response.
   *

   *
   * .google.ads.googleads.v11.common.KeywordPlanAggregateMetrics aggregate_metrics = 16;
   */
  @java.lang.Override
  public com.google.ads.googleads.v11.common.KeywordPlanAggregateMetricsOrBuilder getAggregateMetricsOrBuilder() {
    return getAggregateMetrics();
  }

  public static final int HISTORICAL_METRICS_OPTIONS_FIELD_NUMBER = 18;
  private com.google.ads.googleads.v11.common.HistoricalMetricsOptions historicalMetricsOptions_;
  /**
   *

   * The options for historical metrics data.
   *

   *
   * .google.ads.googleads.v11.common.HistoricalMetricsOptions historical_metrics_options = 18;
   * @return Whether the historicalMetricsOptions field is set.
   */
  @java.lang.Override
  public boolean hasHistoricalMetricsOptions() {
    return historicalMetricsOptions_ != null;
  }
  /**
   *

   * The options for historical metrics data.
   *

   *
   * .google.ads.googleads.v11.common.HistoricalMetricsOptions historical_metrics_options = 18;
   * @return The historicalMetricsOptions.
   */
  @java.lang.Override
  public com.google.ads.googleads.v11.common.HistoricalMetricsOptions getHistoricalMetricsOptions() {
    return historicalMetricsOptions_ == null ? com.google.ads.googleads.v11.common.HistoricalMetricsOptions.getDefaultInstance() : historicalMetricsOptions_;
  }
  /**
   *

   * The options for historical metrics data.
   *

   *
   * .google.ads.googleads.v11.common.HistoricalMetricsOptions historical_metrics_options = 18;
   */
  @java.lang.Override
  public com.google.ads.googleads.v11.common.HistoricalMetricsOptionsOrBuilder getHistoricalMetricsOptionsOrBuilder() {
    return getHistoricalMetricsOptions();
  }

  public static final int KEYWORD_AND_URL_SEED_FIELD_NUMBER = 2;
  /**
   *

   * A Keyword and a specific Url to generate ideas from
   * for example, cars, www.example.com/cars.
   *

   *
   * .google.ads.googleads.v11.services.KeywordAndUrlSeed keyword_and_url_seed = 2;
   * @return Whether the keywordAndUrlSeed field is set.
   */
  @java.lang.Override
  public boolean hasKeywordAndUrlSeed() {
    return seedCase_ == 2;
  }
  /**
   *

   * A Keyword and a specific Url to generate ideas from
   * for example, cars, www.example.com/cars.
   *

   *
   * .google.ads.googleads.v11.services.KeywordAndUrlSeed keyword_and_url_seed = 2;
   * @return The keywordAndUrlSeed.
   */
  @java.lang.Override
  public com.google.ads.googleads.v11.services.KeywordAndUrlSeed getKeywordAndUrlSeed() {
    if (seedCase_ == 2) {
       return (com.google.ads.googleads.v11.services.KeywordAndUrlSeed) seed_;
    }
    return com.google.ads.googleads.v11.services.KeywordAndUrlSeed.getDefaultInstance();
  }
  /**
   *

   * A Keyword and a specific Url to generate ideas from
   * for example, cars, www.example.com/cars.
   *

   *
   * .google.ads.googleads.v11.services.KeywordAndUrlSeed keyword_and_url_seed = 2;
   */
  @java.lang.Override
  public com.google.ads.googleads.v11.services.KeywordAndUrlSeedOrBuilder getKeywordAndUrlSeedOrBuilder() {
    if (seedCase_ == 2) {
       return (com.google.ads.googleads.v11.services.KeywordAndUrlSeed) seed_;
    }
    return com.google.ads.googleads.v11.services.KeywordAndUrlSeed.getDefaultInstance();
  }

  public static final int KEYWORD_SEED_FIELD_NUMBER = 3;
  /**
   *

   * A Keyword or phrase to generate ideas from, for example, cars.
   *

   *
   * .google.ads.googleads.v11.services.KeywordSeed keyword_seed = 3;
   * @return Whether the keywordSeed field is set.
   */
  @java.lang.Override
  public boolean hasKeywordSeed() {
    return seedCase_ == 3;
  }
  /**
   *

   * A Keyword or phrase to generate ideas from, for example, cars.
   *

   *
   * .google.ads.googleads.v11.services.KeywordSeed keyword_seed = 3;
   * @return The keywordSeed.
   */
  @java.lang.Override
  public com.google.ads.googleads.v11.services.KeywordSeed getKeywordSeed() {
    if (seedCase_ == 3) {
       return (com.google.ads.googleads.v11.services.KeywordSeed) seed_;
    }
    return com.google.ads.googleads.v11.services.KeywordSeed.getDefaultInstance();
  }
  /**
   *

   * A Keyword or phrase to generate ideas from, for example, cars.
   *

   *
   * .google.ads.googleads.v11.services.KeywordSeed keyword_seed = 3;
   */
  @java.lang.Override
  public com.google.ads.googleads.v11.services.KeywordSeedOrBuilder getKeywordSeedOrBuilder() {
    if (seedCase_ == 3) {
       return (com.google.ads.googleads.v11.services.KeywordSeed) seed_;
    }
    return com.google.ads.googleads.v11.services.KeywordSeed.getDefaultInstance();
  }

  public static final int URL_SEED_FIELD_NUMBER = 5;
  /**
   *

   * A specific url to generate ideas from, for example, www.example.com/cars.
   *

   *
   * .google.ads.googleads.v11.services.UrlSeed url_seed = 5;
   * @return Whether the urlSeed field is set.
   */
  @java.lang.Override
  public boolean hasUrlSeed() {
    return seedCase_ == 5;
  }
  /**
   *

   * A specific url to generate ideas from, for example, www.example.com/cars.
   *

   *
   * .google.ads.googleads.v11.services.UrlSeed url_seed = 5;
   * @return The urlSeed.
   */
  @java.lang.Override
  public com.google.ads.googleads.v11.services.UrlSeed getUrlSeed() {
    if (seedCase_ == 5) {
       return (com.google.ads.googleads.v11.services.UrlSeed) seed_;
    }
    return com.google.ads.googleads.v11.services.UrlSeed.getDefaultInstance();
  }
  /**
   *

   * A specific url to generate ideas from, for example, www.example.com/cars.
   *

   *
   * .google.ads.googleads.v11.services.UrlSeed url_seed = 5;
   */
  @java.lang.Override
  public com.google.ads.googleads.v11.services.UrlSeedOrBuilder getUrlSeedOrBuilder() {
    if (seedCase_ == 5) {
       return (com.google.ads.googleads.v11.services.UrlSeed) seed_;
    }
    return com.google.ads.googleads.v11.services.UrlSeed.getDefaultInstance();
  }

  public static final int SITE_SEED_FIELD_NUMBER = 11;
  /**
   *

   * The site to generate ideas from, for example, www.example.com.
   *

   *
   * .google.ads.googleads.v11.services.SiteSeed site_seed = 11;
   * @return Whether the siteSeed field is set.
   */
  @java.lang.Override
  public boolean hasSiteSeed() {
    return seedCase_ == 11;
  }
  /**
   *

   * The site to generate ideas from, for example, www.example.com.
   *

   *
   * .google.ads.googleads.v11.services.SiteSeed site_seed = 11;
   * @return The siteSeed.
   */
  @java.lang.Override
  public com.google.ads.googleads.v11.services.SiteSeed getSiteSeed() {
    if (seedCase_ == 11) {
       return (com.google.ads.googleads.v11.services.SiteSeed) seed_;
    }
    return com.google.ads.googleads.v11.services.SiteSeed.getDefaultInstance();
  }
  /**
   *

   * The site to generate ideas from, for example, www.example.com.
   *

   *
   * .google.ads.googleads.v11.services.SiteSeed site_seed = 11;
   */
  @java.lang.Override
  public com.google.ads.googleads.v11.services.SiteSeedOrBuilder getSiteSeedOrBuilder() {
    if (seedCase_ == 11) {
       return (com.google.ads.googleads.v11.services.SiteSeed) seed_;
    }
    return com.google.ads.googleads.v11.services.SiteSeed.getDefaultInstance();
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    getSerializedSize();
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, customerId_);
    }
    if (seedCase_ == 2) {
      output.writeMessage(2, (com.google.ads.googleads.v11.services.KeywordAndUrlSeed) seed_);
    }
    if (seedCase_ == 3) {
      output.writeMessage(3, (com.google.ads.googleads.v11.services.KeywordSeed) seed_);
    }
    if (seedCase_ == 5) {
      output.writeMessage(5, (com.google.ads.googleads.v11.services.UrlSeed) seed_);
    }
    if (keywordPlanNetwork_ != com.google.ads.googleads.v11.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork.UNSPECIFIED.getNumber()) {
      output.writeEnum(9, keywordPlanNetwork_);
    }
    if (includeAdultKeywords_ != false) {
      output.writeBool(10, includeAdultKeywords_);
    }
    if (seedCase_ == 11) {
      output.writeMessage(11, (com.google.ads.googleads.v11.services.SiteSeed) seed_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 12, pageToken_);
    }
    if (pageSize_ != 0) {
      output.writeInt32(13, pageSize_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 14, language_);
    }
    for (int i = 0; i < geoTargetConstants_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 15, geoTargetConstants_.getRaw(i));
    }
    if (aggregateMetrics_ != null) {
      output.writeMessage(16, getAggregateMetrics());
    }
    if (getKeywordAnnotationList().size() > 0) {
      output.writeUInt32NoTag(138);
      output.writeUInt32NoTag(keywordAnnotationMemoizedSerializedSize);
    }
    for (int i = 0; i < keywordAnnotation_.size(); i++) {
      output.writeEnumNoTag(keywordAnnotation_.get(i));
    }
    if (historicalMetricsOptions_ != null) {
      output.writeMessage(18, getHistoricalMetricsOptions());
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, customerId_);
    }
    if (seedCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (com.google.ads.googleads.v11.services.KeywordAndUrlSeed) seed_);
    }
    if (seedCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, (com.google.ads.googleads.v11.services.KeywordSeed) seed_);
    }
    if (seedCase_ == 5) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, (com.google.ads.googleads.v11.services.UrlSeed) seed_);
    }
    if (keywordPlanNetwork_ != com.google.ads.googleads.v11.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork.UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(9, keywordPlanNetwork_);
    }
    if (includeAdultKeywords_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(10, includeAdultKeywords_);
    }
    if (seedCase_ == 11) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(11, (com.google.ads.googleads.v11.services.SiteSeed) seed_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, pageToken_);
    }
    if (pageSize_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(13, pageSize_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, language_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < geoTargetConstants_.size(); i++) {
        dataSize += computeStringSizeNoTag(geoTargetConstants_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getGeoTargetConstantsList().size();
    }
    if (aggregateMetrics_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(16, getAggregateMetrics());
    }
    {
      int dataSize = 0;
      for (int i = 0; i < keywordAnnotation_.size(); i++) {
        dataSize += com.google.protobuf.CodedOutputStream
          .computeEnumSizeNoTag(keywordAnnotation_.get(i));
      }
      size += dataSize;
      if (!getKeywordAnnotationList().isEmpty()) {  size += 2;
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32SizeNoTag(dataSize);
      }keywordAnnotationMemoizedSerializedSize = dataSize;
    }
    if (historicalMetricsOptions_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(18, getHistoricalMetricsOptions());
    }
    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.v11.services.GenerateKeywordIdeasRequest)) {
      return super.equals(obj);
    }
    com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest other = (com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest) obj;

    if (!getCustomerId()
        .equals(other.getCustomerId())) return false;
    if (hasLanguage() != other.hasLanguage()) return false;
    if (hasLanguage()) {
      if (!getLanguage()
          .equals(other.getLanguage())) return false;
    }
    if (!getGeoTargetConstantsList()
        .equals(other.getGeoTargetConstantsList())) return false;
    if (getIncludeAdultKeywords()
        != other.getIncludeAdultKeywords()) return false;
    if (!getPageToken()
        .equals(other.getPageToken())) return false;
    if (getPageSize()
        != other.getPageSize()) return false;
    if (keywordPlanNetwork_ != other.keywordPlanNetwork_) return false;
    if (!keywordAnnotation_.equals(other.keywordAnnotation_)) return false;
    if (hasAggregateMetrics() != other.hasAggregateMetrics()) return false;
    if (hasAggregateMetrics()) {
      if (!getAggregateMetrics()
          .equals(other.getAggregateMetrics())) return false;
    }
    if (hasHistoricalMetricsOptions() != other.hasHistoricalMetricsOptions()) return false;
    if (hasHistoricalMetricsOptions()) {
      if (!getHistoricalMetricsOptions()
          .equals(other.getHistoricalMetricsOptions())) return false;
    }
    if (!getSeedCase().equals(other.getSeedCase())) return false;
    switch (seedCase_) {
      case 2:
        if (!getKeywordAndUrlSeed()
            .equals(other.getKeywordAndUrlSeed())) return false;
        break;
      case 3:
        if (!getKeywordSeed()
            .equals(other.getKeywordSeed())) return false;
        break;
      case 5:
        if (!getUrlSeed()
            .equals(other.getUrlSeed())) return false;
        break;
      case 11:
        if (!getSiteSeed()
            .equals(other.getSiteSeed())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + CUSTOMER_ID_FIELD_NUMBER;
    hash = (53 * hash) + getCustomerId().hashCode();
    if (hasLanguage()) {
      hash = (37 * hash) + LANGUAGE_FIELD_NUMBER;
      hash = (53 * hash) + getLanguage().hashCode();
    }
    if (getGeoTargetConstantsCount() > 0) {
      hash = (37 * hash) + GEO_TARGET_CONSTANTS_FIELD_NUMBER;
      hash = (53 * hash) + getGeoTargetConstantsList().hashCode();
    }
    hash = (37 * hash) + INCLUDE_ADULT_KEYWORDS_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIncludeAdultKeywords());
    hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
    hash = (53 * hash) + getPageToken().hashCode();
    hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
    hash = (53 * hash) + getPageSize();
    hash = (37 * hash) + KEYWORD_PLAN_NETWORK_FIELD_NUMBER;
    hash = (53 * hash) + keywordPlanNetwork_;
    if (getKeywordAnnotationCount() > 0) {
      hash = (37 * hash) + KEYWORD_ANNOTATION_FIELD_NUMBER;
      hash = (53 * hash) + keywordAnnotation_.hashCode();
    }
    if (hasAggregateMetrics()) {
      hash = (37 * hash) + AGGREGATE_METRICS_FIELD_NUMBER;
      hash = (53 * hash) + getAggregateMetrics().hashCode();
    }
    if (hasHistoricalMetricsOptions()) {
      hash = (37 * hash) + HISTORICAL_METRICS_OPTIONS_FIELD_NUMBER;
      hash = (53 * hash) + getHistoricalMetricsOptions().hashCode();
    }
    switch (seedCase_) {
      case 2:
        hash = (37 * hash) + KEYWORD_AND_URL_SEED_FIELD_NUMBER;
        hash = (53 * hash) + getKeywordAndUrlSeed().hashCode();
        break;
      case 3:
        hash = (37 * hash) + KEYWORD_SEED_FIELD_NUMBER;
        hash = (53 * hash) + getKeywordSeed().hashCode();
        break;
      case 5:
        hash = (37 * hash) + URL_SEED_FIELD_NUMBER;
        hash = (53 * hash) + getUrlSeed().hashCode();
        break;
      case 11:
        hash = (37 * hash) + SITE_SEED_FIELD_NUMBER;
        hash = (53 * hash) + getSiteSeed().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest 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.v11.services.GenerateKeywordIdeasRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest 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.v11.services.GenerateKeywordIdeasRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest 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.v11.services.GenerateKeywordIdeasRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest 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.v11.services.GenerateKeywordIdeasRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest 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.v11.services.GenerateKeywordIdeasRequest 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;
  }
  /**
   *

   * Request message for [KeywordPlanIdeaService.GenerateKeywordIdeas][google.ads.googleads.v11.services.KeywordPlanIdeaService.GenerateKeywordIdeas].
   *

   *
   * Protobuf type {@code google.ads.googleads.v11.services.GenerateKeywordIdeasRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:google.ads.googleads.v11.services.GenerateKeywordIdeasRequest)
      com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.ads.googleads.v11.services.KeywordPlanIdeaServiceProto.internal_static_google_ads_googleads_v11_services_GenerateKeywordIdeasRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.ads.googleads.v11.services.KeywordPlanIdeaServiceProto.internal_static_google_ads_googleads_v11_services_GenerateKeywordIdeasRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest.class, com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest.Builder.class);
    }

    // Construct using com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest.newBuilder()
    private Builder() {

    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      customerId_ = "";

      language_ = "";
      bitField0_ = (bitField0_ & ~0x00000001);
      geoTargetConstants_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000002);
      includeAdultKeywords_ = false;

      pageToken_ = "";

      pageSize_ = 0;

      keywordPlanNetwork_ = 0;

      keywordAnnotation_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000004);
      if (aggregateMetricsBuilder_ == null) {
        aggregateMetrics_ = null;
      } else {
        aggregateMetrics_ = null;
        aggregateMetricsBuilder_ = null;
      }
      if (historicalMetricsOptionsBuilder_ == null) {
        historicalMetricsOptions_ = null;
      } else {
        historicalMetricsOptions_ = null;
        historicalMetricsOptionsBuilder_ = null;
      }
      if (keywordAndUrlSeedBuilder_ != null) {
        keywordAndUrlSeedBuilder_.clear();
      }
      if (keywordSeedBuilder_ != null) {
        keywordSeedBuilder_.clear();
      }
      if (urlSeedBuilder_ != null) {
        urlSeedBuilder_.clear();
      }
      if (siteSeedBuilder_ != null) {
        siteSeedBuilder_.clear();
      }
      seedCase_ = 0;
      seed_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.google.ads.googleads.v11.services.KeywordPlanIdeaServiceProto.internal_static_google_ads_googleads_v11_services_GenerateKeywordIdeasRequest_descriptor;
    }

    @java.lang.Override
    public com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest getDefaultInstanceForType() {
      return com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest.getDefaultInstance();
    }

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

    @java.lang.Override
    public com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest buildPartial() {
      com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest result = new com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.customerId_ = customerId_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        to_bitField0_ |= 0x00000001;
      }
      result.language_ = language_;
      if (((bitField0_ & 0x00000002) != 0)) {
        geoTargetConstants_ = geoTargetConstants_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000002);
      }
      result.geoTargetConstants_ = geoTargetConstants_;
      result.includeAdultKeywords_ = includeAdultKeywords_;
      result.pageToken_ = pageToken_;
      result.pageSize_ = pageSize_;
      result.keywordPlanNetwork_ = keywordPlanNetwork_;
      if (((bitField0_ & 0x00000004) != 0)) {
        keywordAnnotation_ = java.util.Collections.unmodifiableList(keywordAnnotation_);
        bitField0_ = (bitField0_ & ~0x00000004);
      }
      result.keywordAnnotation_ = keywordAnnotation_;
      if (aggregateMetricsBuilder_ == null) {
        result.aggregateMetrics_ = aggregateMetrics_;
      } else {
        result.aggregateMetrics_ = aggregateMetricsBuilder_.build();
      }
      if (historicalMetricsOptionsBuilder_ == null) {
        result.historicalMetricsOptions_ = historicalMetricsOptions_;
      } else {
        result.historicalMetricsOptions_ = historicalMetricsOptionsBuilder_.build();
      }
      if (seedCase_ == 2) {
        if (keywordAndUrlSeedBuilder_ == null) {
          result.seed_ = seed_;
        } else {
          result.seed_ = keywordAndUrlSeedBuilder_.build();
        }
      }
      if (seedCase_ == 3) {
        if (keywordSeedBuilder_ == null) {
          result.seed_ = seed_;
        } else {
          result.seed_ = keywordSeedBuilder_.build();
        }
      }
      if (seedCase_ == 5) {
        if (urlSeedBuilder_ == null) {
          result.seed_ = seed_;
        } else {
          result.seed_ = urlSeedBuilder_.build();
        }
      }
      if (seedCase_ == 11) {
        if (siteSeedBuilder_ == null) {
          result.seed_ = seed_;
        } else {
          result.seed_ = siteSeedBuilder_.build();
        }
      }
      result.bitField0_ = to_bitField0_;
      result.seedCase_ = seedCase_;
      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.v11.services.GenerateKeywordIdeasRequest) {
        return mergeFrom((com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest other) {
      if (other == com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest.getDefaultInstance()) return this;
      if (!other.getCustomerId().isEmpty()) {
        customerId_ = other.customerId_;
        onChanged();
      }
      if (other.hasLanguage()) {
        bitField0_ |= 0x00000001;
        language_ = other.language_;
        onChanged();
      }
      if (!other.geoTargetConstants_.isEmpty()) {
        if (geoTargetConstants_.isEmpty()) {
          geoTargetConstants_ = other.geoTargetConstants_;
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          ensureGeoTargetConstantsIsMutable();
          geoTargetConstants_.addAll(other.geoTargetConstants_);
        }
        onChanged();
      }
      if (other.getIncludeAdultKeywords() != false) {
        setIncludeAdultKeywords(other.getIncludeAdultKeywords());
      }
      if (!other.getPageToken().isEmpty()) {
        pageToken_ = other.pageToken_;
        onChanged();
      }
      if (other.getPageSize() != 0) {
        setPageSize(other.getPageSize());
      }
      if (other.keywordPlanNetwork_ != 0) {
        setKeywordPlanNetworkValue(other.getKeywordPlanNetworkValue());
      }
      if (!other.keywordAnnotation_.isEmpty()) {
        if (keywordAnnotation_.isEmpty()) {
          keywordAnnotation_ = other.keywordAnnotation_;
          bitField0_ = (bitField0_ & ~0x00000004);
        } else {
          ensureKeywordAnnotationIsMutable();
          keywordAnnotation_.addAll(other.keywordAnnotation_);
        }
        onChanged();
      }
      if (other.hasAggregateMetrics()) {
        mergeAggregateMetrics(other.getAggregateMetrics());
      }
      if (other.hasHistoricalMetricsOptions()) {
        mergeHistoricalMetricsOptions(other.getHistoricalMetricsOptions());
      }
      switch (other.getSeedCase()) {
        case KEYWORD_AND_URL_SEED: {
          mergeKeywordAndUrlSeed(other.getKeywordAndUrlSeed());
          break;
        }
        case KEYWORD_SEED: {
          mergeKeywordSeed(other.getKeywordSeed());
          break;
        }
        case URL_SEED: {
          mergeUrlSeed(other.getUrlSeed());
          break;
        }
        case SITE_SEED: {
          mergeSiteSeed(other.getSiteSeed());
          break;
        }
        case SEED_NOT_SET: {
          break;
        }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              customerId_ = input.readStringRequireUtf8();

              break;
            } // case 10
            case 18: {
              input.readMessage(
                  getKeywordAndUrlSeedFieldBuilder().getBuilder(),
                  extensionRegistry);
              seedCase_ = 2;
              break;
            } // case 18
            case 26: {
              input.readMessage(
                  getKeywordSeedFieldBuilder().getBuilder(),
                  extensionRegistry);
              seedCase_ = 3;
              break;
            } // case 26
            case 42: {
              input.readMessage(
                  getUrlSeedFieldBuilder().getBuilder(),
                  extensionRegistry);
              seedCase_ = 5;
              break;
            } // case 42
            case 72: {
              keywordPlanNetwork_ = input.readEnum();

              break;
            } // case 72
            case 80: {
              includeAdultKeywords_ = input.readBool();

              break;
            } // case 80
            case 90: {
              input.readMessage(
                  getSiteSeedFieldBuilder().getBuilder(),
                  extensionRegistry);
              seedCase_ = 11;
              break;
            } // case 90
            case 98: {
              pageToken_ = input.readStringRequireUtf8();

              break;
            } // case 98
            case 104: {
              pageSize_ = input.readInt32();

              break;
            } // case 104
            case 114: {
              language_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000001;
              break;
            } // case 114
            case 122: {
              java.lang.String s = input.readStringRequireUtf8();
              ensureGeoTargetConstantsIsMutable();
              geoTargetConstants_.add(s);
              break;
            } // case 122
            case 130: {
              input.readMessage(
                  getAggregateMetricsFieldBuilder().getBuilder(),
                  extensionRegistry);

              break;
            } // case 130
            case 136: {
              int tmpRaw = input.readEnum();
              ensureKeywordAnnotationIsMutable();
              keywordAnnotation_.add(tmpRaw);
              break;
            } // case 136
            case 138: {
              int length = input.readRawVarint32();
              int oldLimit = input.pushLimit(length);
              while(input.getBytesUntilLimit() > 0) {
                int tmpRaw = input.readEnum();
                ensureKeywordAnnotationIsMutable();
                keywordAnnotation_.add(tmpRaw);
              }
              input.popLimit(oldLimit);
              break;
            } // case 138
            case 146: {
              input.readMessage(
                  getHistoricalMetricsOptionsFieldBuilder().getBuilder(),
                  extensionRegistry);

              break;
            } // case 146
            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 seedCase_ = 0;
    private java.lang.Object seed_;
    public SeedCase
        getSeedCase() {
      return SeedCase.forNumber(
          seedCase_);
    }

    public Builder clearSeed() {
      seedCase_ = 0;
      seed_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private java.lang.Object customerId_ = "";
    /**
     *

     * The ID of the customer with the recommendation.
     *

     *
     * string customer_id = 1;
     * @return The customerId.
     */
    public java.lang.String getCustomerId() {
      java.lang.Object ref = customerId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        customerId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *

     * The ID of the customer with the recommendation.
     *

     *
     * string customer_id = 1;
     * @return The bytes for customerId.
     */
    public com.google.protobuf.ByteString
        getCustomerIdBytes() {
      java.lang.Object ref = customerId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        customerId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *

     * The ID of the customer with the recommendation.
     *

     *
     * string customer_id = 1;
     * @param value The customerId to set.
     * @return This builder for chaining.
     */
    public Builder setCustomerId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      customerId_ = value;
      onChanged();
      return this;
    }
    /**
     *

     * The ID of the customer with the recommendation.
     *

     *
     * string customer_id = 1;
     * @return This builder for chaining.
     */
    public Builder clearCustomerId() {

      customerId_ = getDefaultInstance().getCustomerId();
      onChanged();
      return this;
    }
    /**
     *

     * The ID of the customer with the recommendation.
     *

     *
     * string customer_id = 1;
     * @param value The bytes for customerId to set.
     * @return This builder for chaining.
     */
    public Builder setCustomerIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);

      customerId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object language_ = "";
    /**
     *

     * The resource name of the language to target.
     * Each keyword belongs to some set of languages; a keyword is included if
     * language is one of its languages.
     * If not set, all keywords will be included.
     *

     *
     * optional string language = 14;
     * @return Whether the language field is set.
     */
    public boolean hasLanguage() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     *

     * The resource name of the language to target.
     * Each keyword belongs to some set of languages; a keyword is included if
     * language is one of its languages.
     * If not set, all keywords will be included.
     *

     *
     * optional string language = 14;
     * @return The language.
     */
    public java.lang.String getLanguage() {
      java.lang.Object ref = language_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        language_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *

     * The resource name of the language to target.
     * Each keyword belongs to some set of languages; a keyword is included if
     * language is one of its languages.
     * If not set, all keywords will be included.
     *

     *
     * optional string language = 14;
     * @return The bytes for language.
     */
    public com.google.protobuf.ByteString
        getLanguageBytes() {
      java.lang.Object ref = language_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        language_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *

     * The resource name of the language to target.
     * Each keyword belongs to some set of languages; a keyword is included if
     * language is one of its languages.
     * If not set, all keywords will be included.
     *

     *
     * optional string language = 14;
     * @param value The language to set.
     * @return This builder for chaining.
     */
    public Builder setLanguage(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
      language_ = value;
      onChanged();
      return this;
    }
    /**
     *

     * The resource name of the language to target.
     * Each keyword belongs to some set of languages; a keyword is included if
     * language is one of its languages.
     * If not set, all keywords will be included.
     *

     *
     * optional string language = 14;
     * @return This builder for chaining.
     */
    public Builder clearLanguage() {
      bitField0_ = (bitField0_ & ~0x00000001);
      language_ = getDefaultInstance().getLanguage();
      onChanged();
      return this;
    }
    /**
     *

     * The resource name of the language to target.
     * Each keyword belongs to some set of languages; a keyword is included if
     * language is one of its languages.
     * If not set, all keywords will be included.
     *

     *
     * optional string language = 14;
     * @param value The bytes for language to set.
     * @return This builder for chaining.
     */
    public Builder setLanguageBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      bitField0_ |= 0x00000001;
      language_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList geoTargetConstants_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureGeoTargetConstantsIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        geoTargetConstants_ = new com.google.protobuf.LazyStringArrayList(geoTargetConstants_);
        bitField0_ |= 0x00000002;
       }
    }
    /**
     *

     * The resource names of the location to target. Maximum is 10.
     * An empty list MAY be used to specify all targeting geos.
     *

     *
     * repeated string geo_target_constants = 15;
     * @return A list containing the geoTargetConstants.
     */
    public com.google.protobuf.ProtocolStringList
        getGeoTargetConstantsList() {
      return geoTargetConstants_.getUnmodifiableView();
    }
    /**
     *

     * The resource names of the location to target. Maximum is 10.
     * An empty list MAY be used to specify all targeting geos.
     *

     *
     * repeated string geo_target_constants = 15;
     * @return The count of geoTargetConstants.
     */
    public int getGeoTargetConstantsCount() {
      return geoTargetConstants_.size();
    }
    /**
     *

     * The resource names of the location to target. Maximum is 10.
     * An empty list MAY be used to specify all targeting geos.
     *

     *
     * repeated string geo_target_constants = 15;
     * @param index The index of the element to return.
     * @return The geoTargetConstants at the given index.
     */
    public java.lang.String getGeoTargetConstants(int index) {
      return geoTargetConstants_.get(index);
    }
    /**
     *

     * The resource names of the location to target. Maximum is 10.
     * An empty list MAY be used to specify all targeting geos.
     *

     *
     * repeated string geo_target_constants = 15;
     * @param index The index of the value to return.
     * @return The bytes of the geoTargetConstants at the given index.
     */
    public com.google.protobuf.ByteString
        getGeoTargetConstantsBytes(int index) {
      return geoTargetConstants_.getByteString(index);
    }
    /**
     *

     * The resource names of the location to target. Maximum is 10.
     * An empty list MAY be used to specify all targeting geos.
     *

     *
     * repeated string geo_target_constants = 15;
     * @param index The index to set the value at.
     * @param value The geoTargetConstants to set.
     * @return This builder for chaining.
     */
    public Builder setGeoTargetConstants(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureGeoTargetConstantsIsMutable();
      geoTargetConstants_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *

     * The resource names of the location to target. Maximum is 10.
     * An empty list MAY be used to specify all targeting geos.
     *

     *
     * repeated string geo_target_constants = 15;
     * @param value The geoTargetConstants to add.
     * @return This builder for chaining.
     */
    public Builder addGeoTargetConstants(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureGeoTargetConstantsIsMutable();
      geoTargetConstants_.add(value);
      onChanged();
      return this;
    }
    /**
     *

     * The resource names of the location to target. Maximum is 10.
     * An empty list MAY be used to specify all targeting geos.
     *

     *
     * repeated string geo_target_constants = 15;
     * @param values The geoTargetConstants to add.
     * @return This builder for chaining.
     */
    public Builder addAllGeoTargetConstants(
        java.lang.Iterable<java.lang.String> values) {
      ensureGeoTargetConstantsIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, geoTargetConstants_);
      onChanged();
      return this;
    }
    /**
     *

     * The resource names of the location to target. Maximum is 10.
     * An empty list MAY be used to specify all targeting geos.
     *

     *
     * repeated string geo_target_constants = 15;
     * @return This builder for chaining.
     */
    public Builder clearGeoTargetConstants() {
      geoTargetConstants_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     *

     * The resource names of the location to target. Maximum is 10.
     * An empty list MAY be used to specify all targeting geos.
     *

     *
     * repeated string geo_target_constants = 15;
     * @param value The bytes of the geoTargetConstants to add.
     * @return This builder for chaining.
     */
    public Builder addGeoTargetConstantsBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      ensureGeoTargetConstantsIsMutable();
      geoTargetConstants_.add(value);
      onChanged();
      return this;
    }

    private boolean includeAdultKeywords_ ;
    /**
     *

     * If true, adult keywords will be included in response.
     * The default value is false.
     *

     *
     * bool include_adult_keywords = 10;
     * @return The includeAdultKeywords.
     */
    @java.lang.Override
    public boolean getIncludeAdultKeywords() {
      return includeAdultKeywords_;
    }
    /**
     *

     * If true, adult keywords will be included in response.
     * The default value is false.
     *

     *
     * bool include_adult_keywords = 10;
     * @param value The includeAdultKeywords to set.
     * @return This builder for chaining.
     */
    public Builder setIncludeAdultKeywords(boolean value) {

      includeAdultKeywords_ = value;
      onChanged();
      return this;
    }
    /**
     *

     * If true, adult keywords will be included in response.
     * The default value is false.
     *

     *
     * bool include_adult_keywords = 10;
     * @return This builder for chaining.
     */
    public Builder clearIncludeAdultKeywords() {

      includeAdultKeywords_ = false;
      onChanged();
      return this;
    }

    private java.lang.Object pageToken_ = "";
    /**
     *

     * Token of the page to retrieve. If not specified, the first
     * page of results will be returned. To request next page of results use the
     * value obtained from `next_page_token` in the previous response.
     * The request fields must match across pages.
     *

     *
     * string page_token = 12;
     * @return The pageToken.
     */
    public java.lang.String getPageToken() {
      java.lang.Object ref = pageToken_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        pageToken_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *

     * Token of the page to retrieve. If not specified, the first
     * page of results will be returned. To request next page of results use the
     * value obtained from `next_page_token` in the previous response.
     * The request fields must match across pages.
     *

     *
     * string page_token = 12;
     * @return The bytes for pageToken.
     */
    public com.google.protobuf.ByteString
        getPageTokenBytes() {
      java.lang.Object ref = pageToken_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        pageToken_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *

     * Token of the page to retrieve. If not specified, the first
     * page of results will be returned. To request next page of results use the
     * value obtained from `next_page_token` in the previous response.
     * The request fields must match across pages.
     *

     *
     * string page_token = 12;
     * @param value The pageToken to set.
     * @return This builder for chaining.
     */
    public Builder setPageToken(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      pageToken_ = value;
      onChanged();
      return this;
    }
    /**
     *

     * Token of the page to retrieve. If not specified, the first
     * page of results will be returned. To request next page of results use the
     * value obtained from `next_page_token` in the previous response.
     * The request fields must match across pages.
     *

     *
     * string page_token = 12;
     * @return This builder for chaining.
     */
    public Builder clearPageToken() {

      pageToken_ = getDefaultInstance().getPageToken();
      onChanged();
      return this;
    }
    /**
     *

     * Token of the page to retrieve. If not specified, the first
     * page of results will be returned. To request next page of results use the
     * value obtained from `next_page_token` in the previous response.
     * The request fields must match across pages.
     *

     *
     * string page_token = 12;
     * @param value The bytes for pageToken to set.
     * @return This builder for chaining.
     */
    public Builder setPageTokenBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);

      pageToken_ = value;
      onChanged();
      return this;
    }

    private int pageSize_ ;
    /**
     *

     * Number of results to retrieve in a single page.
     * A maximum of 10,000 results may be returned, if the page_size
     * exceeds this, it is ignored.
     * If unspecified, at most 10,000 results will be returned.
     * The server may decide to further limit the number of returned resources.
     * If the response contains fewer than 10,000 results it may not be assumed
     * as last page of results.
     *

     *
     * int32 page_size = 13;
     * @return The pageSize.
     */
    @java.lang.Override
    public int getPageSize() {
      return pageSize_;
    }
    /**
     *

     * Number of results to retrieve in a single page.
     * A maximum of 10,000 results may be returned, if the page_size
     * exceeds this, it is ignored.
     * If unspecified, at most 10,000 results will be returned.
     * The server may decide to further limit the number of returned resources.
     * If the response contains fewer than 10,000 results it may not be assumed
     * as last page of results.
     *

     *
     * int32 page_size = 13;
     * @param value The pageSize to set.
     * @return This builder for chaining.
     */
    public Builder setPageSize(int value) {

      pageSize_ = value;
      onChanged();
      return this;
    }
    /**
     *

     * Number of results to retrieve in a single page.
     * A maximum of 10,000 results may be returned, if the page_size
     * exceeds this, it is ignored.
     * If unspecified, at most 10,000 results will be returned.
     * The server may decide to further limit the number of returned resources.
     * If the response contains fewer than 10,000 results it may not be assumed
     * as last page of results.
     *

     *
     * int32 page_size = 13;
     * @return This builder for chaining.
     */
    public Builder clearPageSize() {

      pageSize_ = 0;
      onChanged();
      return this;
    }

    private int keywordPlanNetwork_ = 0;
    /**
     *

     * Targeting network.
     * If not set, Google Search And Partners Network will be used.
     *

     *
     * .google.ads.googleads.v11.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork keyword_plan_network = 9;
     * @return The enum numeric value on the wire for keywordPlanNetwork.
     */
    @java.lang.Override public int getKeywordPlanNetworkValue() {
      return keywordPlanNetwork_;
    }
    /**
     *

     * Targeting network.
     * If not set, Google Search And Partners Network will be used.
     *

     *
     * .google.ads.googleads.v11.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork keyword_plan_network = 9;
     * @param value The enum numeric value on the wire for keywordPlanNetwork to set.
     * @return This builder for chaining.
     */
    public Builder setKeywordPlanNetworkValue(int value) {

      keywordPlanNetwork_ = value;
      onChanged();
      return this;
    }
    /**
     *

     * Targeting network.
     * If not set, Google Search And Partners Network will be used.
     *

     *
     * .google.ads.googleads.v11.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork keyword_plan_network = 9;
     * @return The keywordPlanNetwork.
     */
    @java.lang.Override
    public com.google.ads.googleads.v11.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork getKeywordPlanNetwork() {
      @SuppressWarnings("deprecation")
      com.google.ads.googleads.v11.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork result = com.google.ads.googleads.v11.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork.valueOf(keywordPlanNetwork_);
      return result == null ? com.google.ads.googleads.v11.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork.UNRECOGNIZED : result;
    }
    /**
     *

     * Targeting network.
     * If not set, Google Search And Partners Network will be used.
     *

     *
     * .google.ads.googleads.v11.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork keyword_plan_network = 9;
     * @param value The keywordPlanNetwork to set.
     * @return This builder for chaining.
     */
    public Builder setKeywordPlanNetwork(com.google.ads.googleads.v11.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork value) {
      if (value == null) {
        throw new NullPointerException();
      }

      keywordPlanNetwork_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     *

     * Targeting network.
     * If not set, Google Search And Partners Network will be used.
     *

     *
     * .google.ads.googleads.v11.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork keyword_plan_network = 9;
     * @return This builder for chaining.
     */
    public Builder clearKeywordPlanNetwork() {

      keywordPlanNetwork_ = 0;
      onChanged();
      return this;
    }

    private java.util.List<java.lang.Integer> keywordAnnotation_ =
      java.util.Collections.emptyList();
    private void ensureKeywordAnnotationIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        keywordAnnotation_ = new java.util.ArrayList<java.lang.Integer>(keywordAnnotation_);
        bitField0_ |= 0x00000004;
      }
    }
    /**
     *

     * The keyword annotations to include in response.
     *

     *
     * repeated .google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation keyword_annotation = 17;
     * @return A list containing the keywordAnnotation.
     */
    public java.util.List<com.google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation> getKeywordAnnotationList() {
      return new com.google.protobuf.Internal.ListAdapter<
          java.lang.Integer, com.google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation>(keywordAnnotation_, keywordAnnotation_converter_);
    }
    /**
     *

     * The keyword annotations to include in response.
     *

     *
     * repeated .google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation keyword_annotation = 17;
     * @return The count of keywordAnnotation.
     */
    public int getKeywordAnnotationCount() {
      return keywordAnnotation_.size();
    }
    /**
     *

     * The keyword annotations to include in response.
     *

     *
     * repeated .google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation keyword_annotation = 17;
     * @param index The index of the element to return.
     * @return The keywordAnnotation at the given index.
     */
    public com.google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation getKeywordAnnotation(int index) {
      return keywordAnnotation_converter_.convert(keywordAnnotation_.get(index));
    }
    /**
     *

     * The keyword annotations to include in response.
     *

     *
     * repeated .google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation keyword_annotation = 17;
     * @param index The index to set the value at.
     * @param value The keywordAnnotation to set.
     * @return This builder for chaining.
     */
    public Builder setKeywordAnnotation(
        int index, com.google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureKeywordAnnotationIsMutable();
      keywordAnnotation_.set(index, value.getNumber());
      onChanged();
      return this;
    }
    /**
     *

     * The keyword annotations to include in response.
     *

     *
     * repeated .google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation keyword_annotation = 17;
     * @param value The keywordAnnotation to add.
     * @return This builder for chaining.
     */
    public Builder addKeywordAnnotation(com.google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureKeywordAnnotationIsMutable();
      keywordAnnotation_.add(value.getNumber());
      onChanged();
      return this;
    }
    /**
     *

     * The keyword annotations to include in response.
     *

     *
     * repeated .google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation keyword_annotation = 17;
     * @param values The keywordAnnotation to add.
     * @return This builder for chaining.
     */
    public Builder addAllKeywordAnnotation(
        java.lang.Iterable<? extends com.google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation> values) {
      ensureKeywordAnnotationIsMutable();
      for (com.google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation value : values) {
        keywordAnnotation_.add(value.getNumber());
      }
      onChanged();
      return this;
    }
    /**
     *

     * The keyword annotations to include in response.
     *

     *
     * repeated .google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation keyword_annotation = 17;
     * @return This builder for chaining.
     */
    public Builder clearKeywordAnnotation() {
      keywordAnnotation_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     *

     * The keyword annotations to include in response.
     *

     *
     * repeated .google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation keyword_annotation = 17;
     * @return A list containing the enum numeric values on the wire for keywordAnnotation.
     */
    public java.util.List<java.lang.Integer>
    getKeywordAnnotationValueList() {
      return java.util.Collections.unmodifiableList(keywordAnnotation_);
    }
    /**
     *

     * The keyword annotations to include in response.
     *

     *
     * repeated .google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation keyword_annotation = 17;
     * @param index The index of the value to return.
     * @return The enum numeric value on the wire of keywordAnnotation at the given index.
     */
    public int getKeywordAnnotationValue(int index) {
      return keywordAnnotation_.get(index);
    }
    /**
     *

     * The keyword annotations to include in response.
     *

     *
     * repeated .google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation keyword_annotation = 17;
     * @param index The index to set the value at.
     * @param value The enum numeric value on the wire for keywordAnnotation to set.
     * @return This builder for chaining.
     */
    public Builder setKeywordAnnotationValue(
        int index, int value) {
      ensureKeywordAnnotationIsMutable();
      keywordAnnotation_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *

     * The keyword annotations to include in response.
     *

     *
     * repeated .google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation keyword_annotation = 17;
     * @param value The enum numeric value on the wire for keywordAnnotation to add.
     * @return This builder for chaining.
     */
    public Builder addKeywordAnnotationValue(int value) {
      ensureKeywordAnnotationIsMutable();
      keywordAnnotation_.add(value);
      onChanged();
      return this;
    }
    /**
     *

     * The keyword annotations to include in response.
     *

     *
     * repeated .google.ads.googleads.v11.enums.KeywordPlanKeywordAnnotationEnum.KeywordPlanKeywordAnnotation keyword_annotation = 17;
     * @param values The enum numeric values on the wire for keywordAnnotation to add.
     * @return This builder for chaining.
     */
    public Builder addAllKeywordAnnotationValue(
        java.lang.Iterable<java.lang.Integer> values) {
      ensureKeywordAnnotationIsMutable();
      for (int value : values) {
        keywordAnnotation_.add(value);
      }
      onChanged();
      return this;
    }

    private com.google.ads.googleads.v11.common.KeywordPlanAggregateMetrics aggregateMetrics_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.ads.googleads.v11.common.KeywordPlanAggregateMetrics, com.google.ads.googleads.v11.common.KeywordPlanAggregateMetrics.Builder, com.google.ads.googleads.v11.common.KeywordPlanAggregateMetricsOrBuilder> aggregateMetricsBuilder_;
    /**
     *

     * The aggregate fields to include in response.
     *

     *
     * .google.ads.googleads.v11.common.KeywordPlanAggregateMetrics aggregate_metrics = 16;
     * @return Whether the aggregateMetrics field is set.
     */
    public boolean hasAggregateMetrics() {
      return aggregateMetricsBuilder_ != null || aggregateMetrics_ != null;
    }
    /**
     *

     * The aggregate fields to include in response.
     *

     *
     * .google.ads.googleads.v11.common.KeywordPlanAggregateMetrics aggregate_metrics = 16;
     * @return The aggregateMetrics.
     */
    public com.google.ads.googleads.v11.common.KeywordPlanAggregateMetrics getAggregateMetrics() {
      if (aggregateMetricsBuilder_ == null) {
        return aggregateMetrics_ == null ? com.google.ads.googleads.v11.common.KeywordPlanAggregateMetrics.getDefaultInstance() : aggregateMetrics_;
      } else {
        return aggregateMetricsBuilder_.getMessage();
      }
    }
    /**
     *

     * The aggregate fields to include in response.
     *

     *
     * .google.ads.googleads.v11.common.KeywordPlanAggregateMetrics aggregate_metrics = 16;
     */
    public Builder setAggregateMetrics(com.google.ads.googleads.v11.common.KeywordPlanAggregateMetrics value) {
      if (aggregateMetricsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        aggregateMetrics_ = value;
        onChanged();
      } else {
        aggregateMetricsBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *

     * The aggregate fields to include in response.
     *

     *
     * .google.ads.googleads.v11.common.KeywordPlanAggregateMetrics aggregate_metrics = 16;
     */
    public Builder setAggregateMetrics(
        com.google.ads.googleads.v11.common.KeywordPlanAggregateMetrics.Builder builderForValue) {
      if (aggregateMetricsBuilder_ == null) {
        aggregateMetrics_ = builderForValue.build();
        onChanged();
      } else {
        aggregateMetricsBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *

     * The aggregate fields to include in response.
     *

     *
     * .google.ads.googleads.v11.common.KeywordPlanAggregateMetrics aggregate_metrics = 16;
     */
    public Builder mergeAggregateMetrics(com.google.ads.googleads.v11.common.KeywordPlanAggregateMetrics value) {
      if (aggregateMetricsBuilder_ == null) {
        if (aggregateMetrics_ != null) {
          aggregateMetrics_ =
            com.google.ads.googleads.v11.common.KeywordPlanAggregateMetrics.newBuilder(aggregateMetrics_).mergeFrom(value).buildPartial();
        } else {
          aggregateMetrics_ = value;
        }
        onChanged();
      } else {
        aggregateMetricsBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *

     * The aggregate fields to include in response.
     *

     *
     * .google.ads.googleads.v11.common.KeywordPlanAggregateMetrics aggregate_metrics = 16;
     */
    public Builder clearAggregateMetrics() {
      if (aggregateMetricsBuilder_ == null) {
        aggregateMetrics_ = null;
        onChanged();
      } else {
        aggregateMetrics_ = null;
        aggregateMetricsBuilder_ = null;
      }

      return this;
    }
    /**
     *

     * The aggregate fields to include in response.
     *

     *
     * .google.ads.googleads.v11.common.KeywordPlanAggregateMetrics aggregate_metrics = 16;
     */
    public com.google.ads.googleads.v11.common.KeywordPlanAggregateMetrics.Builder getAggregateMetricsBuilder() {

      onChanged();
      return getAggregateMetricsFieldBuilder().getBuilder();
    }
    /**
     *

     * The aggregate fields to include in response.
     *

     *
     * .google.ads.googleads.v11.common.KeywordPlanAggregateMetrics aggregate_metrics = 16;
     */
    public com.google.ads.googleads.v11.common.KeywordPlanAggregateMetricsOrBuilder getAggregateMetricsOrBuilder() {
      if (aggregateMetricsBuilder_ != null) {
        return aggregateMetricsBuilder_.getMessageOrBuilder();
      } else {
        return aggregateMetrics_ == null ?
            com.google.ads.googleads.v11.common.KeywordPlanAggregateMetrics.getDefaultInstance() : aggregateMetrics_;
      }
    }
    /**
     *

     * The aggregate fields to include in response.
     *

     *
     * .google.ads.googleads.v11.common.KeywordPlanAggregateMetrics aggregate_metrics = 16;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.ads.googleads.v11.common.KeywordPlanAggregateMetrics, com.google.ads.googleads.v11.common.KeywordPlanAggregateMetrics.Builder, com.google.ads.googleads.v11.common.KeywordPlanAggregateMetricsOrBuilder>
        getAggregateMetricsFieldBuilder() {
      if (aggregateMetricsBuilder_ == null) {
        aggregateMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.ads.googleads.v11.common.KeywordPlanAggregateMetrics, com.google.ads.googleads.v11.common.KeywordPlanAggregateMetrics.Builder, com.google.ads.googleads.v11.common.KeywordPlanAggregateMetricsOrBuilder>(
                getAggregateMetrics(),
                getParentForChildren(),
                isClean());
        aggregateMetrics_ = null;
      }
      return aggregateMetricsBuilder_;
    }

    private com.google.ads.googleads.v11.common.HistoricalMetricsOptions historicalMetricsOptions_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.ads.googleads.v11.common.HistoricalMetricsOptions, com.google.ads.googleads.v11.common.HistoricalMetricsOptions.Builder, com.google.ads.googleads.v11.common.HistoricalMetricsOptionsOrBuilder> historicalMetricsOptionsBuilder_;
    /**
     *

     * The options for historical metrics data.
     *

     *
     * .google.ads.googleads.v11.common.HistoricalMetricsOptions historical_metrics_options = 18;
     * @return Whether the historicalMetricsOptions field is set.
     */
    public boolean hasHistoricalMetricsOptions() {
      return historicalMetricsOptionsBuilder_ != null || historicalMetricsOptions_ != null;
    }
    /**
     *

     * The options for historical metrics data.
     *

     *
     * .google.ads.googleads.v11.common.HistoricalMetricsOptions historical_metrics_options = 18;
     * @return The historicalMetricsOptions.
     */
    public com.google.ads.googleads.v11.common.HistoricalMetricsOptions getHistoricalMetricsOptions() {
      if (historicalMetricsOptionsBuilder_ == null) {
        return historicalMetricsOptions_ == null ? com.google.ads.googleads.v11.common.HistoricalMetricsOptions.getDefaultInstance() : historicalMetricsOptions_;
      } else {
        return historicalMetricsOptionsBuilder_.getMessage();
      }
    }
    /**
     *

     * The options for historical metrics data.
     *

     *
     * .google.ads.googleads.v11.common.HistoricalMetricsOptions historical_metrics_options = 18;
     */
    public Builder setHistoricalMetricsOptions(com.google.ads.googleads.v11.common.HistoricalMetricsOptions value) {
      if (historicalMetricsOptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        historicalMetricsOptions_ = value;
        onChanged();
      } else {
        historicalMetricsOptionsBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *

     * The options for historical metrics data.
     *

     *
     * .google.ads.googleads.v11.common.HistoricalMetricsOptions historical_metrics_options = 18;
     */
    public Builder setHistoricalMetricsOptions(
        com.google.ads.googleads.v11.common.HistoricalMetricsOptions.Builder builderForValue) {
      if (historicalMetricsOptionsBuilder_ == null) {
        historicalMetricsOptions_ = builderForValue.build();
        onChanged();
      } else {
        historicalMetricsOptionsBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *

     * The options for historical metrics data.
     *

     *
     * .google.ads.googleads.v11.common.HistoricalMetricsOptions historical_metrics_options = 18;
     */
    public Builder mergeHistoricalMetricsOptions(com.google.ads.googleads.v11.common.HistoricalMetricsOptions value) {
      if (historicalMetricsOptionsBuilder_ == null) {
        if (historicalMetricsOptions_ != null) {
          historicalMetricsOptions_ =
            com.google.ads.googleads.v11.common.HistoricalMetricsOptions.newBuilder(historicalMetricsOptions_).mergeFrom(value).buildPartial();
        } else {
          historicalMetricsOptions_ = value;
        }
        onChanged();
      } else {
        historicalMetricsOptionsBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *

     * The options for historical metrics data.
     *

     *
     * .google.ads.googleads.v11.common.HistoricalMetricsOptions historical_metrics_options = 18;
     */
    public Builder clearHistoricalMetricsOptions() {
      if (historicalMetricsOptionsBuilder_ == null) {
        historicalMetricsOptions_ = null;
        onChanged();
      } else {
        historicalMetricsOptions_ = null;
        historicalMetricsOptionsBuilder_ = null;
      }

      return this;
    }
    /**
     *

     * The options for historical metrics data.
     *

     *
     * .google.ads.googleads.v11.common.HistoricalMetricsOptions historical_metrics_options = 18;
     */
    public com.google.ads.googleads.v11.common.HistoricalMetricsOptions.Builder getHistoricalMetricsOptionsBuilder() {

      onChanged();
      return getHistoricalMetricsOptionsFieldBuilder().getBuilder();
    }
    /**
     *

     * The options for historical metrics data.
     *

     *
     * .google.ads.googleads.v11.common.HistoricalMetricsOptions historical_metrics_options = 18;
     */
    public com.google.ads.googleads.v11.common.HistoricalMetricsOptionsOrBuilder getHistoricalMetricsOptionsOrBuilder() {
      if (historicalMetricsOptionsBuilder_ != null) {
        return historicalMetricsOptionsBuilder_.getMessageOrBuilder();
      } else {
        return historicalMetricsOptions_ == null ?
            com.google.ads.googleads.v11.common.HistoricalMetricsOptions.getDefaultInstance() : historicalMetricsOptions_;
      }
    }
    /**
     *

     * The options for historical metrics data.
     *

     *
     * .google.ads.googleads.v11.common.HistoricalMetricsOptions historical_metrics_options = 18;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.ads.googleads.v11.common.HistoricalMetricsOptions, com.google.ads.googleads.v11.common.HistoricalMetricsOptions.Builder, com.google.ads.googleads.v11.common.HistoricalMetricsOptionsOrBuilder>
        getHistoricalMetricsOptionsFieldBuilder() {
      if (historicalMetricsOptionsBuilder_ == null) {
        historicalMetricsOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.ads.googleads.v11.common.HistoricalMetricsOptions, com.google.ads.googleads.v11.common.HistoricalMetricsOptions.Builder, com.google.ads.googleads.v11.common.HistoricalMetricsOptionsOrBuilder>(
                getHistoricalMetricsOptions(),
                getParentForChildren(),
                isClean());
        historicalMetricsOptions_ = null;
      }
      return historicalMetricsOptionsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.ads.googleads.v11.services.KeywordAndUrlSeed, com.google.ads.googleads.v11.services.KeywordAndUrlSeed.Builder, com.google.ads.googleads.v11.services.KeywordAndUrlSeedOrBuilder> keywordAndUrlSeedBuilder_;
    /**
     *

     * A Keyword and a specific Url to generate ideas from
     * for example, cars, www.example.com/cars.
     *

     *
     * .google.ads.googleads.v11.services.KeywordAndUrlSeed keyword_and_url_seed = 2;
     * @return Whether the keywordAndUrlSeed field is set.
     */
    @java.lang.Override
    public boolean hasKeywordAndUrlSeed() {
      return seedCase_ == 2;
    }
    /**
     *

     * A Keyword and a specific Url to generate ideas from
     * for example, cars, www.example.com/cars.
     *

     *
     * .google.ads.googleads.v11.services.KeywordAndUrlSeed keyword_and_url_seed = 2;
     * @return The keywordAndUrlSeed.
     */
    @java.lang.Override
    public com.google.ads.googleads.v11.services.KeywordAndUrlSeed getKeywordAndUrlSeed() {
      if (keywordAndUrlSeedBuilder_ == null) {
        if (seedCase_ == 2) {
          return (com.google.ads.googleads.v11.services.KeywordAndUrlSeed) seed_;
        }
        return com.google.ads.googleads.v11.services.KeywordAndUrlSeed.getDefaultInstance();
      } else {
        if (seedCase_ == 2) {
          return keywordAndUrlSeedBuilder_.getMessage();
        }
        return com.google.ads.googleads.v11.services.KeywordAndUrlSeed.getDefaultInstance();
      }
    }
    /**
     *

     * A Keyword and a specific Url to generate ideas from
     * for example, cars, www.example.com/cars.
     *

     *
     * .google.ads.googleads.v11.services.KeywordAndUrlSeed keyword_and_url_seed = 2;
     */
    public Builder setKeywordAndUrlSeed(com.google.ads.googleads.v11.services.KeywordAndUrlSeed value) {
      if (keywordAndUrlSeedBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        seed_ = value;
        onChanged();
      } else {
        keywordAndUrlSeedBuilder_.setMessage(value);
      }
      seedCase_ = 2;
      return this;
    }
    /**
     *

     * A Keyword and a specific Url to generate ideas from
     * for example, cars, www.example.com/cars.
     *

     *
     * .google.ads.googleads.v11.services.KeywordAndUrlSeed keyword_and_url_seed = 2;
     */
    public Builder setKeywordAndUrlSeed(
        com.google.ads.googleads.v11.services.KeywordAndUrlSeed.Builder builderForValue) {
      if (keywordAndUrlSeedBuilder_ == null) {
        seed_ = builderForValue.build();
        onChanged();
      } else {
        keywordAndUrlSeedBuilder_.setMessage(builderForValue.build());
      }
      seedCase_ = 2;
      return this;
    }
    /**
     *

     * A Keyword and a specific Url to generate ideas from
     * for example, cars, www.example.com/cars.
     *

     *
     * .google.ads.googleads.v11.services.KeywordAndUrlSeed keyword_and_url_seed = 2;
     */
    public Builder mergeKeywordAndUrlSeed(com.google.ads.googleads.v11.services.KeywordAndUrlSeed value) {
      if (keywordAndUrlSeedBuilder_ == null) {
        if (seedCase_ == 2 &&
            seed_ != com.google.ads.googleads.v11.services.KeywordAndUrlSeed.getDefaultInstance()) {
          seed_ = com.google.ads.googleads.v11.services.KeywordAndUrlSeed.newBuilder((com.google.ads.googleads.v11.services.KeywordAndUrlSeed) seed_)
              .mergeFrom(value).buildPartial();
        } else {
          seed_ = value;
        }
        onChanged();
      } else {
        if (seedCase_ == 2) {
          keywordAndUrlSeedBuilder_.mergeFrom(value);
        } else {
          keywordAndUrlSeedBuilder_.setMessage(value);
        }
      }
      seedCase_ = 2;
      return this;
    }
    /**
     *

     * A Keyword and a specific Url to generate ideas from
     * for example, cars, www.example.com/cars.
     *

     *
     * .google.ads.googleads.v11.services.KeywordAndUrlSeed keyword_and_url_seed = 2;
     */
    public Builder clearKeywordAndUrlSeed() {
      if (keywordAndUrlSeedBuilder_ == null) {
        if (seedCase_ == 2) {
          seedCase_ = 0;
          seed_ = null;
          onChanged();
        }
      } else {
        if (seedCase_ == 2) {
          seedCase_ = 0;
          seed_ = null;
        }
        keywordAndUrlSeedBuilder_.clear();
      }
      return this;
    }
    /**
     *

     * A Keyword and a specific Url to generate ideas from
     * for example, cars, www.example.com/cars.
     *

     *
     * .google.ads.googleads.v11.services.KeywordAndUrlSeed keyword_and_url_seed = 2;
     */
    public com.google.ads.googleads.v11.services.KeywordAndUrlSeed.Builder getKeywordAndUrlSeedBuilder() {
      return getKeywordAndUrlSeedFieldBuilder().getBuilder();
    }
    /**
     *

     * A Keyword and a specific Url to generate ideas from
     * for example, cars, www.example.com/cars.
     *

     *
     * .google.ads.googleads.v11.services.KeywordAndUrlSeed keyword_and_url_seed = 2;
     */
    @java.lang.Override
    public com.google.ads.googleads.v11.services.KeywordAndUrlSeedOrBuilder getKeywordAndUrlSeedOrBuilder() {
      if ((seedCase_ == 2) && (keywordAndUrlSeedBuilder_ != null)) {
        return keywordAndUrlSeedBuilder_.getMessageOrBuilder();
      } else {
        if (seedCase_ == 2) {
          return (com.google.ads.googleads.v11.services.KeywordAndUrlSeed) seed_;
        }
        return com.google.ads.googleads.v11.services.KeywordAndUrlSeed.getDefaultInstance();
      }
    }
    /**
     *

     * A Keyword and a specific Url to generate ideas from
     * for example, cars, www.example.com/cars.
     *

     *
     * .google.ads.googleads.v11.services.KeywordAndUrlSeed keyword_and_url_seed = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.ads.googleads.v11.services.KeywordAndUrlSeed, com.google.ads.googleads.v11.services.KeywordAndUrlSeed.Builder, com.google.ads.googleads.v11.services.KeywordAndUrlSeedOrBuilder>
        getKeywordAndUrlSeedFieldBuilder() {
      if (keywordAndUrlSeedBuilder_ == null) {
        if (!(seedCase_ == 2)) {
          seed_ = com.google.ads.googleads.v11.services.KeywordAndUrlSeed.getDefaultInstance();
        }
        keywordAndUrlSeedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.ads.googleads.v11.services.KeywordAndUrlSeed, com.google.ads.googleads.v11.services.KeywordAndUrlSeed.Builder, com.google.ads.googleads.v11.services.KeywordAndUrlSeedOrBuilder>(
                (com.google.ads.googleads.v11.services.KeywordAndUrlSeed) seed_,
                getParentForChildren(),
                isClean());
        seed_ = null;
      }
      seedCase_ = 2;
      onChanged();;
      return keywordAndUrlSeedBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.ads.googleads.v11.services.KeywordSeed, com.google.ads.googleads.v11.services.KeywordSeed.Builder, com.google.ads.googleads.v11.services.KeywordSeedOrBuilder> keywordSeedBuilder_;
    /**
     *

     * A Keyword or phrase to generate ideas from, for example, cars.
     *

     *
     * .google.ads.googleads.v11.services.KeywordSeed keyword_seed = 3;
     * @return Whether the keywordSeed field is set.
     */
    @java.lang.Override
    public boolean hasKeywordSeed() {
      return seedCase_ == 3;
    }
    /**
     *

     * A Keyword or phrase to generate ideas from, for example, cars.
     *

     *
     * .google.ads.googleads.v11.services.KeywordSeed keyword_seed = 3;
     * @return The keywordSeed.
     */
    @java.lang.Override
    public com.google.ads.googleads.v11.services.KeywordSeed getKeywordSeed() {
      if (keywordSeedBuilder_ == null) {
        if (seedCase_ == 3) {
          return (com.google.ads.googleads.v11.services.KeywordSeed) seed_;
        }
        return com.google.ads.googleads.v11.services.KeywordSeed.getDefaultInstance();
      } else {
        if (seedCase_ == 3) {
          return keywordSeedBuilder_.getMessage();
        }
        return com.google.ads.googleads.v11.services.KeywordSeed.getDefaultInstance();
      }
    }
    /**
     *

     * A Keyword or phrase to generate ideas from, for example, cars.
     *

     *
     * .google.ads.googleads.v11.services.KeywordSeed keyword_seed = 3;
     */
    public Builder setKeywordSeed(com.google.ads.googleads.v11.services.KeywordSeed value) {
      if (keywordSeedBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        seed_ = value;
        onChanged();
      } else {
        keywordSeedBuilder_.setMessage(value);
      }
      seedCase_ = 3;
      return this;
    }
    /**
     *

     * A Keyword or phrase to generate ideas from, for example, cars.
     *

     *
     * .google.ads.googleads.v11.services.KeywordSeed keyword_seed = 3;
     */
    public Builder setKeywordSeed(
        com.google.ads.googleads.v11.services.KeywordSeed.Builder builderForValue) {
      if (keywordSeedBuilder_ == null) {
        seed_ = builderForValue.build();
        onChanged();
      } else {
        keywordSeedBuilder_.setMessage(builderForValue.build());
      }
      seedCase_ = 3;
      return this;
    }
    /**
     *

     * A Keyword or phrase to generate ideas from, for example, cars.
     *

     *
     * .google.ads.googleads.v11.services.KeywordSeed keyword_seed = 3;
     */
    public Builder mergeKeywordSeed(com.google.ads.googleads.v11.services.KeywordSeed value) {
      if (keywordSeedBuilder_ == null) {
        if (seedCase_ == 3 &&
            seed_ != com.google.ads.googleads.v11.services.KeywordSeed.getDefaultInstance()) {
          seed_ = com.google.ads.googleads.v11.services.KeywordSeed.newBuilder((com.google.ads.googleads.v11.services.KeywordSeed) seed_)
              .mergeFrom(value).buildPartial();
        } else {
          seed_ = value;
        }
        onChanged();
      } else {
        if (seedCase_ == 3) {
          keywordSeedBuilder_.mergeFrom(value);
        } else {
          keywordSeedBuilder_.setMessage(value);
        }
      }
      seedCase_ = 3;
      return this;
    }
    /**
     *

     * A Keyword or phrase to generate ideas from, for example, cars.
     *

     *
     * .google.ads.googleads.v11.services.KeywordSeed keyword_seed = 3;
     */
    public Builder clearKeywordSeed() {
      if (keywordSeedBuilder_ == null) {
        if (seedCase_ == 3) {
          seedCase_ = 0;
          seed_ = null;
          onChanged();
        }
      } else {
        if (seedCase_ == 3) {
          seedCase_ = 0;
          seed_ = null;
        }
        keywordSeedBuilder_.clear();
      }
      return this;
    }
    /**
     *

     * A Keyword or phrase to generate ideas from, for example, cars.
     *

     *
     * .google.ads.googleads.v11.services.KeywordSeed keyword_seed = 3;
     */
    public com.google.ads.googleads.v11.services.KeywordSeed.Builder getKeywordSeedBuilder() {
      return getKeywordSeedFieldBuilder().getBuilder();
    }
    /**
     *

     * A Keyword or phrase to generate ideas from, for example, cars.
     *

     *
     * .google.ads.googleads.v11.services.KeywordSeed keyword_seed = 3;
     */
    @java.lang.Override
    public com.google.ads.googleads.v11.services.KeywordSeedOrBuilder getKeywordSeedOrBuilder() {
      if ((seedCase_ == 3) && (keywordSeedBuilder_ != null)) {
        return keywordSeedBuilder_.getMessageOrBuilder();
      } else {
        if (seedCase_ == 3) {
          return (com.google.ads.googleads.v11.services.KeywordSeed) seed_;
        }
        return com.google.ads.googleads.v11.services.KeywordSeed.getDefaultInstance();
      }
    }
    /**
     *

     * A Keyword or phrase to generate ideas from, for example, cars.
     *

     *
     * .google.ads.googleads.v11.services.KeywordSeed keyword_seed = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.ads.googleads.v11.services.KeywordSeed, com.google.ads.googleads.v11.services.KeywordSeed.Builder, com.google.ads.googleads.v11.services.KeywordSeedOrBuilder>
        getKeywordSeedFieldBuilder() {
      if (keywordSeedBuilder_ == null) {
        if (!(seedCase_ == 3)) {
          seed_ = com.google.ads.googleads.v11.services.KeywordSeed.getDefaultInstance();
        }
        keywordSeedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.ads.googleads.v11.services.KeywordSeed, com.google.ads.googleads.v11.services.KeywordSeed.Builder, com.google.ads.googleads.v11.services.KeywordSeedOrBuilder>(
                (com.google.ads.googleads.v11.services.KeywordSeed) seed_,
                getParentForChildren(),
                isClean());
        seed_ = null;
      }
      seedCase_ = 3;
      onChanged();;
      return keywordSeedBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.ads.googleads.v11.services.UrlSeed, com.google.ads.googleads.v11.services.UrlSeed.Builder, com.google.ads.googleads.v11.services.UrlSeedOrBuilder> urlSeedBuilder_;
    /**
     *

     * A specific url to generate ideas from, for example, www.example.com/cars.
     *

     *
     * .google.ads.googleads.v11.services.UrlSeed url_seed = 5;
     * @return Whether the urlSeed field is set.
     */
    @java.lang.Override
    public boolean hasUrlSeed() {
      return seedCase_ == 5;
    }
    /**
     *

     * A specific url to generate ideas from, for example, www.example.com/cars.
     *

     *
     * .google.ads.googleads.v11.services.UrlSeed url_seed = 5;
     * @return The urlSeed.
     */
    @java.lang.Override
    public com.google.ads.googleads.v11.services.UrlSeed getUrlSeed() {
      if (urlSeedBuilder_ == null) {
        if (seedCase_ == 5) {
          return (com.google.ads.googleads.v11.services.UrlSeed) seed_;
        }
        return com.google.ads.googleads.v11.services.UrlSeed.getDefaultInstance();
      } else {
        if (seedCase_ == 5) {
          return urlSeedBuilder_.getMessage();
        }
        return com.google.ads.googleads.v11.services.UrlSeed.getDefaultInstance();
      }
    }
    /**
     *

     * A specific url to generate ideas from, for example, www.example.com/cars.
     *

     *
     * .google.ads.googleads.v11.services.UrlSeed url_seed = 5;
     */
    public Builder setUrlSeed(com.google.ads.googleads.v11.services.UrlSeed value) {
      if (urlSeedBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        seed_ = value;
        onChanged();
      } else {
        urlSeedBuilder_.setMessage(value);
      }
      seedCase_ = 5;
      return this;
    }
    /**
     *

     * A specific url to generate ideas from, for example, www.example.com/cars.
     *

     *
     * .google.ads.googleads.v11.services.UrlSeed url_seed = 5;
     */
    public Builder setUrlSeed(
        com.google.ads.googleads.v11.services.UrlSeed.Builder builderForValue) {
      if (urlSeedBuilder_ == null) {
        seed_ = builderForValue.build();
        onChanged();
      } else {
        urlSeedBuilder_.setMessage(builderForValue.build());
      }
      seedCase_ = 5;
      return this;
    }
    /**
     *

     * A specific url to generate ideas from, for example, www.example.com/cars.
     *

     *
     * .google.ads.googleads.v11.services.UrlSeed url_seed = 5;
     */
    public Builder mergeUrlSeed(com.google.ads.googleads.v11.services.UrlSeed value) {
      if (urlSeedBuilder_ == null) {
        if (seedCase_ == 5 &&
            seed_ != com.google.ads.googleads.v11.services.UrlSeed.getDefaultInstance()) {
          seed_ = com.google.ads.googleads.v11.services.UrlSeed.newBuilder((com.google.ads.googleads.v11.services.UrlSeed) seed_)
              .mergeFrom(value).buildPartial();
        } else {
          seed_ = value;
        }
        onChanged();
      } else {
        if (seedCase_ == 5) {
          urlSeedBuilder_.mergeFrom(value);
        } else {
          urlSeedBuilder_.setMessage(value);
        }
      }
      seedCase_ = 5;
      return this;
    }
    /**
     *

     * A specific url to generate ideas from, for example, www.example.com/cars.
     *

     *
     * .google.ads.googleads.v11.services.UrlSeed url_seed = 5;
     */
    public Builder clearUrlSeed() {
      if (urlSeedBuilder_ == null) {
        if (seedCase_ == 5) {
          seedCase_ = 0;
          seed_ = null;
          onChanged();
        }
      } else {
        if (seedCase_ == 5) {
          seedCase_ = 0;
          seed_ = null;
        }
        urlSeedBuilder_.clear();
      }
      return this;
    }
    /**
     *

     * A specific url to generate ideas from, for example, www.example.com/cars.
     *

     *
     * .google.ads.googleads.v11.services.UrlSeed url_seed = 5;
     */
    public com.google.ads.googleads.v11.services.UrlSeed.Builder getUrlSeedBuilder() {
      return getUrlSeedFieldBuilder().getBuilder();
    }
    /**
     *

     * A specific url to generate ideas from, for example, www.example.com/cars.
     *

     *
     * .google.ads.googleads.v11.services.UrlSeed url_seed = 5;
     */
    @java.lang.Override
    public com.google.ads.googleads.v11.services.UrlSeedOrBuilder getUrlSeedOrBuilder() {
      if ((seedCase_ == 5) && (urlSeedBuilder_ != null)) {
        return urlSeedBuilder_.getMessageOrBuilder();
      } else {
        if (seedCase_ == 5) {
          return (com.google.ads.googleads.v11.services.UrlSeed) seed_;
        }
        return com.google.ads.googleads.v11.services.UrlSeed.getDefaultInstance();
      }
    }
    /**
     *

     * A specific url to generate ideas from, for example, www.example.com/cars.
     *

     *
     * .google.ads.googleads.v11.services.UrlSeed url_seed = 5;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.ads.googleads.v11.services.UrlSeed, com.google.ads.googleads.v11.services.UrlSeed.Builder, com.google.ads.googleads.v11.services.UrlSeedOrBuilder>
        getUrlSeedFieldBuilder() {
      if (urlSeedBuilder_ == null) {
        if (!(seedCase_ == 5)) {
          seed_ = com.google.ads.googleads.v11.services.UrlSeed.getDefaultInstance();
        }
        urlSeedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.ads.googleads.v11.services.UrlSeed, com.google.ads.googleads.v11.services.UrlSeed.Builder, com.google.ads.googleads.v11.services.UrlSeedOrBuilder>(
                (com.google.ads.googleads.v11.services.UrlSeed) seed_,
                getParentForChildren(),
                isClean());
        seed_ = null;
      }
      seedCase_ = 5;
      onChanged();;
      return urlSeedBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.ads.googleads.v11.services.SiteSeed, com.google.ads.googleads.v11.services.SiteSeed.Builder, com.google.ads.googleads.v11.services.SiteSeedOrBuilder> siteSeedBuilder_;
    /**
     *

     * The site to generate ideas from, for example, www.example.com.
     *

     *
     * .google.ads.googleads.v11.services.SiteSeed site_seed = 11;
     * @return Whether the siteSeed field is set.
     */
    @java.lang.Override
    public boolean hasSiteSeed() {
      return seedCase_ == 11;
    }
    /**
     *

     * The site to generate ideas from, for example, www.example.com.
     *

     *
     * .google.ads.googleads.v11.services.SiteSeed site_seed = 11;
     * @return The siteSeed.
     */
    @java.lang.Override
    public com.google.ads.googleads.v11.services.SiteSeed getSiteSeed() {
      if (siteSeedBuilder_ == null) {
        if (seedCase_ == 11) {
          return (com.google.ads.googleads.v11.services.SiteSeed) seed_;
        }
        return com.google.ads.googleads.v11.services.SiteSeed.getDefaultInstance();
      } else {
        if (seedCase_ == 11) {
          return siteSeedBuilder_.getMessage();
        }
        return com.google.ads.googleads.v11.services.SiteSeed.getDefaultInstance();
      }
    }
    /**
     *

     * The site to generate ideas from, for example, www.example.com.
     *

     *
     * .google.ads.googleads.v11.services.SiteSeed site_seed = 11;
     */
    public Builder setSiteSeed(com.google.ads.googleads.v11.services.SiteSeed value) {
      if (siteSeedBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        seed_ = value;
        onChanged();
      } else {
        siteSeedBuilder_.setMessage(value);
      }
      seedCase_ = 11;
      return this;
    }
    /**
     *

     * The site to generate ideas from, for example, www.example.com.
     *

     *
     * .google.ads.googleads.v11.services.SiteSeed site_seed = 11;
     */
    public Builder setSiteSeed(
        com.google.ads.googleads.v11.services.SiteSeed.Builder builderForValue) {
      if (siteSeedBuilder_ == null) {
        seed_ = builderForValue.build();
        onChanged();
      } else {
        siteSeedBuilder_.setMessage(builderForValue.build());
      }
      seedCase_ = 11;
      return this;
    }
    /**
     *

     * The site to generate ideas from, for example, www.example.com.
     *

     *
     * .google.ads.googleads.v11.services.SiteSeed site_seed = 11;
     */
    public Builder mergeSiteSeed(com.google.ads.googleads.v11.services.SiteSeed value) {
      if (siteSeedBuilder_ == null) {
        if (seedCase_ == 11 &&
            seed_ != com.google.ads.googleads.v11.services.SiteSeed.getDefaultInstance()) {
          seed_ = com.google.ads.googleads.v11.services.SiteSeed.newBuilder((com.google.ads.googleads.v11.services.SiteSeed) seed_)
              .mergeFrom(value).buildPartial();
        } else {
          seed_ = value;
        }
        onChanged();
      } else {
        if (seedCase_ == 11) {
          siteSeedBuilder_.mergeFrom(value);
        } else {
          siteSeedBuilder_.setMessage(value);
        }
      }
      seedCase_ = 11;
      return this;
    }
    /**
     *

     * The site to generate ideas from, for example, www.example.com.
     *

     *
     * .google.ads.googleads.v11.services.SiteSeed site_seed = 11;
     */
    public Builder clearSiteSeed() {
      if (siteSeedBuilder_ == null) {
        if (seedCase_ == 11) {
          seedCase_ = 0;
          seed_ = null;
          onChanged();
        }
      } else {
        if (seedCase_ == 11) {
          seedCase_ = 0;
          seed_ = null;
        }
        siteSeedBuilder_.clear();
      }
      return this;
    }
    /**
     *

     * The site to generate ideas from, for example, www.example.com.
     *

     *
     * .google.ads.googleads.v11.services.SiteSeed site_seed = 11;
     */
    public com.google.ads.googleads.v11.services.SiteSeed.Builder getSiteSeedBuilder() {
      return getSiteSeedFieldBuilder().getBuilder();
    }
    /**
     *

     * The site to generate ideas from, for example, www.example.com.
     *

     *
     * .google.ads.googleads.v11.services.SiteSeed site_seed = 11;
     */
    @java.lang.Override
    public com.google.ads.googleads.v11.services.SiteSeedOrBuilder getSiteSeedOrBuilder() {
      if ((seedCase_ == 11) && (siteSeedBuilder_ != null)) {
        return siteSeedBuilder_.getMessageOrBuilder();
      } else {
        if (seedCase_ == 11) {
          return (com.google.ads.googleads.v11.services.SiteSeed) seed_;
        }
        return com.google.ads.googleads.v11.services.SiteSeed.getDefaultInstance();
      }
    }
    /**
     *

     * The site to generate ideas from, for example, www.example.com.
     *

     *
     * .google.ads.googleads.v11.services.SiteSeed site_seed = 11;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.ads.googleads.v11.services.SiteSeed, com.google.ads.googleads.v11.services.SiteSeed.Builder, com.google.ads.googleads.v11.services.SiteSeedOrBuilder>
        getSiteSeedFieldBuilder() {
      if (siteSeedBuilder_ == null) {
        if (!(seedCase_ == 11)) {
          seed_ = com.google.ads.googleads.v11.services.SiteSeed.getDefaultInstance();
        }
        siteSeedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.ads.googleads.v11.services.SiteSeed, com.google.ads.googleads.v11.services.SiteSeed.Builder, com.google.ads.googleads.v11.services.SiteSeedOrBuilder>(
                (com.google.ads.googleads.v11.services.SiteSeed) seed_,
                getParentForChildren(),
                isClean());
        seed_ = null;
      }
      seedCase_ = 11;
      onChanged();;
      return siteSeedBuilder_;
    }
    @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.v11.services.GenerateKeywordIdeasRequest)
  }

  // @@protoc_insertion_point(class_scope:google.ads.googleads.v11.services.GenerateKeywordIdeasRequest)
  private static final com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest();
  }

  public static com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<GenerateKeywordIdeasRequest>
      PARSER = new com.google.protobuf.AbstractParser<GenerateKeywordIdeasRequest>() {
    @java.lang.Override
    public GenerateKeywordIdeasRequest 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<GenerateKeywordIdeasRequest> parser() {
    return PARSER;
  }

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

  @java.lang.Override
  public com.google.ads.googleads.v11.services.GenerateKeywordIdeasRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}