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

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

/**
 * <pre>
 * An audience attribute, with metadata about it, returned in response to a
 * search.
 * </pre>
 *
 * Protobuf type {@code google.ads.googleads.v14.services.AudienceInsightsAttributeMetadata}
 */
public final class AudienceInsightsAttributeMetadata extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:google.ads.googleads.v14.services.AudienceInsightsAttributeMetadata)
    AudienceInsightsAttributeMetadataOrBuilder {
private static final long serialVersionUID = 0L;
  // Use AudienceInsightsAttributeMetadata.newBuilder() to construct.
  private AudienceInsightsAttributeMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private AudienceInsightsAttributeMetadata() {
    dimension_ = 0;
    displayName_ = "";
    displayInfo_ = "";
  }

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

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

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

  private int dimensionMetadataCase_ = 0;
  @SuppressWarnings("serial")
  private java.lang.Object dimensionMetadata_;
  public enum DimensionMetadataCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    YOUTUBE_CHANNEL_METADATA(6),
    DYNAMIC_ATTRIBUTE_METADATA(7),
    LOCATION_ATTRIBUTE_METADATA(8),
    DIMENSIONMETADATA_NOT_SET(0);
    private final int value;
    private DimensionMetadataCase(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 DimensionMetadataCase valueOf(int value) {
      return forNumber(value);
    }

    public static DimensionMetadataCase forNumber(int value) {
      switch (value) {
        case 6: return YOUTUBE_CHANNEL_METADATA;
        case 7: return DYNAMIC_ATTRIBUTE_METADATA;
        case 8: return LOCATION_ATTRIBUTE_METADATA;
        case 0: return DIMENSIONMETADATA_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public DimensionMetadataCase
  getDimensionMetadataCase() {
    return DimensionMetadataCase.forNumber(
        dimensionMetadataCase_);
  }

  public static final int DIMENSION_FIELD_NUMBER = 1;
  private int dimension_ = 0;
  /**
   * <pre>
   * The type of the attribute.
   * </pre>
   *
   * <code>.google.ads.googleads.v14.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimension = 1;</code>
   * @return The enum numeric value on the wire for dimension.
   */
  @java.lang.Override public int getDimensionValue() {
    return dimension_;
  }
  /**
   * <pre>
   * The type of the attribute.
   * </pre>
   *
   * <code>.google.ads.googleads.v14.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimension = 1;</code>
   * @return The dimension.
   */
  @java.lang.Override public com.google.ads.googleads.v14.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension getDimension() {
    com.google.ads.googleads.v14.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension result = com.google.ads.googleads.v14.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension.forNumber(dimension_);
    return result == null ? com.google.ads.googleads.v14.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension.UNRECOGNIZED : result;
  }

  public static final int ATTRIBUTE_FIELD_NUMBER = 2;
  private com.google.ads.googleads.v14.services.AudienceInsightsAttribute attribute_;
  /**
   * <pre>
   * The attribute itself.
   * </pre>
   *
   * <code>.google.ads.googleads.v14.services.AudienceInsightsAttribute attribute = 2;</code>
   * @return Whether the attribute field is set.
   */
  @java.lang.Override
  public boolean hasAttribute() {
    return attribute_ != null;
  }
  /**
   * <pre>
   * The attribute itself.
   * </pre>
   *
   * <code>.google.ads.googleads.v14.services.AudienceInsightsAttribute attribute = 2;</code>
   * @return The attribute.
   */
  @java.lang.Override
  public com.google.ads.googleads.v14.services.AudienceInsightsAttribute getAttribute() {
    return attribute_ == null ? com.google.ads.googleads.v14.services.AudienceInsightsAttribute.getDefaultInstance() : attribute_;
  }
  /**
   * <pre>
   * The attribute itself.
   * </pre>
   *
   * <code>.google.ads.googleads.v14.services.AudienceInsightsAttribute attribute = 2;</code>
   */
  @java.lang.Override
  public com.google.ads.googleads.v14.services.AudienceInsightsAttributeOrBuilder getAttributeOrBuilder() {
    return attribute_ == null ? com.google.ads.googleads.v14.services.AudienceInsightsAttribute.getDefaultInstance() : attribute_;
  }

  public static final int DISPLAY_NAME_FIELD_NUMBER = 3;
  @SuppressWarnings("serial")
  private volatile java.lang.Object displayName_ = "";
  /**
   * <pre>
   * The human-readable name of the attribute.
   * </pre>
   *
   * <code>string display_name = 3;</code>
   * @return The displayName.
   */
  @java.lang.Override
  public java.lang.String getDisplayName() {
    java.lang.Object ref = displayName_;
    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();
      displayName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * The human-readable name of the attribute.
   * </pre>
   *
   * <code>string display_name = 3;</code>
   * @return The bytes for displayName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDisplayNameBytes() {
    java.lang.Object ref = displayName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      displayName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SCORE_FIELD_NUMBER = 4;
  private double score_ = 0D;
  /**
   * <pre>
   * A relevance score for this attribute, between 0 and 1.
   * </pre>
   *
   * <code>double score = 4;</code>
   * @return The score.
   */
  @java.lang.Override
  public double getScore() {
    return score_;
  }

  public static final int DISPLAY_INFO_FIELD_NUMBER = 5;
  @SuppressWarnings("serial")
  private volatile java.lang.Object displayInfo_ = "";
  /**
   * <pre>
   * A string that supplements the display_name to identify the attribute.
   * If the dimension is TOPIC, this is a brief description of the
   * Knowledge Graph entity, such as "American singer-songwriter".
   * If the dimension is CATEGORY, this is the complete path to the category in
   * The Product &amp; Service taxonomy, for example
   * "/Apparel/Clothing/Outerwear".
   * </pre>
   *
   * <code>string display_info = 5;</code>
   * @return The displayInfo.
   */
  @java.lang.Override
  public java.lang.String getDisplayInfo() {
    java.lang.Object ref = displayInfo_;
    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();
      displayInfo_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * A string that supplements the display_name to identify the attribute.
   * If the dimension is TOPIC, this is a brief description of the
   * Knowledge Graph entity, such as "American singer-songwriter".
   * If the dimension is CATEGORY, this is the complete path to the category in
   * The Product &amp; Service taxonomy, for example
   * "/Apparel/Clothing/Outerwear".
   * </pre>
   *
   * <code>string display_info = 5;</code>
   * @return The bytes for displayInfo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDisplayInfoBytes() {
    java.lang.Object ref = displayInfo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      displayInfo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int YOUTUBE_CHANNEL_METADATA_FIELD_NUMBER = 6;
  /**
   * <pre>
   * Special metadata for a YouTube channel.
   * </pre>
   *
   * <code>.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 6;</code>
   * @return Whether the youtubeChannelMetadata field is set.
   */
  @java.lang.Override
  public boolean hasYoutubeChannelMetadata() {
    return dimensionMetadataCase_ == 6;
  }
  /**
   * <pre>
   * Special metadata for a YouTube channel.
   * </pre>
   *
   * <code>.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 6;</code>
   * @return The youtubeChannelMetadata.
   */
  @java.lang.Override
  public com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata getYoutubeChannelMetadata() {
    if (dimensionMetadataCase_ == 6) {
       return (com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata) dimensionMetadata_;
    }
    return com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata.getDefaultInstance();
  }
  /**
   * <pre>
   * Special metadata for a YouTube channel.
   * </pre>
   *
   * <code>.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 6;</code>
   */
  @java.lang.Override
  public com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadataOrBuilder getYoutubeChannelMetadataOrBuilder() {
    if (dimensionMetadataCase_ == 6) {
       return (com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata) dimensionMetadata_;
    }
    return com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata.getDefaultInstance();
  }

  public static final int DYNAMIC_ATTRIBUTE_METADATA_FIELD_NUMBER = 7;
  /**
   * <pre>
   * Special metadata for a YouTube Dynamic Lineup.
   * </pre>
   *
   * <code>.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata dynamic_attribute_metadata = 7;</code>
   * @return Whether the dynamicAttributeMetadata field is set.
   */
  @java.lang.Override
  public boolean hasDynamicAttributeMetadata() {
    return dimensionMetadataCase_ == 7;
  }
  /**
   * <pre>
   * Special metadata for a YouTube Dynamic Lineup.
   * </pre>
   *
   * <code>.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata dynamic_attribute_metadata = 7;</code>
   * @return The dynamicAttributeMetadata.
   */
  @java.lang.Override
  public com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata getDynamicAttributeMetadata() {
    if (dimensionMetadataCase_ == 7) {
       return (com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata) dimensionMetadata_;
    }
    return com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata.getDefaultInstance();
  }
  /**
   * <pre>
   * Special metadata for a YouTube Dynamic Lineup.
   * </pre>
   *
   * <code>.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata dynamic_attribute_metadata = 7;</code>
   */
  @java.lang.Override
  public com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadataOrBuilder getDynamicAttributeMetadataOrBuilder() {
    if (dimensionMetadataCase_ == 7) {
       return (com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata) dimensionMetadata_;
    }
    return com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata.getDefaultInstance();
  }

  public static final int LOCATION_ATTRIBUTE_METADATA_FIELD_NUMBER = 8;
  /**
   * <pre>
   * Special metadata for a Location.
   * </pre>
   *
   * <code>.google.ads.googleads.v14.services.LocationAttributeMetadata location_attribute_metadata = 8;</code>
   * @return Whether the locationAttributeMetadata field is set.
   */
  @java.lang.Override
  public boolean hasLocationAttributeMetadata() {
    return dimensionMetadataCase_ == 8;
  }
  /**
   * <pre>
   * Special metadata for a Location.
   * </pre>
   *
   * <code>.google.ads.googleads.v14.services.LocationAttributeMetadata location_attribute_metadata = 8;</code>
   * @return The locationAttributeMetadata.
   */
  @java.lang.Override
  public com.google.ads.googleads.v14.services.LocationAttributeMetadata getLocationAttributeMetadata() {
    if (dimensionMetadataCase_ == 8) {
       return (com.google.ads.googleads.v14.services.LocationAttributeMetadata) dimensionMetadata_;
    }
    return com.google.ads.googleads.v14.services.LocationAttributeMetadata.getDefaultInstance();
  }
  /**
   * <pre>
   * Special metadata for a Location.
   * </pre>
   *
   * <code>.google.ads.googleads.v14.services.LocationAttributeMetadata location_attribute_metadata = 8;</code>
   */
  @java.lang.Override
  public com.google.ads.googleads.v14.services.LocationAttributeMetadataOrBuilder getLocationAttributeMetadataOrBuilder() {
    if (dimensionMetadataCase_ == 8) {
       return (com.google.ads.googleads.v14.services.LocationAttributeMetadata) dimensionMetadata_;
    }
    return com.google.ads.googleads.v14.services.LocationAttributeMetadata.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 {
    if (dimension_ != com.google.ads.googleads.v14.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension.UNSPECIFIED.getNumber()) {
      output.writeEnum(1, dimension_);
    }
    if (attribute_ != null) {
      output.writeMessage(2, getAttribute());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_);
    }
    if (java.lang.Double.doubleToRawLongBits(score_) != 0) {
      output.writeDouble(4, score_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayInfo_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayInfo_);
    }
    if (dimensionMetadataCase_ == 6) {
      output.writeMessage(6, (com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata) dimensionMetadata_);
    }
    if (dimensionMetadataCase_ == 7) {
      output.writeMessage(7, (com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata) dimensionMetadata_);
    }
    if (dimensionMetadataCase_ == 8) {
      output.writeMessage(8, (com.google.ads.googleads.v14.services.LocationAttributeMetadata) dimensionMetadata_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (dimension_ != com.google.ads.googleads.v14.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension.UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(1, dimension_);
    }
    if (attribute_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getAttribute());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_);
    }
    if (java.lang.Double.doubleToRawLongBits(score_) != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(4, score_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayInfo_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayInfo_);
    }
    if (dimensionMetadataCase_ == 6) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, (com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata) dimensionMetadata_);
    }
    if (dimensionMetadataCase_ == 7) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(7, (com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata) dimensionMetadata_);
    }
    if (dimensionMetadataCase_ == 8) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(8, (com.google.ads.googleads.v14.services.LocationAttributeMetadata) dimensionMetadata_);
    }
    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.v14.services.AudienceInsightsAttributeMetadata)) {
      return super.equals(obj);
    }
    com.google.ads.googleads.v14.services.AudienceInsightsAttributeMetadata other = (com.google.ads.googleads.v14.services.AudienceInsightsAttributeMetadata) obj;

    if (dimension_ != other.dimension_) return false;
    if (hasAttribute() != other.hasAttribute()) return false;
    if (hasAttribute()) {
      if (!getAttribute()
          .equals(other.getAttribute())) return false;
    }
    if (!getDisplayName()
        .equals(other.getDisplayName())) return false;
    if (java.lang.Double.doubleToLongBits(getScore())
        != java.lang.Double.doubleToLongBits(
            other.getScore())) return false;
    if (!getDisplayInfo()
        .equals(other.getDisplayInfo())) return false;
    if (!getDimensionMetadataCase().equals(other.getDimensionMetadataCase())) return false;
    switch (dimensionMetadataCase_) {
      case 6:
        if (!getYoutubeChannelMetadata()
            .equals(other.getYoutubeChannelMetadata())) return false;
        break;
      case 7:
        if (!getDynamicAttributeMetadata()
            .equals(other.getDynamicAttributeMetadata())) return false;
        break;
      case 8:
        if (!getLocationAttributeMetadata()
            .equals(other.getLocationAttributeMetadata())) 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) + DIMENSION_FIELD_NUMBER;
    hash = (53 * hash) + dimension_;
    if (hasAttribute()) {
      hash = (37 * hash) + ATTRIBUTE_FIELD_NUMBER;
      hash = (53 * hash) + getAttribute().hashCode();
    }
    hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getDisplayName().hashCode();
    hash = (37 * hash) + SCORE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getScore()));
    hash = (37 * hash) + DISPLAY_INFO_FIELD_NUMBER;
    hash = (53 * hash) + getDisplayInfo().hashCode();
    switch (dimensionMetadataCase_) {
      case 6:
        hash = (37 * hash) + YOUTUBE_CHANNEL_METADATA_FIELD_NUMBER;
        hash = (53 * hash) + getYoutubeChannelMetadata().hashCode();
        break;
      case 7:
        hash = (37 * hash) + DYNAMIC_ATTRIBUTE_METADATA_FIELD_NUMBER;
        hash = (53 * hash) + getDynamicAttributeMetadata().hashCode();
        break;
      case 8:
        hash = (37 * hash) + LOCATION_ATTRIBUTE_METADATA_FIELD_NUMBER;
        hash = (53 * hash) + getLocationAttributeMetadata().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public static com.google.ads.googleads.v14.services.AudienceInsightsAttributeMetadata 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.v14.services.AudienceInsightsAttributeMetadata parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.ads.googleads.v14.services.AudienceInsightsAttributeMetadata 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.v14.services.AudienceInsightsAttributeMetadata 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>
   * An audience attribute, with metadata about it, returned in response to a
   * search.
   * </pre>
   *
   * Protobuf type {@code google.ads.googleads.v14.services.AudienceInsightsAttributeMetadata}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:google.ads.googleads.v14.services.AudienceInsightsAttributeMetadata)
      com.google.ads.googleads.v14.services.AudienceInsightsAttributeMetadataOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.ads.googleads.v14.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v14_services_AudienceInsightsAttributeMetadata_descriptor;
    }

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

    // Construct using com.google.ads.googleads.v14.services.AudienceInsightsAttributeMetadata.newBuilder()
    private Builder() {

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      dimension_ = 0;
      attribute_ = null;
      if (attributeBuilder_ != null) {
        attributeBuilder_.dispose();
        attributeBuilder_ = null;
      }
      displayName_ = "";
      score_ = 0D;
      displayInfo_ = "";
      if (youtubeChannelMetadataBuilder_ != null) {
        youtubeChannelMetadataBuilder_.clear();
      }
      if (dynamicAttributeMetadataBuilder_ != null) {
        dynamicAttributeMetadataBuilder_.clear();
      }
      if (locationAttributeMetadataBuilder_ != null) {
        locationAttributeMetadataBuilder_.clear();
      }
      dimensionMetadataCase_ = 0;
      dimensionMetadata_ = null;
      return this;
    }

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

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

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

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

    private void buildPartial0(com.google.ads.googleads.v14.services.AudienceInsightsAttributeMetadata result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.dimension_ = dimension_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.attribute_ = attributeBuilder_ == null
            ? attribute_
            : attributeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.displayName_ = displayName_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.score_ = score_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.displayInfo_ = displayInfo_;
      }
    }

    private void buildPartialOneofs(com.google.ads.googleads.v14.services.AudienceInsightsAttributeMetadata result) {
      result.dimensionMetadataCase_ = dimensionMetadataCase_;
      result.dimensionMetadata_ = this.dimensionMetadata_;
      if (dimensionMetadataCase_ == 6 &&
          youtubeChannelMetadataBuilder_ != null) {
        result.dimensionMetadata_ = youtubeChannelMetadataBuilder_.build();
      }
      if (dimensionMetadataCase_ == 7 &&
          dynamicAttributeMetadataBuilder_ != null) {
        result.dimensionMetadata_ = dynamicAttributeMetadataBuilder_.build();
      }
      if (dimensionMetadataCase_ == 8 &&
          locationAttributeMetadataBuilder_ != null) {
        result.dimensionMetadata_ = locationAttributeMetadataBuilder_.build();
      }
    }

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

    public Builder mergeFrom(com.google.ads.googleads.v14.services.AudienceInsightsAttributeMetadata other) {
      if (other == com.google.ads.googleads.v14.services.AudienceInsightsAttributeMetadata.getDefaultInstance()) return this;
      if (other.dimension_ != 0) {
        setDimensionValue(other.getDimensionValue());
      }
      if (other.hasAttribute()) {
        mergeAttribute(other.getAttribute());
      }
      if (!other.getDisplayName().isEmpty()) {
        displayName_ = other.displayName_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (other.getScore() != 0D) {
        setScore(other.getScore());
      }
      if (!other.getDisplayInfo().isEmpty()) {
        displayInfo_ = other.displayInfo_;
        bitField0_ |= 0x00000010;
        onChanged();
      }
      switch (other.getDimensionMetadataCase()) {
        case YOUTUBE_CHANNEL_METADATA: {
          mergeYoutubeChannelMetadata(other.getYoutubeChannelMetadata());
          break;
        }
        case DYNAMIC_ATTRIBUTE_METADATA: {
          mergeDynamicAttributeMetadata(other.getDynamicAttributeMetadata());
          break;
        }
        case LOCATION_ATTRIBUTE_METADATA: {
          mergeLocationAttributeMetadata(other.getLocationAttributeMetadata());
          break;
        }
        case DIMENSIONMETADATA_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 8: {
              dimension_ = input.readEnum();
              bitField0_ |= 0x00000001;
              break;
            } // case 8
            case 18: {
              input.readMessage(
                  getAttributeFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            case 26: {
              displayName_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 33: {
              score_ = input.readDouble();
              bitField0_ |= 0x00000008;
              break;
            } // case 33
            case 42: {
              displayInfo_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000010;
              break;
            } // case 42
            case 50: {
              input.readMessage(
                  getYoutubeChannelMetadataFieldBuilder().getBuilder(),
                  extensionRegistry);
              dimensionMetadataCase_ = 6;
              break;
            } // case 50
            case 58: {
              input.readMessage(
                  getDynamicAttributeMetadataFieldBuilder().getBuilder(),
                  extensionRegistry);
              dimensionMetadataCase_ = 7;
              break;
            } // case 58
            case 66: {
              input.readMessage(
                  getLocationAttributeMetadataFieldBuilder().getBuilder(),
                  extensionRegistry);
              dimensionMetadataCase_ = 8;
              break;
            } // case 66
            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 dimensionMetadataCase_ = 0;
    private java.lang.Object dimensionMetadata_;
    public DimensionMetadataCase
        getDimensionMetadataCase() {
      return DimensionMetadataCase.forNumber(
          dimensionMetadataCase_);
    }

    public Builder clearDimensionMetadata() {
      dimensionMetadataCase_ = 0;
      dimensionMetadata_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private int dimension_ = 0;
    /**
     * <pre>
     * The type of the attribute.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimension = 1;</code>
     * @return The enum numeric value on the wire for dimension.
     */
    @java.lang.Override public int getDimensionValue() {
      return dimension_;
    }
    /**
     * <pre>
     * The type of the attribute.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimension = 1;</code>
     * @param value The enum numeric value on the wire for dimension to set.
     * @return This builder for chaining.
     */
    public Builder setDimensionValue(int value) {
      dimension_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The type of the attribute.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimension = 1;</code>
     * @return The dimension.
     */
    @java.lang.Override
    public com.google.ads.googleads.v14.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension getDimension() {
      com.google.ads.googleads.v14.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension result = com.google.ads.googleads.v14.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension.forNumber(dimension_);
      return result == null ? com.google.ads.googleads.v14.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension.UNRECOGNIZED : result;
    }
    /**
     * <pre>
     * The type of the attribute.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimension = 1;</code>
     * @param value The dimension to set.
     * @return This builder for chaining.
     */
    public Builder setDimension(com.google.ads.googleads.v14.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000001;
      dimension_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The type of the attribute.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimension = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearDimension() {
      bitField0_ = (bitField0_ & ~0x00000001);
      dimension_ = 0;
      onChanged();
      return this;
    }

    private com.google.ads.googleads.v14.services.AudienceInsightsAttribute attribute_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.ads.googleads.v14.services.AudienceInsightsAttribute, com.google.ads.googleads.v14.services.AudienceInsightsAttribute.Builder, com.google.ads.googleads.v14.services.AudienceInsightsAttributeOrBuilder> attributeBuilder_;
    /**
     * <pre>
     * The attribute itself.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.AudienceInsightsAttribute attribute = 2;</code>
     * @return Whether the attribute field is set.
     */
    public boolean hasAttribute() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <pre>
     * The attribute itself.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.AudienceInsightsAttribute attribute = 2;</code>
     * @return The attribute.
     */
    public com.google.ads.googleads.v14.services.AudienceInsightsAttribute getAttribute() {
      if (attributeBuilder_ == null) {
        return attribute_ == null ? com.google.ads.googleads.v14.services.AudienceInsightsAttribute.getDefaultInstance() : attribute_;
      } else {
        return attributeBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * The attribute itself.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.AudienceInsightsAttribute attribute = 2;</code>
     */
    public Builder setAttribute(com.google.ads.googleads.v14.services.AudienceInsightsAttribute value) {
      if (attributeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        attribute_ = value;
      } else {
        attributeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The attribute itself.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.AudienceInsightsAttribute attribute = 2;</code>
     */
    public Builder setAttribute(
        com.google.ads.googleads.v14.services.AudienceInsightsAttribute.Builder builderForValue) {
      if (attributeBuilder_ == null) {
        attribute_ = builderForValue.build();
      } else {
        attributeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The attribute itself.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.AudienceInsightsAttribute attribute = 2;</code>
     */
    public Builder mergeAttribute(com.google.ads.googleads.v14.services.AudienceInsightsAttribute value) {
      if (attributeBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0) &&
          attribute_ != null &&
          attribute_ != com.google.ads.googleads.v14.services.AudienceInsightsAttribute.getDefaultInstance()) {
          getAttributeBuilder().mergeFrom(value);
        } else {
          attribute_ = value;
        }
      } else {
        attributeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The attribute itself.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.AudienceInsightsAttribute attribute = 2;</code>
     */
    public Builder clearAttribute() {
      bitField0_ = (bitField0_ & ~0x00000002);
      attribute_ = null;
      if (attributeBuilder_ != null) {
        attributeBuilder_.dispose();
        attributeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The attribute itself.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.AudienceInsightsAttribute attribute = 2;</code>
     */
    public com.google.ads.googleads.v14.services.AudienceInsightsAttribute.Builder getAttributeBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getAttributeFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * The attribute itself.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.AudienceInsightsAttribute attribute = 2;</code>
     */
    public com.google.ads.googleads.v14.services.AudienceInsightsAttributeOrBuilder getAttributeOrBuilder() {
      if (attributeBuilder_ != null) {
        return attributeBuilder_.getMessageOrBuilder();
      } else {
        return attribute_ == null ?
            com.google.ads.googleads.v14.services.AudienceInsightsAttribute.getDefaultInstance() : attribute_;
      }
    }
    /**
     * <pre>
     * The attribute itself.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.AudienceInsightsAttribute attribute = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.ads.googleads.v14.services.AudienceInsightsAttribute, com.google.ads.googleads.v14.services.AudienceInsightsAttribute.Builder, com.google.ads.googleads.v14.services.AudienceInsightsAttributeOrBuilder> 
        getAttributeFieldBuilder() {
      if (attributeBuilder_ == null) {
        attributeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.ads.googleads.v14.services.AudienceInsightsAttribute, com.google.ads.googleads.v14.services.AudienceInsightsAttribute.Builder, com.google.ads.googleads.v14.services.AudienceInsightsAttributeOrBuilder>(
                getAttribute(),
                getParentForChildren(),
                isClean());
        attribute_ = null;
      }
      return attributeBuilder_;
    }

    private java.lang.Object displayName_ = "";
    /**
     * <pre>
     * The human-readable name of the attribute.
     * </pre>
     *
     * <code>string display_name = 3;</code>
     * @return The displayName.
     */
    public java.lang.String getDisplayName() {
      java.lang.Object ref = displayName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        displayName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * The human-readable name of the attribute.
     * </pre>
     *
     * <code>string display_name = 3;</code>
     * @return The bytes for displayName.
     */
    public com.google.protobuf.ByteString
        getDisplayNameBytes() {
      java.lang.Object ref = displayName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        displayName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * The human-readable name of the attribute.
     * </pre>
     *
     * <code>string display_name = 3;</code>
     * @param value The displayName to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayName(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      displayName_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The human-readable name of the attribute.
     * </pre>
     *
     * <code>string display_name = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearDisplayName() {
      displayName_ = getDefaultInstance().getDisplayName();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The human-readable name of the attribute.
     * </pre>
     *
     * <code>string display_name = 3;</code>
     * @param value The bytes for displayName to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      displayName_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private double score_ ;
    /**
     * <pre>
     * A relevance score for this attribute, between 0 and 1.
     * </pre>
     *
     * <code>double score = 4;</code>
     * @return The score.
     */
    @java.lang.Override
    public double getScore() {
      return score_;
    }
    /**
     * <pre>
     * A relevance score for this attribute, between 0 and 1.
     * </pre>
     *
     * <code>double score = 4;</code>
     * @param value The score to set.
     * @return This builder for chaining.
     */
    public Builder setScore(double value) {

      score_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * A relevance score for this attribute, between 0 and 1.
     * </pre>
     *
     * <code>double score = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearScore() {
      bitField0_ = (bitField0_ & ~0x00000008);
      score_ = 0D;
      onChanged();
      return this;
    }

    private java.lang.Object displayInfo_ = "";
    /**
     * <pre>
     * A string that supplements the display_name to identify the attribute.
     * If the dimension is TOPIC, this is a brief description of the
     * Knowledge Graph entity, such as "American singer-songwriter".
     * If the dimension is CATEGORY, this is the complete path to the category in
     * The Product &amp; Service taxonomy, for example
     * "/Apparel/Clothing/Outerwear".
     * </pre>
     *
     * <code>string display_info = 5;</code>
     * @return The displayInfo.
     */
    public java.lang.String getDisplayInfo() {
      java.lang.Object ref = displayInfo_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        displayInfo_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * A string that supplements the display_name to identify the attribute.
     * If the dimension is TOPIC, this is a brief description of the
     * Knowledge Graph entity, such as "American singer-songwriter".
     * If the dimension is CATEGORY, this is the complete path to the category in
     * The Product &amp; Service taxonomy, for example
     * "/Apparel/Clothing/Outerwear".
     * </pre>
     *
     * <code>string display_info = 5;</code>
     * @return The bytes for displayInfo.
     */
    public com.google.protobuf.ByteString
        getDisplayInfoBytes() {
      java.lang.Object ref = displayInfo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        displayInfo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * A string that supplements the display_name to identify the attribute.
     * If the dimension is TOPIC, this is a brief description of the
     * Knowledge Graph entity, such as "American singer-songwriter".
     * If the dimension is CATEGORY, this is the complete path to the category in
     * The Product &amp; Service taxonomy, for example
     * "/Apparel/Clothing/Outerwear".
     * </pre>
     *
     * <code>string display_info = 5;</code>
     * @param value The displayInfo to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayInfo(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      displayInfo_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * A string that supplements the display_name to identify the attribute.
     * If the dimension is TOPIC, this is a brief description of the
     * Knowledge Graph entity, such as "American singer-songwriter".
     * If the dimension is CATEGORY, this is the complete path to the category in
     * The Product &amp; Service taxonomy, for example
     * "/Apparel/Clothing/Outerwear".
     * </pre>
     *
     * <code>string display_info = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearDisplayInfo() {
      displayInfo_ = getDefaultInstance().getDisplayInfo();
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * A string that supplements the display_name to identify the attribute.
     * If the dimension is TOPIC, this is a brief description of the
     * Knowledge Graph entity, such as "American singer-songwriter".
     * If the dimension is CATEGORY, this is the complete path to the category in
     * The Product &amp; Service taxonomy, for example
     * "/Apparel/Clothing/Outerwear".
     * </pre>
     *
     * <code>string display_info = 5;</code>
     * @param value The bytes for displayInfo to set.
     * @return This builder for chaining.
     */
    public Builder setDisplayInfoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      displayInfo_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata, com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata.Builder, com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadataOrBuilder> youtubeChannelMetadataBuilder_;
    /**
     * <pre>
     * Special metadata for a YouTube channel.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 6;</code>
     * @return Whether the youtubeChannelMetadata field is set.
     */
    @java.lang.Override
    public boolean hasYoutubeChannelMetadata() {
      return dimensionMetadataCase_ == 6;
    }
    /**
     * <pre>
     * Special metadata for a YouTube channel.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 6;</code>
     * @return The youtubeChannelMetadata.
     */
    @java.lang.Override
    public com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata getYoutubeChannelMetadata() {
      if (youtubeChannelMetadataBuilder_ == null) {
        if (dimensionMetadataCase_ == 6) {
          return (com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata) dimensionMetadata_;
        }
        return com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata.getDefaultInstance();
      } else {
        if (dimensionMetadataCase_ == 6) {
          return youtubeChannelMetadataBuilder_.getMessage();
        }
        return com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata.getDefaultInstance();
      }
    }
    /**
     * <pre>
     * Special metadata for a YouTube channel.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 6;</code>
     */
    public Builder setYoutubeChannelMetadata(com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata value) {
      if (youtubeChannelMetadataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        dimensionMetadata_ = value;
        onChanged();
      } else {
        youtubeChannelMetadataBuilder_.setMessage(value);
      }
      dimensionMetadataCase_ = 6;
      return this;
    }
    /**
     * <pre>
     * Special metadata for a YouTube channel.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 6;</code>
     */
    public Builder setYoutubeChannelMetadata(
        com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata.Builder builderForValue) {
      if (youtubeChannelMetadataBuilder_ == null) {
        dimensionMetadata_ = builderForValue.build();
        onChanged();
      } else {
        youtubeChannelMetadataBuilder_.setMessage(builderForValue.build());
      }
      dimensionMetadataCase_ = 6;
      return this;
    }
    /**
     * <pre>
     * Special metadata for a YouTube channel.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 6;</code>
     */
    public Builder mergeYoutubeChannelMetadata(com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata value) {
      if (youtubeChannelMetadataBuilder_ == null) {
        if (dimensionMetadataCase_ == 6 &&
            dimensionMetadata_ != com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata.getDefaultInstance()) {
          dimensionMetadata_ = com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata.newBuilder((com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata) dimensionMetadata_)
              .mergeFrom(value).buildPartial();
        } else {
          dimensionMetadata_ = value;
        }
        onChanged();
      } else {
        if (dimensionMetadataCase_ == 6) {
          youtubeChannelMetadataBuilder_.mergeFrom(value);
        } else {
          youtubeChannelMetadataBuilder_.setMessage(value);
        }
      }
      dimensionMetadataCase_ = 6;
      return this;
    }
    /**
     * <pre>
     * Special metadata for a YouTube channel.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 6;</code>
     */
    public Builder clearYoutubeChannelMetadata() {
      if (youtubeChannelMetadataBuilder_ == null) {
        if (dimensionMetadataCase_ == 6) {
          dimensionMetadataCase_ = 0;
          dimensionMetadata_ = null;
          onChanged();
        }
      } else {
        if (dimensionMetadataCase_ == 6) {
          dimensionMetadataCase_ = 0;
          dimensionMetadata_ = null;
        }
        youtubeChannelMetadataBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * Special metadata for a YouTube channel.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 6;</code>
     */
    public com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata.Builder getYoutubeChannelMetadataBuilder() {
      return getYoutubeChannelMetadataFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Special metadata for a YouTube channel.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 6;</code>
     */
    @java.lang.Override
    public com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadataOrBuilder getYoutubeChannelMetadataOrBuilder() {
      if ((dimensionMetadataCase_ == 6) && (youtubeChannelMetadataBuilder_ != null)) {
        return youtubeChannelMetadataBuilder_.getMessageOrBuilder();
      } else {
        if (dimensionMetadataCase_ == 6) {
          return (com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata) dimensionMetadata_;
        }
        return com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata.getDefaultInstance();
      }
    }
    /**
     * <pre>
     * Special metadata for a YouTube channel.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata, com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata.Builder, com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadataOrBuilder> 
        getYoutubeChannelMetadataFieldBuilder() {
      if (youtubeChannelMetadataBuilder_ == null) {
        if (!(dimensionMetadataCase_ == 6)) {
          dimensionMetadata_ = com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata.getDefaultInstance();
        }
        youtubeChannelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata, com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata.Builder, com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadataOrBuilder>(
                (com.google.ads.googleads.v14.services.YouTubeChannelAttributeMetadata) dimensionMetadata_,
                getParentForChildren(),
                isClean());
        dimensionMetadata_ = null;
      }
      dimensionMetadataCase_ = 6;
      onChanged();
      return youtubeChannelMetadataBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata, com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata.Builder, com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadataOrBuilder> dynamicAttributeMetadataBuilder_;
    /**
     * <pre>
     * Special metadata for a YouTube Dynamic Lineup.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata dynamic_attribute_metadata = 7;</code>
     * @return Whether the dynamicAttributeMetadata field is set.
     */
    @java.lang.Override
    public boolean hasDynamicAttributeMetadata() {
      return dimensionMetadataCase_ == 7;
    }
    /**
     * <pre>
     * Special metadata for a YouTube Dynamic Lineup.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata dynamic_attribute_metadata = 7;</code>
     * @return The dynamicAttributeMetadata.
     */
    @java.lang.Override
    public com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata getDynamicAttributeMetadata() {
      if (dynamicAttributeMetadataBuilder_ == null) {
        if (dimensionMetadataCase_ == 7) {
          return (com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata) dimensionMetadata_;
        }
        return com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata.getDefaultInstance();
      } else {
        if (dimensionMetadataCase_ == 7) {
          return dynamicAttributeMetadataBuilder_.getMessage();
        }
        return com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata.getDefaultInstance();
      }
    }
    /**
     * <pre>
     * Special metadata for a YouTube Dynamic Lineup.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata dynamic_attribute_metadata = 7;</code>
     */
    public Builder setDynamicAttributeMetadata(com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata value) {
      if (dynamicAttributeMetadataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        dimensionMetadata_ = value;
        onChanged();
      } else {
        dynamicAttributeMetadataBuilder_.setMessage(value);
      }
      dimensionMetadataCase_ = 7;
      return this;
    }
    /**
     * <pre>
     * Special metadata for a YouTube Dynamic Lineup.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata dynamic_attribute_metadata = 7;</code>
     */
    public Builder setDynamicAttributeMetadata(
        com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata.Builder builderForValue) {
      if (dynamicAttributeMetadataBuilder_ == null) {
        dimensionMetadata_ = builderForValue.build();
        onChanged();
      } else {
        dynamicAttributeMetadataBuilder_.setMessage(builderForValue.build());
      }
      dimensionMetadataCase_ = 7;
      return this;
    }
    /**
     * <pre>
     * Special metadata for a YouTube Dynamic Lineup.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata dynamic_attribute_metadata = 7;</code>
     */
    public Builder mergeDynamicAttributeMetadata(com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata value) {
      if (dynamicAttributeMetadataBuilder_ == null) {
        if (dimensionMetadataCase_ == 7 &&
            dimensionMetadata_ != com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata.getDefaultInstance()) {
          dimensionMetadata_ = com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata.newBuilder((com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata) dimensionMetadata_)
              .mergeFrom(value).buildPartial();
        } else {
          dimensionMetadata_ = value;
        }
        onChanged();
      } else {
        if (dimensionMetadataCase_ == 7) {
          dynamicAttributeMetadataBuilder_.mergeFrom(value);
        } else {
          dynamicAttributeMetadataBuilder_.setMessage(value);
        }
      }
      dimensionMetadataCase_ = 7;
      return this;
    }
    /**
     * <pre>
     * Special metadata for a YouTube Dynamic Lineup.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata dynamic_attribute_metadata = 7;</code>
     */
    public Builder clearDynamicAttributeMetadata() {
      if (dynamicAttributeMetadataBuilder_ == null) {
        if (dimensionMetadataCase_ == 7) {
          dimensionMetadataCase_ = 0;
          dimensionMetadata_ = null;
          onChanged();
        }
      } else {
        if (dimensionMetadataCase_ == 7) {
          dimensionMetadataCase_ = 0;
          dimensionMetadata_ = null;
        }
        dynamicAttributeMetadataBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * Special metadata for a YouTube Dynamic Lineup.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata dynamic_attribute_metadata = 7;</code>
     */
    public com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata.Builder getDynamicAttributeMetadataBuilder() {
      return getDynamicAttributeMetadataFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Special metadata for a YouTube Dynamic Lineup.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata dynamic_attribute_metadata = 7;</code>
     */
    @java.lang.Override
    public com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadataOrBuilder getDynamicAttributeMetadataOrBuilder() {
      if ((dimensionMetadataCase_ == 7) && (dynamicAttributeMetadataBuilder_ != null)) {
        return dynamicAttributeMetadataBuilder_.getMessageOrBuilder();
      } else {
        if (dimensionMetadataCase_ == 7) {
          return (com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata) dimensionMetadata_;
        }
        return com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata.getDefaultInstance();
      }
    }
    /**
     * <pre>
     * Special metadata for a YouTube Dynamic Lineup.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata dynamic_attribute_metadata = 7;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata, com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata.Builder, com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadataOrBuilder> 
        getDynamicAttributeMetadataFieldBuilder() {
      if (dynamicAttributeMetadataBuilder_ == null) {
        if (!(dimensionMetadataCase_ == 7)) {
          dimensionMetadata_ = com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata.getDefaultInstance();
        }
        dynamicAttributeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata, com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata.Builder, com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadataOrBuilder>(
                (com.google.ads.googleads.v14.services.DynamicLineupAttributeMetadata) dimensionMetadata_,
                getParentForChildren(),
                isClean());
        dimensionMetadata_ = null;
      }
      dimensionMetadataCase_ = 7;
      onChanged();
      return dynamicAttributeMetadataBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.ads.googleads.v14.services.LocationAttributeMetadata, com.google.ads.googleads.v14.services.LocationAttributeMetadata.Builder, com.google.ads.googleads.v14.services.LocationAttributeMetadataOrBuilder> locationAttributeMetadataBuilder_;
    /**
     * <pre>
     * Special metadata for a Location.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.LocationAttributeMetadata location_attribute_metadata = 8;</code>
     * @return Whether the locationAttributeMetadata field is set.
     */
    @java.lang.Override
    public boolean hasLocationAttributeMetadata() {
      return dimensionMetadataCase_ == 8;
    }
    /**
     * <pre>
     * Special metadata for a Location.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.LocationAttributeMetadata location_attribute_metadata = 8;</code>
     * @return The locationAttributeMetadata.
     */
    @java.lang.Override
    public com.google.ads.googleads.v14.services.LocationAttributeMetadata getLocationAttributeMetadata() {
      if (locationAttributeMetadataBuilder_ == null) {
        if (dimensionMetadataCase_ == 8) {
          return (com.google.ads.googleads.v14.services.LocationAttributeMetadata) dimensionMetadata_;
        }
        return com.google.ads.googleads.v14.services.LocationAttributeMetadata.getDefaultInstance();
      } else {
        if (dimensionMetadataCase_ == 8) {
          return locationAttributeMetadataBuilder_.getMessage();
        }
        return com.google.ads.googleads.v14.services.LocationAttributeMetadata.getDefaultInstance();
      }
    }
    /**
     * <pre>
     * Special metadata for a Location.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.LocationAttributeMetadata location_attribute_metadata = 8;</code>
     */
    public Builder setLocationAttributeMetadata(com.google.ads.googleads.v14.services.LocationAttributeMetadata value) {
      if (locationAttributeMetadataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        dimensionMetadata_ = value;
        onChanged();
      } else {
        locationAttributeMetadataBuilder_.setMessage(value);
      }
      dimensionMetadataCase_ = 8;
      return this;
    }
    /**
     * <pre>
     * Special metadata for a Location.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.LocationAttributeMetadata location_attribute_metadata = 8;</code>
     */
    public Builder setLocationAttributeMetadata(
        com.google.ads.googleads.v14.services.LocationAttributeMetadata.Builder builderForValue) {
      if (locationAttributeMetadataBuilder_ == null) {
        dimensionMetadata_ = builderForValue.build();
        onChanged();
      } else {
        locationAttributeMetadataBuilder_.setMessage(builderForValue.build());
      }
      dimensionMetadataCase_ = 8;
      return this;
    }
    /**
     * <pre>
     * Special metadata for a Location.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.LocationAttributeMetadata location_attribute_metadata = 8;</code>
     */
    public Builder mergeLocationAttributeMetadata(com.google.ads.googleads.v14.services.LocationAttributeMetadata value) {
      if (locationAttributeMetadataBuilder_ == null) {
        if (dimensionMetadataCase_ == 8 &&
            dimensionMetadata_ != com.google.ads.googleads.v14.services.LocationAttributeMetadata.getDefaultInstance()) {
          dimensionMetadata_ = com.google.ads.googleads.v14.services.LocationAttributeMetadata.newBuilder((com.google.ads.googleads.v14.services.LocationAttributeMetadata) dimensionMetadata_)
              .mergeFrom(value).buildPartial();
        } else {
          dimensionMetadata_ = value;
        }
        onChanged();
      } else {
        if (dimensionMetadataCase_ == 8) {
          locationAttributeMetadataBuilder_.mergeFrom(value);
        } else {
          locationAttributeMetadataBuilder_.setMessage(value);
        }
      }
      dimensionMetadataCase_ = 8;
      return this;
    }
    /**
     * <pre>
     * Special metadata for a Location.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.LocationAttributeMetadata location_attribute_metadata = 8;</code>
     */
    public Builder clearLocationAttributeMetadata() {
      if (locationAttributeMetadataBuilder_ == null) {
        if (dimensionMetadataCase_ == 8) {
          dimensionMetadataCase_ = 0;
          dimensionMetadata_ = null;
          onChanged();
        }
      } else {
        if (dimensionMetadataCase_ == 8) {
          dimensionMetadataCase_ = 0;
          dimensionMetadata_ = null;
        }
        locationAttributeMetadataBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * Special metadata for a Location.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.LocationAttributeMetadata location_attribute_metadata = 8;</code>
     */
    public com.google.ads.googleads.v14.services.LocationAttributeMetadata.Builder getLocationAttributeMetadataBuilder() {
      return getLocationAttributeMetadataFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Special metadata for a Location.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.LocationAttributeMetadata location_attribute_metadata = 8;</code>
     */
    @java.lang.Override
    public com.google.ads.googleads.v14.services.LocationAttributeMetadataOrBuilder getLocationAttributeMetadataOrBuilder() {
      if ((dimensionMetadataCase_ == 8) && (locationAttributeMetadataBuilder_ != null)) {
        return locationAttributeMetadataBuilder_.getMessageOrBuilder();
      } else {
        if (dimensionMetadataCase_ == 8) {
          return (com.google.ads.googleads.v14.services.LocationAttributeMetadata) dimensionMetadata_;
        }
        return com.google.ads.googleads.v14.services.LocationAttributeMetadata.getDefaultInstance();
      }
    }
    /**
     * <pre>
     * Special metadata for a Location.
     * </pre>
     *
     * <code>.google.ads.googleads.v14.services.LocationAttributeMetadata location_attribute_metadata = 8;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.ads.googleads.v14.services.LocationAttributeMetadata, com.google.ads.googleads.v14.services.LocationAttributeMetadata.Builder, com.google.ads.googleads.v14.services.LocationAttributeMetadataOrBuilder> 
        getLocationAttributeMetadataFieldBuilder() {
      if (locationAttributeMetadataBuilder_ == null) {
        if (!(dimensionMetadataCase_ == 8)) {
          dimensionMetadata_ = com.google.ads.googleads.v14.services.LocationAttributeMetadata.getDefaultInstance();
        }
        locationAttributeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.ads.googleads.v14.services.LocationAttributeMetadata, com.google.ads.googleads.v14.services.LocationAttributeMetadata.Builder, com.google.ads.googleads.v14.services.LocationAttributeMetadataOrBuilder>(
                (com.google.ads.googleads.v14.services.LocationAttributeMetadata) dimensionMetadata_,
                getParentForChildren(),
                isClean());
        dimensionMetadata_ = null;
      }
      dimensionMetadataCase_ = 8;
      onChanged();
      return locationAttributeMetadataBuilder_;
    }
    @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.v14.services.AudienceInsightsAttributeMetadata)
  }

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

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

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

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

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

}

