// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v13/services/audience_insights_service.proto

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

/**
 * <pre>
 * Request message for
 * [AudienceInsightsService.ListAudienceInsightsAttributes][google.ads.googleads.v13.services.AudienceInsightsService.ListAudienceInsightsAttributes].
 * </pre>
 *
 * Protobuf type {@code google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest}
 */
public final class ListAudienceInsightsAttributesRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest)
    ListAudienceInsightsAttributesRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ListAudienceInsightsAttributesRequest.newBuilder() to construct.
  private ListAudienceInsightsAttributesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ListAudienceInsightsAttributesRequest() {
    customerId_ = "";
    dimensions_ = java.util.Collections.emptyList();
    queryText_ = "";
    customerInsightsGroup_ = "";
    locationCountryFilters_ = java.util.Collections.emptyList();
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.google.ads.googleads.v13.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v13_services_ListAudienceInsightsAttributesRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.ads.googleads.v13.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v13_services_ListAudienceInsightsAttributesRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest.class, com.google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest.Builder.class);
  }

  public static final int CUSTOMER_ID_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object customerId_ = "";
  /**
   * <pre>
   * Required. The ID of the customer.
   * </pre>
   *
   * <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
   * @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;
    }
  }
  /**
   * <pre>
   * Required. The ID of the customer.
   * </pre>
   *
   * <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
   * @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 DIMENSIONS_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  private java.util.List<java.lang.Integer> dimensions_;
  private static final com.google.protobuf.Internal.ListAdapter.Converter<
      java.lang.Integer, com.google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension> dimensions_converter_ =
          new com.google.protobuf.Internal.ListAdapter.Converter<
              java.lang.Integer, com.google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension>() {
            public com.google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension convert(java.lang.Integer from) {
              com.google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension result = com.google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension.forNumber(from);
              return result == null ? com.google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension.UNRECOGNIZED : result;
            }
          };
  /**
   * <pre>
   * Required. The types of attributes to be returned.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 2 [(.google.api.field_behavior) = REQUIRED];</code>
   * @return A list containing the dimensions.
   */
  @java.lang.Override
  public java.util.List<com.google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension> getDimensionsList() {
    return new com.google.protobuf.Internal.ListAdapter<
        java.lang.Integer, com.google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension>(dimensions_, dimensions_converter_);
  }
  /**
   * <pre>
   * Required. The types of attributes to be returned.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 2 [(.google.api.field_behavior) = REQUIRED];</code>
   * @return The count of dimensions.
   */
  @java.lang.Override
  public int getDimensionsCount() {
    return dimensions_.size();
  }
  /**
   * <pre>
   * Required. The types of attributes to be returned.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 2 [(.google.api.field_behavior) = REQUIRED];</code>
   * @param index The index of the element to return.
   * @return The dimensions at the given index.
   */
  @java.lang.Override
  public com.google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension getDimensions(int index) {
    return dimensions_converter_.convert(dimensions_.get(index));
  }
  /**
   * <pre>
   * Required. The types of attributes to be returned.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 2 [(.google.api.field_behavior) = REQUIRED];</code>
   * @return A list containing the enum numeric values on the wire for dimensions.
   */
  @java.lang.Override
  public java.util.List<java.lang.Integer>
  getDimensionsValueList() {
    return dimensions_;
  }
  /**
   * <pre>
   * Required. The types of attributes to be returned.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 2 [(.google.api.field_behavior) = REQUIRED];</code>
   * @param index The index of the value to return.
   * @return The enum numeric value on the wire of dimensions at the given index.
   */
  @java.lang.Override
  public int getDimensionsValue(int index) {
    return dimensions_.get(index);
  }
  private int dimensionsMemoizedSerializedSize;

  public static final int QUERY_TEXT_FIELD_NUMBER = 3;
  @SuppressWarnings("serial")
  private volatile java.lang.Object queryText_ = "";
  /**
   * <pre>
   * Required. A free text query.  If the requested dimensions include
   * Attributes CATEGORY or KNOWLEDGE_GRAPH, then the attributes returned for
   * those dimensions will match or be related to this string.  For other
   * dimensions, this field is ignored and all available attributes are
   * returned.
   * </pre>
   *
   * <code>string query_text = 3 [(.google.api.field_behavior) = REQUIRED];</code>
   * @return The queryText.
   */
  @java.lang.Override
  public java.lang.String getQueryText() {
    java.lang.Object ref = queryText_;
    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();
      queryText_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * Required. A free text query.  If the requested dimensions include
   * Attributes CATEGORY or KNOWLEDGE_GRAPH, then the attributes returned for
   * those dimensions will match or be related to this string.  For other
   * dimensions, this field is ignored and all available attributes are
   * returned.
   * </pre>
   *
   * <code>string query_text = 3 [(.google.api.field_behavior) = REQUIRED];</code>
   * @return The bytes for queryText.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getQueryTextBytes() {
    java.lang.Object ref = queryText_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      queryText_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CUSTOMER_INSIGHTS_GROUP_FIELD_NUMBER = 4;
  @SuppressWarnings("serial")
  private volatile java.lang.Object customerInsightsGroup_ = "";
  /**
   * <pre>
   * The name of the customer being planned for.  This is a user-defined value.
   * </pre>
   *
   * <code>string customer_insights_group = 4;</code>
   * @return The customerInsightsGroup.
   */
  @java.lang.Override
  public java.lang.String getCustomerInsightsGroup() {
    java.lang.Object ref = customerInsightsGroup_;
    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();
      customerInsightsGroup_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * The name of the customer being planned for.  This is a user-defined value.
   * </pre>
   *
   * <code>string customer_insights_group = 4;</code>
   * @return The bytes for customerInsightsGroup.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCustomerInsightsGroupBytes() {
    java.lang.Object ref = customerInsightsGroup_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      customerInsightsGroup_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int LOCATION_COUNTRY_FILTERS_FIELD_NUMBER = 5;
  @SuppressWarnings("serial")
  private java.util.List<com.google.ads.googleads.v13.common.LocationInfo> locationCountryFilters_;
  /**
   * <pre>
   * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
   * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
   * will be located in these countries. If this field is absent, then location
   * attributes are not filtered by country. Setting this field when
   * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.ads.googleads.v13.common.LocationInfo> getLocationCountryFiltersList() {
    return locationCountryFilters_;
  }
  /**
   * <pre>
   * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
   * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
   * will be located in these countries. If this field is absent, then location
   * attributes are not filtered by country. Setting this field when
   * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.ads.googleads.v13.common.LocationInfoOrBuilder> 
      getLocationCountryFiltersOrBuilderList() {
    return locationCountryFilters_;
  }
  /**
   * <pre>
   * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
   * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
   * will be located in these countries. If this field is absent, then location
   * attributes are not filtered by country. Setting this field when
   * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
   */
  @java.lang.Override
  public int getLocationCountryFiltersCount() {
    return locationCountryFilters_.size();
  }
  /**
   * <pre>
   * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
   * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
   * will be located in these countries. If this field is absent, then location
   * attributes are not filtered by country. Setting this field when
   * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
   */
  @java.lang.Override
  public com.google.ads.googleads.v13.common.LocationInfo getLocationCountryFilters(int index) {
    return locationCountryFilters_.get(index);
  }
  /**
   * <pre>
   * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
   * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
   * will be located in these countries. If this field is absent, then location
   * attributes are not filtered by country. Setting this field when
   * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
   * </pre>
   *
   * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
   */
  @java.lang.Override
  public com.google.ads.googleads.v13.common.LocationInfoOrBuilder getLocationCountryFiltersOrBuilder(
      int index) {
    return locationCountryFilters_.get(index);
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    getSerializedSize();
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, customerId_);
    }
    if (getDimensionsList().size() > 0) {
      output.writeUInt32NoTag(18);
      output.writeUInt32NoTag(dimensionsMemoizedSerializedSize);
    }
    for (int i = 0; i < dimensions_.size(); i++) {
      output.writeEnumNoTag(dimensions_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryText_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, queryText_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerInsightsGroup_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, customerInsightsGroup_);
    }
    for (int i = 0; i < locationCountryFilters_.size(); i++) {
      output.writeMessage(5, locationCountryFilters_.get(i));
    }
    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_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < dimensions_.size(); i++) {
        dataSize += com.google.protobuf.CodedOutputStream
          .computeEnumSizeNoTag(dimensions_.get(i));
      }
      size += dataSize;
      if (!getDimensionsList().isEmpty()) {  size += 1;
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32SizeNoTag(dataSize);
      }dimensionsMemoizedSerializedSize = dataSize;
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryText_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, queryText_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerInsightsGroup_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, customerInsightsGroup_);
    }
    for (int i = 0; i < locationCountryFilters_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, locationCountryFilters_.get(i));
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest)) {
      return super.equals(obj);
    }
    com.google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest other = (com.google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest) obj;

    if (!getCustomerId()
        .equals(other.getCustomerId())) return false;
    if (!dimensions_.equals(other.dimensions_)) return false;
    if (!getQueryText()
        .equals(other.getQueryText())) return false;
    if (!getCustomerInsightsGroup()
        .equals(other.getCustomerInsightsGroup())) return false;
    if (!getLocationCountryFiltersList()
        .equals(other.getLocationCountryFiltersList())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + CUSTOMER_ID_FIELD_NUMBER;
    hash = (53 * hash) + getCustomerId().hashCode();
    if (getDimensionsCount() > 0) {
      hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER;
      hash = (53 * hash) + dimensions_.hashCode();
    }
    hash = (37 * hash) + QUERY_TEXT_FIELD_NUMBER;
    hash = (53 * hash) + getQueryText().hashCode();
    hash = (37 * hash) + CUSTOMER_INSIGHTS_GROUP_FIELD_NUMBER;
    hash = (53 * hash) + getCustomerInsightsGroup().hashCode();
    if (getLocationCountryFiltersCount() > 0) {
      hash = (37 * hash) + LOCATION_COUNTRY_FILTERS_FIELD_NUMBER;
      hash = (53 * hash) + getLocationCountryFiltersList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public static com.google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest 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.v13.services.ListAudienceInsightsAttributesRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest 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.v13.services.ListAudienceInsightsAttributesRequest prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   * Request message for
   * [AudienceInsightsService.ListAudienceInsightsAttributes][google.ads.googleads.v13.services.AudienceInsightsService.ListAudienceInsightsAttributes].
   * </pre>
   *
   * Protobuf type {@code google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest)
      com.google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.ads.googleads.v13.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v13_services_ListAudienceInsightsAttributesRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.ads.googleads.v13.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v13_services_ListAudienceInsightsAttributesRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest.class, com.google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest.Builder.class);
    }

    // Construct using com.google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest.newBuilder()
    private Builder() {

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      customerId_ = "";
      dimensions_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000002);
      queryText_ = "";
      customerInsightsGroup_ = "";
      if (locationCountryFiltersBuilder_ == null) {
        locationCountryFilters_ = java.util.Collections.emptyList();
      } else {
        locationCountryFilters_ = null;
        locationCountryFiltersBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000010);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.google.ads.googleads.v13.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v13_services_ListAudienceInsightsAttributesRequest_descriptor;
    }

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

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

    @java.lang.Override
    public com.google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest buildPartial() {
      com.google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest result = new com.google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(com.google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest result) {
      if (((bitField0_ & 0x00000002) != 0)) {
        dimensions_ = java.util.Collections.unmodifiableList(dimensions_);
        bitField0_ = (bitField0_ & ~0x00000002);
      }
      result.dimensions_ = dimensions_;
      if (locationCountryFiltersBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0)) {
          locationCountryFilters_ = java.util.Collections.unmodifiableList(locationCountryFilters_);
          bitField0_ = (bitField0_ & ~0x00000010);
        }
        result.locationCountryFilters_ = locationCountryFilters_;
      } else {
        result.locationCountryFilters_ = locationCountryFiltersBuilder_.build();
      }
    }

    private void buildPartial0(com.google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.customerId_ = customerId_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.queryText_ = queryText_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.customerInsightsGroup_ = customerInsightsGroup_;
      }
    }

    @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.v13.services.ListAudienceInsightsAttributesRequest) {
        return mergeFrom((com.google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest other) {
      if (other == com.google.ads.googleads.v13.services.ListAudienceInsightsAttributesRequest.getDefaultInstance()) return this;
      if (!other.getCustomerId().isEmpty()) {
        customerId_ = other.customerId_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.dimensions_.isEmpty()) {
        if (dimensions_.isEmpty()) {
          dimensions_ = other.dimensions_;
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          ensureDimensionsIsMutable();
          dimensions_.addAll(other.dimensions_);
        }
        onChanged();
      }
      if (!other.getQueryText().isEmpty()) {
        queryText_ = other.queryText_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (!other.getCustomerInsightsGroup().isEmpty()) {
        customerInsightsGroup_ = other.customerInsightsGroup_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (locationCountryFiltersBuilder_ == null) {
        if (!other.locationCountryFilters_.isEmpty()) {
          if (locationCountryFilters_.isEmpty()) {
            locationCountryFilters_ = other.locationCountryFilters_;
            bitField0_ = (bitField0_ & ~0x00000010);
          } else {
            ensureLocationCountryFiltersIsMutable();
            locationCountryFilters_.addAll(other.locationCountryFilters_);
          }
          onChanged();
        }
      } else {
        if (!other.locationCountryFilters_.isEmpty()) {
          if (locationCountryFiltersBuilder_.isEmpty()) {
            locationCountryFiltersBuilder_.dispose();
            locationCountryFiltersBuilder_ = null;
            locationCountryFilters_ = other.locationCountryFilters_;
            bitField0_ = (bitField0_ & ~0x00000010);
            locationCountryFiltersBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getLocationCountryFiltersFieldBuilder() : null;
          } else {
            locationCountryFiltersBuilder_.addAllMessages(other.locationCountryFilters_);
          }
        }
      }
      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();
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 16: {
              int tmpRaw = input.readEnum();
              ensureDimensionsIsMutable();
              dimensions_.add(tmpRaw);
              break;
            } // case 16
            case 18: {
              int length = input.readRawVarint32();
              int oldLimit = input.pushLimit(length);
              while(input.getBytesUntilLimit() > 0) {
                int tmpRaw = input.readEnum();
                ensureDimensionsIsMutable();
                dimensions_.add(tmpRaw);
              }
              input.popLimit(oldLimit);
              break;
            } // case 18
            case 26: {
              queryText_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 34: {
              customerInsightsGroup_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000008;
              break;
            } // case 34
            case 42: {
              com.google.ads.googleads.v13.common.LocationInfo m =
                  input.readMessage(
                      com.google.ads.googleads.v13.common.LocationInfo.parser(),
                      extensionRegistry);
              if (locationCountryFiltersBuilder_ == null) {
                ensureLocationCountryFiltersIsMutable();
                locationCountryFilters_.add(m);
              } else {
                locationCountryFiltersBuilder_.addMessage(m);
              }
              break;
            } // case 42
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private java.lang.Object customerId_ = "";
    /**
     * <pre>
     * Required. The ID of the customer.
     * </pre>
     *
     * <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @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;
      }
    }
    /**
     * <pre>
     * Required. The ID of the customer.
     * </pre>
     *
     * <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @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;
      }
    }
    /**
     * <pre>
     * Required. The ID of the customer.
     * </pre>
     *
     * <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @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;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Required. The ID of the customer.
     * </pre>
     *
     * <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return This builder for chaining.
     */
    public Builder clearCustomerId() {
      customerId_ = getDefaultInstance().getCustomerId();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Required. The ID of the customer.
     * </pre>
     *
     * <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @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;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.util.List<java.lang.Integer> dimensions_ =
      java.util.Collections.emptyList();
    private void ensureDimensionsIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        dimensions_ = new java.util.ArrayList<java.lang.Integer>(dimensions_);
        bitField0_ |= 0x00000002;
      }
    }
    /**
     * <pre>
     * Required. The types of attributes to be returned.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return A list containing the dimensions.
     */
    public java.util.List<com.google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension> getDimensionsList() {
      return new com.google.protobuf.Internal.ListAdapter<
          java.lang.Integer, com.google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension>(dimensions_, dimensions_converter_);
    }
    /**
     * <pre>
     * Required. The types of attributes to be returned.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return The count of dimensions.
     */
    public int getDimensionsCount() {
      return dimensions_.size();
    }
    /**
     * <pre>
     * Required. The types of attributes to be returned.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param index The index of the element to return.
     * @return The dimensions at the given index.
     */
    public com.google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension getDimensions(int index) {
      return dimensions_converter_.convert(dimensions_.get(index));
    }
    /**
     * <pre>
     * Required. The types of attributes to be returned.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param index The index to set the value at.
     * @param value The dimensions to set.
     * @return This builder for chaining.
     */
    public Builder setDimensions(
        int index, com.google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureDimensionsIsMutable();
      dimensions_.set(index, value.getNumber());
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Required. The types of attributes to be returned.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param value The dimensions to add.
     * @return This builder for chaining.
     */
    public Builder addDimensions(com.google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureDimensionsIsMutable();
      dimensions_.add(value.getNumber());
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Required. The types of attributes to be returned.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param values The dimensions to add.
     * @return This builder for chaining.
     */
    public Builder addAllDimensions(
        java.lang.Iterable<? extends com.google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension> values) {
      ensureDimensionsIsMutable();
      for (com.google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension value : values) {
        dimensions_.add(value.getNumber());
      }
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Required. The types of attributes to be returned.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return This builder for chaining.
     */
    public Builder clearDimensions() {
      dimensions_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Required. The types of attributes to be returned.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return A list containing the enum numeric values on the wire for dimensions.
     */
    public java.util.List<java.lang.Integer>
    getDimensionsValueList() {
      return java.util.Collections.unmodifiableList(dimensions_);
    }
    /**
     * <pre>
     * Required. The types of attributes to be returned.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param index The index of the value to return.
     * @return The enum numeric value on the wire of dimensions at the given index.
     */
    public int getDimensionsValue(int index) {
      return dimensions_.get(index);
    }
    /**
     * <pre>
     * Required. The types of attributes to be returned.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param index The index to set the value at.
     * @param value The enum numeric value on the wire for dimensions to set.
     * @return This builder for chaining.
     */
    public Builder setDimensionsValue(
        int index, int value) {
      ensureDimensionsIsMutable();
      dimensions_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Required. The types of attributes to be returned.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param value The enum numeric value on the wire for dimensions to add.
     * @return This builder for chaining.
     */
    public Builder addDimensionsValue(int value) {
      ensureDimensionsIsMutable();
      dimensions_.add(value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Required. The types of attributes to be returned.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param values The enum numeric values on the wire for dimensions to add.
     * @return This builder for chaining.
     */
    public Builder addAllDimensionsValue(
        java.lang.Iterable<java.lang.Integer> values) {
      ensureDimensionsIsMutable();
      for (int value : values) {
        dimensions_.add(value);
      }
      onChanged();
      return this;
    }

    private java.lang.Object queryText_ = "";
    /**
     * <pre>
     * Required. A free text query.  If the requested dimensions include
     * Attributes CATEGORY or KNOWLEDGE_GRAPH, then the attributes returned for
     * those dimensions will match or be related to this string.  For other
     * dimensions, this field is ignored and all available attributes are
     * returned.
     * </pre>
     *
     * <code>string query_text = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return The queryText.
     */
    public java.lang.String getQueryText() {
      java.lang.Object ref = queryText_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        queryText_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * Required. A free text query.  If the requested dimensions include
     * Attributes CATEGORY or KNOWLEDGE_GRAPH, then the attributes returned for
     * those dimensions will match or be related to this string.  For other
     * dimensions, this field is ignored and all available attributes are
     * returned.
     * </pre>
     *
     * <code>string query_text = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return The bytes for queryText.
     */
    public com.google.protobuf.ByteString
        getQueryTextBytes() {
      java.lang.Object ref = queryText_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        queryText_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * Required. A free text query.  If the requested dimensions include
     * Attributes CATEGORY or KNOWLEDGE_GRAPH, then the attributes returned for
     * those dimensions will match or be related to this string.  For other
     * dimensions, this field is ignored and all available attributes are
     * returned.
     * </pre>
     *
     * <code>string query_text = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param value The queryText to set.
     * @return This builder for chaining.
     */
    public Builder setQueryText(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      queryText_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Required. A free text query.  If the requested dimensions include
     * Attributes CATEGORY or KNOWLEDGE_GRAPH, then the attributes returned for
     * those dimensions will match or be related to this string.  For other
     * dimensions, this field is ignored and all available attributes are
     * returned.
     * </pre>
     *
     * <code>string query_text = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return This builder for chaining.
     */
    public Builder clearQueryText() {
      queryText_ = getDefaultInstance().getQueryText();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Required. A free text query.  If the requested dimensions include
     * Attributes CATEGORY or KNOWLEDGE_GRAPH, then the attributes returned for
     * those dimensions will match or be related to this string.  For other
     * dimensions, this field is ignored and all available attributes are
     * returned.
     * </pre>
     *
     * <code>string query_text = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param value The bytes for queryText to set.
     * @return This builder for chaining.
     */
    public Builder setQueryTextBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      queryText_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private java.lang.Object customerInsightsGroup_ = "";
    /**
     * <pre>
     * The name of the customer being planned for.  This is a user-defined value.
     * </pre>
     *
     * <code>string customer_insights_group = 4;</code>
     * @return The customerInsightsGroup.
     */
    public java.lang.String getCustomerInsightsGroup() {
      java.lang.Object ref = customerInsightsGroup_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        customerInsightsGroup_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * The name of the customer being planned for.  This is a user-defined value.
     * </pre>
     *
     * <code>string customer_insights_group = 4;</code>
     * @return The bytes for customerInsightsGroup.
     */
    public com.google.protobuf.ByteString
        getCustomerInsightsGroupBytes() {
      java.lang.Object ref = customerInsightsGroup_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        customerInsightsGroup_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * The name of the customer being planned for.  This is a user-defined value.
     * </pre>
     *
     * <code>string customer_insights_group = 4;</code>
     * @param value The customerInsightsGroup to set.
     * @return This builder for chaining.
     */
    public Builder setCustomerInsightsGroup(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      customerInsightsGroup_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The name of the customer being planned for.  This is a user-defined value.
     * </pre>
     *
     * <code>string customer_insights_group = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearCustomerInsightsGroup() {
      customerInsightsGroup_ = getDefaultInstance().getCustomerInsightsGroup();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The name of the customer being planned for.  This is a user-defined value.
     * </pre>
     *
     * <code>string customer_insights_group = 4;</code>
     * @param value The bytes for customerInsightsGroup to set.
     * @return This builder for chaining.
     */
    public Builder setCustomerInsightsGroupBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      customerInsightsGroup_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    private java.util.List<com.google.ads.googleads.v13.common.LocationInfo> locationCountryFilters_ =
      java.util.Collections.emptyList();
    private void ensureLocationCountryFiltersIsMutable() {
      if (!((bitField0_ & 0x00000010) != 0)) {
        locationCountryFilters_ = new java.util.ArrayList<com.google.ads.googleads.v13.common.LocationInfo>(locationCountryFilters_);
        bitField0_ |= 0x00000010;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.google.ads.googleads.v13.common.LocationInfo, com.google.ads.googleads.v13.common.LocationInfo.Builder, com.google.ads.googleads.v13.common.LocationInfoOrBuilder> locationCountryFiltersBuilder_;

    /**
     * <pre>
     * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
     * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
     * will be located in these countries. If this field is absent, then location
     * attributes are not filtered by country. Setting this field when
     * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
     */
    public java.util.List<com.google.ads.googleads.v13.common.LocationInfo> getLocationCountryFiltersList() {
      if (locationCountryFiltersBuilder_ == null) {
        return java.util.Collections.unmodifiableList(locationCountryFilters_);
      } else {
        return locationCountryFiltersBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
     * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
     * will be located in these countries. If this field is absent, then location
     * attributes are not filtered by country. Setting this field when
     * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
     */
    public int getLocationCountryFiltersCount() {
      if (locationCountryFiltersBuilder_ == null) {
        return locationCountryFilters_.size();
      } else {
        return locationCountryFiltersBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
     * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
     * will be located in these countries. If this field is absent, then location
     * attributes are not filtered by country. Setting this field when
     * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
     */
    public com.google.ads.googleads.v13.common.LocationInfo getLocationCountryFilters(int index) {
      if (locationCountryFiltersBuilder_ == null) {
        return locationCountryFilters_.get(index);
      } else {
        return locationCountryFiltersBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
     * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
     * will be located in these countries. If this field is absent, then location
     * attributes are not filtered by country. Setting this field when
     * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
     */
    public Builder setLocationCountryFilters(
        int index, com.google.ads.googleads.v13.common.LocationInfo value) {
      if (locationCountryFiltersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLocationCountryFiltersIsMutable();
        locationCountryFilters_.set(index, value);
        onChanged();
      } else {
        locationCountryFiltersBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
     * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
     * will be located in these countries. If this field is absent, then location
     * attributes are not filtered by country. Setting this field when
     * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
     */
    public Builder setLocationCountryFilters(
        int index, com.google.ads.googleads.v13.common.LocationInfo.Builder builderForValue) {
      if (locationCountryFiltersBuilder_ == null) {
        ensureLocationCountryFiltersIsMutable();
        locationCountryFilters_.set(index, builderForValue.build());
        onChanged();
      } else {
        locationCountryFiltersBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
     * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
     * will be located in these countries. If this field is absent, then location
     * attributes are not filtered by country. Setting this field when
     * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
     */
    public Builder addLocationCountryFilters(com.google.ads.googleads.v13.common.LocationInfo value) {
      if (locationCountryFiltersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLocationCountryFiltersIsMutable();
        locationCountryFilters_.add(value);
        onChanged();
      } else {
        locationCountryFiltersBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
     * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
     * will be located in these countries. If this field is absent, then location
     * attributes are not filtered by country. Setting this field when
     * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
     */
    public Builder addLocationCountryFilters(
        int index, com.google.ads.googleads.v13.common.LocationInfo value) {
      if (locationCountryFiltersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLocationCountryFiltersIsMutable();
        locationCountryFilters_.add(index, value);
        onChanged();
      } else {
        locationCountryFiltersBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
     * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
     * will be located in these countries. If this field is absent, then location
     * attributes are not filtered by country. Setting this field when
     * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
     */
    public Builder addLocationCountryFilters(
        com.google.ads.googleads.v13.common.LocationInfo.Builder builderForValue) {
      if (locationCountryFiltersBuilder_ == null) {
        ensureLocationCountryFiltersIsMutable();
        locationCountryFilters_.add(builderForValue.build());
        onChanged();
      } else {
        locationCountryFiltersBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
     * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
     * will be located in these countries. If this field is absent, then location
     * attributes are not filtered by country. Setting this field when
     * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
     */
    public Builder addLocationCountryFilters(
        int index, com.google.ads.googleads.v13.common.LocationInfo.Builder builderForValue) {
      if (locationCountryFiltersBuilder_ == null) {
        ensureLocationCountryFiltersIsMutable();
        locationCountryFilters_.add(index, builderForValue.build());
        onChanged();
      } else {
        locationCountryFiltersBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
     * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
     * will be located in these countries. If this field is absent, then location
     * attributes are not filtered by country. Setting this field when
     * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
     */
    public Builder addAllLocationCountryFilters(
        java.lang.Iterable<? extends com.google.ads.googleads.v13.common.LocationInfo> values) {
      if (locationCountryFiltersBuilder_ == null) {
        ensureLocationCountryFiltersIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, locationCountryFilters_);
        onChanged();
      } else {
        locationCountryFiltersBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
     * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
     * will be located in these countries. If this field is absent, then location
     * attributes are not filtered by country. Setting this field when
     * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
     */
    public Builder clearLocationCountryFilters() {
      if (locationCountryFiltersBuilder_ == null) {
        locationCountryFilters_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000010);
        onChanged();
      } else {
        locationCountryFiltersBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
     * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
     * will be located in these countries. If this field is absent, then location
     * attributes are not filtered by country. Setting this field when
     * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
     */
    public Builder removeLocationCountryFilters(int index) {
      if (locationCountryFiltersBuilder_ == null) {
        ensureLocationCountryFiltersIsMutable();
        locationCountryFilters_.remove(index);
        onChanged();
      } else {
        locationCountryFiltersBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
     * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
     * will be located in these countries. If this field is absent, then location
     * attributes are not filtered by country. Setting this field when
     * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
     */
    public com.google.ads.googleads.v13.common.LocationInfo.Builder getLocationCountryFiltersBuilder(
        int index) {
      return getLocationCountryFiltersFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
     * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
     * will be located in these countries. If this field is absent, then location
     * attributes are not filtered by country. Setting this field when
     * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
     */
    public com.google.ads.googleads.v13.common.LocationInfoOrBuilder getLocationCountryFiltersOrBuilder(
        int index) {
      if (locationCountryFiltersBuilder_ == null) {
        return locationCountryFilters_.get(index);  } else {
        return locationCountryFiltersBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
     * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
     * will be located in these countries. If this field is absent, then location
     * attributes are not filtered by country. Setting this field when
     * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
     */
    public java.util.List<? extends com.google.ads.googleads.v13.common.LocationInfoOrBuilder> 
         getLocationCountryFiltersOrBuilderList() {
      if (locationCountryFiltersBuilder_ != null) {
        return locationCountryFiltersBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(locationCountryFilters_);
      }
    }
    /**
     * <pre>
     * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
     * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
     * will be located in these countries. If this field is absent, then location
     * attributes are not filtered by country. Setting this field when
     * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
     */
    public com.google.ads.googleads.v13.common.LocationInfo.Builder addLocationCountryFiltersBuilder() {
      return getLocationCountryFiltersFieldBuilder().addBuilder(
          com.google.ads.googleads.v13.common.LocationInfo.getDefaultInstance());
    }
    /**
     * <pre>
     * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
     * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
     * will be located in these countries. If this field is absent, then location
     * attributes are not filtered by country. Setting this field when
     * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
     */
    public com.google.ads.googleads.v13.common.LocationInfo.Builder addLocationCountryFiltersBuilder(
        int index) {
      return getLocationCountryFiltersFieldBuilder().addBuilder(
          index, com.google.ads.googleads.v13.common.LocationInfo.getDefaultInstance());
    }
    /**
     * <pre>
     * If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and
     * this field is present, then the SUB_COUNTRY_LOCATION attributes returned
     * will be located in these countries. If this field is absent, then location
     * attributes are not filtered by country. Setting this field when
     * SUB_COUNTRY_LOCATION attributes are not requested will return an error.
     * </pre>
     *
     * <code>repeated .google.ads.googleads.v13.common.LocationInfo location_country_filters = 5;</code>
     */
    public java.util.List<com.google.ads.googleads.v13.common.LocationInfo.Builder> 
         getLocationCountryFiltersBuilderList() {
      return getLocationCountryFiltersFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.google.ads.googleads.v13.common.LocationInfo, com.google.ads.googleads.v13.common.LocationInfo.Builder, com.google.ads.googleads.v13.common.LocationInfoOrBuilder> 
        getLocationCountryFiltersFieldBuilder() {
      if (locationCountryFiltersBuilder_ == null) {
        locationCountryFiltersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.ads.googleads.v13.common.LocationInfo, com.google.ads.googleads.v13.common.LocationInfo.Builder, com.google.ads.googleads.v13.common.LocationInfoOrBuilder>(
                locationCountryFilters_,
                ((bitField0_ & 0x00000010) != 0),
                getParentForChildren(),
                isClean());
        locationCountryFilters_ = null;
      }
      return locationCountryFiltersBuilder_;
    }
    @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.v13.services.ListAudienceInsightsAttributesRequest)
  }

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

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

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

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

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

}

